summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/DataUsageUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* DataUsageUtils: Clean up based on code reviewTyler Dunn2016-11-241-21/+29
| | | | | | | | | | | | * Add missing header * Extract DataUsageContract.UID + " = ? " into a string * Simplify "0" string * Use try-with-resource block to ensure cursor is closed This commit is based on the post-merge feedback of Kamaljeet Maini, Fabrice Di Meglio and Danny Baumann. Change-Id: I774948ba119e3e4a2dd438e1ed1588bfb9fefae2
* Settings app Data Usage UI enhancementsKamaljeet Maini2016-04-011-0/+121
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