/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | UserRestrictionsTest.java | 61 assertTrue("Failed to clear owner", removeAdmin(componentName, mDeviceOwnerUserId)); in tearDown() 94 "testDefaultRestrictions", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly() 96 "testSetAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly() 98 "testBroadcast", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly() 102 "testClearAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly() 191 "testHasBaseUserRestrictions", mDeviceOwnerUserId); in testUserRestrictions_layering() 195 "testSetAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_layering() 211 "testClearAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_layering() 219 "testClearAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_layering() 277 final int[] usersToCheck = {mDeviceOwnerUserId, secondaryUserId}; in testUserRestrictions_profileGlobalRestrictionsAsDo() [all …]
|
D | DeviceOwnerPlusProfileOwnerTest.java | 84 installAppAsUser(COMP_DPC_APK, mDeviceOwnerUserId); in setUp() 85 if (!setDeviceOwner(COMP_DPC_ADMIN, mDeviceOwnerUserId, /*expectFailure*/ false)) { in setUp() 86 removeAdmin(COMP_DPC_ADMIN, mDeviceOwnerUserId); in setUp() 93 mDeviceOwnerUserId); in setUp() 98 … assertTrue("Failed to remove device owner.", removeAdmin(COMP_DPC_ADMIN, mDeviceOwnerUserId)); in tearDown() 149 installAppAsUser(COMP_DPC_APK2, mDeviceOwnerUserId); in testBindDeviceAdminServiceAsUser_secondaryUser() 204 mDeviceOwnerUserId); in verifyBindDeviceAdminServiceAsUser() 235 mDeviceOwnerUserId); in setSameAffiliationId() 296 mDeviceOwnerUserId); in setupManagedSecondaryUser() 322 mDeviceOwnerUserId); in addDisallowRemoveUserRestriction() [all …]
|
D | MixedDeviceOwnerTestApi25.java | 39 mDeviceOwnerUserId, /*expectFailure= */ false); in setUp() 42 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId); in setUp() 44 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp()
|
D | BaseDeviceOwnerTest.java | 52 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp() 56 removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId); in setUp() 58 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp() 86 executeDeviceOwnerTestOnSpecificUser(testClassName, mDeviceOwnerUserId); in executeDeviceOwnerTestOnDeviceOwnerUser() 97 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod()
|
D | MixedDeviceOwnerTest.java | 69 mDeviceOwnerUserId); in setUp() 72 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp() 78 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp() 97 installAppPermissionAppAsUser(mDeviceOwnerUserId); in installAppPermissionAppAsUser() 285 installAppAsUser(DELEGATE_APP_APK, mDeviceOwnerUserId); in testSecurityLoggingDelegate() 289 "testCannotAccessApis", mDeviceOwnerUserId); in testSecurityLoggingDelegate() 305 int userId = mDeviceOwnerUserId; in runSecurityLoggingTests() 454 return mDeviceOwnerUserId; in getUserIdForAlwaysOnVpnTests() 465 executeDeviceTestMethod(className, testName, mDeviceOwnerUserId, in executeDeviceTestMethodOnDeviceOwnerUser()
|
D | DeviceOwnerTest.java | 1023 if (!removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId)) { in testListForegroundAffiliatedUsers_notDeviceOwner() 1024 fail("Failed to remove device owner for user " + mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_notDeviceOwner() 1049 revokePermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner() 1055 grantPermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId, in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner() 1117 CLog.d("createAffiliatedSecondaryUser(): deviceOwnerId=" + mDeviceOwnerUserId in createAffiliatedSecondaryUser() 1119 affiliateUsers(DEVICE_OWNER_PKG, mDeviceOwnerUserId, userId); in createAffiliatedSecondaryUser()
|
D | MixedProfileOwnerTest.java | 46 mDeviceOwnerUserId); in setUp()
|
D | BaseDevicePolicyTest.java | 169 protected int mDeviceOwnerUserId; field in BaseDevicePolicyTest 223 mDeviceOwnerUserId = mPrimaryUserId = getMainUser(); in setUp() 347 installAppAsUser(apk, mDeviceOwnerUserId); in installDeviceOwnerApp() 352 if (!removeAdmin(componentName, mDeviceOwnerUserId)) { in removeDeviceOwnerAdmin() 354 mDeviceOwnerUserId); in removeDeviceOwnerAdmin()
|
D | DeviceAndProfileOwnerTest.java | 427 installAppAsUser(SIMPLE_PRE_M_APP_APK, mDeviceOwnerUserId); in testPermissionGrantPreMApp()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 75 private int mDeviceOwnerUserId; field in PrivacyDeviceOwnerTest 92 mDeviceOwnerUserId = USER_SYSTEM; in setUp() 94 mDeviceOwnerUserId = mTestUserId; in setUp() 97 installPackage(mDeviceOwnerUserId, DEVICE_OWNER_APK); in setUp()
|