Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileContactsTest.java48 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsUris()
65 "testQuickContact", mParentUserId); in testManagedQuickContacts()
75 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsPolicies()
154 "testAddTestAccount", mParentUserId); in runManagedContactsTest()
160 setDirectoryPrefix(PRIMARY_DIRECTORY_PREFIX, mParentUserId); in runManagedContactsTest()
165 "testGetDirectoryListInPrimaryProfile", mParentUserId); in runManagedContactsTest()
169 "testRemoveAllUserContacts", mParentUserId); in runManagedContactsTest()
172 "testPrimaryProfilePhoneAndEmailLookup_insertedAndfound", mParentUserId); in runManagedContactsTest()
180 mParentUserId); in runManagedContactsTest()
194 "testCurrentProfileContacts_removeContacts", mParentUserId); in runManagedContactsTest()
[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.java99 runDeviceTestsAsUser(INTENT_SENDER_PKG, ".ContentTest", mParentUserId); in testCrossProfileContent()
121 "testCannotReceiveProfileNotifications", mParentUserId, in testCrossProfileNotificationListeners_EmptyAllowlist()
136 "testCanReceiveNotifications", mParentUserId, in testCrossProfileNotificationListeners_NullAllowlist()
151 "testCanReceiveNotifications", mParentUserId, in testCrossProfileNotificationListeners_InAllowlist()
173 testCrossProfileCopyPasteInternal(mParentUserId, mProfileUserId, true); in testCrossProfileCopyPaste()
175 testCrossProfileCopyPasteInternal(mProfileUserId, mParentUserId, true); in testCrossProfileCopyPaste()
180 testCrossProfileCopyPasteInternal(mParentUserId, mProfileUserId, true); in testCrossProfileCopyPaste()
182 testCrossProfileCopyPasteInternal(mProfileUserId, mParentUserId, false); in testCrossProfileCopyPaste()
188 final String testAddTargetCanAccessSource = (sourceUserId == mParentUserId) in testCrossProfileCopyPasteInternal()
213 getDevice().executeShellCommand("appwidget grantbind --user " + mParentUserId in testCrossProfileWidgets()
[all …]
DManagedProfileTest.java68 mParentUserId); in testProfileWifiCleanup()
77 mParentUserId); in testProfileWifiCleanup()
179 installAppAsUser(DEVICE_OWNER_APK, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
180 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
184 removeAdmin(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId); in testCannotSetDeviceOwnerWhenProfilePresent()
196 "testNfcShareEnabled", mParentUserId); in testNfcRestriction()
204 "testNfcShareEnabled", mParentUserId); in testNfcRestriction()
215 mParentUserId); in testPhoneAccountVisibility()
224 mParentUserId); in testPhoneAccountVisibility()
235 mParentUserId); in testPhoneAccountVisibility()
[all …]
DMixedManagedProfileOwnerTest.java46 private int mParentUserId = -1; field in MixedManagedProfileOwnerTest
53 mParentUserId = mPrimaryUserId; in setUp()
58 mUserId = createManagedProfile(mParentUserId); in createManagedProfile()
59 switchUser(mParentUserId); in createManagedProfile()
83 installAppAsUser(ASSIST_APP_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
88 installAppAsUser(DEVICE_ADMIN_APK, mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
90 startSimpleActivityAsUser(mParentUserId); in testScreenCaptureDisabled_assist_allowedPrimaryUser()
DManagedProfileWipeTest.java68 mParentUserId, in testWipeDataWithReason()
87 mParentUserId, in testWipeDataLogged()
112 mParentUserId, in testWipeDataWithoutReason()
131 mParentUserId, in testWipeData()
DBaseManagedProfileTest.java49 protected int mParentUserId; field in BaseManagedProfileTest
60 mParentUserId = mPrimaryUserId; in setUp()
61 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
DManagedProfilePasswordTest.java84 changeUserCredential(devicePassword, null, mParentUserId); in testResetPasswordTokenUsableAfterClearingLock()
85 changeUserCredential(null, devicePassword, mParentUserId); in testResetPasswordTokenUsableAfterClearingLock()
86 changeUserCredential(devicePassword, null, mParentUserId); in testResetPasswordTokenUsableAfterClearingLock()
92 changeUserCredential(null, devicePassword, mParentUserId); in testResetPasswordTokenUsableAfterClearingLock()
/cts/hostsidetests/content/src/android/content/cts/
DContextCrossProfileHostTest.java66 private int mParentUserId; field in ContextCrossProfileHostTest
75 mParentUserId = getDevice().getCurrentUser(); in setUp()
78 assertEquals(USER_SYSTEM, mParentUserId); in setUp()
86 mParentUserId, /* extraArgs= */"-t", /* extraArgs= */"--force-queryable"); in setUp()
106 int userInSameProfileGroup = createProfile(mParentUserId); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
124 mParentUserId, in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() local
134 int userInSameProfileGroup = createProfile(mParentUserId); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
152 mParentUserId, in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() local
162 int userInSameProfileGroup = createProfile(mParentUserId); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService()
180 mParentUserId, in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() local
[all …]
/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()
119 mExecutorService.submit(backupCallableForUser(mParentUserId, backupLatch)); in testParallelBackupAndRestore()
136 mExecutorService.submit(restoreCallableForUser(mParentUserId, restoreLatch)); in testParallelBackupAndRestore()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerXUserTest.java67 private int mParentUserId; field in AccountManagerXUserTest
82 mParentUserId = getDevice().getCurrentUser(); in setUp()
85 assertThat(mParentUserId).isEqualTo(mMainUserId); in setUp()
89 getDevice().installPackageForUser(apkFile, true, true, mParentUserId, "-t"); in setUp()
91 mProfileUserId = createProfile(mParentUserId); in setUp()
124 mParentUserId, in testAddMockAccountForUserProfile() local
136 mParentUserId, in testAddMockAccountForUserProfile() local
174 mParentUserId, in testGetAccountsForUserProfile() local
188 mParentUserId, in testCreateContextAsUser_revokePermissions() local
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DActivePasswordSufficientForDeviceTest.java35 int mParentUserId; field in ActivePasswordSufficientForDeviceTest
40 mParentUserId = getParentUserId(); in setUp()
69 changeUserCredential("1234", null, mParentUserId); in testActivePsswordSufficientForDevice_UnifiedPassword_BothPolicies()
82 changeUserCredential(null, "1234", mParentUserId); in testActivePsswordSufficientForDevice_UnifiedPassword_BothPolicies()
101 changeUserCredential("1234", null, mParentUserId); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()
113 changeUserCredential(null, "1234", mParentUserId); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()