/frameworks/base/core/java/android/accounts/ |
AccountAndUser.java | 20 * Used to store the Account and the UserId this account is associated with. 26 public int userId; 28 public AccountAndUser(Account account, int userId) { 30 this.userId = userId; 38 && this.userId == other.userId; 43 return account.hashCode() + userId; 47 return account.toString() + " u" + userId;
|
/frameworks/base/core/java/android/content/pm/ |
InstantAppRequest.java | 36 public final int userId; 43 String resolvedType, String callingPackage, int userId, Bundle verificationBundle) { 48 this.userId = userId;
|
PackageCleanItem.java | 24 public final int userId; 28 public PackageCleanItem(int userId, String packageName, boolean andCode) { 29 this.userId = userId; 42 return userId == other.userId && packageName.equals(other.packageName) 53 result = 31 * result + userId; 64 dest.writeInt(userId); 81 userId = source.readInt();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/activity/ |
PackagesChangedEvent.java | 32 public final int userId; 34 public PackagesChangedEvent(RecentsPackageMonitor monitor, String packageName, int userId) { 37 this.userId = userId;
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
ReadExternalStorageTest.java | 80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); 87 final File userPath = new File(path, userId);
|
/frameworks/base/services/core/java/com/android/server/security/ |
KeyAttestationApplicationIdProviderService.java | 59 int userId = UserHandle.getUserId(uid); 64 PackageManager.GET_SIGNATURES, userId);
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
RemoveUserFragment.java | 30 private static final String ARG_USER_ID = "userId"; 32 static RemoveUserFragment newInstance(int userId) { 34 args.putInt(ARG_USER_ID, userId); 42 final int userId = getArguments().getInt(ARG_USER_ID); 43 return UserDialogs.createRemoveDialog(getActivity(), userId, 49 um.removeUser(userId);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
InstalledAppCounter.java | 48 final int userId = UserHandle.getUserId(info.uid); 51 new UserHandle(userId)) != installReason) { 68 userId);
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
AppVpnInfo.java | 10 * Holds packageName:userId pairs without any heavyweight fields. 14 public final int userId; 17 public AppVpnInfo(int userId, @NonNull String packageName) { 18 this.userId = userId; 28 result = that.userId - userId; 37 return userId == that.userId && Objects.equals(packageName, that.packageName); 44 return Objects.hash(packageName, userId); [all...] |
/system/core/run-as/ |
run-as.cpp | 146 int userId = 0; 148 userId = atoi(argv[3]); 149 if (userId < 0) error(1, 0, "negative user id: %d", userId); 168 if ((UID_MAX - info.uid) / AID_USER_OFFSET < (uid_t)userId) { 169 error(1, 0, "user id too big: %d", userId); 173 uid_t userAppId = (AID_USER_OFFSET * userId) + info.uid;
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
CreateUsersNoAppCrashesTest.java | 44 int userId = getDevice().createUser( 49 assertTrue("Couldn't switch to user " + userId, getDevice().switchUser(userId)); 52 waitForBootCompleted(appErrors, userId)); 54 assertTrue("Couldn't switch to user " + userId, getDevice().switchUser(mInitialUserId));
|
/frameworks/base/core/java/android/provider/ |
SearchIndexableData.java | 63 * The UserID for the data (in a multi user context). This is application specific and -1 is the 66 public int userId = -1; 158 sb.append("userId: "); 159 sb.append(userId);
|
/frameworks/base/core/java/com/android/internal/util/ |
NotificationMessagingUtil.java | 52 final int userId = sbn.getUserId(); 53 if (userId == UserHandle.USER_NULL || userId == UserHandle.USER_ALL) return false; 54 if (mDefaultSmsApp.get(userId) == null) { 55 cacheDefaultSmsApp(userId); 57 return Objects.equals(mDefaultSmsApp.get(userId), sbn.getPackageName()); 60 private void cacheDefaultSmsApp(int userId) { 61 mDefaultSmsApp.put(userId, Settings.Secure.getStringForUser( 63 Settings.Secure.SMS_DEFAULT_APPLICATION, userId)); 69 public void onChange(boolean selfChange, Uri uri, int userId) { [all...] |
/frameworks/base/services/core/java/com/android/server/ |
HardwarePropertiesManagerService.java | 102 final int userId = UserHandle.getUserId(uid); 106 && !vrService.isCurrentVrListener(callingPackage, userId)
|
OemLockService.java | 137 final int userId = UserHandle.getCallingUserId(); 140 if (!UserManager.get(mContext).isUserAdmin(userId)) {
|
/frameworks/base/services/core/java/com/android/server/pm/ |
SharedUserSetting.java | 27 int userId; 47 + name + "/" + userId + "}";
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
SettingsFacade.java | 35 public void setUserSetupCompleted(Context context, int userId) { 36 ProvisionLogger.logd("Setting USER_SETUP_COMPLETE to 1 for user " + userId); 37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); 72 public void setProfileContactRemoteSearch(Context context, boolean allowed, int userId) { 74 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, allowed ? 1 : 0, userId);
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
DefaultAppInfo.java | 38 public final int userId; 57 userId = uid; 66 userId = UserHandle.myUserId(); 85 componentName.getPackageName(), 0, userId); 108 componentName.getPackageName(), 0, userId); 136 componentName, 0, userId); 139 componentName, 0, userId);
|
/packages/apps/Settings/src/com/android/settings/users/ |
ProfileUpdateReceiver.java | 53 int userId = UserHandle.myUserId(); 57 um.setUserName(userId, profileName);
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
BaseAppSecurityTest.java | 69 protected void installTestAppForUser(String apk, int userId) throws Exception { 70 if (userId < 0) { 71 userId = mPrimaryUserId; 75 buildHelper.getTestFile(apk), true, false, userId, "-t")); 78 protected boolean isAppVisibleForUser(String packageName, int userId, 80 String command = "cmd package list packages --user " + userId;
|
PackageVisibilityTest.java | 63 int userId = mUsers[1]; 64 assertTrue(userId > 0); 65 getDevice().startUser(userId); 66 installTestAppForUser(TEST_APK, userId); 82 assertFalse(isAppVisibleForUser(TINY_PKG, userId, MATCH_NORMAL)); 83 assertFalse(isAppVisibleForUser(TINY_PKG, userId, MATCH_UNINSTALLED)); 87 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId); 89 ".PackageAccessTest", "testPackageAccess_notInOtherUserUninstalled", userId); 92 ".PackageAccessTest", "testPackageAccess_getPackagesCantSeeTiny", userId); 97 installTestAppForUser(TINY_APK, userId); [all...] |
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
CustomDeviceOwnerTest.java | 93 int userId = -1; 96 userId = createUser(); 100 removeUser(userId);
|
EphemeralUserTest.java | 41 int userId = createUser(FLAG_EPHEMERAL); 42 int flags = getUserFlags(userId); 51 int userId = createUser(); 52 int flags = getUserFlags(userId); 65 int userId = createUser(FLAG_EPHEMERAL); 66 int profileId = createManagedProfile(userId); 78 int userId = createUser(FLAG_EPHEMERAL); 79 startUser(userId); 80 assertTrue("ephemeral user must exists after start", listUsers().contains(userId)); 81 stopUser(userId); [all...] |
/frameworks/base/core/java/android/content/om/ |
OverlayInfo.java | 91 public final int userId; 101 source.userId); 105 @NonNull String baseCodePath, int state, int userId) { 110 this.userId = userId; 119 userId = source.readInt(); 156 dest.writeInt(userId); 220 result = prime * result + userId; 240 if (userId != other.userId) { [all...] |
/frameworks/base/services/core/java/com/android/server/om/ |
OverlayManagerShellCommand.java | 101 int userId = UserHandle.USER_SYSTEM; 106 userId = UserHandle.parseUserArg(getNextArgRequired()); 114 final Map<String, List<OverlayInfo>> allOverlays = mInterface.getAllOverlays(userId); 143 int userId = UserHandle.USER_SYSTEM; 148 userId = UserHandle.parseUserArg(getNextArgRequired()); 157 return mInterface.setEnabled(packageName, enable, userId) ? 0 : 1; 163 int userId = UserHandle.USER_SYSTEM; 168 userId = UserHandle.parseUserArg(getNextArgRequired()); 180 return mInterface.setHighestPriority(packageName, userId) ? 0 : 1; 182 return mInterface.setLowestPriority(packageName, userId) ? 0 : 1 [all...] |