Home
last modified time | relevance | path

Searched refs:initialUser (Results 1 – 21 of 21) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java142 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/
DUserRestrictionInstallTest.kt132 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/
DActivityManagerHelperHostTest.java50 int initialUser = initialUserCommand.getCarInitialUser(); in testDefaultUserInitialization() local
51 defaultUsers.add(initialUser); in testDefaultUserInitialization()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DWipeDataTest.java68 .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()
DNotificationTest.java68 try (TestAppInstance initialUserApp = sTestApp.install(sDeviceState.initialUser()); in notification_fromPersonalProfile_isNotBadged()
DCrossProfileAppsTest.java716 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/
DAdditionalSubtypeLifecycleTest.java114 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()
DInputMethodServiceSwitchingTest.java73 final UserReference currentUser = sDeviceState.initialUser(); in testUninstallCurrentIme()
94 final UserReference currentUser = sDeviceState.initialUser(); in testDisableCurrentIme()
DForceStopTest.java97 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsEnabledAfterForceStopForCurrentUser()
107 final UserReference currentUser = sDeviceState.initialUser(); in testImeRemainsSelectedAndEnabledAfterForceStopForCurrentUser()
DMultiUserMockImeTest.java89 final UserReference currentUser = sDeviceState.initialUser(); in testProfileSwitching()
DMultiUserTest.java125 final UserReference currentUser = sDeviceState.initialUser(); in testAdditionalUser()
192 final UserReference currentUser = sDeviceState.initialUser(); in testProfileUser()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserManagerTest.java691 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/
DBedsteadJUnit4Test.java229 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()
DDeviceStateTest.java537 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/
DStaticSharedLibsMultiUserTests.java70 mInitialUser = sDeviceState.initialUser(); in setUp()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerCrossProfileTest.java91 primaryUserId = sDeviceState.initialUser().id(); in testWorkApp_canAccessPersonalProfileContents()
DPhotoPickerSettingsTest.java149 mSettingsIntent.putExtra(EXTRA_TAB_USER_ID, sDeviceState.initialUser().id()); in testSettingsLaunchedInPersonalProfile_WorkEnabled()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionServiceTest.java160 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/
DDomainVerificationWorkProfileTestsBase.kt104 personalUser = deviceState.initialUser() in <lambda>()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInstallerArchiveMultiUserTest.java104 mPrimaryUser = sDeviceState.initialUser(); in setup()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1433 public UserReference initialUser() {