Home
last modified time | relevance | path

Searched refs:otherUserId (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java145 protected boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() argument
147 && mSameProfileGroupIds.get(userId) == otherUserId in isSameProfileGroup()
148 || mSameProfileGroupIds.containsKey(otherUserId) in isSameProfileGroup()
149 && mSameProfileGroupIds.get(otherUserId) == userId; in isSameProfileGroup()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java226 int otherUserId = UserHandle.myUserId() + 1; in loadsAppOpExtraInfo_multipleProfiles() local
228 int uid2 = UserHandle.getUid(otherUserId, /* appId= */ 2); in loadsAppOpExtraInfo_multipleProfiles()
233 eq(otherUserId))) in loadsAppOpExtraInfo_multipleProfiles()
238 otherUserId)).thenReturn(true); in loadsAppOpExtraInfo_multipleProfiles()
243 getShadowUserManager().addUserProfile(UserHandle.of(otherUserId)); in loadsAppOpExtraInfo_multipleProfiles()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java244 public boolean isSameProfileGroup(int userId, int otherUserId) { in isSameProfileGroup() argument
245 return getUserInfo(userId).profileGroupId == getUserInfo(otherUserId).profileGroupId; in isSameProfileGroup()