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.java171 protected boolean isSameProfileGroup(@UserIdInt int userId, int otherUserId) { in isSameProfileGroup() argument
173 && mSameProfileGroupIds.get(userId) == otherUserId in isSameProfileGroup()
174 || mSameProfileGroupIds.containsKey(otherUserId) in isSameProfileGroup()
175 && 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.java243 public boolean isSameProfileGroup(int userId, int otherUserId) { in isSameProfileGroup() argument
244 return getUserInfo(userId).profileGroupId == getUserInfo(otherUserId).profileGroupId; in isSameProfileGroup()