Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileContactsTest.java48 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsUris()
64 "testQuickContact", mParentUserId); in testManagedQuickContacts()
74 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsPolicies()
150 "testAddTestAccount", mParentUserId); in runManagedContactsTest()
156 setDirectoryPrefix(PRIMARY_DIRECTORY_PREFIX, mParentUserId); in runManagedContactsTest()
161 "testGetDirectoryListInPrimaryProfile", mParentUserId); in runManagedContactsTest()
165 "testPrimaryProfilePhoneAndEmailLookup_insertedAndfound", mParentUserId); in runManagedContactsTest()
173 mParentUserId); in runManagedContactsTest()
187 "testCurrentProfileContacts_removeContacts", mParentUserId); in runManagedContactsTest()
199 private int mParentUserId; field in ManagedProfileContactsTest.ContactsTestSet
[all …]
DLauncherAppsProfileTest.java44 private int mParentUserId; field in LauncherAppsProfileTest
54 mParentUserId = mPrimaryUserId; in setUp()
55 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
60 mMainUserSerialNumber = Integer.toString(getUserSerialNumber(mParentUserId)); in setUp()
79 installAppAsUser(SIMPLE_APP_APK, mParentUserId); in testGetActivitiesWithProfile()
85 mParentUserId, Collections.singletonMap(PARAM_TEST_USER, mProfileSerialNumber)); in testGetActivitiesWithProfile()
88 mParentUserId, Collections.singletonMap(PARAM_TEST_USER, mMainUserSerialNumber)); in testGetActivitiesWithProfile()
103 mParentUserId); in testGetActivitiesWithProfile()
111 String command = "pm disable --user " + mParentUserId + " " + MANAGED_PROFILE_PKG in testProfileOwnerAppHiddenInPrimaryProfile()
116 mParentUserId, Collections.singletonMap(PARAM_TEST_USER, mMainUserSerialNumber)); in testProfileOwnerAppHiddenInPrimaryProfile()
[all …]
DMixedManagedProfileOwnerTestApi30.java32 private int mParentUserId = -1; field in MixedManagedProfileOwnerTestApi30
39 mParentUserId = mPrimaryUserId; in setUp()
44 mUserId = createManagedProfile(mParentUserId); in createManagedProfile()
45 switchUser(mParentUserId); in createManagedProfile()
DMixedManagedProfileOwnerTestApi25.java33 private int mParentUserId = -1; field in MixedManagedProfileOwnerTestApi25
40 mParentUserId = mPrimaryUserId; in setUp()
45 mUserId = createManagedProfile(mParentUserId); in createManagedProfile()
46 switchUser(mParentUserId); in createManagedProfile()
DManagedProfileCrossProfileTest.java91 disableActivityForUser("ManagedProfileActivity", mParentUserId); in testCrossProfileIntentFilters()
113 MANAGED_PROFILE_PKG, MANAGED_PROFILE_PKG + ".PrimaryUserTest", mParentUserId); in testCrossProfileIntentFilters()
131 runDeviceTestsAsUser(INTENT_SENDER_PKG, ".ContentTest", mParentUserId); in testCrossProfileContent()
154 "testCannotReceiveProfileNotifications", mParentUserId, in testCrossProfileNotificationListeners_EmptyAllowlist()
169 "testCanReceiveNotifications", mParentUserId, in testCrossProfileNotificationListeners_NullAllowlist()
184 "testCanReceiveNotifications", mParentUserId, in testCrossProfileNotificationListeners_InAllowlist()
208 testCrossProfileCopyPasteInternal(mParentUserId, true); in testCrossProfileCopyPaste()
215 testCrossProfileCopyPasteInternal(mParentUserId, false); in testCrossProfileCopyPaste()
220 final String direction = (userId == mParentUserId) in testCrossProfileCopyPasteInternal()
241 getDevice().executeShellCommand("appwidget grantbind --user " + mParentUserId in testCrossProfileWidgets()
[all …]
DManagedProfileTest.java65 newUserId = createManagedProfile(mParentUserId); in testMaxOneManagedProfile()
92 mParentUserId); in testProfileWifiCleanup()
101 mParentUserId); in testProfileWifiCleanup()
238 installAppAsUser(DEVICE_OWNER_APK, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
239 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
243 removeAdmin(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
255 "testNfcShareEnabled", mParentUserId); in testNfcRestriction()
263 "testNfcShareEnabled", mParentUserId); in testNfcRestriction()
274 "testIsProvisioningAllowedFalse", mParentUserId); in testIsProvisioningAllowed()
285 mParentUserId); in testPhoneAccountVisibility()
[all …]
DManagedProfileWipeTest.java68 mParentUserId, in testWipeDataWithReason()
87 mParentUserId, in testWipeDataLogged()
112 mParentUserId, in testWipeDataWithoutReason()
131 mParentUserId, in testWipeData()
DMixedManagedProfileOwnerTest.java50 private int mParentUserId = -1; field in MixedManagedProfileOwnerTest
57 mParentUserId = mPrimaryUserId; in setUp()
62 mUserId = createManagedProfile(mParentUserId); in createManagedProfile()
63 switchUser(mParentUserId); in createManagedProfile()
87 installAppAsUser(ASSIST_APP_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
92 installAppAsUser(DEVICE_ADMIN_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
94 startSimpleActivityAsUser(mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
DBaseManagedProfileTest.java49 protected int mParentUserId; field in BaseManagedProfileTest
60 mParentUserId = mPrimaryUserId; in setUp()
61 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileKeyValueBackupRestoreHostSideTest.java46 private int mParentUserId; field in ProfileKeyValueBackupRestoreHostSideTest
58 mParentUserId = mDevice.getCurrentUser(); in setUp()
59 int profileUserId = createProfileUser(mParentUserId, "Profile-KV"); in setUp()
141 installPackageAsUser(KEY_VALUE_APK, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackage()
154 uninstallPackageAsUser(KEY_VALUE_TEST_PACKAGE, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackage()
184 installPackageAsUser(KEY_VALUE_APK, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
188 uninstallPackageAsUser(KEY_VALUE_TEST_PACKAGE, mParentUserId); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
DParallelUserBackupRestoreHostSideTest.java57 private int mParentUserId; field in ParallelUserBackupRestoreHostSideTest
67 mParentUserId = mDevice.getCurrentUser(); in setUp()
68 startUserAndInitializeForBackup(mParentUserId); in setUp()
69 switchUserToLocalTransportAndAssertSuccess(mParentUserId); in setUp()
71 int profileUserId = createProfileUser(mParentUserId, "Profile-Parallel"); in setUp()
117 mExecutorService.submit(backupCallableForUser(mParentUserId, backupLatch)); in testParallelBackupAndRestore()
134 mExecutorService.submit(restoreCallableForUser(mParentUserId, restoreLatch)); in testParallelBackupAndRestore()