/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 287 val otherUser = CURRENT_USER_ID + 1 in testListFilterCurrentUser() constant 288 val otherUserUid = otherUser * UserHandle.PER_USER_RANGE in testListFilterCurrentUser() 290 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testListFilterCurrentUser() 297 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testListFilterCurrentUser() 312 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneCameraOps() constant 314 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testAlwaysGetPhoneCameraOps() 322 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testAlwaysGetPhoneCameraOps() 336 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneMicOps() constant 338 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testAlwaysGetPhoneMicOps() 346 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testAlwaysGetPhoneMicOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceProvisionedControllerImplTest.kt | 145 val otherUser = 10 in testUserSetupChange_otherUser() constant 147 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testUserSetupChange_otherUser() 151 assertThat(controller.isUserSetup(otherUser)).isTrue() in testUserSetupChange_otherUser() 156 val otherUser = 10 in testCurrentUserSetup() constant 157 secureSettings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testCurrentUserSetup() 161 switchUser(otherUser) in testCurrentUserSetup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsBindingControllerImplTest.kt | 78 private val otherUser = UserHandle.of(user.identifier + 1) in capture() constant 333 controller.changeUser(otherUser) in testCurrentUserId() 334 assertEquals(otherUser.identifier, controller.currentUserId) in testCurrentUserId() 342 controller.changeUser(otherUser) in testChangeUsers_providersHaveCorrectUser() 345 assertEquals(otherUser, providers[0].user) in testChangeUsers_providersHaveCorrectUser() 351 controller.changeUser(otherUser) in testChangeUsers_providersUnbound()
|
D | ControlsControllerImplTest.kt | 147 private val otherUser = user + 1 in <lambda>() constant in com.android.systemui.controls.controller.ControlsControllerImplTest 544 controller.changeUser(UserHandle.of(otherUser)) in <lambda>() 549 verify(bindingController).changeUser(UserHandle.of(otherUser)) in <lambda>() 550 verify(listingController).changeUser(UserHandle.of(otherUser)) in <lambda>() 552 assertEquals(otherUser, controller.currentUserId) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 176 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() local 177 assertTrue(otherUser != null); in testSettingsChangeForOtherUser() 180 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser() 186 Settings.Secure.putStringForUser(r, testKey, testValue2, otherUser.id); in testSettingsChangeForOtherUser() 189 assertEquals(testValue2, Settings.Secure.getStringForUser(r, testKey, otherUser.id)); in testSettingsChangeForOtherUser() 192 otherUser.id, UserHandle.getCallingUserId()); in testSettingsChangeForOtherUser() 195 um.removeUser(otherUser.id); in testSettingsChangeForOtherUser()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 104 private val otherUser = user + 1 constant 225 controller.changeUser(UserHandle.of(otherUser)) in testChangeUser() 227 assertEquals(otherUser, controller.currentUserId) in testChangeUser() 261 controller.changeUser(UserHandle.of(otherUser)) in testChangeUserSendsCorrectServiceUpdate() 263 assertEquals(otherUser, controller.currentUserId) in testChangeUserSendsCorrectServiceUpdate()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | BackupManagerServiceTest.java | 499 int otherUser = NON_SYSTEM_USER + 1; in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers() local 504 assertFalse(mService.isBackupServiceActive(otherUser)); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppsFilterImpl.java | 954 int otherUser = allUsers[ou].id; in updateShouldFilterCacheForUser() local 956 int otherUid = UserHandle.getUid(otherUser, otherSetting.getAppId()); in updateShouldFilterCacheForUser() 958 subjectUid, subjectSetting, otherSetting, otherUser); in updateShouldFilterCacheForUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 290 final UserInfo otherUser = createUser("TestUser", /* flags= */ 0); in testGetProfilesIncludingCommunal() local 297 final List<UserInfo> othersActual = mUserManager.getProfilesIncludingCommunal(otherUser.id); in testGetProfilesIncludingCommunal() 308 othersExpected.add(otherUser.id); in testGetProfilesIncludingCommunal() 611 final UserInfo otherUser = createUser("User 1", /* flags= */ UserInfo.FLAG_ADMIN); in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError() local 614 switchUser(otherUser.id); in testRemoveUserWhenPossible_permanentAdminMainUserReturnsError()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootWindowContainerTests.java | 1226 int otherUser = currentUser + 1; in testSwitchUser_missingHomeRootTask() local 1228 mRootWindowContainer.switchUser(otherUser, null); in testSwitchUser_missingHomeRootTask()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 5322 public boolean isSameProfileGroup(@NonNull UserHandle user, @NonNull UserHandle otherUser) { in isSameProfileGroup() argument 5323 return isSameProfileGroup(user.getIdentifier(), otherUser.getIdentifier()); in isSameProfileGroup()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 15467 final UserHandle otherUser = UserHandle.of(2); 15469 otherUser, "testCallNotificationListener_registerForUserAll_notifiedOnAnyUserId"); 15471 verify(listener, times(1)).onCallNotificationPosted(mPkg, otherUser); 15477 verify(listener, times(1)).onCallNotificationRemoved(mPkg, otherUser);
|