/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileTest.java | 54 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 …]
|
D | ManagedProfilePasswordTest.java | 45 "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 …]
|
D | ManagedProfileContactsTest.java | 48 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 …]
|
D | LauncherAppsProfileTest.java | 43 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 …]
|
D | ManagedProfileCrossProfileTest.java | 96 "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 …]
|
D | ManagedProfileWipeTest.java | 43 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()
|
D | ManagedProfileTimeoutTest.java | 55 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()
|
D | BaseManagedProfileTest.java | 51 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/ |
D | ProfileFullBackupRestoreHostSideTest.java | 39 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()
|
D | MultiUserBackupStateTest.java | 43 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()
|
D | ProfileKeyValueBackupRestoreHostSideTest.java | 47 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()
|
D | ProfileSerialNumberHostSideTest.java | 45 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()
|
D | ProfileScheduledJobHostSideTest.java | 71 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 …]
|
D | ParallelUserBackupRestoreHostSideTest.java | 58 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/ |
D | AccountManagerXUserTest.java | 68 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/ |
D | NotificationListenerTest.java | 66 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()
|