Home
last modified time | relevance | path

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

1234

/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.java87 assertWithMessage("isUserVisible() for current user (id=%s)", sContext.getUser()) in testIsUserVisible_currentUser()
95 assertWithMessage("isUserVisible() for background user (id=%s)", sContext.getUser()) in testIsUserVisible_backgroundUser()
105 sContext.getUser()).that(mUserManager.isUserVisible()).isTrue(); in testIsUserVisible_startedProfileOfCurrentUser()
117 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testIsUserVisible_stoppedProfileOfCurrentUser()
181 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testGetVisibleUsers_stoppedProfileOfCurrentUser()
DUserVisibilityVisibleBackgroundUsersTestCase.java230 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
246 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
279 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay_HSUM()
DUserManagerTest.java299 assertWithMessage("isUserForeground() for bg user (%s)", sContext.getUser()) in testIsUserForeground_backgroundUser()
307 assertWithMessage("isUserForeground() for profile(%s) of current user", sContext.getUser()) in testIsUserForeground_profileOfCurrentUser()
364 Log.d(TAG, "Stopping profile " + profile + " (called from " + sContext.getUser() + ")"); in testIsUserRunning_stoppedProfileOfCurrentUser()
381 + " (called from " + sContext.getUser() + ")"); in testIsUserRunning_stoppedSecondaryUser()
858 user = mUserManager.createUser(newUserRequest()).getUser(); in testSomeUserHasAccount()
876 usersCreated.push(response.getUser()); in testSomeUserHasAccount_shouldIgnoreToBeRemovedUsers()
906 user = response.getUser(); in testCreateUser_withNewUserRequest_shouldCreateUserWithCorrectProperties()
942 user1 = response1.getUser(); in testCreateUser_withNewUserRequest_shouldNotAllowDuplicateUserAccounts()
949 user2 = response2.getUser(); in testCreateUser_withNewUserRequest_shouldNotAllowDuplicateUserAccounts()
996 usersCreated.push(mUserManager.createUser(request).getUser()); in testGetRemainingCreatableUserCount()
[all …]
/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/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java293 sbn.getUser()); in testAdjustNotification_userSentimentKey()
319 sbn.getUser()); in testAdjustNotification_proposedImportanceKey()
344 sbn.getUser()); in testAdjustNotification_sensitiveContentKey()
371 sbn.getUser()); in testAdjustNotification_importanceKey()
408 "", sbn1.getUser()); in testAdjustNotifications_rankingScoreKey()
412 "", sbn2.getUser()); in testAdjustNotifications_rankingScoreKey()
457 sbn.getUser()); in testAdjustNotification_smartActionKey()
497 sbn.getUser()); in testAdjustNotification_smartReplyKey()
530 sbn.getUser()); in testAdjustNotification_typeKey()
546 sbn.getUser()); in testAdjustNotification_typeKey()
[all …]
DAdjustmentTest.java49 assertEquals(ADJ_USER.getIdentifier(), adjustment.getUser()); in testOtherConstructor()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DGenericManagerImpl.java33 mUser = String.valueOf(context.getUser().getIdentifier()); in GenericManagerImpl()
/cts/hostsidetests/biometrics/src/android/server/biometrics/cts/
DBiometricsAtomsTests.java208 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertEnrollmentAtomData()
215 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertUnenrollmentAtomData()
223 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertEnumerationAtomData()
236 assertThat(atom.hasUser() && atom.getUser() == getDevice().getCurrentUser()).isTrue(); in assertEnrollmentAcquiredAtomsData()
317 assertThat(atom.getUser()).isEqualTo(getDevice().getCurrentUser()); in assertAuthenticateAtomData()
334 assertThat(atom.hasUser() && atom.getUser() == getDevice().getCurrentUser()).isTrue(); in assertAuthenticateAcquiredAtomsData()
/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/tests/devicepolicy/src/android/devicepolicy/cts/
DDevicePolicyManagerTest.java115 TestApis.context().instrumentationContext().getUser())).isEmpty(); in getPolicyManagedProfiles_noManagedProfiles_returnsEmptyList()
125 TestApis.context().instrumentationContext().getUser())) in getPolicyManagedProfiles_hasWorkProfile_returnsWorkProfileUser()
138 TestApis.context().instrumentationContext().getUser())) in getPolicyManagedProfiles_hasManagedProfileNoProfileOwner_returnsEmptyList()
150 TestApis.context().instrumentationContext().getUser())); in getPolicyManagedProfiles_noPermission_returnsEmptyList()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java77 doReturn(originalLai.getUser()).when(lai).getUser(); in testIntentSenderNotCreatedForWrongActivity()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DVoiceInteractionCompatTests.java61 context.getUser())).isTrue(); in enforceHotwordPhraseIdEnabled()
97 context.getUser())).isFalse(); in enforceHotwordPhraseIdDisabled()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserHelper.java72 .getUser(); in UserHelper()
151 public UserHandle getUser() { in getUser() method in UserHelper
/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/notification/src/android/app/notification/current/cts/
DStatusBarNotificationTest.java79 assertEquals(mUserHandle, mSbn.getUser()); in testGetUser()
204 assertEquals(mUserHandle, clone.getUser()); in testClone()
/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/packageinstaller/criticaluserjourney/src/android/packageinstaller/criticaluserjourney/cts/
DUninstallationTestBase.java243 extraIntent.putExtra(Intent.EXTRA_USER, context.getUser()); in getUninstallResultAndStartConfirmedActivityForUser()
302 intent.putExtra(Intent.EXTRA_USER, context.getUser()); in startUninstallationViaIntentForUser()
321 getContext().startActivityAsUser(intent, context.getUser()); in startUninstallationViaIntentActionUninstallPackageForUser()
DPackageInstallerCujTestBase.java618 + context.getUser()); in isInstalled()
624 + context.getUser() + ": " + e); in isInstalled()
644 + getContext().getUser() + ", with version code " + versionCode); in isInstalledAndVerifyVersionCode()
651 + getContext().getUser() + ": " + e); in isInstalledAndVerifyVersionCode()
/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.java154 assertThat(activity.getUser()).isEqualTo(mUser); in testSimpleAppInstalledForUser()
298 if (!activity.getUser().equals(mUser)) { in testNoSystemAppHasSyntheticAppDetailsActivityInjected()
347 UserHandle user = activity.getUser(); in assertActivityInjected()
500 if (!activity.getUser().equals(mUser)) { in assertInjectedActivityNotFound()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java426 flag, flag, sContext.getUser())); in setFlag()
432 flag, 0, sContext.getUser())); in clearFlag()
439 sContext.getUser())) & flag) == flag; in isFlagSet()
/cts/tests/tests/packageinstaller/uninstall/src/android/packageinstaller/uninstall/cts/
DUninstallMultiUserTest.kt61 val testUser = UserReference.of(context.getUser()) in startUninstallAllUsersCrossUser()
/cts/tests/tests/content/src/android/content/cts/
DDocumentsUIUsedContentApiTest.java65 .getUser()).isEqualTo(user); in testCreatePackageContextAsUser()

1234