Home
last modified time | relevance | path

Searched refs:mPrimaryUserId (Results 1 – 18 of 18) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomDeviceOwnerTest.java72 installAppAsUser(DEVICE_OWNER_APK, mPrimaryUserId); in testOwnerChangedBroadcast()
74 installAppAsUser(INTENT_RECEIVER_APK, mPrimaryUserId); in testOwnerChangedBroadcast()
81 "testOwnerChangedBroadcastNotReceived", mPrimaryUserId)); in testOwnerChangedBroadcast()
84 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testOwnerChangedBroadcast()
90 "testOwnerChangedBroadcastReceived", mPrimaryUserId)); in testOwnerChangedBroadcast()
94 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId)); in testOwnerChangedBroadcast()
103 installAppAsUser(DEVICE_OWNER_APK, mPrimaryUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
106 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
111 removeAdmin(DEVICE_OWNER_ADMIN_COMPONENT, mPrimaryUserId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
119 installAppAsUser(ACCOUNT_MANAGEMENT_APK, mPrimaryUserId); in testCannotSetDeviceOwnerWhenAccountPresent()
[all …]
DLauncherAppsSingleUserTest.java56 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testInstallAppMainUser()
59 mPrimaryUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber))); in testInstallAppMainUser()
67 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testLauncherCallbackPackageAddedMainUser()
72 mPrimaryUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber))); in testLauncherCallbackPackageAddedMainUser()
79 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testLauncherCallbackPackageRemovedMainUser()
85 mPrimaryUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber))); in testLauncherCallbackPackageRemovedMainUser()
92 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testLauncherCallbackPackageChangedMainUser()
94 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testLauncherCallbackPackageChangedMainUser()
98 mPrimaryUserId, Collections.singletonMap(PARAM_TEST_USER, mSerialNumber))); in testLauncherCallbackPackageChangedMainUser()
105 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testLauncherNonExportedAppFails()
[all …]
DDeviceOwnerTest.java60 installAppAsUser(DEVICE_OWNER_APK, mPrimaryUserId); in setUp()
62 DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in setUp()
64 removeAdmin(DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId); in setUp()
78 … removeAdmin(DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId)); in tearDown()
321 installAppAsUser(INTENT_RECEIVER_APK, mPrimaryUserId); in testLockTask()
339 installAppAsUser(WIFI_CONFIG_CREATOR_APK, mPrimaryUserId); in testWifiConfigLockdown()
353 DEVICE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mPrimaryUserId, in testCannotSetDeviceOwnerAgain()
358 installAppAsUser(MANAGED_PROFILE_APK, mPrimaryUserId); in testCannotSetDeviceOwnerAgain()
360 MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN, mPrimaryUserId, in testCannotSetDeviceOwnerAgain()
364 removeAdmin(MANAGED_PROFILE_PKG + "/" + MANAGED_PROFILE_ADMIN, mPrimaryUserId); in testCannotSetDeviceOwnerAgain()
[all …]
DLauncherAppsMultiUserTest.java66 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testGetActivitiesForNonProfileFails()
70 mPrimaryUserId, in testGetActivitiesForNonProfileFails()
79 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testNoLauncherCallbackPackageAddedSecondaryUser()
83 mPrimaryUserId, in testNoLauncherCallbackPackageAddedSecondaryUser()
DBaseLauncherAppsTest.java40 installAppAsUser(LAUNCHER_TESTS_APK, mPrimaryUserId); in installTestApps()
41 installAppAsUser(LAUNCHER_TESTS_SUPPORT_APK, mPrimaryUserId); in installTestApps()
51 String command = "am startservice --user " + mPrimaryUserId in startCallbackService()
DMixedProfileOwnerTest.java30 mUserId = mPrimaryUserId; in setUp()
DCustomManagedProfileTest.java36 installAppAsUser(MANAGED_PROFILE_APK, mPrimaryUserId); in testIsProvisioningAllowed()
DMixedDeviceOwnerTest.java36 mUserId = mPrimaryUserId; in setUp()
DProfileOwnerTest.java69 mPrimaryUserId)); in executeProfileOwnerTest()
DMixedManagedProfileOwnerTest.java39 mParentUserId = mPrimaryUserId; in setUp()
DBaseDevicePolicyTest.java78 protected int mPrimaryUserId; field in BaseDevicePolicyTest
105 mPrimaryUserId = getPrimaryUser(); in setUp()
106 mFixedUsers.add(mPrimaryUserId); in setUp()
107 if (mPrimaryUserId != USER_SYSTEM) { in setUp()
110 switchUser(mPrimaryUserId); in setUp()
DBaseDeviceAdminHostSideTest.java77 mUserId = mPrimaryUserId; in setUp()
DLauncherAppsProfileTest.java48 mParentUserId = mPrimaryUserId; in setUp()
DUserRestrictionsTest.java37 mDeviceOwnerUserId = mPrimaryUserId; in setUp()
DDeviceAndProfileOwnerTest.java365 boolean isManagedProfile = (mPrimaryUserId != mUserId); in testDelegatedCertInstaller()
DManagedProfileTest.java91 mParentUserId = mPrimaryUserId; in setUp()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java37 protected int mPrimaryUserId; field in BaseMultiUserTest
53 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
55 mFixedUsers.add(mPrimaryUserId); in setUp()
56 if (mPrimaryUserId != USER_SYSTEM) { in setUp()
59 getDevice().switchUser(mPrimaryUserId); in setUp()
DCreateUsersPermissionTest.java44 createRestrictedProfile(mPrimaryUserId); in testCanCreateRestrictedUser()