Jason Monk
3763b581a3
Fix crash in AppDataUsage
...
Better handling of detecting apps
Change-Id: I15644c8d28f394aeac021af856d0d755d7a986c6
Fixes: 29609311
2016-06-24 10:37:12 -04:00
Felipe Leme
12c5efb645
Don\\\'t toggle Data Saver again until it receives a callback. am: 484caa3035 am: 78756838a7
...
am: 2180901e30
Change-Id: I9a5621ff61b75970116a5581d52af7d57626f1f8
2016-06-24 01:24:23 +00:00
Felipe Leme
484caa3035
Don't toggle Data Saver again until it receives a callback.
...
BUG: 29253107
Change-Id: I4371f947086a45be6709d2a560d27d1f5f0e79c4
2016-06-23 16:16:32 -07:00
Zoltan Szatmary-Ban
cf945c47d2
Fix non-app non-user preferences in Settings > Data usage am: afea1cae25 am: 63170fbf7a
...
am: 3b629c6918
Change-Id: Ib67f9492229f31332dc4b6bb46b3146be2928d17
2016-06-21 15:57:49 +00:00
Zoltan Szatmary-Ban
afea1cae25
Fix non-app non-user preferences in Settings > Data usage
...
Bug:29466113
Change-Id: Ib7a6d477146a856c0cb9c49143ffbf4fb99e38ed
2016-06-21 12:57:30 +01:00
Roozbeh Pournader
0761a4bf06
Make strings for data usage easier to localize
...
The strings were complex to localize, especially since they used
formatting that needed to be carefully reconstructed for cases where
the amount of data appears in the middle of a string. Also, we
already had a localization for file sizes, which we should avoid
redoing, to minimize discrepancies.
Finally, we are now bidi wrapping the usage amount, as it may break
in the RTL locales otherwise, since the RTL locales may be using
Latin abbreviations for gigabyte etc that are LTR.
Since formatting needs to be applied to everything except the number
of units in the amount of data used, and markup should be avoided
since it will confuse bidi wrapping, the code carefully constructs
CharSequence templates that are then decorated with spans after
getting filled in.
Bug: 28747101
Change-Id: I18756b4de99eb551a51fe5e74d1c9cf505551f08
2016-06-13 15:34:00 -07:00
Roozbeh Pournader
3697dbeaa3
Use existing localizations for formatting data usage [DO NOT MERGE]
...
This partially reverts I5be9bb7ce3b11709117da698d6c03610f4e5e40e in
order to use existing localizations and also avoid hard to localize
strings.
Also, we now bidi wrap the usage value, since it may break in the RTL
locales otherwise.
Bug: 28747101
Change-Id: Ibc03632cccfe671164cfbb670a423ada1177db65
2016-06-09 13:25:56 -07:00
Jason Monk
bc75397385
Merge \\\"Fix data usage format strings\\\" into nyc-dev am: cb1972b908 am: 2c7e1d844f
...
am: 9667149282
Change-Id: I2dd2cc37911a466fd92811c37e334d6ef106f440
2016-06-08 19:30:49 +00:00
Jason Monk
aa5a8a6a4c
Fix data usage format strings
...
Bug: 28747101
Change-Id: I5be9bb7ce3b11709117da698d6c03610f4e5e40e
2016-06-06 16:39:55 -04:00
Jason Monk
b0e3a1925a
Merge "Don\'t allow restricted data usage of system" into nyc-dev am: da52f08b0a am: ef19af788c
...
am: 54ed02784f
* commit '54ed02784f15d66f9ad6ea67d27d348a167d83fb':
Don't allow restricted data usage of system
Change-Id: I8b4142f0b395ba3b5bf907ac6181d9135ca3e8cd
2016-05-27 20:48:12 +00:00
Jason Monk
9b926c0bc6
Don't allow restricted data usage of system
...
Cause it will just crash
Change-Id: I4ee43633eb3fa488816b1d2767073cbe404c2c33
Fixes: 28979013
2016-05-27 10:57:10 -04:00
Felipe Leme
b0ee0f17de
Merge "Fixed whitelist stats so it\'s only logged on add." into nyc-dev am: b103f4497d am: ddc0c42464
...
am: 3fe0957d62
* commit '3fe0957d62180f01b5b017f32808c80545909e2e':
Fixed whitelist stats so it's only logged on add.
Change-Id: I3251bcbaeaf27a5b3805a8e09cdf421b9824e689
2016-05-23 14:00:07 +00:00
TreeHugger Robot
b103f4497d
Merge "Fixed whitelist stats so it's only logged on add." into nyc-dev
2016-05-23 13:45:55 +00:00
Felipe Leme
6af9e6a8b4
Merge "Defined help page for Data Saver." into nyc-dev am: f8265a8f1e am: d21e63fe4b
...
am: 1d6d3723ba
* commit '1d6d3723bae00d0b6fd3f19dc63b0cb396bbc367':
Defined help page for Data Saver.
Change-Id: I5061c9969b538ad3e5f08b6ce95ab6d190955866
2016-05-20 22:11:01 +00:00
Felipe Leme
f8265a8f1e
Merge "Defined help page for Data Saver." into nyc-dev
2016-05-20 21:27:57 +00:00
Felipe Leme
746b384700
Fixed whitelist stats so it's only logged on add.
...
BUG: 28166693
Change-Id: If1f91167c21054e78a966670c20c174c3f73d2a5
2016-05-20 14:13:22 -07:00
Jason Monk
d814e2886d
Merge "Protect against monkey crash" into nyc-dev am: d3ce331b94 am: cb0e0f9e30
...
am: 0d9fe2a14b
* commit '0d9fe2a14b515d257de11c042d5584e30374eb64':
Protect against monkey crash
Change-Id: I382c9d82d6ad30c23c1753d99f6c361c91eb415e
2016-05-20 18:32:33 +00:00
Jason Monk
fd41b42487
Protect against monkey crash
...
When rebuild comes in after context is no longer valid
Change-Id: Ib64e93372bff4c6b0e1232ac257f3df0e9d0be0a
Fixes: 28875397
2016-05-20 14:15:10 -04:00
Felipe Leme
cf2c0b1b97
Defined help page for Data Saver.
...
BUG: 28865521
Change-Id: I07930232312df2775ecee5beacee6921f7245847
2016-05-20 09:08:28 -07:00
Julia Reynolds
29b7d0f73a
Merge "Null check." into nyc-dev am: fc1bb74186 am: d6575bcee2
...
am: e16aed4db5
* commit 'e16aed4db52ab55f88bd01436336732c49b19a65':
Null check.
Change-Id: I8231667d7c3c93d018a72b7f9f60e6f922880470
2016-05-18 14:15:11 +00:00
Julia Reynolds
fc1bb74186
Merge "Null check." into nyc-dev
2016-05-18 14:02:05 +00:00
Julia Reynolds
47beeec10b
Null check.
...
Change-Id: I16dfe2cf265b4254aa69bc6165a8f72fc3954d7a
Fixes: 28531037
2016-05-17 16:14:10 -04:00
Felipe Leme
2d88dd7c42
Merge "Implemented onRestrictBackgroundBlacklistChanged()." into nyc-dev am: c769ddd330 am: 26e2c6bc26
...
am: fd122829ec
* commit 'fd122829ec0544d25f33c4842fc014fddcad9836':
Implemented onRestrictBackgroundBlacklistChanged().
Change-Id: Idabaf686ef95056feb22396943046e13de9d7651
2016-05-17 18:50:42 +00:00
Felipe Leme
b2c4949de7
Implemented onRestrictBackgroundBlacklistChanged().
...
BUG: 28743623
Change-Id: I2d8620360858660fed0e745b16dc61ce262b90b9
2016-05-16 20:43:12 +00:00
Felipe Leme
85779c82be
Merge "Removed onRestrictPowerChanged()." into nyc-dev am: 85f4269c9f am: 7fe77ae5db
...
am: cfe2bfd8b4
* commit 'cfe2bfd8b4ce35c684ddfe696e9f88a270d59b55':
Removed onRestrictPowerChanged().
Change-Id: I312a9a17609741ab5725e3e2ba409eb9e63b30f7
2016-05-13 17:38:35 +00:00
TreeHugger Robot
85f4269c9f
Merge "Removed onRestrictPowerChanged()." into nyc-dev
2016-05-13 17:14:12 +00:00
Felipe Leme
c3534bb963
Removed onRestrictPowerChanged().
...
BUG: 28521946
Change-Id: Ib48030c704cf38541101b600b1e91935302beb9c
2016-05-10 23:21:29 +00:00
Felipe Leme
4ae532c728
Merge "Added title for stand-alone App Data Usage activitiy." into nyc-dev am: 8c3b5fa3cf am: 2af22b9324
...
am: 542a348f75
* commit '542a348f75c239111ce64b01a8d7afc844f4c194':
Added title for stand-alone App Data Usage activitiy.
Change-Id: I512d7130837b5cd346ff4b7cdc13013496f84149
2016-05-09 20:18:16 +00:00
Felipe Leme
785f294d04
Added title for stand-alone App Data Usage activitiy.
...
Change-Id: I031085e6a3c058ed55dfdfe3e7cfecf5a21dddc5
Fixes: 28615889
2016-05-09 10:34:39 -07:00
Felipe Leme
ce3af511b1
Merge "Implemented onRestrictPowerChanged()." into nyc-dev am: f135ad5186 am: 51ccb04e01
...
am: eb4350c377
* commit 'eb4350c3773b483045cd79589fb8a5e53580619f':
Implemented onRestrictPowerChanged().
Change-Id: I1400957b714c0d88b9acd9e7ed6dcb263df68fd0
2016-05-06 23:46:08 +00:00
TreeHugger Robot
f135ad5186
Merge "Implemented onRestrictPowerChanged()." into nyc-dev
2016-05-06 23:25:28 +00:00
Jason Monk
9e4531f691
Merge "Don\'t crash on non-app data usage" into nyc-dev am: d1a4e452ed am: 9c38c20900
...
am: 6a0f1d6997
* commit '6a0f1d69975b475fdaabc4b46286abb37be5ab91':
Don't crash on non-app data usage
Change-Id: If2678c2ef35d437b85b8fa1c8e125b39ea61cfed
2016-05-05 16:01:52 +00:00
Jason Monk
6eb53e42e0
Merge "Fix cell data limit dialog title" into nyc-dev am: 2a6bc40d49 am: 6f71ed9dbb
...
am: ce1fa74716
* commit 'ce1fa7471648daac5abe5d3d322de3798ab8aea9':
Fix cell data limit dialog title
Change-Id: I4f337ad301b16edc173ff903d5105075b36782a2
2016-05-05 16:01:50 +00:00
Jason Monk
d1a4e452ed
Merge "Don't crash on non-app data usage" into nyc-dev
2016-05-05 15:41:17 +00:00
Jason Monk
a058ae0dda
Fix cell data limit dialog title
...
Change-Id: I0303bc74bb7b0e46ed020d255baf2465c7db0fc5
Fixes: 27604216
2016-05-04 15:46:05 -04:00
Jason Monk
f82b3afdd6
Don't crash on non-app data usage
...
Change-Id: Ib39fc280a892dea2e3e7cbe22339799ab51a6eca
Fixes: 28531037
2016-05-04 13:43:26 -04:00
Felipe Leme
f79c20500e
Implemented onRestrictPowerChanged().
...
BUG: 28521946
Change-Id: I702e27401f74eee6ce884351ae4e0bc89ec6b8e2
2016-05-03 08:43:08 -07:00
Jason Monk
334de02262
Merge "Don\'t crash on Settings data usage" into nyc-dev am: b60c7560af am: 4b32f9f5ad
...
am: e8b198b606
* commit 'e8b198b606e318b2f9f3f98b7225299e53e28645':
Don't crash on Settings data usage
Change-Id: I9aa40cdc9af7d65f8e02bb18be4464bb553a4c49
2016-04-29 19:03:15 +00:00
Jason Monk
bc4e200a59
Don't crash on Settings data usage
...
Consider Settings uid (SYSTEM_UID) to be an app.
Change-Id: Ia5cc7897eafdf3d654e8a23715bd25502097bab8
Fixes: 28193076
2016-04-29 14:06:10 -04:00
Felipe Leme
06c9bdc168
Merge "Implemented IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS." into nyc-dev am: a21ac18 am: e9f4fe7
...
am: dbaaa26
* commit 'dbaaa26bf39fb299ee40de1ce554321e03628aa0':
Implemented IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS.
Change-Id: I0ed635218e73da7e6bda54915e57e600f0a881e4
2016-04-27 23:43:32 +00:00
Felipe Leme
616ff3e6a4
Implemented IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS.
...
BUG: 26820898
Change-Id: I83613ce54e13470dafd6420eec0af252e5e39429
2016-04-27 12:33:57 -07:00
Jason Monk
e779adf005
Merge "Don\'t link to MobileNetworkSettings unless admin user" into nyc-dev am: af6236d06f am: 7014023f5d
...
am: 5cc3730815
* commit '5cc37308152f1bdc332aa7fc2a54e6dff1014c36':
Don't link to MobileNetworkSettings unless admin user
Change-Id: I2d12c89026409cf060bbdc644d3d4fe0be47902c
2016-04-22 16:13:41 +00:00
Jason Monk
3f185ccbde
Don't link to MobileNetworkSettings unless admin user
...
Change-Id: Id497952b48b92dfb834dd9ffbdd4b987dc96e9a2
Fixes: 26881900
2016-04-22 10:24:55 -04:00
Felipe Leme
a5bc4a5d8a
Removed obsolete preference.
...
BUG: 22817899
Change-Id: Ie2af7d5582db62caf4937b8db3df8784b293a331
2016-04-21 15:16:14 -07:00
Felipe Leme
85c63f348f
Listen to INetworkPolicyManager events and update UI accordingly.
...
BUG: 27481520
Change-Id: I09c4c586188d754ddd3ac3dcb3903217842ea0a5
2016-04-20 09:17:14 -07:00
Felipe Leme
11b06ca8bf
Fixed AccessPreference listener.
...
When an app is blacklisted, its switch toggle is disabled, but previous
the onClick() method was still being called, which would launch the data
usage screen but also call setIsWhitelist().
BUG: 27481520
Change-Id: Id8df3d65eee286d1aecb4ae2a0417d6932d91441
2016-04-19 10:05:08 -07:00
Felipe Leme
c2ef27faf4
Handle blacklisted apps on Data Saver whitelist.
...
When user blacklists an app for background data access, the
"Unrestricted data access" list should not display the whitelist toggle
option, but rather explain background access is turned off and offer the
option to open the app's data usage screen to turn it back on.
It still does not handle changed received by DataSaverBackend, so the UI
will be stale when the user removes a blacklist and navigates back to
the list.
BUG: 27481520
Change-Id: I9d0fa9f0180a69ce9bd1417921bf89ec3ba31f01
2016-04-18 13:14:01 -07:00
Felipe Leme
0628e33bf2
Add metrics for Data Saver actions.
...
BUG: 28166693
Change-Id: Ie435db66183ef645467ffa6cc7537d54d35cab31
2016-04-14 16:14:55 -07:00
Felipe Leme
2b131e58a7
Merge "Improvements on "App data usage" screen." into nyc-dev
2016-04-14 15:55:18 +00:00
Felipe Leme
4133fc1cb1
Improvements on "App data usage" screen.
...
- Don't disply whitelist toggle if app is blacklisted.
- Handle scenario where app don't have any quota usage.
BUG: 27481520
Change-Id: I0147025d6bba2d6deeda109aeebb296607550bd8
2016-04-13 15:35:27 -07:00