Tony Mantler
bf25160090
Move PowerWhitelistBackend to SettingsLib
...
Bug: 70716754
Test: RunSettingsRoboTests
Change-Id: I897ce3469bb2d72a0cbe96b16b8de1a565ba4e64
2017-12-15 12:58:34 -08:00
Fan Zhang
350ccf53f2
Clean up: remove unused code
...
Bug: 64804294
Test: rerun existing robotests
Change-Id: I5a10cbd8475b74843e4d864eb38105003e98d27e
2017-10-11 16:51:46 -07:00
Fyodor Kupolov
2328946b58
Tron metrics for special permissions
...
Added tron metrics for the following special permissions:
Battery optimisation
- APP_SPECIAL_PERMISSION_BATTERY_ALLOW
- APP_SPECIAL_PERMISSION_BATTERY_DENY
Device administrators
- APP_SPECIAL_PERMISSION_ADMIN_ALLOW (when checked)
- APP_SPECIAL_PERMISSION_ADMIN_DENY (when unchecked)
Do not disturb access
- APP_SPECIAL_PERMISSION_DND_ALLOW
- APP_SPECIAL_PERMISSION_DND_DENY
Daw over other apps
- APP_SPECIAL_PERMISSION_APPDRAW_ALLOW
- APP_SPECIAL_PERMISSION_APPDRAW_DENY
VR helper services
- APP_SPECIAL_PERMISSION_VRHELPER_ALLOW
- APP_SPECIAL_PERMISSION_VRHELPER_DENY
Modify system settings
- APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_ALLOW
- APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_DENY
Notification access
- APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW
- APP_SPECIAL_PERMISSION_NOTIVIEW_DENY
Premium SMS access
- APP_SPECIAL_PERMISSION_PREMIUM_SMS_ALWAYS_ALLOW
- APP_SPECIAL_PERMISSION_PREMIUM_SMS_ASK
- APP_SPECIAL_PERMISSION_PREMIUM_SMS_DENY
Unrestricted data access
- APP_SPECIAL_PERMISSION_UNL_DATA_ALLOW
- APP_SPECIAL_PERMISSION_UNL_DATA_DENY
Usage access
- APP_SPECIAL_PERMISSION_USAGE_VIEW_ALLOW
- APP_SPECIAL_PERMISSION_USAGE_VIEW_DENY
Test: Manual + make RunSettingsRoboTests
Bug: 31008660
Change-Id: Id977e2c9f5aa811a2b0af036372b72c684621435
2017-01-18 10:54:19 -08:00
Zhendong Yang
b521aeb9f7
Merge "Fix crash when rotating HighPowerDetail dialog" am: 783ff43769 am: 7598c6201d am: 8711f4055d
...
am: 8c9e3db8d9
Change-Id: Ib6d620f89225a8258b1671d206bb617e5d1bf56f
2016-12-14 06:00:07 +00:00
Zhendong Yang
cb911e3402
Fix crash when rotating HighPowerDetail dialog
...
When rotating the device, the Activity of the target
Fragment become null. So NullPointerException occurs.
The dialog should check if the Activity is null
before calling onActivityResult().
Bug: 28333723
Test: manual - go to Settings > Apps > Clock,
click Battery optimization and rotate device
Change-Id: I7f68d6ece7d169fd96d04c1788e55ee506aae1ae
2016-12-12 20:55:40 +09:00
Tamas Berghammer
265d3c2a0c
Update package names to work with the proto3 compiler
...
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
2016-11-08 14:06:17 +00:00
Fan Zhang
1e516287bd
Add visibility metrics to dialogs.
...
Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Change-Id: I199d2e1b2cb8588a562b46bb8128d8ece24952f0
2016-09-19 17:34:12 -07:00
Julia Reynolds
f08185b8e3
Differentiate battery optimization string.
...
Bug: 23585186
Change-Id: If98629c7a3204f2600c9d7d9c257de24e826f085
2015-09-08 12:49:32 -04:00
Julia Reynolds
0ece6a3241
String update for battery details page.
...
Bug: 22978210
Change-Id: I87d231868d6116c3f0d88a6a6d3ca5fac1ce8c90
2015-08-17 13:14:38 -04:00
Jason Monk
c9eba1f253
Update battery optimization strings
...
Bug: 22687961
Change-Id: I039a781a0c3db991cbe4ad7d3e6246cc5cb1cbfa
2015-07-27 12:29:25 -04:00
Jason Monk
d5884c5023
Fix crash in ignore optimizations dialog
...
Launch it like a dialog, because it is one.
Bug: 22181580
Change-Id: Ibeda8506cfb7a9a9d60f70462a4e03972b38f8aa
2015-06-30 10:17:25 -04:00
Jason Monk
66aa964e2a
Fix ListView being too eager too scroll
...
ListView is always too eager to scroll, so just stop using it.
Bug: 21853796
Change-Id: Id37d89b0312597a9fb65a33f151af34b3f395d91
2015-06-18 15:56:21 -04:00
Dianne Hackborn
3f98c0ce51
Fix issue #21813831 : Need API for asking to be added to power whitelist
...
When launching the battery whitelist for a particular app, we now
default to the app being asked to enable adding to the whitelist, and
dismissing the dialog will dismiss the entire whitelist UI.
You can now launch the whitelist without specifying an app to just
get the regular UI.
Change-Id: Idf3840b8a30febe71fbd600969c257d72809643f
2015-06-15 11:54:03 -07:00
Jason Monk
3a90d7cc69
New dialog for ignore battery optimizations
...
Bug: 21375688
Change-Id: I7240cc0615044cf5a34349e5ffdf2ae2e0f6333f
2015-06-10 15:49:36 -04:00
Tony Mantler
67cd6ab93a
Move ApplicationsState to SettingsLib
...
Also take InterestingConfigChanges along for the ride
and delete unused AppPermissionSettings
b/21328967
Change-Id: I4d0c1a27054845a54cf68e95a92024d2e46f636e
2015-06-08 14:41:02 -07:00
Chris Wren
8b7dc08e77
replace temporary metrics categories with permanent ones.
...
Bug: 21114836
Change-Id: I05ca033e2e15fc1ae4330453bbe50aaa6cd1ea6c
2015-05-13 13:44:36 -04:00
Jason Monk
1eb54eb2ff
Add high power whitelist for apps
...
- Strings not final!
- New UX for power usage details (more preferency)
- Add high power apps list shows on/off and screen to
change (when possible)
- Link from power usage summary to high power list
- Link from advanced apps to high power list
Bug: 19991702
Change-Id: I97c927ed82d3b89041e4429b427508545763d66c
2015-05-04 14:38:01 -04:00