/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 277 val otherUser = CURRENT_USER_ID + 1 in testListFilterCurrentUser() constant 278 val otherUserUid = otherUser * UserHandle.PER_USER_RANGE in testListFilterCurrentUser() 280 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testListFilterCurrentUser() 287 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testListFilterCurrentUser() 302 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneCameraOps() constant 304 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testAlwaysGetPhoneCameraOps() 312 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testAlwaysGetPhoneCameraOps() 326 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneMicOps() constant 328 .thenReturn(listOf(UserInfo(otherUser, TEST_PACKAGE_NAME, 0))) in testAlwaysGetPhoneMicOps() 336 appOpsPrivacyItemMonitor.userTrackerCallback.onUserChanged(otherUser, mContext) in testAlwaysGetPhoneMicOps()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | DeviceProvisionedControllerImplTest.kt | 161 val otherUser = 10 in testUserSetupChange_otherUser() constant 163 settings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testUserSetupChange_otherUser() 167 assertThat(controller.isUserSetup(otherUser)).isTrue() in testUserSetupChange_otherUser() 172 val otherUser = 10 in testCurrentUserSetup() constant 173 settings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, otherUser) in testCurrentUserSetup() 177 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 336 controller.changeUser(otherUser) in testCurrentUserId() 337 assertEquals(otherUser.identifier, controller.currentUserId) in testCurrentUserId() 345 controller.changeUser(otherUser) in testChangeUsers_providersHaveCorrectUser() 348 assertEquals(otherUser, providers[0].user) in testChangeUsers_providersHaveCorrectUser() 354 controller.changeUser(otherUser) in testChangeUsers_providersUnbound()
|
D | ControlsControllerImplTest.kt | 147 private val otherUser = user + 1 in <lambda>() constant 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 | 103 private val otherUser = user + 1 constant in com.android.systemui.controls.management.ControlsListingControllerImplTest 226 controller.changeUser(UserHandle.of(otherUser)) in testChangeUser() 228 assertEquals(otherUser, controller.currentUserId) in testChangeUser() 262 controller.changeUser(UserHandle.of(otherUser)) in testChangeUserSendsCorrectServiceUpdate() 264 assertEquals(otherUser, controller.currentUserId) in testChangeUserSendsCorrectServiceUpdate()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | BackupManagerServiceTest.java | 421 int otherUser = NON_USER_SYSTEM + 1; in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers() local 422 File activateFile = new File(mTestDir, "activate-" + otherUser); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers() 423 BackupManagerServiceTestable.sActivatedFiles.append(otherUser, activateFile); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers() 429 assertFalse(mService.isBackupServiceActive(otherUser)); in setBackupServiceActive_forOneNonSystemUser_doesNotActivateForAllNonSystemUsers()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppsFilterImpl.java | 780 int otherUser = allUsers[ou].id; in updateShouldFilterCacheForUser() local 782 int otherUid = UserHandle.getUid(otherUser, otherSetting.getAppId()); in updateShouldFilterCacheForUser() 784 subjectUid, subjectSetting, otherSetting, otherUser); in updateShouldFilterCacheForUser()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootWindowContainerTests.java | 1098 int otherUser = currentUser + 1; in testSwitchUser_missingHomeRootTask() local 1100 mRootWindowContainer.switchUser(otherUser, null); in testSwitchUser_missingHomeRootTask()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 4232 public boolean isSameProfileGroup(@NonNull UserHandle user, @NonNull UserHandle otherUser) { in isSameProfileGroup() argument 4233 return isSameProfileGroup(user.getIdentifier(), otherUser.getIdentifier()); in isSameProfileGroup()
|