Home
last modified time | relevance | path

Searched refs:getUser (Results 1 – 25 of 74) sorted by relevance

123

/cts/tests/tests/multiuser/src/android/multiuser/cts/
DNewUserResponseTest.java41 assertThat(response.getUser()).isEqualTo(userHandle); in testNewUserResponseSuccessful()
57 assertThat(response.getUser()).isNull(); in testNewUserResponseUnsuccessful()
DUserVisibilityTest.java86 assertWithMessage("isUserVisible() for current user (id=%s)", sContext.getUser()) in testIsUserVisible_currentUser()
94 assertWithMessage("isUserVisible() for background user (id=%s)", sContext.getUser()) in testIsUserVisible_backgroundUser()
104 sContext.getUser()).that(mUserManager.isUserVisible()).isTrue(); in testIsUserVisible_startedProfileOfCurrentUser()
116 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testIsUserVisible_stoppedProfileOfCurrentUser()
180 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
DUserManagerTest.java289 assertWithMessage("isUserForeground() for bg user (%s)", sContext.getUser()) in testIsUserForeground_backgroundUser()
297 assertWithMessage("isUserForeground() for profile(%s) of current user", sContext.getUser()) in testIsUserForeground_profileOfCurrentUser()
354 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testIsUserRunning_stoppedProfileOfCurrentUser()
371 + " (called from " + sContext.getUser() + ")"); in testIsUserRunning_stoppedSecondaryUser()
793 user = mUserManager.createUser(newUserRequest()).getUser(); in testSomeUserHasAccount()
808 usersCreated.push(response.getUser()); in testSomeUserHasAccount_shouldIgnoreToBeRemovedUsers()
835 user = response.getUser(); in testCreateUser_withNewUserRequest_shouldCreateUserWithCorrectProperties()
868 user1 = response1.getUser(); in testCreateUser_withNewUserRequest_shouldNotAllowDuplicateUserAccounts()
875 user2 = response2.getUser(); in testCreateUser_withNewUserRequest_shouldNotAllowDuplicateUserAccounts()
922 usersCreated.push(mUserManager.createUser(request).getUser()); in testGetRemainingCreatableUserCount()
[all …]
DUserVisibilityVisibleBackgroundUsersTestCase.java227 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
243 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
276 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay_HSUM()
/cts/tests/tests/nfc/src/android/nfc/cts/
DWalletRoleTestUtils.java114 context.getUser(), MoreExecutors.directExecutor(), aBoolean -> { in removeRoleHolder()
163 onRoleHoldersChangedListener, context.getUser()); in runWithRole()
171 context.getUser()); in runWithRole()
218 onRoleHoldersChangedListener, context.getUser()); in runWithRoleNone()
230 context.getUser()); in runWithRoleNone()
248 context.getUser(), MoreExecutors.directExecutor(), aBoolean -> { in clearRoleHolders()
/cts/tests/tests/car/src/android/car/cts/
DCarServiceHelperServiceUpdatableTest.java127 int userId = response.getUser().getIdentifier(); in testSendUserLifecycleEventAndOnUserCreated()
140 userManager.removeUser(response.getUser()); in testSendUserLifecycleEventAndOnUserCreated()
175 int userId = response.getUser().getIdentifier(); in testSendUserLifecycleEventAndOnUserRemoved()
183 userRemoved = userManager.removeUser(response.getUser()); in testSendUserLifecycleEventAndOnUserRemoved()
197 userManager.removeUser(response.getUser()); in testSendUserLifecycleEventAndOnUserRemoved()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DGenericManagerImpl.java33 mUser = String.valueOf(context.getUser().getIdentifier()); in GenericManagerImpl()
/cts/tests/appsearch/src/com/android/cts/appsearch/app/
DAppSearchSessionPlatformCtsTest.java76 UserHandle user = context.getUser(); in testStorageAttributedToSelf_withDocument()
114 UserHandle user = context.getUser(); in testStorageAttributedToSelf_withoutDocument()
/cts/hostsidetests/biometrics/src/android/server/biometrics/cts/
DBiometricsAtomsTests.java118 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertEnrollmentAtomData()
130 assertThat(atom.hasUser() && atom.getUser() == getDevice().getCurrentUser()).isTrue(); in assertEnrollmentAcquiredAtomsData()
211 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertAuthenticateAtomData()
228 assertThat(atom.hasUser() && atom.getUser() == getDevice().getCurrentUser()).isTrue(); in assertAuthenticateAcquiredAtomsData()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserHelper.java71 mUser = Objects.requireNonNull(context).getUser(); in UserHelper()
150 public UserHandle getUser() { in getUser() method in UserHelper
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DVoiceInteractionCompatTests.java61 context.getUser())).isTrue(); in enforceHotwordPhraseIdEnabled()
97 context.getUser())).isFalse(); in enforceHotwordPhraseIdDisabled()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java77 doReturn(originalLai.getUser()).when(lai).getUser(); in testIntentSenderNotCreatedForWrongActivity()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java182 sbn.getUser()); in testAdjustNotification_userSentimentKey()
208 sbn.getUser()); in testAdjustNotification_proposedImportanceKey()
233 sbn.getUser()); in testAdjustNotification_sensitiveContentKey()
260 sbn.getUser()); in testAdjustNotification_importanceKey()
297 "", sbn1.getUser()); in testAdjustNotifications_rankingScoreKey()
301 "", sbn2.getUser()); in testAdjustNotifications_rankingScoreKey()
346 sbn.getUser()); in testAdjustNotification_smartActionKey()
386 sbn.getUser()); in testAdjustNotification_smartReplyKey()
DAdjustmentTest.java49 assertEquals(ADJ_USER.getIdentifier(), adjustment.getUser()); in testOtherConstructor()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagerTest.java114 TestApis.context().instrumentationContext().getUser())).isEmpty(); in getPolicyManagedProfiles_noManagedProfiles_returnsEmptyList()
124 TestApis.context().instrumentationContext().getUser())) in getPolicyManagedProfiles_hasWorkProfile_returnsWorkProfileUser()
137 TestApis.context().instrumentationContext().getUser())) in getPolicyManagedProfiles_hasManagedProfileNoProfileOwner_returnsEmptyList()
149 TestApis.context().instrumentationContext().getUser())); in getPolicyManagedProfiles_noPermission_returnsEmptyList()
/cts/tests/app/app/src/android/app/stubs/
DLauncherActivityStub.java61 Log.d(TAG, "onCreate() user=" + getUser() + ", display=" + getDisplayId()); in onCreate()
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/
DAppSearchStorageAugmenterDeviceTest.java51 UserHandle user = context.getUser(); in testReadStorageInfo()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DUserManagerHelperHeavyTest.java155 mUserToRemove = response.getUser(); in createGuestUser()
167 mUserToRemove = response.getUser(); in createSecondaryUser()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DStatusBarNotificationTest.java79 assertEquals(mUserHandle, mSbn.getUser()); in testGetUser()
204 assertEquals(mUserHandle, clone.getUser()); in testClone()
/cts/tests/app/src/android/app/cts/
DLauncherActivityTest.java54 Log.d(TAG, "setUp(): user=" + mActivity.getUser() in setUp()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java152 assertThat(activity.getUser()).isEqualTo(mUser); in testSimpleAppInstalledForUser()
288 if (!activity.getUser().equals(mUser)) { in testNoSystemAppHasSyntheticAppDetailsActivityInjected()
337 UserHandle user = activity.getUser(); in assertActivityInjected()
477 if (!activity.getUser().equals(mUser)) { in assertInjectedActivityNotFound()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java406 flag, flag, sContext.getUser())); in setFlag()
412 flag, 0, sContext.getUser())); in clearFlag()
419 sContext.getUser())) & flag) == flag; in isFlagSet()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallTest.java147 Log.d(LOG_TAG, "sending uninstall intent (" + intent + ") on user " + mContext.getUser()); in startUninstall()
282 + mContext.getUser()); in isInstalled()
288 + mContext.getUser() + ": " + e); in isInstalled()
/cts/tests/tests/settings/src/android/settings/cts/
DAutoPrivacySettingsTest.java257 mContext.startActivityAsUser(intent, mContext.getUser()); in launchActionSettings()
270 mContext.startActivityAsUser(home, mContext.getUser()); in goHome()
/cts/hostsidetests/appcompat/compatchanges/app/src/com/android/cts/appcompat/compatchanges/
DCompatChangesTest.java92 context.getUser())).isTrue(); in isChangeEnabledPackageName_changeEnabled()
113 context.getUser())).isFalse(); in isChangeEnabledPackageName_changeDisabled()

123