summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DataUsageSummary.java
Commit message (Collapse)AuthorAgeFilesLines
* DataUsageSummary: fix mobile data usage display for GSM devices with no numberPawit Pornkitprasan2013-04-141-7/+13
| | | | | | | | | | Some providers don't write phone number onto SIM card causing the phone number check introduced in the partially reverted commit to fail. Re-introduce the original check with the "or" condition. This partially reverts commit 4c51b45355b9d6fed973f946738bf455a8b7c9ea. Change-Id: I69a65a1a421dcdf168c3d0afeb7110cb97790034
* DataUsageSummary: fix mobile data usage display for sim-less devicesjt11342013-04-131-5/+5
| | | | | | | | - Don't assume the device has a sim card. Check for a phone number instead. Otherwise the mobile data usage screen will not show up on sim-less CDMA devices. Change-Id: Ic6e35dc209ff05e0c89dc990ad82f4ab4d3f337d
* Enable Ethernet tab in data usageJaewan Kim2013-04-021-8/+8
| | | | | | | | | | | mStateSession is not initialized at the time hasEthernet is called to set mShowEthernet, so Ethernet tab is not shown at the startup. In this case, if the device doesn't support mobile network, user cannot even select it from the context menu. Bug: 8365419 Change-Id: I441971f18346c34a3adf3f18d9355075d9dce3f0 Signed-off-by: Jaewan Kim<jaewan@google.com>
* Merge commit 'android-4.2.2_r1' into mr1.1-stagingRicardo Cerqueira2013-02-151-5/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: AndroidManifest.xml res/values-de/strings.xml res/values-el/strings.xml res/values-es/strings.xml res/values-fi/strings.xml res/values-hu/strings.xml res/values-it/strings.xml res/values-iw/strings.xml res/values-nl/strings.xml res/values-ru/strings.xml res/values-zh-rCN/strings.xml res/values/strings.xml src/com/android/settings/ChooseLockGeneric.java src/com/android/settings/ChooseLockPatternTutorial.java src/com/android/settings/DeviceInfoSettings.java src/com/android/settings/Settings.java Change-Id: I275be467a401ad6dcc7966924358a5adb0773b75
| * Pass the locale code in the help url for help pages.Amith Yamasani2012-12-061-5/+1
| | | | | | | | | | | | | | Otherwise the help will always be shown in English. Bug: 7564049 Change-Id: I94da36aa1ae5aabd118178866b7e570bb77add34
* | FindBugs: Call to equals() comparing different typesLászló Dávid2012-12-181-2/+2
|/ | | | Change-Id: If4185f9eec0adfa47a6741eb21111b6cdafac008
* Prevent sync state changes when user is a monkeyGuang Zhu2012-10-221-1/+5
| | | | | | Bug: 7385019 Change-Id: Icf305683e57b83b3260f2587ae0a3d1a6dc3c21d
* Show more settings and add restrictions/dialogs for secondary usersAmith Yamasani2012-09-231-4/+11
| | | | | | | | | | Bug: 7213029 crash in About>Status Bug: 7212495 hide System updates for second user Bug: 7212230 nickname editor should select the text Bug: 7160487 TTS settings Bug: 7129411 Settings needs visibility changes for secondary users Change-Id: Ia2d1229c08b392edfa6b671fce4a382410405b14
* Always show auto-sync; user-specific storage.Jeff Sharkey2012-09-181-1/+1
| | | | | | | | Auto-sync is per-user, so show it to all users. Also create user- specific path when showing misc storage items. Bug: 7179485, 7177335 Change-Id: I9f6029e22d519a5516a0f1a76e6aa55db3c2832c
* Data usage multi-user support.Jeff Sharkey2012-09-141-51/+71
| | | | | | | | | | | | | Switch to storing policy per-user instead of per-app, meaning each user has control over their own set of apps. Summarize the usage of non-current users. Only allow owner to make changes to overall network policy. Hide auto-sync menu when viewing app details. Search for MANAGE_NETWORK_USAGE intent across all package names sharing a UID. Bug: 7121279, 5419594, 6978663 Change-Id: Ia70f04df70d27da27faccb947cd27021c628a41a
* Update Settings app to manipulate now-global settings properlyChristopher Tate2012-09-071-3/+3
| | | | Change-Id: I6c269051c7d2db87f70f44df74e06456588c3b6f
* Rename UserId to UserHandle.Dianne Hackborn2012-08-161-4/+4
| | | | Change-Id: I04b86f3777c28fb83f03eb404dd5c2eb18d3da8f
* Use telephony-commonWink Saville2012-07-111-1/+2
| | | | Change-Id: Ic95136fd5934afdd53a08bfd640d40add67fdb44
* Save the auto-sync dialog state for orientation changesAmith Yamasani2012-06-071-0/+10
| | | | | Bug: 6630421 Change-Id: I11447173483da499e23c5ce41c566fa988385e6b
* Account types at toplevel of SettingsAmith Yamasani2012-06-041-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reorganized Account settings to show account types at the top-level of Settings. Only account types that have accounts added are visible here. There is an Add account button to add a new account. Master sync toggle has moved to Data Usage screen in the overflow menu. It shows additional detail of the function of the auto-sync toggle when it is toggled by the user. Account type screen (ManageAccountsSettings) shows list of accounts of that type and any available authenticator settings. It additionally verifies any Intents can be resolved before showing the corresponding entry. This screen now shows last synced time for each account. You can now sync all accounts of a type by selecting Sync now in the Account type screen. Account Sync screen that shows the list of syncable items has minor tweaks: - "Last synced...", "Sync is OFF" - Doesn't show the authenticator settings here anymore. Bug: 6579937 Change-Id: I8139a4c992b525a3e1efc24d2d223c3f5caddc76
* Surface metered networks as "Mobile hotspots."Jeff Sharkey2012-05-291-8/+11
| | | | | | | | | String changes to give clearer definition of metered networks, and remove metered control for mobile network. Also fix NPE when testing hasEthernet() before session is ready. Bug: 6494976 Change-Id: Ia55ca3362a05977b9f21ab41eb10bbc738e29620
* Only show ethernet when traffic has occurred.Jeff Sharkey2012-05-241-2/+14
| | | | | Bug: 6231172 Change-Id: I24dfd5f998b4e96681813c9fd7ce1ed74cf30eb5
* Avoid NPE until we understand better.Jeff Sharkey2012-05-181-0/+4
| | | | | Bug: 6450986 Change-Id: I68af8fedc419cd3142ba2bb7530b77aca7718123
* Clear references after Data Usage View removed.Jeff Sharkey2012-05-151-6/+2
| | | | | Bug: 6450986 Change-Id: Ia28479983fc192cbeefb16b8ce03f67241e4002c
* Avoid animation flashing and fix padding.Jeff Sharkey2012-05-041-21/+18
| | | | | Bug: 6446203 Change-Id: Icea64d5d30d894a6438af9278bc2d10b8b921d29
* Fall back to Wi-Fi data when SIM missing.Jeff Sharkey2012-05-031-2/+6
| | | | | Bug: 6427657 Change-Id: I0613b4b89ddbea1cde2fd96ce6dd4bacb0fb4eaa
* Merge "Fix data usage settings button visibility."Jeff Sharkey2012-04-241-0/+3
|\
| * Fix data usage settings button visibility.Jeff Sharkey2012-04-241-0/+3
| | | | | | | | | | | | | | Also check that fragment is attached before launching intent. Bug: 6385040 Change-Id: If857758acbf6fe17c8ffbd75226114346ffe6c62
* | Help menus for several screens.Amith Yamasani2012-04-231-0/+13
|/ | | | | Bug: 5144896 Change-Id: Ib2f5146f6f62f2a33261bb165c3bf1bf13b22f38
* Hide tab when disabled, metered strings, fixes.Jeff Sharkey2012-04-211-4/+6
| | | | | | | | | | | Hide "Data usage" item when kernel support isn't available and enabled. Change "restrict background" strings to reflect metered status. Hide app settings button when no package found. Always start limit sweep above any warning. Imply metered state for networks with limits. Bug: 6303364, 5465643, 5379686, 6376276, 6368329, 6376276 Change-Id: I4faccc9a50f2f741fd937bb8c361a3ca055135e2
* Show data restricted apps, unify strings.Jeff Sharkey2012-04-131-16/+35
| | | | | | | | | | Always show apps with background data restricted, even when not used in selected time period. Combine measurement disclaimer into single string, and only show for mobile networks. Unify limit dialog string. Bug: 6007276, 5505010, 5495020, 5456087 Change-Id: I0ec307b330838dc9528d7e63e0ac1edd14ba122c
* Hide body immediately when no tabs.Jeff Sharkey2012-04-111-4/+9
| | | | | | | Also check for valid SIM card when checking 4G radio status. Bug: 6311752 Change-Id: Ic148f052429cc66bb51237bdc93c09f7c8ba3df1
* Migrate to @Override to remove warnings.Jeff Sharkey2012-04-091-24/+34
| | | | | | Bug: 6303344 Change-Id: I8f17edc3b12d50cedab2c5f555c63bc07d85bca2
* Move to INetworkStatsSession with lifecycle.Jeff Sharkey2012-04-061-2/+14
| | | | | | | | Explicitly communicate lifecycle, enabling system_server to cache stats when actively being used. Bug: 6236498 Change-Id: Ieecc4b1d4fd46aeb5207c4ba9b450e04e9438d00
* Controls to set expensive (metered) networks.Jeff Sharkey2012-04-051-85/+84
| | | | | | | | | | | Add UI to change metered flag on NetworkPolicy, and support Wi-Fi policies per-SSID. Create Wi-Fi policies as needed, but leave cycle undefined. Only show and mutate mobile policies when SIM state is ready. Bug: 3001465, 3291052 Change-Id: I481a202fe0e68fc2f5adfd3b3a6f40347d2b168c
* Cluster apps by user in Data Usage.Jeff Sharkey2012-03-221-63/+80
| | | | | | | | | When displaying apps that have used data, cluster all app usage together regardless of profile/user. Always persist policy rules using primary UID (the UID under the default user). Bug: 6140462 Change-Id: Ia00bb42b26987553926f4027583dbe03b3bafba1
* Avoid Data Usage AppDetailsFragment ISE.Jeff Sharkey2012-03-151-1/+1
| | | | | Bug: 6022913 Change-Id: I4672b327096add4beeeb52f0bb467622b3467fcf
* Save timezone when setting data cycle reset date.Jeff Sharkey2012-03-091-8/+8
| | | | | Bug: 5938567 Change-Id: I9df8da9d030169952098efc04cfde79e3e42e1f8
* Linear bytes scale, time ticks on first week day.Jeff Sharkey2012-02-031-1/+4
| | | | | | | | | Move bytes to linear instead of logarithmic scale. Also render time ticks on first week day based on locale. Also enable testing of specific IMSI through setprop. Bug: 5452612, 5829693 Change-Id: I13200cf58a39bfe0ac343e1f83165e899867641b
* Unify shorthand for byte-based units.Jeff Sharkey2012-02-031-4/+2
| | | | Change-Id: I32f998b5ee1f5416c9cceafd124fd34b7433be42
* am 43cbe3ff: am b6e57c1f: Merge "Do not set minimum value for mobile data ↵Jean-Baptiste Queru2012-01-271-1/+1
|\ | | | | | | | | | | | | limit dialog higher than the actual set value" * commit '43cbe3ffb4f0777d8aa833355c523f4a1ff93818': Do not set minimum value for mobile data limit dialog higher than the actual set value
| * Do not set minimum value for mobile data limit dialog higher than the actual ↵Shuhrat Dehkanov2012-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | set value When mobile data limit and warning limit are set to 0, pressing mobile data limit text (0.0 GB) pops up mobile data limit dialog with minimum value 1. But the value set is 0, which is causing the dialog to show its maximum value 2^31-1. Change-Id: I79ed4df5fbf095a7e60bda640ff2ca26bcbd3cc4 Signed-off-by: Shuhrat Dehkanov <uzbmaster@gmail.com>
* | Restrict app data on metered networks.Jeff Sharkey2011-12-151-22/+7
|/ | | | | | | | Paired with framework change that no longer requires NetworkPolicy to have limit when restricting apps. Bug: 5571454 Change-Id: I2a5d8446a9278afb183e13d0f41f436ccb3bc9e8
* Data usage label width, locking, Wi-Fi fixes.Jeff Sharkey2011-11-101-12/+12
| | | | | | | | | | | Avoid wrapping sweep labels when underlying string is long, and avoid showing blank "^1" sweep labels. Only offer "restrict data" when mobile networks are present. Add locking around UidDetailProvider. Move to isNetworkSupported() for consistency. Bug: 5492495, 5471602, 5439402, 5373465 Change-Id: I79f5938d45ffbb4c2c242106424a466042a26c1c
* Prevent orphaned fragment on the settings stack.Amith Yamasani2011-11-071-1/+10
| | | | | | | Remove the AppDetailsFragment from the stack if DataUsage is being destroyed. Bug: 5572241 Change-Id: Ifb2c9233bf75c8cc7b43eec5ea3f0c0b0ba65ffe
* Data usage strings, sweep touches, fixes.Jeff Sharkey2011-09-251-13/+31
| | | | | | | | | | | | Change strings around limiting background data. Move limit/warning sweeps above inspection sweeps, and teach about additional neighbors on different axis. Guard against DialogFragment.show(), fix pie chart to draw edges, and remove data usage from battery UI. Bug: 5341374, 5337650, 5337385, 5319465, 5236335 Change-Id: Iea8c2a2ab405b645d85abe34a0178d4b8874cdd5
* Surface tethering stats in data usage.Jeff Sharkey2011-09-161-2/+3
| | | | | Bug: 5244846 Change-Id: Ib4ac03ab634278714576a66ef8d6fdbc6d15c82a
* Data usage: precise editing, restrict help, D-pad.Jeff Sharkey2011-09-131-41/+267
| | | | | | | | | | | | | | | Introduce dialogs for precise editing of network policy warning/limit values, triggered by click on sweep labels. Show up to 999MB before rounding to GB, and round to nearest 5MB value when dragging. Partial D-pad navigation around chart controls. Fix jumping when relayout during drag, and fix sweep overlap bug. When restricting data without limited networks, show dialog help to guide user towards network limit. When reloading chart data, try restoring to nearest cycle. Bug: 5289641, 5111701, 5226078 Change-Id: Ic59dee6496c480a64dc56f8534acf4d81b50bca7
* Data usage performance, bugfixes.Jeff Sharkey2011-09-121-182/+173
| | | | | | | | | | | | | | | | | Optimize launch times by removing unneeded extra work, including reloading data and tightening chart invalidation. Fix invalidation storm when sweeps overlap. Move chart history into loader instead of blocking main thread. Disable "Split 4G" mode until telephony support is ready, and combine any existing split policies. Async loading of application details. Remove alpha transitions to speed up on some hardware. Hide menus in detail mode. Delay kicking off force-poll. Fix inset padding on large devices. Bug: 5284321, 5273918, 5263056 Change-Id: I746d79c05e2a6ea97bbdbdc5d807e208328d1373
* Larger touch targets, snap to persisted value.Jeff Sharkey2011-09-081-2/+29
| | | | | | | | | | | | | Extend ListView content to screen edges, and use InsetBoundsDrawable to draw separator and divider with expected padding. Sweep touch targets are now much larger. Snap sweep to persisted value, and fix NFE when parsing label value. Bug: 5274249 Bug: 5262865 Bug: 5242857 Change-Id: Ifa0f3e622767d5b4dc85a73d6340207e6038a429
* Unify data/power layout, confirm disable, round.Jeff Sharkey2011-09-021-11/+76
| | | | | | | | | | Share consistent layout between data usage and battery usage. Show confirmation dialog before disabling mobile data. Round warning/limit sweep values to match displayed label. Suppress fade when switching data usage tabs. Bug: 5208510, 5058157, 5038589, 5252816 Change-Id: I3c76f3397445d2d3b173666a41672871df4c61af
* Data usage UI fixes; sweeps, combined history.Jeff Sharkey2011-08-281-59/+126
| | | | | | | | | | | | | | | | | | | | | Fix sweep z-order so that limit are always above inspection range, and draw shadows behind sweep labels. Narrower margins for sweeps with labels; push labels to keep from overlapping. Generous touch targets on sweeps, and delegate touches to neighboring sweep if nearer. Refresh sweep layout during axis zoom, and don't allow zoom below default minimum. Let inspection sweeps move beyond valid data ranges. Draw less-frequent tick marks when working with large axis ranges. Remove Wi-Fi policies but continue showing historical data. Write NetworkPolicy if modified during read, and snapshot when async write requested. Handle combined UID histories for "Android OS." Bug: 5191421, 5092579, 5225988, 5221101, 5221065, 5221005, 5150906, 5058025 Change-Id: Id51652e8a10bb90e1345f7a8af01bd70cb8ac677
* More TabWidget and padding tweaks to match spec.Jeff Sharkey2011-08-181-0/+4
| | | | | | | Also fix NPE in UserDictionarySettings. Bug: 5184822 Change-Id: I082981c3bcf9b1e6575dcf9f42495a17f0ec8672
* Allow data usage policy on Wi-Fi networks.Jeff Sharkey2011-08-181-28/+44
| | | | | | | Create NetworkPolicy when it doesn't already exist. Bug: 4646471, 5085110 Change-Id: I38b8b03689710df06d1734a4b4d9e12d98794154
* Reinforce limited networks in data usage UI.Jeff Sharkey2011-08-181-10/+48
| | | | | | | | When restricting background data, list the networks the restriction applies to. Bug: 5131685, 5058106 Change-Id: Idde084dfa5ac6313a8d145cb6f2603aedb154590