Home
last modified time | relevance | path

Searched refs:mProfileUserId (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java54 mProfileUserId); in testManagedProfileSetup()
71 MANAGED_PROFILE_PKG, ".WifiTest", "testAddWifiNetwork", mProfileUserId); in testProfileWifiCleanup()
74 removeUser(mProfileUserId); in testProfileWifiCleanup()
84 mProfileUserId); in testSettingsIntents()
91 mProfileUserId); in testCurrentApiHelper()
98 "testParentProfileApiDisabled", mProfileUserId); in testParentProfileApiDisabled()
104 "testCannotWipeParentProfile", mProfileUserId); in testCannotCallMethodsOnParentProfile()
107 "testCannotCallSetDefaultSmsApplicationOnParentProfile", mProfileUserId); in testCannotCallMethodsOnParentProfile()
126 changeUserRestrictionOrFail(restriction, true, mProfileUserId); in testNoDebuggingFeaturesRestriction()
132 changeUserRestriction(restriction, true, mProfileUserId); in testNoDebuggingFeaturesRestriction()
[all …]
DManagedProfilePasswordTest.java45 "testSetupWorkProfile", mProfileUserId); in testResetPasswordWithTokenBeforeUnlock()
48 "testResetPasswordBeforeUnlock", mProfileUserId); in testResetPasswordWithTokenBeforeUnlock()
50 verifyUserCredential(RESET_PASSWORD_TEST_DEFAULT_PASSWORD, mProfileUserId); in testResetPasswordWithTokenBeforeUnlock()
59 "testSetupWorkProfile", mProfileUserId); in testClearPasswordWithTokenBeforeUnlock()
62 "testClearPasswordBeforeUnlock", mProfileUserId); in testClearPasswordWithTokenBeforeUnlock()
64 verifyUserCredential("", mProfileUserId); in testClearPasswordWithTokenBeforeUnlock()
82 "testSetResetPasswordToken", mProfileUserId); in testResetPasswordTokenUsableAfterClearingLock()
89 "testResetPasswordBeforeUnlock", mProfileUserId); in testResetPasswordTokenUsableAfterClearingLock()
90 verifyUserCredential(RESET_PASSWORD_TEST_DEFAULT_PASSWORD, mProfileUserId); in testResetPasswordTokenUsableAfterClearingLock()
112 TEST_PASSWORD /* newCredential */, null /* oldCredential */, mProfileUserId); in testIsUsingUnifiedPassword()
[all …]
DManagedProfileContactsTest.java48 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsUris()
75 MANAGED_PROFILE_PKG, mParentUserId, mProfileUserId); in testManagedContactsPolicies()
146 "settings put --user " + mProfileUserId in runManagedContactsTest()
156 "testAddTestAccount", mProfileUserId); in runManagedContactsTest()
161 setDirectoryPrefix(MANAGED_DIRECTORY_PREFIX, mProfileUserId); in runManagedContactsTest()
175 "testManagedProfilePhoneAndEmailLookup_insertedAndfound", mProfileUserId); in runManagedContactsTest()
185 mProfileUserId); in runManagedContactsTest()
192 "testCurrentProfileContacts_removeContacts", mProfileUserId); in runManagedContactsTest()
207 private int mProfileUserId; field in ManagedProfileContactsTest.ContactsTestSet
214 mProfileUserId = profileUserId; in ContactsTestSet()
[all …]
DLauncherAppsProfileTest.java43 private int mProfileUserId; field in LauncherAppsProfileTest
55 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
56 installAppAsUser(MANAGED_PROFILE_APK, mProfileUserId); in setUp()
58 mProfileUserId); in setUp()
59 mProfileSerialNumber = Integer.toString(getUserSerialNumber(mProfileUserId)); in setUp()
61 startUserAndWait(mProfileUserId); in setUp()
69 removeUser(mProfileUserId); in tearDown()
80 installAppAsUser(SIMPLE_APP_APK, mProfileUserId); in testGetActivitiesWithProfile()
93 mProfileUserId, Collections.singletonMap(PARAM_TEST_USER, mProfileSerialNumber)); in testGetActivitiesWithProfile()
98 mProfileUserId, Collections.singletonMap(PARAM_TEST_USER, mMainUserSerialNumber)); in testGetActivitiesWithProfile()
[all …]
DManagedProfileCrossProfileTest.java96 "testRemoveAllFilters", mProfileUserId); in testCrossProfileContent()
98 "testAddManagedCanAccessParentFilters", mProfileUserId); in testCrossProfileContent()
103 "testRemoveAllFilters", mProfileUserId); in testCrossProfileContent()
105 "testAddParentCanAccessManagedFilters", mProfileUserId); in testCrossProfileContent()
106 runDeviceTestsAsUser(INTENT_SENDER_PKG, ".ContentTest", mProfileUserId); in testCrossProfileContent()
117 "testSetEmptyAllowlist", mProfileUserId, in testCrossProfileNotificationListeners_EmptyAllowlist()
118 Collections.singletonMap(PARAM_PROFILE_ID, Integer.toString(mProfileUserId))); in testCrossProfileNotificationListeners_EmptyAllowlist()
122 Collections.singletonMap(PARAM_PROFILE_ID, Integer.toString(mProfileUserId))); in testCrossProfileNotificationListeners_EmptyAllowlist()
132 "testSetNullAllowlist", mProfileUserId, in testCrossProfileNotificationListeners_NullAllowlist()
133 Collections.singletonMap(PARAM_PROFILE_ID, Integer.toString(mProfileUserId))); in testCrossProfileNotificationListeners_NullAllowlist()
[all …]
DManagedProfileWipeTest.java43 mTestArgs.put(KEY_PROFILE_ID, Integer.toString(mProfileUserId)); in setUp()
56 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithReason()
72 waitUntilUserRemoved(mProfileUserId); in testWipeDataWithReason()
78 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataLogged()
94 waitUntilUserRemoved(mProfileUserId); in testWipeDataLogged()
100 assertTrue(listUsers().contains(mProfileUserId)); in testWipeDataWithoutReason()
117 waitUntilUserRemoved(mProfileUserId); in testWipeDataWithoutReason()
125 assertTrue(listUsers().contains(mProfileUserId)); in testWipeData()
136 waitUntilUserRemoved(mProfileUserId); in testWipeData()
DManagedProfileTimeoutTest.java55 startTestActivity(mProfileUserId, false); in testWorkProfileTimeoutIdleActivity()
69 startTestActivity(mProfileUserId, false); in testWorkProfileTimeoutUserActivity()
83 startTestActivity(mProfileUserId, true); in testWorkProfileTimeoutKeepScreenOnWindow()
91 changeUserCredential(TEST_PASSWORD, null, mProfileUserId); in setUpWorkProfileTimeout()
94 verifyUserCredential(TEST_PASSWORD, mProfileUserId); in setUpWorkProfileTimeout()
97 runProfileTimeoutTest("testSetWorkProfileTimeout", mProfileUserId); in setUpWorkProfileTimeout()
102 runProfileTimeoutTest(expectedResultTest, mProfileUserId); in verifyOnlyProfileLocked()
DBaseManagedProfileTest.java51 protected int mProfileUserId; field in BaseManagedProfileTest
61 mProfileUserId = createManagedProfile(mParentUserId); in setUp()
62 startUserAndWait(mProfileUserId); in setUp()
69 mProfileUserId); in setUp()
70 waitForUserUnlock(mProfileUserId); in setUp()
76 removeUser(mProfileUserId); in tearDown()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileFullBackupRestoreHostSideTest.java39 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileFullBackupRestoreHostSideTest
52 mProfileUserId = Optional.of(profileUserId); in setUp()
67 if (mProfileUserId.isPresent()) { in tearDown()
68 int profileUserId = mProfileUserId.get(); in tearDown()
75 mProfileUserId = Optional.empty(); in tearDown()
93 int profileUserId = mProfileUserId.get(); in testFullBackupAndSystemRestore()
120 int profileUserId = mProfileUserId.get(); in testFullBackupAndRestoreAtInstall()
140 mProfileUserId.get()); in checkDeviceTest()
DMultiUserBackupStateTest.java43 private Optional<Integer> mProfileUserId = Optional.empty(); field in MultiUserBackupStateTest
58 mProfileUserId = Optional.of(profileUserId); in setUp()
66 if (mProfileUserId.isPresent()) { in tearDown()
67 assertTrue(getDevice().removeUser(mProfileUserId.get())); in tearDown()
68 mProfileUserId = Optional.empty(); in tearDown()
85 int profileUserId = mProfileUserId.get(); in testBackupDeactivatedWhenUserIsRemoved()
91 mProfileUserId = Optional.empty(); in testBackupDeactivatedWhenUserIsRemoved()
DProfileKeyValueBackupRestoreHostSideTest.java47 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileKeyValueBackupRestoreHostSideTest
60 mProfileUserId = Optional.of(profileUserId); in setUp()
75 if (mProfileUserId.isPresent()) { in tearDown()
76 int profileUserId = mProfileUserId.get(); in tearDown()
83 mProfileUserId = Optional.empty(); in tearDown()
101 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestore()
133 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestoreForInstallExistingPackage()
176 int profileUserId = mProfileUserId.get(); in testKeyValueBackupAndRestoreForInstallExistingPackageWaitTillComplete()
196 mProfileUserId.get()); in checkDeviceTest()
DProfileSerialNumberHostSideTest.java45 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileSerialNumberHostSideTest
55 mProfileUserId = Optional.of(profileUserId); in setUp()
63 if (mProfileUserId.isPresent()) { in tearDown()
64 int profileUserId = mProfileUserId.get(); in tearDown()
67 mProfileUserId = Optional.empty(); in tearDown()
103 checkDeviceTestAsUser(TEST_PACKAGE, TEST_CLASS, methodName, mProfileUserId.get()); in checkDeviceTest()
DProfileScheduledJobHostSideTest.java71 private Optional<Integer> mProfileUserId = Optional.empty(); field in ProfileScheduledJobHostSideTest
82 mProfileUserId = Optional.of(profileUserId); in setUp()
92 if (mProfileUserId.isPresent()) { in tearDown()
93 mDevice.removeUser(mProfileUserId.get()); in tearDown()
94 mProfileUserId = Optional.empty(); in tearDown()
102 int jobId = getJobIdForUser(KEY_VALUE_MIN_JOB_ID, mProfileUserId.get()); in testKeyValueBackupJobScheduled()
118 int profileUserId = mProfileUserId.get(); in testKeyValueBackupJobRunsSuccessfully()
148 int profileUserId = mProfileUserId.get(); in testKeyValueBackupJobCancelled()
160 int jobId = getJobIdForUser(FULL_BACKUP_MIN_JOB_ID, mProfileUserId.get()); in testFullBackupJobScheduled()
176 int profileUserId = mProfileUserId.get(); in testFullBackupJobRunsSuccessfully()
[all …]
DParallelUserBackupRestoreHostSideTest.java58 private Optional<Integer> mProfileUserId = Optional.empty(); field in ParallelUserBackupRestoreHostSideTest
72 mProfileUserId = Optional.of(profileUserId); in setUp()
86 if (mProfileUserId.isPresent()) { in tearDown()
87 mDevice.removeUser(mProfileUserId.get()); in tearDown()
88 mProfileUserId = Optional.empty(); in tearDown()
115 int profileUserId = mProfileUserId.get(); in testParallelBackupAndRestore()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerXUserTest.java68 private int mProfileUserId; field in AccountManagerXUserTest
91 mProfileUserId = createProfile(mParentUserId); in setUp()
92 getDevice().startUser(mProfileUserId, true); in setUp()
93 getDevice().installPackageForUser(apkFile, true, true, mProfileUserId, "-t"); in setUp()
97 mTestArgs.put("testUser", Integer.toString(mProfileUserId)); in setUp()
148 mProfileUserId, in testAddMockAccountForUserProfile() local
163 mProfileUserId, in testGetAccountsForUserProfile() local
202 mProfileUserId, in testCreateContextAsUserForSameUser_revokePermissions() local
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNotificationListenerTest.java66 private int mProfileUserId; field in NotificationListenerTest
73 mProfileUserId = getParam(InstrumentationRegistry.getArguments(), PARAM_PROFILE_ID); in setUp()
160 mDevice.executeShellCommand("pm grant --user " + mProfileUserId + " " + SENDER_PACKAGE in grantProfileNotificationPermission()
166 "pm revoke --user " + mProfileUserId + " " + SENDER_PACKAGE + " " in revokeProfileNotificationPermission()
172 "am start --user " + mProfileUserId + " -a CANCEL_NOTIFICATION -n " in cancelProfileNotification()
184 "am start --user " + mProfileUserId + " -a POST_NOTIFICATION -n " in sendProfileNotification()