/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | NewUserResponseTest.java | 41 assertThat(response.getUser()).isEqualTo(userHandle); in testNewUserResponseSuccessful() 57 assertThat(response.getUser()).isNull(); in testNewUserResponseUnsuccessful()
|
D | UserVisibilityTest.java | 86 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()
|
D | UserManagerTest.java | 289 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 …]
|
D | UserVisibilityVisibleBackgroundUsersTestCase.java | 227 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/ |
D | WalletRoleTestUtils.java | 114 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/ |
D | CarServiceHelperServiceUpdatableTest.java | 127 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/ |
D | GenericManagerImpl.java | 33 mUser = String.valueOf(context.getUser().getIdentifier()); in GenericManagerImpl()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | AppSearchSessionPlatformCtsTest.java | 76 UserHandle user = context.getUser(); in testStorageAttributedToSelf_withDocument() 114 UserHandle user = context.getUser(); in testStorageAttributedToSelf_withoutDocument()
|
/cts/hostsidetests/biometrics/src/android/server/biometrics/cts/ |
D | BiometricsAtomsTests.java | 118 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/ |
D | UserHelper.java | 71 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/ |
D | VoiceInteractionCompatTests.java | 61 context.getUser())).isTrue(); in enforceHotwordPhraseIdEnabled() 97 context.getUser())).isFalse(); in enforceHotwordPhraseIdDisabled()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerConfigActivityTest.java | 77 doReturn(originalLai.getUser()).when(lai).getUser(); in testIntentSenderNotCreatedForWrongActivity()
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 182 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()
|
D | AdjustmentTest.java | 49 assertEquals(ADJ_USER.getIdentifier(), adjustment.getUser()); in testOtherConstructor()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DevicePolicyManagerTest.java | 114 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/ |
D | LauncherActivityStub.java | 61 Log.d(TAG, "onCreate() user=" + getUser() + ", display=" + getDisplayId()); in onCreate()
|
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/ |
D | AppSearchStorageAugmenterDeviceTest.java | 51 UserHandle user = context.getUser(); in testReadStorageInfo()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/ |
D | UserManagerHelperHeavyTest.java | 155 mUserToRemove = response.getUser(); in createGuestUser() 167 mUserToRemove = response.getUser(); in createSecondaryUser()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | StatusBarNotificationTest.java | 79 assertEquals(mUserHandle, mSbn.getUser()); in testGetUser() 204 assertEquals(mUserHandle, clone.getUser()); in testClone()
|
/cts/tests/app/src/android/app/cts/ |
D | LauncherActivityTest.java | 54 Log.d(TAG, "setUp(): user=" + mActivity.getUser() in setUp()
|
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/ |
D | LauncherAppsTests.java | 152 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/ |
D | PermissionTest.java | 406 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/ |
D | UninstallTest.java | 147 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/ |
D | AutoPrivacySettingsTest.java | 257 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/ |
D | CompatChangesTest.java | 92 context.getUser())).isTrue(); in isChangeEnabledPackageName_changeEnabled() 113 context.getUser())).isFalse(); in isChangeEnabledPackageName_changeDisabled()
|