Home
last modified time | relevance | path

Searched refs:mDeviceOwnerUserId (Results 1 – 12 of 12) 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 …]
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 …]
DCustomDeviceOwnerTest.java51 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testOwnerChangedBroadcast()
53 installAppAsUser(INTENT_RECEIVER_APK, mDeviceOwnerUserId); in testOwnerChangedBroadcast()
60 "testOwnerChangedBroadcastNotReceived", mDeviceOwnerUserId); in testOwnerChangedBroadcast()
63 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testOwnerChangedBroadcast()
70 "testOwnerChangedBroadcastReceived", mDeviceOwnerUserId); in testOwnerChangedBroadcast()
74 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId)); in testOwnerChangedBroadcast()
82 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
85 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
90 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
97 installAppAsUser(DEVICE_OWNER_APK, mDeviceOwnerUserId); in testIsProvisioningAllowed()
[all …]
DBaseDeviceOwnerTest.java47 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
51 removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId); in setUp()
53 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp()
57 affiliateUsers(DEVICE_OWNER_PKG, mDeviceOwnerUserId, mPrimaryUserId); in setUp()
85 executeDeviceOwnerTestOnSpecificUser(testClassName, mDeviceOwnerUserId); in executeDeviceOwnerTestOnDeviceOwnerUser()
96 executeDeviceOwnerPackageTestMethod(className, testName, mDeviceOwnerUserId); in executeDeviceOwnerTestMethod()
DMixedDeviceOwnerTestApi25.java36 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId, in setUp()
38 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId); in setUp()
DMixedDeviceOwnerTest.java66 mDeviceOwnerUserId); in setUp()
69 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
75 fail("Failed to set device owner on user " + mDeviceOwnerUserId); in setUp()
78 affiliateUsers(DEVICE_ADMIN_PKG, mDeviceOwnerUserId, mPrimaryUserId); in setUp()
366 installAppAsUser(DELEGATE_APP_APK, mDeviceOwnerUserId); in testSecurityLoggingDelegate()
370 "testCannotAccessApis", mDeviceOwnerUserId); in testSecurityLoggingDelegate()
398 DEVICE_ADMIN_PKG, STORAGE_ENCRYPTION_TEST_CLASS, null, mDeviceOwnerUserId, params); in testSetStorageEncryption()
403 int userId = mDeviceOwnerUserId; in runSecurityLoggingTests()
554 mUserId = mDeviceOwnerUserId; in testApplicationHidden()
588 return mDeviceOwnerUserId; in getUserIdForAlwaysOnVpnTests()
[all …]
DAdbProvisioningTests.java46 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId, in testAdbDeviceOwnerLogged()
DDeviceOwnerTest.java942 if (!removeAdmin(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId)) { in testListForegroundAffiliatedUsers_notDeviceOwner()
943 fail("Failed to remove device owner for user " + mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_notDeviceOwner()
964 revokePermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId); in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner()
970 grantPermission(DEVICE_OWNER_PKG, PERMISSION_INTERACT_ACROSS_USERS, mDeviceOwnerUserId, in testListForegroundAffiliatedUsers_onlyForegroundUserCalledByDeviceOwner()
1026 CLog.d("createAffiliatedSecondaryUser(): deviceOwnerId=" + mDeviceOwnerUserId in createAffiliatedSecondaryUser()
1028 affiliateUsers(DEVICE_OWNER_PKG, mDeviceOwnerUserId, userId); in createAffiliatedSecondaryUser()
DMixedProfileOwnerTest.java47 mDeviceOwnerUserId); in setUp()
DBaseDevicePolicyTest.java177 protected int mDeviceOwnerUserId; field in BaseDevicePolicyTest
231 mDeviceOwnerUserId = mPrimaryUserId = getPrimaryUser(); in setUp()
236 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
358 installAppAsUser(apk, mDeviceOwnerUserId); in installDeviceOwnerApp()
370 if (!removeAdmin(componentName, mDeviceOwnerUserId)) { in removeDeviceOwnerAdmin()
372 mDeviceOwnerUserId); in removeDeviceOwnerAdmin()
DDeviceAndProfileOwnerTest.java305 installAppAsUser(TEST_APP_APK, mDeviceOwnerUserId); in testDelegation()
306 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()