Searched refs:otherUser (Results 1 – 4 of 4) sorted by relevance
131 try (UserReference otherUser = TestApis.users().createUser().create()) { in installedForUser_doesNotContainPackageNotInstalledForUser() argument132 assertThat(TestApis.packages().installedForUser(otherUser)) in installedForUser_doesNotContainPackageNotInstalledForUser()295 try (UserReference otherUser = TestApis.users().createUser().createAndStart()) { in install_alreadyInstalledOnOtherUser_installs() argument296 TestApis.packages().install(otherUser, TEST_APP_APK_FILE); in install_alreadyInstalledOnOtherUser_installs()313 try (UserReference otherUser = TestApis.users().createUser().createAndStart()) { in install_byteArray_alreadyInstalledOnOtherUser_installs() argument314 TestApis.packages().install(otherUser, TEST_APP_BYTES); in install_byteArray_alreadyInstalledOnOtherUser_installs()
396 private Map<String, String> makeOtherUserIdArgs(int otherUser) { in makeOtherUserIdArgs() argument398 args.put("other_user_id", Integer.toString(otherUser)); in makeOtherUserIdArgs()
1870 for (UserReference otherUser : users) {1871 if (otherUser.equals(user)) {1875 if (otherUser.parent() != null) {1879 switchToUser(otherUser);
849 final UserHandle otherUser = UserHandle.of(userId); in testCrossUserQuery_withPermission() local850 final Context userContext = mContext.createContextAsUser(otherUser, 0); in testCrossUserQuery_withPermission()