/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ResumeOnRebootHostTest.java | 142 int initialUser = users[0]; in resumeOnReboot_ManagedProfile_Success() local 144 int managedUserId = createManagedProfile(initialUser); in resumeOnReboot_ManagedProfile_Success() 150 deviceSetup(initialUser); in resumeOnReboot_ManagedProfile_Success() 152 deviceLock(initialUser); in resumeOnReboot_ManagedProfile_Success() 153 deviceEnterLskf(initialUser); in resumeOnReboot_ManagedProfile_Success() 156 runDeviceTestsAsUser("testVerifyUnlockedAndDismiss", initialUser); in resumeOnReboot_ManagedProfile_Success() 162 runDeviceTestsAsUser("testTearDown", initialUser); in resumeOnReboot_ManagedProfile_Success() 179 int initialUser = users[0]; in resumeOnReboot_TwoUsers_SingleUserUnlock_Success() local 189 switchUser(initialUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success() 190 deviceSetup(initialUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success() [all …]
|
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/ |
D | UserRestrictionInstallTest.kt | 132 val initialUser = sDeviceState.initialUser() in <lambda>() constant 138 .that(TestApis.packages().find(TEST_APK_PACKAGE_NAME).installedOnUser(initialUser)) in <lambda>() 215 val initialUser = sDeviceState.initialUser() in <lambda>() constant 220 var targetPackage = TestApis.packages().installedForUser(initialUser).filter { in <lambda>() 319 val initialUser = sDeviceState.initialUser() in <lambda>() constant 330 var targetPackage = TestApis.packages().installedForUser(initialUser).filter { in <lambda>() 363 private fun createSessionForUser(user: UserReference = sDeviceState.initialUser()): in <lambda>() 379 user: UserReference = sDeviceState.initialUser(), in <lambda>() 393 user: UserReference = sDeviceState.initialUser(), in <lambda>()
|
/cts/hostsidetests/car_builtin/src/android/car/cts/builtin/ |
D | ActivityManagerHelperHostTest.java | 50 int initialUser = initialUserCommand.getCarInitialUser(); in testDefaultUserInitialization() local 51 defaultUsers.add(initialUser); in testDefaultUserInitialization()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | WipeDataTest.java | 68 .that(sDeviceState.workProfile(sDeviceState.initialUser()).exists()) in wipeData_po_removeWorkProfile() 103 UserReference initialUser = sDeviceState.initialUser(); in wipeData_additionalUsers_removeUser() local 107 Poll.forValue("initial user exists", initialUser::exists) in wipeData_additionalUsers_removeUser()
|
D | NotificationTest.java | 68 try (TestAppInstance initialUserApp = sTestApp.install(sDeviceState.initialUser()); in notification_fromPersonalProfile_isNotBadged()
|
D | CrossProfileAppsTest.java | 716 intent, sDeviceState.initialUser().userHandle(), activity)); in startActivity_byIntent_fromWorkProfile_logged() 823 sDeviceState.initialUser())) { in canRequestInteractAcrossProfiles_noOtherProfiles_returnsFalse() 837 sDeviceState.initialUser()); in canRequestInteractAcrossProfiles_packageNotInAllowList_returnsTrue() 873 sDeviceState.initialUser())) { in canRequestInteractAcrossProfiles_packageNotInstalledInWorkProfile_returnsTrue() 890 sDeviceState.initialUser()); in canRequestInteractAcrossProfiles_permissionNotRequested_returnsFalse()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | AdditionalSubtypeLifecycleTest.java | 114 final UserReference currentUser = sDeviceState.initialUser(); in testPerUserAdditionalInputMethodSubtype() 148 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 188 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 229 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponClearDataForForegroundUser() 275 final UserReference currentUser = sDeviceState.initialUser(); in testClearAdditionalInputMethodSubtypeUponClearDataForBackgroundUser()
|
D | InputMethodServiceSwitchingTest.java | 73 final UserReference currentUser = sDeviceState.initialUser(); in testUninstallCurrentIme() 94 final UserReference currentUser = sDeviceState.initialUser(); in testDisableCurrentIme()
|
D | ForceStopTest.java | 97 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsEnabledAfterForceStopForCurrentUser() 107 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsSelectedAndEnabledAfterForceStopForCurrentUser()
|
D | MultiUserMockImeTest.java | 89 final UserReference currentUser = sDeviceState.initialUser(); in testProfileSwitching()
|
D | MultiUserTest.java | 125 final UserReference currentUser = sDeviceState.initialUser(); in testAdditionalUser() 192 final UserReference currentUser = sDeviceState.initialUser(); in testProfileUser()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | UserManagerTest.java | 691 UserReference initialUser = sDeviceState.initialUser(); in testRemoveMainUser_shouldNotRemoveMainUser() local 697 assertThat(mUserManager.removeUserWhenPossible(initialUser.userHandle(), false)) in testRemoveMainUser_shouldNotRemoveMainUser() 701 assertThat(hasUser(initialUser.id())).isTrue(); in testRemoveMainUser_shouldNotRemoveMainUser() 1061 UserReference initialUser = sDeviceState.initialUser(); in testGetPreviousForegroundUser_switchingBetweenInitialAndAdditional() local 1064 if (TestApis.users().current() != initialUser) { in testGetPreviousForegroundUser_switchingBetweenInitialAndAdditional() 1065 initialUser.switchTo(); in testGetPreviousForegroundUser_switchingBetweenInitialAndAdditional() 1069 assertThat(mUserManager.getPreviousForegroundUser()).isEqualTo(initialUser.userHandle()); in testGetPreviousForegroundUser_switchingBetweenInitialAndAdditional() 1070 initialUser.switchTo(); in testGetPreviousForegroundUser_switchingBetweenInitialAndAdditional()
|
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/ |
D | BedsteadJUnit4Test.java | 229 if (!TestApis.users().instrumented().equals(sDeviceState.initialUser())) { in userTestAnnotation_isRunningOnCorrectUsers() 240 if (TestApis.users().instrumented().equals(sDeviceState.initialUser())) { in crossUserTestAnnotation_isRunningWithCorrectUserPairs() 244 assertThat(sDeviceState.otherUser()).isEqualTo(sDeviceState.initialUser()); in crossUserTestAnnotation_isRunningWithCorrectUserPairs()
|
D | DeviceStateTest.java | 537 assertThat(TestApis.users().current()).isEqualTo(sDeviceState.initialUser()); in requireRunOnUser_isCurrentUser() 543 assertThat(TestApis.users().current()).isNotEqualTo(sDeviceState.initialUser()); in requireRunOnUser_specifyNotSwitchedToUser_isNotCurrentUser()
|
/cts/hostsidetests/os/test-apps/StaticSharedLibTestApp/src/android/os/lib/app/ |
D | StaticSharedLibsMultiUserTests.java | 70 mInitialUser = sDeviceState.initialUser(); in setUp()
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/ |
D | PhotoPickerCrossProfileTest.java | 91 primaryUserId = sDeviceState.initialUser().id(); in testWorkApp_canAccessPersonalProfileContents()
|
D | PhotoPickerSettingsTest.java | 149 mSettingsIntent.putExtra(EXTRA_TAB_USER_ID, sDeviceState.initialUser().id()); in testSettingsLaunchedInPersonalProfile_WorkEnabled()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | VoiceInteractionServiceTest.java | 160 sDeviceState.initialUser())) { in onHandleScreenShotAndAssist_initialUser_success() 227 sDeviceState.initialUser())) { in onHandleScreenShotAndAssist_workProfileWithDisallowPolicy_successInInitialUser()
|
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/ |
D | DomainVerificationWorkProfileTestsBase.kt | 104 personalUser = deviceState.initialUser() in <lambda>()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInstallerArchiveMultiUserTest.java | 104 mPrimaryUser = sDeviceState.initialUser(); in setup()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | DeviceState.java | 1433 public UserReference initialUser() {
|