/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsHelper.java | 522 final int userId = UserHandle.getUserId(uid); 527 } else if (!forAllUsers && asUsers.get(userId) == null 530 List<BatterySipper> list = mUserSippers.get(userId); 533 mUserSippers.put(userId, list); 667 final int userId = mUserSippers.keyAt(i); 669 bs.userId = userId;
|
/frameworks/base/core/java/com/android/internal/widget/ |
LockPatternUtils.java | 159 public boolean isTrustUsuallyManaged(int userId) { 165 return getLockSettings().getBoolean(IS_TRUST_USUALLY_MANAGED, false, userId); 171 public void setTrustUsuallyManaged(boolean managed, int userId) { 173 getLockSettings().setBoolean(IS_TRUST_USUALLY_MANAGED, managed, userId); 179 public void userPresent(int userId) { 181 getLockSettings().userPresent(userId); 248 public int getRequestedMinimumPasswordLength(int userId) { 249 return getDevicePolicyManager().getPasswordMinimumLength(null, userId); 256 public int getRequestedPasswordQuality(int userId) { 257 return getDevicePolicyManager().getPasswordQuality(null, userId); [all...] |
/frameworks/base/core/jni/ |
android_hardware_SoundTrigger.cpp | 133 jfieldID userId; 762 gConfidenceLevelFields.userId); [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
ApplicationsState.java | 107 // Map: userid => (Map: package name => AppEntry) 129 for (int userId : mUm.getProfileIdsWithDisabled(UserHandle.myUserId())) { 130 mEntriesMap.put(userId, new HashMap<String, AppEntry>()); 227 int userId = UserHandle.getUserId(info.uid); 228 final AppEntry entry = mEntriesMap.get(userId).get(info.packageName); 274 public AppEntry getEntry(String packageName, int userId) { 277 AppEntry entry = mEntriesMap.get(userId).get(packageName); 279 ApplicationInfo info = getAppInfoLocked(packageName, userId); 282 info = mIpm.getApplicationInfo(packageName, 0, userId); 297 private ApplicationInfo getAppInfoLocked(String pkg, int userId) { [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
SystemServicesProxy.java | 283 public List<ActivityManager.RecentTaskInfo> getRecentTasks(int numLatestTasks, int userId, 332 tasks = mAm.getRecentTasksForUser(numTasksToQuery, flags, userId); 361 isExcluded |= quietProfileIds.contains(t.userId); 511 int userId = getCurrentUser(); 514 hasUserTask = (stackInfo.taskUserIds[i] == userId); 671 * @param userId The userId of the user that this is for. 673 public ActivityInfo getActivityInfo(ComponentName cn, int userId) { 678 return mIpm.getActivityInfo(cn, PackageManager.GET_META_DATA, userId); 705 public String getBadgedActivityLabel(ActivityInfo info, int userId) { [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
BaseStatusBar.java | 471 final int userId = pendingIntent.getCreatorUserHandle().getIdentifier(); 472 if (mUserManager.getUserInfo(userId).isManagedProfile() 473 && mKeyguardManager.isDeviceLocked(userId)) { 474 onLockedWorkRemoteInput(userId, row, view); 514 if (true) Log.v(TAG, "userId " + mCurrentUserId + " is in the house"); 532 UserInfo user = mUserManager.getUserInfo(recentTask.get(0).userId); [all...] |
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
MagnificationController.java | 533 final int userId = mUserId; 539 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_SCALE, scale, userId); 632 * @param userId the currently active user ID 634 public void setUserId(int userId) { 635 if (mUserId != userId) { 636 mUserId = userId; [all...] |
/frameworks/base/services/core/java/com/android/server/ |
LockSettingsService.java | 149 void setCredential(String credential, String savedCredential, int userId) 151 byte[] toHash(String credential, int userId); 198 protected void handleStrongAuthRequiredChanged(int strongAuthFlags, int userId) { 200 super.handleStrongAuthRequiredChanged(strongAuthFlags, userId); 205 public int getStrongAuthForUser(int userId) { 207 return super.getStrongAuthForUser(userId); 375 public void onCleanupUser(int userId) { 376 hideEncryptionNotification(new UserHandle(userId)); 379 public void onUnlockUser(final int userId) { 381 hideEncryptionNotification(new UserHandle(userId)); [all...] |
LockSettingsStorage.java | 108 public void writeKeyValue(String key, String value, int userId) { 109 writeKeyValue(mOpenHelper.getWritableDatabase(), key, value, userId); 112 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { 115 cv.put(COLUMN_USERID, userId); 121 new String[] {key, Integer.toString(userId)}); 124 mCache.putKeyValue(key, value, userId); 131 public String readKeyValue(String key, String defaultValue, int userId) { 134 if (mCache.hasKeyValue(key, userId)) { 135 return mCache.peekKeyValue(key, defaultValue, userId); 145 new String[] { Integer.toString(userId), key } [all...] |
TextServicesManagerService.java | 133 void onSwitchUser(@UserIdInt int userId) { 135 resetInternalState(userId); 139 void onUnlockUser(@UserIdInt int userId) { 142 if (userId != currentUserId) { 160 int userId = UserHandle.USER_SYSTEM; 162 userId = ActivityManagerNative.getDefault().getCurrentUser().id; 169 !mSystemReady || !mUserManager.isUserUnlockingOrUnlocked(userId); 170 mSettings = new TextServicesSettings(context.getContentResolver(), userId, 174 resetInternalState(userId); 177 private void resetInternalState(@UserIdInt int userId) { [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
ActivityStarter.java | 254 final int userId = aInfo != null ? UserHandle.getUserId(aInfo.applicationInfo.uid) : 0; 257 Slog.i(TAG, "START u" + userId + " {" + intent.toShortString(true, true, true, false) 394 mInterceptor.setStates(userId, realCallingPid, realCallingUid, startFlags, callingPackage); 421 aInfo.packageName, userId)) { 424 callingUid, userId, null, null, 0, new Intent[]{intent}, 443 rInfo = mSupervisor.resolveIntent(intent, resolvedType, userId); 448 Slog.i(TAG, "START u" + userId + " {" + intent.toShortString(true, true, 465 userId); 528 String ephemeralPackage, String callingPackage, String resolvedType, int userId) { 535 Binder.getCallingUid(), userId, null /*token*/, null /*resultWho*/, 1 [all...] |
ProcessRecord.java | 66 final int userId; // user of process. 210 pw.print(prefix); pw.print("user #"); pw.print(userId); 450 userId = UserHandle.getUserId(_uid); 606 EventLog.writeEvent(EventLogTags.AM_KILL, userId, pid, processName, setAdj, reason); 635 sb.append(userId); [all...] |
UserController.java | 229 final int userId = uss.mHandle.getIdentifier(); 231 Slog.d(TAG, "Finishing user boot " + userId); 234 if (mStartedUsers.get(userId) != uss) return; 241 getUserManagerInternal().setUserState(userId, uss.state); 248 intent.putExtra(Intent.EXTRA_USER_HANDLE, userId); 253 AppOpsManager.OP_NONE, null, true, false, MY_PID, SYSTEM_UID, userId); 258 if (getUserManager().isManagedProfile(userId)) { 259 final UserInfo parent = getUserManager().getProfileParent(userId); 262 Slog.d(TAG, "User " + userId + " (parent " + parent.id 264 maybeUnlockUser(userId); [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
ContentService.java | 121 * Map from userId to providerPackageName to [clientPackageName, uri] to 138 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 141 invalidateCacheLocked(userId, packageName, null); 258 public String[] getPackages(String authority, int userId) { 259 return getSyncAdapterPackagesForAuthorityAsUser(authority, userId); 475 int userId = UserHandle.getCallingUserId(); 484 syncManager.scheduleSync(account, userId, uId, authority, extras, 521 public void syncAsUser(SyncRequest request, int userId) { 522 enforceCrossUserPermission(userId, "no permission to request sync as user: " + userId); [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
MediaRouterService.java | 118 public void registerClientAsUser(IMediaRouterClient client, String packageName, int userId) { 129 final int resolvedUserId = ActivityManager.handleIncomingUser(pid, uid, userId, 286 int userId = ActivityManager.getCurrentUser(); 287 if (mCurrentUserId != userId) { 289 mCurrentUserId = userId; // do this first 297 UserRecord newUser = mUserRecords.get(userId); 312 int pid, String packageName, int userId, boolean trusted) { 317 UserRecord userRecord = mUserRecords.get(userId); 319 userRecord = new UserRecord(userId); 330 mUserRecords.put(userId, userRecord) [all...] |
MediaSessionService.java | 191 public void onStartUser(int userId) { 192 if (DEBUG) Log.d(TAG, "onStartUser: " + userId); 197 public void onSwitchUser(int userId) { 198 if (DEBUG) Log.d(TAG, "onSwitchUser: " + userId); 203 public void onStopUser(int userId) { 204 if (DEBUG) Log.d(TAG, "onStopUser: " + userId); 206 UserRecord user = mUserRecords.get(userId); 248 for (int userId : userIds) { 249 mCurrentUserIdList.add(userId); 256 for (int userId : mCurrentUserIdList) [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
PackageInstallerSession.java | 108 final int userId; 206 params.appPackageName, PackageManager.GET_SIGNATURES /*flags*/, userId); 208 params.appPackageName, 0, userId); 230 Context context, PackageManagerService pm, Looper looper, int sessionId, int userId, 239 this.userId = userId; 541 statusReceiver, sessionId, mIsInstallerDeviceOwner, userId); 656 user = new UserHandle(userId); [all...] |
/frameworks/base/services/core/java/com/android/server/trust/ |
TrustManagerService.java | 174 int userId; 182 return component.equals(o.component) && userId == o.userId; 187 return component.hashCode() * 31 + userId; 198 public void updateTrust(int userId, int flags) { 199 boolean managed = aggregateIsTrustManaged(userId); 200 dispatchOnTrustManagedChanged(managed, userId); 201 if (mStrongAuthTracker.isTrustAllowedForUser(userId) 202 && isTrustUsuallyManagedInternal(userId) != managed) { 203 updateTrustUsuallyManaged(userId, managed) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
Utils.java | 344 int userId = user != null ? user.id : UserHandle.myUserId(); 351 assignDefaultPhoto(context, userId); 357 um.setUserIcon(userId, icon); 363 public static void assignDefaultPhoto(Context context, int userId) { 365 Bitmap bitmap = getDefaultUserIconAsBitmap(userId); 366 um.setUserIcon(userId, bitmap); 640 * Returns true if the userId passed in is a managed profile. 644 public static boolean isManagedProfile(@NonNull UserManager userManager, int userId) { 648 UserInfo userInfo = userManager.getUserInfo(userId); [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
AccountSettings.java | 230 final int userId = profileData.userInfo.id; 231 UserDialogs.createRemoveDialog(getActivity(), userId, 235 mUm.removeUser(userId);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
PrivateVolumeSettings.java | 298 private void addDetailItems(PreferenceGroup category, boolean showShared, int userId) { 301 addItem(category, itemsToAdd[i], null, userId); 305 private void addItem(PreferenceGroup group, int titleRes, CharSequence title, int userId) { 311 if (userId != UserHandle.myUserId()) { 331 item.userHandle = userId; 469 final int userId = (pref instanceof StorageItemPreference ? 515 mSharedVolume, userId); 539 intent.putExtra(Intent.EXTRA_USER_ID, userId); 562 final int userId = item.userHandle; 577 updatePreference(item, details.appsSize.get(userId)); [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageDetail.java | 108 int userId = UserHandle.myUserId(); 167 userId = UserHandle.getUserId(uid.getUid()); 280 R.string.details_title, null, new UserHandle(userId)); 686 final int userId = UserHandle.getUserId(mUid); 688 am.forceStopPackageAsUser(mPackages[i], userId); [all...] |
/packages/apps/Settings/src/com/android/settings/search/ |
Index.java | 640 final int userId = cursor.getInt(COLUMN_INDEX_RAW_USER_ID); 657 data.userId = userId; 755 raw.userId); [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
AppRestrictionsFragment.java | 93 /** Key for extra passed in from calling fragment for the userId of the user being edited */ 350 final int userId = mUser.getIdentifier(); 375 | PackageManager.GET_SIGNATURES, userId); [all...] |
UserSettings.java | 96 /** UserId of the user being removed */ 98 /** UserId of the user that was just added */ 404 private void onRemoveUserClicked(int userId) { 407 mRemovingUserId = userId; 427 private void onManageUserClicked(int userId, boolean newUser) { 429 if (userId == UserPreference.USERID_GUEST_DEFAULTS) { 437 UserInfo info = mUserManager.getUserInfo(userId); 440 extras.putInt(RestrictedProfileSettings.EXTRA_USER_ID, userId); 451 extras.putInt(UserDetailsSettings.EXTRA_USER_ID, userId); 462 private void onUserCreated(int userId) { [all...] |