/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | CustomDeviceOwnerTest.java | 72 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 …]
|
D | LauncherAppsSingleUserTest.java | 56 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 …]
|
D | DeviceOwnerTest.java | 60 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 …]
|
D | LauncherAppsMultiUserTest.java | 66 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testGetActivitiesForNonProfileFails() 70 mPrimaryUserId, in testGetActivitiesForNonProfileFails() 79 installAppAsUser(SIMPLE_APP_APK, mPrimaryUserId); in testNoLauncherCallbackPackageAddedSecondaryUser() 83 mPrimaryUserId, in testNoLauncherCallbackPackageAddedSecondaryUser()
|
D | BaseLauncherAppsTest.java | 40 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()
|
D | MixedProfileOwnerTest.java | 30 mUserId = mPrimaryUserId; in setUp()
|
D | CustomManagedProfileTest.java | 36 installAppAsUser(MANAGED_PROFILE_APK, mPrimaryUserId); in testIsProvisioningAllowed()
|
D | MixedDeviceOwnerTest.java | 36 mUserId = mPrimaryUserId; in setUp()
|
D | ProfileOwnerTest.java | 69 mPrimaryUserId)); in executeProfileOwnerTest()
|
D | MixedManagedProfileOwnerTest.java | 39 mParentUserId = mPrimaryUserId; in setUp()
|
D | BaseDevicePolicyTest.java | 78 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()
|
D | BaseDeviceAdminHostSideTest.java | 77 mUserId = mPrimaryUserId; in setUp()
|
D | LauncherAppsProfileTest.java | 48 mParentUserId = mPrimaryUserId; in setUp()
|
D | UserRestrictionsTest.java | 37 mDeviceOwnerUserId = mPrimaryUserId; in setUp()
|
D | DeviceAndProfileOwnerTest.java | 365 boolean isManagedProfile = (mPrimaryUserId != mUserId); in testDelegatedCertInstaller()
|
D | ManagedProfileTest.java | 91 mParentUserId = mPrimaryUserId; in setUp()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 37 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()
|
D | CreateUsersPermissionTest.java | 44 createRestrictedProfile(mPrimaryUserId); in testCanCreateRestrictedUser()
|