Searched refs:otherUser (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/ |
D | ControlsListingControllerImplTest.kt | 81 private val otherUser = user + 1 in capture() constant in com.android.systemui.controls.management.ControlsListingControllerImplTest 174 controller.changeUser(UserHandle.of(otherUser)) in testChangeUser() 176 assertEquals(otherUser, controller.currentUserId) in testChangeUser() 208 controller.changeUser(UserHandle.of(otherUser)) in testChangeUserSendsCorrectServiceUpdate() 210 assertEquals(otherUser, controller.currentUserId) in testChangeUserSendsCorrectServiceUpdate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsBindingControllerImplTest.kt | 75 private val otherUser = UserHandle.of(user.identifier + 1) in capture() constant 324 controller.changeUser(otherUser) in testCurrentUserId() 325 assertEquals(otherUser.identifier, controller.currentUserId) in testCurrentUserId() 333 controller.changeUser(otherUser) in testChangeUsers_providersHaveCorrectUser() 336 assertEquals(otherUser, providers[0].user) in testChangeUsers_providersHaveCorrectUser() 342 controller.changeUser(otherUser) in testChangeUsers_providersUnbound()
|
/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/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 | AppsFilter.java | 669 int otherUser = allUsers[ou].id; in updateShouldFilterCacheForPackage() local 674 int otherUid = UserHandle.getUid(otherUser, otherSetting.appId); in updateShouldFilterCacheForPackage() 680 subjectUid, subjectSetting, otherSetting, otherUser)); in updateShouldFilterCacheForPackage()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | RootActivityContainerTests.java | 891 int otherUser = currentUser + 1; in testSwitchUser_missingHomeRootTask() local 893 mRootWindowContainer.switchUser(otherUser, null); in testSwitchUser_missingHomeRootTask()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 3392 public boolean isSameProfileGroup(@NonNull UserHandle user, @NonNull UserHandle otherUser) { in isSameProfileGroup() argument 3393 return isSameProfileGroup(user.getIdentifier(), otherUser.getIdentifier()); in isSameProfileGroup()
|