commit | 78ae1060c6950c274ef833a5ef64fdd5787056d2 | [log] [tgz] |
---|---|---|
author | Benjamin Franz <bfranz@google.com> | Mon Mar 26 11:01:32 2018 +0100 |
committer | Benjamin Franz <bfranz@google.com> | Wed Mar 28 12:38:31 2018 +0100 |
tree | bbd2e3894892812e99de658486ecc07b33dcaa72 | |
parent | 8cb2aba54d97ad89be44867683edce2b500f30f0 [diff] [blame] |
Update to lock task features API 1. Throw if notifications is given without home feature, as this configuration allows potential escape routes. 2. Default power button menu to be on in order to be consistent with existing lock task behaviour before P. Bug: 71790952 Bug: 74381063 Test: manual Change-Id: I2383c087a18739a158d55edcd84d22d1abdb887a
diff --git a/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java b/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java index 43490d3..873fbff 100644 --- a/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java +++ b/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
@@ -3723,7 +3723,8 @@ } private void verifyLockTaskState(int userId) throws Exception { - verifyLockTaskState(userId, new String[0], DevicePolicyManager.LOCK_TASK_FEATURE_NONE); + verifyLockTaskState(userId, new String[0], + DevicePolicyManager.LOCK_TASK_FEATURE_GLOBAL_ACTIONS); } private void verifyLockTaskState(int userId, String[] packages, int flags) throws Exception {