Lei Yu
d0a1e0af1d
Merge "Hide suggestion if app already been restricted" into pi-dev am: 1d5d289d08
...
am: 3f3c3c1c70
Change-Id: Ibc8a5d5ee7e52ffdeb364061afcf3af6e0b2366a
2018-04-16 19:01:41 -07:00
TreeHugger Robot
1d5d289d08
Merge "Hide suggestion if app already been restricted" into pi-dev
2018-04-17 00:30:08 +00:00
Lei Yu
9e6d649b3a
Hide suggestion if app already been restricted
...
Change-Id: I89904575be0236a22e4ca403bedc6adfc6cc5708
Fixes: 78014551
Test: RunSettingsRoboTests
2018-04-16 13:31:59 -07:00
Lei Yu
9a44eb6be7
Merge "Remove battery usage preference in app info page" into pi-dev am: ea7dd68480
...
am: e5b270a4dd
Change-Id: I394652b3b170625fc51f54d675c9a07d951a72a3
2018-04-16 10:59:36 -07:00
Lei Yu
6e96055232
Remove battery usage preference in app info page
...
Bug: 78011526
Test: RunSettingsRoboTests
Change-Id: I2dfb989167fe27857590f416fbb16d401e53bc1d
2018-04-13 14:41:03 -07:00
Lei Yu
cc9c84646c
Merge "Log app versionCode in anomaly detection" into pi-dev am: 70bd0c6d00
...
am: 471b71fb1c
Change-Id: I1fd2e48ed8f5eff66e2e1c8c97255a1894059097
2018-04-12 18:57:37 -07:00
Lei Yu
70bd0c6d00
Merge "Log app versionCode in anomaly detection" into pi-dev
2018-04-13 00:35:11 +00:00
Lei Yu
023b1e088a
Merge changes from topic "anomaly_system_app" into pi-dev am: dc8fff76f3
...
am: 9122efebac
Change-Id: I384476edcb6ca9702a2895f6f5f4b55eb11cc86f
2018-04-12 14:12:13 -07:00
TreeHugger Robot
dc8fff76f3
Merge changes from topic "anomaly_system_app" into pi-dev
...
* changes:
Add method to check if app has launcher activity
Add system app check for anomaly detection.
2018-04-12 18:50:23 +00:00
Lei Yu
63795b2f5c
Log app versionCode in anomaly detection
...
Change-Id: Ie760a4156b14b739279aa398bd1d2b8485449e91
Fixes: 77919142
Test: RunSettingsRoboTests
2018-04-12 10:32:08 -07:00
Lei Yu
7d09e2ea68
Add method to check if app has launcher activity
...
This method should only used for system apps.
Change-Id: Id4109d8e223933269b8dae3aaa91b8a9186c527c
Fixes: 77477987
Test: RunSettingsRoboTests
2018-04-12 10:01:42 -07:00
Jason Chang
a29ed7ef71
Merge "[SettingsLib] Update Utils APIs usage"
2018-04-12 12:44:04 +00:00
Lei Yu
a28b67ad81
Merge "Update the action for early warning tip." into pi-dev am: e6750d6c2d
...
am: ecf2de4624
Change-Id: I35614b4937c7d476c6d6b3c61bd6745819f67924
2018-04-12 03:28:22 -07:00
TreeHugger Robot
e6750d6c2d
Merge "Update the action for early warning tip." into pi-dev
2018-04-12 10:13:20 +00:00
Lei Yu
2aa48e18f1
Merge "Update battery settings strings" into pi-dev am: 17a463130e
...
am: 118f29591a
Change-Id: I9ec2b61b8d94c8f09f7e4a02de2b173193fa8a51
2018-04-11 20:38:23 -07:00
Lei Yu
6c4c7ba0fe
Add system app check for anomaly detection.
...
In this CL, don't blame system app in anomaly detection and also
add log for it.
Following CL will update it to also check whether this system app
has launch entry.
Bug: 77477987
Test: RunSettingsRoboTests
Change-Id: I97490b32bc42ec2f8e03ec2d82f7c8bf89f9c66f
2018-04-11 18:02:50 -07:00
Lei Yu
40bb1e8488
Update battery settings strings
...
1. Change "screenTime" to "lastFullChargeTime" in high usage dialog
2. Update "Background restriction" strings
3. Update footer string
Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: I07c149123c4ee1a69dd81c9a9e6eaa5df69b60b4
2018-04-11 17:50:30 -07:00
Lei Yu
2162a68a43
Update the action for early warning tip.
...
Add action to open the battery saver page when it shows "battery saver
is on".
Change-Id: Ia0536e7ef73271aefbd95e938d6f91f359a116d2
Fixes: 77874407
Test: RunSettingsRoboTests
2018-04-11 15:49:04 -07:00
Bookatz
672e67dc4f
Merge "Fuelgauge handle StatsManager Exception API" into pi-dev am: f142ace1d0
...
am: bfd8a58e78
Change-Id: I3e1846bd28eeab02ca544a201394db1475bbc073
2018-04-11 11:56:55 -07:00
TreeHugger Robot
f142ace1d0
Merge "Fuelgauge handle StatsManager Exception API" into pi-dev
2018-04-11 17:02:06 +00:00
TreeHugger Robot
16594545ff
Merge "Convert auto-brightness switch to a full screen UI." into pi-dev
2018-04-11 01:28:33 +00:00
Bookatz
e832c153c0
Fuelgauge handle StatsManager Exception API
...
StatsManager now returns Exceptions for certain errors, instead of
returning a boolean. Thus Fuelgauge needs to be updated.
Bug: 77648233
Test: make ROBOTEST_FILTER=AnomalyConfigJobServiceTest RunSettingsRoboTests
Change-Id: I7160ac01141c673c90e33423220dc888a2710340
2018-04-10 18:10:45 -07:00
TreeHugger Robot
d628116e2f
Merge "Convert auto-brightness switch to a full screen UI."
2018-04-10 23:49:23 +00:00
Fan Zhang
89f668ce29
Convert auto-brightness switch to a full screen UI.
...
Change-Id: Id5e5ec959201102a7c60372a441dc6813ceedbae
Bug: 69795935
Test: Existing conformance tests still pass (CodeInspectionTest,
UniquePreferenceTest, manual search test)
2018-04-10 21:25:09 +00:00
Fan Zhang
3dfcb3b326
Convert auto-brightness switch to a full screen UI.
...
Change-Id: Id5e5ec959201102a7c60372a441dc6813ceedbae
Merged-In: Id5e5ec959201102a7c60372a441dc6813ceedbae
Fixes: 69795935
Test: Existing conformance tests still pass (CodeInspectionTest,
UniquePreferenceTest, manual search test)
2018-04-10 14:21:00 -07:00
Lei Yu
6afd882210
Merge "Add test flags for battery tips." into pi-dev am: 93ff833316
...
am: de4199e3db
Change-Id: I469d3207ac61b1f0ea83c74aa9d75ecb789189e0
2018-04-10 14:13:33 -07:00
Lei Yu
93ff833316
Merge "Add test flags for battery tips." into pi-dev
2018-04-10 20:44:11 +00:00
Lei Yu
1af677903a
Merge "Hide preference when no app restricted" into pi-dev am: 1f02712e7a
...
am: 1b82df6906
Change-Id: I665bdb8e3107c3152242b28561ea5ae01427ead7
2018-04-10 12:13:43 -07:00
TreeHugger Robot
1f02712e7a
Merge "Hide preference when no app restricted" into pi-dev
2018-04-10 18:30:26 +00:00
Lei Yu
67956894e7
Merge "Update field for ACTION_ANOMALY_TRIGGERED" into pi-dev am: fa447e698d
...
am: 44f6508070
Change-Id: Ib69976755e65335fbbaa9708d9ff13c975fb3979
2018-04-10 11:24:10 -07:00
Lei Yu
fa447e698d
Merge "Update field for ACTION_ANOMALY_TRIGGERED" into pi-dev
2018-04-10 17:39:08 +00:00
Jason Chang
c44097d345
[SettingsLib] Update Utils APIs usage
...
Update Utils.getColorAttr and similar methods in Utils to return a ColorStateList instead of a color
Bug: 74872054
Test: Force to display different color items then manually test
Change-Id: If002f9a578558e6254220c36ef556e8378d4522a
2018-04-10 21:09:39 +08:00
Lei Yu
c7b58b6997
Update field for ACTION_ANOMALY_TRIGGERED
...
Use new field FIELD_ANOMALY_TYPE
Bug: 75976625
Test: RunSettingsRoboTests
Change-Id: Ifb67c687d25e1e35afaadb05f2e9883e8dcf8049
2018-04-09 15:22:19 -07:00
Makoto Onuki
9d9a79bb6c
Merge "Once auto-battery saver is ever set, don't show suggestion" into pi-dev am: 8064782d77
...
am: 24287ce1e1
Change-Id: I5a1e1873dd6732ecfc84d3f520b40816a76db2a8
2018-04-09 13:57:29 -07:00
Makoto Onuki
8064782d77
Merge "Once auto-battery saver is ever set, don't show suggestion" into pi-dev
2018-04-09 20:29:30 +00:00
Lei Yu
9d2c7e822b
Hide preference when no app restricted
...
Change-Id: I37135bce5354ce7380441f86f94cb79d89cc500c
Fixes: 77799629
Test: RunSettingsRoboTests
2018-04-09 12:23:52 -07:00
Lei Yu
be52a5312a
Merge "Add NullPtrCheck when smearing in settings" into pi-dev am: c2ec26b4ac
...
am: f26e2fda76
Change-Id: I71949412d9b4cf5890833a03a00cd903d0fc5784
2018-04-09 10:42:25 -07:00
Lei Yu
c2ec26b4ac
Merge "Add NullPtrCheck when smearing in settings" into pi-dev
2018-04-09 17:09:22 +00:00
Lei Yu
c5f5b18b22
Add NullPtrCheck when smearing in settings
...
This only happens in new device with broken power_profile.xml, in
which it doesn't have screen power model.
This CL catches the null pointer crash and log it.
Change-Id: Iac23e3a8fc51385bdb22979c4b59000319f6fd49
Fixes: 74617269
Test: RunSettingsRoboTests
2018-04-06 15:57:44 -07:00
Lei Yu
4afd56362a
Merge "Add test for anomaly detection in P" into pi-dev am: e0864a030f
...
am: 84b0cbc3ee
Change-Id: Ia86a5ecdfb2e449d4c78dc603a9cd24c311ced0a
2018-04-06 14:51:06 -07:00
Lei Yu
21bde3afe4
Add test flags for battery tips.
...
When this flag is true, we will show related battery tip by force.
Then we can manually test and verify the UI behavior.
Following CL will add test flag for "app restriction" since it is
a little tricky.
Bug: 77477035
Test: RunSettingsRoboTests
Change-Id: Ib12ff4aa8bcc998ea6a73f461c3d5f7fcc39b019
2018-04-06 14:43:02 -07:00
Lei Yu
2678c6e34a
Merge "Add name and icon for AOD" into pi-dev am: f9cea645e1
...
am: 17c2906404
Change-Id: I9bf3646637a790e58a19f735ac9cfc1fa5f88889
2018-04-06 13:48:32 -07:00
TreeHugger Robot
e0864a030f
Merge "Add test for anomaly detection in P" into pi-dev
2018-04-06 20:46:00 +00:00
TreeHugger Robot
f9cea645e1
Merge "Add name and icon for AOD" into pi-dev
2018-04-06 20:19:21 +00:00
Lei Yu
9783a7c2ac
Merge "Add anomaly log to dumpsys" into pi-dev am: 4becdc6fbe
...
am: 7556fc543c
Change-Id: Id48e6d6402c8006bb89b87c5c365f6d30bebc94c
2018-04-06 12:57:37 -07:00
TreeHugger Robot
4becdc6fbe
Merge "Add anomaly log to dumpsys" into pi-dev
2018-04-06 19:28:55 +00:00
Lei Yu
978193dbe6
Merge "Hide app if it shares uid with whitelisted app" into pi-dev am: 78e2cad8b1
...
am: 0e2c488273
Change-Id: I87d97cdf1b74c6fc75766d83ba74c0f40461ae9d
2018-04-06 11:08:05 -07:00
Lei Yu
9553855af4
Add test for anomaly detection in P
...
Lot of tests have been added already, this CL adds the missing tests
after robolectric upgrade.
Also add UID_NULL check in AnomalyDetectionJobService. It is almost
impossible to happen however we better catch it.
Bug: 73172999
Test: RunSettingsRoboTests
Change-Id: I950537efb166b0900393df1321ca64151b43e906
2018-04-06 10:49:36 -07:00
Lei Yu
78e2cad8b1
Merge "Hide app if it shares uid with whitelisted app" into pi-dev
2018-04-06 17:19:19 +00:00
Lei Yu
85bab3d4d9
Add name and icon for AOD
...
Keep it in both app list and full usage list for now,
so we don't need to update smearing code.
Bug: 77156569
Test: Screenshot | RunSettingsRoboTests
Change-Id: I5247da90ea591b226cafef8f2d1ffcbff387b62f
2018-04-05 16:01:03 -07:00