Commit Graph

3600 Commits

Author SHA1 Message Date
Jason Monk
0862e80eb3 Merge "Add screensaver settings to backup list" into oc-dr1-dev am: 2c3c58d917
am: 4c30304a8c

Change-Id: Icac69838617de8c58a0d9090dc4d78b14ad1a976
2017-07-10 20:37:47 +00:00
TreeHugger Robot
2c3c58d917 Merge "Add screensaver settings to backup list" into oc-dr1-dev 2017-07-10 20:17:56 +00:00
Jason Monk
df31effd5f Add screensaver settings to backup list
Test: manual
Change-Id: Icf47312e20b4ec44d02dc31ce575e89083a8be7d
Fixes: 35700553
2017-07-10 14:19:08 -04:00
Julia Reynolds
5f8e0b881e Rate limit notification sounds/vibrations
1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557
2017-07-10 09:37:54 -04:00
Daniel Nishi
fa1143658b Add a Setting for whether or not we have been disabled by policy.
Bug: 62106274, 35698183
Test: StorageManager robotests
Merged-In: I1788d6143362130df88950c6843fa78b67182d5e
(cherry picked from commit da7332c070)
2017-07-06 20:00:25 +00:00
Daniel Nishi
da7332c070 Add a Setting for whether or not we have been disabled by policy.
Bug: 62106274, 35698183
Test: StorageManager robotests

Change-Id: I1788d6143362130df88950c6843fa78b67182d5e
2017-07-05 16:52:26 -07:00
TreeHugger Robot
3b1026b74a Merge "Adding "Mobile data" and "Data usage" button in mobile settings." 2017-07-05 17:40:20 +00:00
Jason Monk
0f3ea43158 Merge changes from topic 'HideMultiUser' into oc-dr1-dev am: 3024de2536
am: a3ec7819b1

Change-Id: I6145dea6295f859d7dcf36a035c8c6e1cbc09071
2017-06-30 19:50:51 +00:00
Jason Monk
cb5296a6f0 QS: Move auto-add state to settings provider
And back it up.

Test: runtest systemui
Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3
Fixes: 62667758
2017-06-30 11:36:40 -04:00
Malcolm Chen
2106254088 Adding "Mobile data" and "Data usage" button in mobile settings.
Grant "READ_NETWORK_USAGE_HISTORY" permission to phone because
"Datat usage" button summary needs it. Settings provides new
intent to open mobile data usage page.

Bug: 62201918
Test: Manual
Change-Id: Ie317109c723f3946ace4d34c743081a7ae046462
2017-06-29 16:32:24 -07:00
Christine Franks
8d901bf872 Merge "Add ACTION_DISMISS_TIMER intent" into oc-dr1-dev am: ca4def2ac8
am: 21e21efcf9

Change-Id: Iaab165b6465d15f0a960144798c1920fd30ab688
2017-06-26 19:52:26 +00:00
Christine Franks
c99c0e2297 Add ACTION_DISMISS_TIMER intent
Bug: 38475809
Test: manual - visual inspection of code
Change-Id: I9e58c9699fc2e6afad38db6b44f2e2b649564327
2017-06-26 14:34:47 +00:00
Julia Reynolds
76c096d89a Rate limit notification sounds/vibrations
1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557
2017-06-22 14:48:13 -04:00
Dianne Hackborn
6a93509080 Merge "Work on issue #62065889: Assess thresholds and criteria for killing..." 2017-06-21 21:07:05 +00:00
Kevin Chyn
19ec26ddaf Merge "Add action for launching Assist Gesture settings" into oc-dr1-dev am: 523c0a6a65
am: 8f4c710204

Change-Id: I2969bd464ff9f865bc33ab674b411bcf9f524dca
2017-06-21 03:29:14 +00:00
TreeHugger Robot
523c0a6a65 Merge "Add action for launching Assist Gesture settings" into oc-dr1-dev 2017-06-21 02:52:06 +00:00
Sujith Ramakrishnan
743c4f30e0 Merge "Add a new flag to check if provisioning is completed on ATV" into oc-dev am: 59c6385bf9 am: f63c015bba
am: fca9439afe

Change-Id: Ia8268d65e2bef84bf351a1bdc2a99eb0a6f6fb0a
2017-06-20 22:55:57 +00:00
Sujith Ramakrishnan
f63c015bba Merge "Add a new flag to check if provisioning is completed on ATV" into oc-dev
am: 59c6385bf9

Change-Id: Iba2e6a6fe6c76c6ae1776f9ce430223ed6222dc4
2017-06-20 22:27:53 +00:00
Dianne Hackborn
ffca58bc5e Work on issue #62065889: Assess thresholds and criteria for killing...
...background processes (CPU, etc)

Add full configuration params for adjusting these settings (some were
already there).

Also...  as long as we are doing this...

- Get rid of all of the wakelock stuff.  That is completely pointless
now that we aren't even allowing cached processes to hold wake locks.

- This greatly simplifies the code, since we don't need to deal with
two different policies for how we do checks.  Instead, we just regularly
check for CPU and the CPU check interval.

- And make the CPU check more aggressive and have much more flexibility
for tuning: there are now 4 different maximum CPU use levels, depending
on how long the process has been in the cached state.  This allows us to
be more strict on CPU use the longer it is sitting in the background.

Note that CPU use tracking only happens while the device is not
plugged in to power...  I'll leave this for now, but I think in the
future we should think about applying these limits even when plugged
in, because in either case cached apps should really not be doing
much.

Test: manual
Change-Id: I68f4ab68be5f7d5fc4822005107fb60ef07a374d
2017-06-19 16:55:45 -07:00
Kevin Chyn
268a96c6eb Add action for launching Assist Gesture settings
Bug: 62540322

Test: adb shell am start -a android.settings.ASSIST_GESTURE_SETTINGS

Change-Id: I60a2b98aba605d93166aba1af2ee19c3fc6b5a8c
2017-06-19 16:05:57 -07:00
Daniel Nishi
3956654b44 Merge "Flag the DH no threshold options menu." into oc-dr1-dev am: f69d450b6f
am: 5cecfe5b0a

Change-Id: Ibc39e8545525925941c806f35105a73e0cf971f8
2017-06-19 18:07:13 +00:00
Daniel Nishi
f69d450b6f Merge "Flag the DH no threshold options menu." into oc-dr1-dev 2017-06-19 17:45:29 +00:00
Julia Reynolds
b852e56668 Migrate managed services from setting to policy xml
Change-Id: Ie20f91dbdd0ba6b57b5909cbf0152a32754fe02d
Fixes: 62263757
Test: runtest systemui-notification, cts AudioManagerTest,
cts-verifier DND tests, verify bug reports after toggling
access for various types of managed services, verified
default approved services aren't renabled on boot; verified that
they are reenabled after a device reset, verified that
settings are migrated after a restore from OC backup.
2017-06-19 17:43:30 +00:00
Sujith Ramakrishnan
314df160c0 Add a new flag to check if provisioning is completed on ATV
- This flag will be set once provisioning is completed
	  and reset when SetupWizard is re-enabled.

Test: None. Adding a static variable.

Bug: 62419382
Change-Id: Ie3e4c118d26f6bd035a451ed1914e73bdeda4e3f
2017-06-19 09:44:49 -07:00
Todd Kennedy
dab9a98ccd Merge "enable/disable dexopt for instant apps remotely" into oc-dev am: 5d969b9862 am: 3586115ae5
am: 40c74514df

Change-Id: Id3432a8e7a01f0af69fd3ad0b70542718c6c33b7
2017-06-16 18:41:59 +00:00
Todd Kennedy
40c74514df Merge "enable/disable dexopt for instant apps remotely" into oc-dev am: 5d969b9862
am: 3586115ae5

Change-Id: I2a8093b966e246ad77ee4257b81bf819443e94c2
2017-06-16 18:29:27 +00:00
Todd Kennedy
1466c1618f Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am: 5d969b9862

Change-Id: If9f063e5db82c079b7a9e682365a8840ee7da794
2017-06-16 18:19:49 +00:00
Todd Kennedy
3586115ae5 Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am: 5d969b9862

Change-Id: Ica29f01779c2bb504d682a2b457f861264cc00b0
2017-06-16 18:19:45 +00:00
TreeHugger Robot
5d969b9862 Merge "enable/disable dexopt for instant apps remotely" into oc-dev 2017-06-16 18:07:53 +00:00
qingxi
8135cb3d6e Merge "Add API from EuiccManager to wipe eUICC data" into oc-dr1-dev am: 647b11c97f
am: da193ec198

Change-Id: Ibff0ecabda81899096301a6bf0613dc4206f1039
2017-06-16 02:51:09 +00:00
qingxi
0ca328f420 Add API from EuiccManager to wipe eUICC data
Use EuiccManager#eraseSubscriptions(PendingIntent) to erase all the
carrier data from eUICC chip if the user choose to "Erase eSIMs" from
the system setting.

Bug: 37475183
Test: E2E
Change-Id: Iaab2640c98576fdc87ca626765329ae0398724e4
2017-06-16 00:16:14 +00:00
Dianne Hackborn
5462042385 Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev am: ef0554438f am: 84795f778b
am: 56617fd24f

Change-Id: I0051a01a498d77e0dea10ce31c51912b7747b551
2017-06-15 19:08:07 +00:00
Dianne Hackborn
56617fd24f Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev am: ef0554438f
am: 84795f778b

Change-Id: I90d6e150b6dcfe7665b5c1b7db84dd04a7d0d824
2017-06-15 19:01:41 +00:00
Dianne Hackborn
92cc8d3816 Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I5d25640507d4c4cf61f64638d27ddf0cac67f880
2017-06-15 18:52:18 +00:00
Dianne Hackborn
84795f778b Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I39ad3ffce83c1817bdc8aa7ab9f623d1b683d983
2017-06-15 18:52:07 +00:00
Todd Kennedy
133c5da0d9 enable/disable dexopt for instant apps remotely
Change-Id: I997b8ae515f7bf2570edca4ed7ab4b46198148a5
Fixes: 62591398
Test: Manual; install instant app and see that it doesn't dexopt
Test: Manua; update gservices flag, install instant app and see that it does dexopt
2017-06-15 09:44:34 -07:00
Dianne Hackborn
cb01563d7e Work on issue #36891897: Need to ensure foreground services...
...can't hide themselves

Tune the policies for when we tell about apps running in the
background after their services have stopped.

- If it ran while the screen was on, the time we require for it
to be running is much shorter (a couple seconds) as well as the
time we tell about it having run (with another tunable for the
minimum time we tell about this).

- If it has only run while the screen is off and stops a sufficient
amount of time before the screen goes on (currently a second) then
we will not show anything when the screen goes on.

- If it stops when the screen turns on, we will make sure the user
sees about it for a short period of time (currently 5 seconds).

Also includes some improved debug output about handler message
queues.

Test: manual

Change-Id: Iab438410d7182b2dfe4f9c1cce7069b26b34834c
2017-06-14 17:33:41 -07:00
Kevin Chyn
a2053ecf70 Merge "Add assist gesture silence and wake settings" into oc-dr1-dev am: 6eacc1a4ba
am: 3164bf6743

Change-Id: I30ba4eac86bc92ac8013840f80a3645efba64d3e
2017-06-14 02:00:29 +00:00
TreeHugger Robot
2d84bdcaea Merge "Expose USER_SETUP_COMPLETE as Test API." 2017-06-14 01:37:37 +00:00
Daniel Nishi
4f5320ec4f Flag the DH no threshold options menu.
Bug: 38322601
Test: Manual
Change-Id: If52b1a2c6b01843c5865aab0589724345acccc3c
2017-06-13 17:51:21 -07:00
TreeHugger Robot
333f15c432 Merge "Making action MANAGE_UNKNOWN_APP_SOURCES non-optional" 2017-06-13 22:58:08 +00:00
Kevin Chyn
809393740f Add assist gesture silence and wake settings
Bug: 37427306

Test: make -j56
Change-Id: I36da4d689a2aecf0cdd5e0549ede6d3e31f0e630
2017-06-12 16:02:28 -07:00
Felipe Leme
9923012638 Expose USER_SETUP_COMPLETE as Test API.
Test: m -j90 update-api
Fixes: 62538627

Change-Id: I247d27341ce06b29f257d00a9058be4c0f662db0
2017-06-12 14:33:03 -07:00
Svetoslav Ganov
a915972995 Merge "Ensure only test print services enabled - framework" into oc-dev am: 053fb9120e am: 62031b8937
am: 454b310090

Change-Id: I31ec22ab63b9356353de8fa78b6d8600aacb9009
2017-06-08 16:24:38 +00:00
Svetoslav Ganov
50859b50a6 Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I70220ead15eabfe58727ab5c3b0a9c92e8c508a8
2017-06-08 16:04:17 +00:00
Svetoslav Ganov
62031b8937 Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I5f07488ba286cb3d01c75d96e1003edba845daf8
2017-06-08 16:01:54 +00:00
Kevin Chyn
4fddc9fa4d Add setting and permission for assist gesture
Bug: 37427306

Test: manual
Merged-In: I659fa43fb085575df4d62e7765d88c6fd615fb7d
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
2017-06-07 21:42:55 -07:00
Svetoslav Ganov
2dcedc1276 Ensure only test print services enabled - framework
Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b
2017-06-07 18:50:05 -07:00
Kevin Chyn
cfd641e8dc Add setting and permission for assist gesture
Bug: 37427306

Test: manual
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
2017-06-07 15:08:21 -07:00
TreeHugger Robot
d05b6252d3 Merge "Introduce legacy settings restore whitelists" 2017-06-07 09:11:25 +00:00