Home
last modified time | relevance | path

Searched refs:mDeviceOwnerUserId (Results 1 – 11 of 11) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DUserRestrictionsTest.java49 private int mDeviceOwnerUserId; field in UserRestrictionsTest
62 assertTrue("Failed to clear owner", removeAdmin(componentName, mDeviceOwnerUserId)); in tearDown()
63 runTests("userrestrictions.CheckNoOwnerRestrictionsTest", mDeviceOwnerUserId); in tearDown()
95 "testDefaultRestrictions", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly()
97 "testSetAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly()
99 "testBroadcast", mDeviceOwnerUserId); in testUserRestrictions_deviceOwnerOnly()
104 setPoAsUser(mDeviceOwnerUserId); in testUserRestrictions_primaryProfileOwnerOnly()
107 "testDefaultRestrictions", mDeviceOwnerUserId); in testUserRestrictions_primaryProfileOwnerOnly()
109 "testSetAllRestrictions", mDeviceOwnerUserId); in testUserRestrictions_primaryProfileOwnerOnly()
111 "testBroadcast", mDeviceOwnerUserId); in testUserRestrictions_primaryProfileOwnerOnly()
[all …]
DCustomDeviceOwnerTest.java57 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testOwnerChangedBroadcast()
59 installAppAsUser(INTENT_RECEIVER_APK, mDeviceOwnerUserId); in testOwnerChangedBroadcast()
66 "testOwnerChangedBroadcastNotReceived", mDeviceOwnerUserId); in testOwnerChangedBroadcast()
69 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testOwnerChangedBroadcast()
76 "testOwnerChangedBroadcastReceived", mDeviceOwnerUserId); in testOwnerChangedBroadcast()
80 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId)); in testOwnerChangedBroadcast()
88 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
91 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
96 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
104 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testCannotSetDeviceOwnerWhenAccountPresent()
[all …]
DAccountCheckHostSideTest.java68 mDeviceOwnerCanHaveAccounts = !isRestrictionSetOnUser(mDeviceOwnerUserId, in setUp()
71 if (mProfileOwnerUserId == mDeviceOwnerUserId) { in setUp()
77 CLog.d("mDeviceOwnerUserId: " + mDeviceOwnerUserId in setUp()
89 if (mDeviceOwnerUserId != mProfileOwnerUserId) { in tearDown()
90 runCleanupTestOnlyOwnerAllowingFailure(mDeviceOwnerUserId); in tearDown()
108 if (mDeviceOwnerCanHaveAccounts && mProfileOwnerUserId != mDeviceOwnerUserId) { in runTest()
109 runTestAsUser(method, mDeviceOwnerUserId); in runTest()
152 setDeviceOwnerOrFail(OWNER_TEST_ONLY, mDeviceOwnerUserId); in assertTestOnlyInstallable()
153 runCleanupTestOnlyOwner(mDeviceOwnerUserId); in assertTestOnlyInstallable()
163 setDeviceOwnerOrFail(OWNER_NON_TEST_ONLY, mDeviceOwnerUserId); in assertNonTestOnlyInstallable()
[all …]
DBaseDeviceOwnerTest.java45 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
49 removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId); in setUp()
51 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp()
55 affiliateUsers(DEVICE_OWNER_PKG, mDeviceOwnerUserId, mPrimaryUserId); in setUp()
83 executeDeviceOwnerTestOnSpecificUser(testClassName, mDeviceOwnerUserId); in executeDeviceOwnerTestOnDeviceOwnerUser()
94 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod()
DMixedDeviceOwnerTest.java65 mDeviceOwnerUserId); in setUp()
68 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
74 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp()
77 affiliateUsers(DEVICE_ADMIN_PKG, mDeviceOwnerUserId, mPrimaryUserId); in setUp()
371 installAppAsUser(DELEGATE_APP_APK, mDeviceOwnerUserId); in testSecurityLoggingDelegate()
375 "testCannotAccessApis", mDeviceOwnerUserId); in testSecurityLoggingDelegate()
403 DEVICE_ADMIN_PKG, STORAGE_ENCRYPTION_TEST_CLASS, null, mDeviceOwnerUserId, params); in testSetStorageEncryption()
408 int userId = mDeviceOwnerUserId; in runSecurityLoggingTests()
539 mUserId = mDeviceOwnerUserId; in testApplicationHidden()
569 executeDeviceTestMethod(className, testName, mDeviceOwnerUserId, in executeDeviceTestMethodOnDeviceOwnerUser()
DAdbProvisioningTests.java46 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId, in testAdbDeviceOwnerLogged()
DDeviceOwnerTest.java1109 if (!removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId)) { in testListForegroundAffiliatedUsers_notDeviceOwner()
1110 fail("Failed to remove device owner for user " + mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_notDeviceOwner()
1131 revokePermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner()
1137 grantPermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId, in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner()
1193 CLog.d("createAffiliatedSecondaryUser(): deviceOwnerId=" + mDeviceOwnerUserId in createAffiliatedSecondaryUser()
1195 affiliateUsers(DEVICE_OWNER_PKG, mDeviceOwnerUserId, userId); in createAffiliatedSecondaryUser()
DMixedProfileOwnerTest.java47 mDeviceOwnerUserId); in setUp()
DBaseDevicePolicyTest.java177 protected int mDeviceOwnerUserId; field in BaseDevicePolicyTest
225 mDeviceOwnerUserId = mPrimaryUserId = getPrimaryUser(); in setUp()
230 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
352 installAppAsUser(apk, mDeviceOwnerUserId); in installDeviceOwnerApp()
364 if (!removeAdmin(componentName, mDeviceOwnerUserId)) { in removeDeviceOwnerAdmin()
366 mDeviceOwnerUserId); in removeDeviceOwnerAdmin()
DDeviceAndProfileOwnerTest.java378 installAppAsUser(TEST_APP_APK, mDeviceOwnerUserId); in testDelegation()
379 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, mDeviceOwnerUserId); in testDelegation()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java73 private int mDeviceOwnerUserId; field in PrivacyDeviceOwnerTest
90 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
92 mDeviceOwnerUserId = mTestUserId; in setUp()
95 installPackage(mDeviceOwnerUserId, DEVICE_OWNER_APK); in setUp()