summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DataUsageSummary.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix to enable data for non-dds sub.Ravindra2016-07-011-8/+1
| | | | | | | | | When data is enabled\disabled on non-dds sub do not update the data base directly instead call TelephonyManager api to do the same. CRs-Fixed: 992072 Change-Id: I53b5ed2f4d6afcb05b09d65fd3d9843829cff995
* Settings app Data Usage UI enhancementsKamaljeet Maini2016-04-011-31/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified Settings app to support following new features in Data Usage Summary screen: 1) Added two items to overflow menu a) Enable/disable data usage alerts: to enable/disable global switch for data alerts. Shown only when DataUsage provider is installed. b) Reset data statistics: to reset data stats for current tab 2) Added a new per app switch "Mobile Data Alert" 3) Added a new per app switch "Restrict cellular data access" 4) Modified per app background data access feature to support three options a) Over mobile and WiFi b) Only over WiFi c) No access DataUsage provider, service and notification receivers have been refactored into a standalone package to minimize the changes to the Settings App. Change-Id: Ic0e42e57d04dc8e164ebfdab4531cced31c4e6eb Issue-Id: SETTINGS-75 Issue-Id: SETTINGS-76 Issue-Id: SETTINGS-77 Issue-Id: SETTINGS-76
* Merge tag 'android-6.0.1_r22' of ↵Steve Kondik2016-03-101-73/+7
|\ | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Settings into cm-13.0 Android 6.0.1 release 22 Change-Id: Ided010bc125199d47ca59d10f0ed5032a26632ff
| * Merge "Hide empty data usage cycles." into mnc-dr-devJeff Sharkey2015-10-201-3/+26
| |\ | | | | | | | | | | | | | | | | | | am: 2fcbdb7bb6 * commit '2fcbdb7bb677ed06ca5e3fbe558aff77259c194c': Hide empty data usage cycles.
| * | Refactor UidDetailProvider and its dependencies to SettingsLib.Wei Liu2015-08-251-2/+2
| | | | | | | | | | | | | | | | | | so that it can be reused by Wear app data usage. Change-Id: Id05f888274e15fbeffa175ee8073de02a8966867
| * | Move SummaryForAllUidLoader to SettingsLib.Wei Liu2015-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | In order to show the data usage per app on Android Wear, I'm moving SummaryForAllUidLoader to SettingsLib so that the code can be reused. Change-Id: I1833492d4a3b513405bfc1069b8656d04dd37c48
| * | am b7c6306b: am feeae4cd: Merge "Hide usage graph on app usage details ↵Julia Reynolds2015-07-281-1/+13
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | pages." into mnc-dev * commit 'b7c6306b8322de90e5a620ac5e670216685c7841': Hide usage graph on app usage details pages.
| * | | Move AppItem, ChartData, ChartDataLoader from Settings to SettingsLib.Wei Liu2015-07-131-69/+3
| | | | | | | | | | | | | | | | Change-Id: Id6189e600eb2adb67f31d079a5a5ecfc99addccc
| * | | Move NetworkPolicyEditor from Settings packge to settingslib.Wei Liu2015-07-071-1/+1
| | | | | | | | | | | | | | | | Change-Id: I3a2f69c73d983643e65a0d4266cb98a203d5a813
* | | | Settings: Allow disabling default allcaps state in tabtext.Adnan Begovic2016-03-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the allcaps state is decided via an internal style within android, we have to manually override it programatically. Create "config_gcf_disable_default_tabtext_allcaps" for this purpose. Change-Id: I38c8bd1d50dee7c1e6440ce747368ade4e2dab29 TICKET: PAELLA-167
* | | | Settings: Fix ethernet data usage tab crashMichael Bestas2016-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * TAB_ETHERNET length is bigger than TAB_MOBILE Change-Id: Ie7feb819978236d62f951825dbc564d683907700
* | | | Revert "Hide usage graph on app usage details pages."Danny Baumann2016-01-111-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1740ce4f0ca39635eeb8a286bc271dd11438ff09. The data usage graph is useful information to show for a single app as well (as it shows the app's share of data usage compared to the total). Additionally, this commit broke navigation back from data usage when entering it from an app's details pane. Change-Id: Ia1de61d24aebfef3537e4d2c358e63b12a588838
* | | | Settings : Show wifi usage tab by defaultDanesh M2015-12-211-1/+1
| | | | | | | | | | | | | | | | Change-Id: I6b479a1c8eaaa1cbbe900614a4de3fde0874156d
* | | | Merge tag 'android-6.0.1_r3' of ↵Steve Kondik2015-12-071-3/+26
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | https://android.googlesource.com/platform/packages/apps/Settings into HEAD Android 6.0.1 release 3 Change-Id: If54bacef03fc826fd02ca48db5ef3a25c8fc7127
| * | | Hide empty data usage cycles.Jeff Sharkey2015-10-191-3/+26
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | When building list of historical data usage cycles, omit cycles that don't contain any data usage. A bad NITZ or NTP fix may have caused us to record some usage in 1970 or 2038, which would have shown all the cycles in between. Now we hide empty cycles to keep things clean. Bug: 18282691 Change-Id: Ib04c95d1411400ba9967d311b59402a26d39cfe3
* | | Fix issue disable data of other SUBChaitanya Saggurthi2015-10-061-67/+11
|/ / | | | | | | | | | | | | | | | | if we enable data for non DDS SUB. Current implementation will ask for user confirmation to change DDS and disable data of current DDS SUB. It will block our DATA + MMS feature and we can't send MMS on non DDS SUB. Change-Id: I13f5ef1075e42b1dba8c10e58e7f156fbe0bc2f3
* | Hide usage graph on app usage details pages.Julia Reynolds2015-07-281-1/+13
|/ | | | | | | Also make the back button work properly on these pages. Bug: 22691655 Change-Id: Icb4d7730cfe5a89ffada0489a69e646cddff5560
* Add data limit paused string to Data Usage Settings screen.Sanket Padawe2015-06-241-0/+25
| | | | | Bug: 17073752 Change-Id: I14ade2c13db9203d33c11b2b06307e06d87b3800
* Start all help intents as startActivityForResultJason Monk2015-06-161-1/+1
| | | | | | | So that the receiver may verify identity if they so desire... Bug: 21849741 Change-Id: I2e2c3f674a8be88f22e051e2affb54df2f1c3eed
* Layout refinement for app listsJason Monk2015-06-161-7/+8
| | | | | | | | | | | Make all app lists (or at least all current app lists) use the same base layout for icon, label, and sizing/padding. This way they should look the same. Bug: 21727125 Bug: 21726922 Bug: 21853632 Change-Id: I3cffadb9e7b5184d4209deacd4ea70ec1d4f71b4
* Help fallbacks and intent workJason Monk2015-05-281-1/+1
| | | | | | | | | | - Handle a backup URI, so that if the specified URI is not available, another can be used. - Add some data to help intents when they are intent URIs - Fill in the context with a classname when it isn't present Bug: 15475009 Change-Id: I7050fa61121901929e650b20bd7a0ae21e8ba207
* log more settings actionsChris Wren2015-05-081-2/+3
| | | | | | | | | | airplane mode bluetooth cell data do not disturb Bug: 20264417 Change-Id: I726033a126fba9f9dffc916806d636feea04033b
* Fix app headers in settingsJason Monk2015-05-061-4/+6
| | | | | | | | | Use SettingsPreferenceFragment's method for pinned headers where possible, and add a frame within the fragment for them to live in otherwise so that this view doesn't end up on the activity. Bug: 20886475 Change-Id: I985eb1497744ea50bfabed862e5088eb89df5b61
* Correct the way settings deals with subscriptions.Stuart Scott2015-04-081-24/+8
| | | | Change-Id: I19e9dfaf248fce7376b124ee91de7e73fdc99fb3
* log visibility of viewsChris Wren2015-03-271-0/+6
| | | | | Depends-On: I5b1dccb5d103ece3112acf38889bae16273b092f Change-Id: I116aed2bb805f723a5bf2ec9eb94257de0b4a7b5
* Clean up usage of theme colors, deprecated Resources.getColor* methodsAlan Viverette2015-03-181-1/+1
| | | | Change-Id: I34e11e0773c9f8e00e3eab422781094e19a16d3d
* Settings: Remove all unused imports.John Spurlock2015-03-181-2/+0
| | | | Change-Id: Iebfa52cb849d69974c94902b0b020893cf5618a3
* Add data item to app info screenJason Monk2015-03-181-3/+51
| | | | | | | | | | Add link from app info to directly viewing data usage for that app. Also do some minor tweaks to get ordering and summaries right on the app info screen. Bug: 19511439 Change-Id: Ic50dc24bf9a5c1fe6a7aa076772915ba61168fac
* am 4a7ca7d5: am bdfdf07c: am 0362e870: am 7e21fa5a: Data Usage tab title ↵Sanket Padawe2015-02-131-5/+12
|\ | | | | | | | | | | | | should say "Cellular" with only 1 sim and wifi tab. * commit '4a7ca7d5a7c83dc77921c9c32abc7b366c18b46c': Data Usage tab title should say "Cellular" with only 1 sim and wifi tab.
| * Data Usage tab title should say "Cellular" with only 1 sim and wifi tab.Sanket Padawe2015-02-121-5/+12
| | | | | | | | | | Bug: 19363726 Change-Id: Id4194deb126323b2f7674c58f9911f892793dff4
* | Merge "Eliminate duplicated code in Settings for category headers"Zoltan Szatmary-Ban2015-02-091-10/+2
|\ \ | |/ |/|
| * Eliminate duplicated code in Settings for category headersZoltan Szatmary-Ban2015-01-161-10/+2
| | | | | | | | Change-Id: I5bdba2ad4f9e1987f9e818af9d5aa96a9d558f6b
| * am 0c3b1371: am f5a4abc2: Merge "Fixed Cellular data toggling issue in ↵Sanket Padawe2015-01-081-8/+10
| |\ | | | | | | | | | | | | | | | | | | | | | | | | settings for multisim" into lmp-mr1-dev automerge: c7e5b42 * commit 'c7e5b42ac493f7f06fd8d90f87a4e7eb23acc54c': Fixed Cellular data toggling issue in settings for multisim
| * | Show removed user's data usage under its correct itemZoltan Szatmary-Ban2014-12-121-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | Users for which UserManager.getUserInfo returned null were shown as unnamed users on Settings > Data Usage. This behavior has now changed to show their data usage under the same item as UID_REMOVED. Bug: 18174376 Change-Id: I8d172647edb51f7a277b4b714e9b7f3a0b5f3154
* | | Fix secondary data usage color regression.Jeff Sharkey2015-01-261-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Show overall usage with a 50% transparency when looking at a specific app details page. (Otherwise you can't tell them apart.) Bug: 18927935 Change-Id: I0cad1ba0451a9dab3ed90fa5aa53c115dbe3e1d3
* | | Merge "Show removed user's data usage under its correct item" into lmp-mr1-devZoltan Szatmary-Ban2015-01-231-3/+12
|\ \ \
| * | | Show removed user's data usage under its correct itemZoltan Szatmary-Ban2015-01-191-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users for which UserManager.getUserInfo returned null were shown as unnamed users on Settings > Data Usage. This behavior has now changed to show their data usage under the same item as UID_REMOVED. Bug: 18174376 Change-Id: I8d172647edb51f7a277b4b714e9b7f3a0b5f3154 (cherry picked from commit cd9b1507fbb6d9f443a4fb1bb8d9d58073c7e5d0)
* | | | Fixed data connection toggle crash in Settings.Sanket Padawe2015-01-201-0/+6
|/ / / | | | | | | | | | | | | Bug: 19066882 Change-Id: Ib2c7b55d059ddda0543f11ded039ac82bc036850
* | | Fixed data connection toggle UI issue due to local cache maintained.Sanket Padawe2015-01-141-12/+28
| |/ |/| | | | | | | | | | | + Fixed the scenario wherein more than 1 sim cannot be "On" at the same time. Bug: 18916033 Change-Id: Ia95b54c9ee29d360a1b4542f00a9f698615912bb
* | Fixed Cellular data toggling issue in settings for multisimSanket Padawe2015-01-081-8/+10
|/ | | | | | Bug: 18916033 Bug: 18779784 Change-Id: Ifda57b5ae89268f921ee2b75b5b6d90d75514540
* Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.Wink Saville2014-12-111-1/+1
| | | | | Bug: 18668873 Change-Id: Ie709a62bbb74e0a767daeb9e3fb3aecd4c45df44
* Fixed a Data Usage crashPauloftheWest2014-12-101-3/+11
| | | | | Bug: 18364933 Change-Id: I80657c6541aec0b4706ef4aa229c9f858776aab2
* Merge "Add debug dataEnable." into lmp-mr1-devWink Saville2014-12-091-5/+12
|\
| * Add debug dataEnable.Wink Saville2014-12-051-5/+12
| | | | | | | | Change-Id: I4c2c49d9283652429affc190abacf7775ef3fe43
* | Offer to "merge" subscribers for data usage.Jeff Sharkey2014-12-081-25/+8
|/ | | | | | | | | | | When picking a template to use for querying statistics and setting policies, normalize it so we widen the template to cover any merged subscribers. Also remove some code related to long-dormant split policies. Bug: 18012787 Change-Id: I1e07dc09016df21ecfd7b3fad49759fa57570391
* Change initMobileTabTag to use subInfoListWink Saville2014-12-021-14/+41
| | | | | | | Also add additional debug. Bug: 18364932 Change-Id: I836b751a443635efcfb9987bb3b91f55c4dff9d6
* Added color to Data Usage graphPauloftheWest2014-11-251-16/+40
| | | | | | | | + Fixed some issues with displaying multiple SIMs in Data Usage. Bug: 18466592 Bug: 18291246 Change-Id: I77417be995761ce62e464c7d21a34af1334aac17
* Additional changes to SubscriptionManager API as per API council.Wink Saville2014-11-221-13/+18
| | | | | bug: 17575308 Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
* Revert "Additional changes to SubscriptionManager API as per API council."Wink Saville2014-11-201-10/+7
| | | | | | This reverts commit 1285f74fcb6a8bf080c224e5a36db00ab1167d4c. Change-Id: I366556368a9c429d8c356bcdb8e29af9c6c4c71e
* Additional changes to SubscriptionManager API as per API council.Wink Saville2014-11-191-7/+10
| | | | | bug: 17575308 Change-Id: I7773965094510999bfce8fc6b2b31ba6ce496653