/packages/apps/Launcher3/src/com/android/launcher3/ |
D | IconCache.java | 180 private Bitmap makeDefaultIcon(UserHandleCompat user) { in makeDefaultIcon() argument 182 Drawable d = mUserManager.getBadgedDrawableForUser(unbadged, user); in makeDefaultIcon() 196 public synchronized void remove(ComponentName componentName, UserHandleCompat user) { in remove() argument 197 mCache.remove(new ComponentKey(componentName, user)); in remove() 203 private void removeFromMemCacheLocked(String packageName, UserHandleCompat user) { in removeFromMemCacheLocked() argument 207 && key.user.equals(user)) { in removeFromMemCacheLocked() 219 public synchronized void updateIconsForPkg(String packageName, UserHandleCompat user) { in updateIconsForPkg() argument 220 removeIconsForPkg(packageName, user); in updateIconsForPkg() 224 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg() 225 … for (LauncherActivityInfoCompat app : mLauncherApps.getActivityList(packageName, user)) { in updateIconsForPkg() [all …]
|
D | AllAppsList.java | 70 if (findActivity(data, info.componentName, info.user)) { in add() 96 public void addPackage(Context context, String packageName, UserHandleCompat user) { in addPackage() argument 99 user); in addPackage() 102 add(new AppInfo(context, info, user, mIconCache)); in addPackage() 109 public void removePackage(String packageName, UserHandleCompat user) { in removePackage() argument 114 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage() 121 public void updateIconsAndLabels(HashSet<String> packages, UserHandleCompat user, in updateIconsAndLabels() argument 124 if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) { in updateIconsAndLabels() 134 public void updatePackage(Context context, String packageName, UserHandleCompat user) { in updatePackage() argument 137 user); in updatePackage() [all …]
|
D | LauncherModel.java | 201 ArrayList<ShortcutInfo> removed, UserHandleCompat user); in bindShortcutsChanged() argument 205 ArrayList<AppInfo> appInfos, UserHandleCompat user, int reason); in bindComponentsRemoved() argument 339 final UserHandleCompat user = UserHandleCompat.myUserHandle(); in updateSessionDisplayInfo() 350 si.promisedIntent, user, in updateSessionDisplayInfo() 368 new ArrayList<ShortcutInfo>(), user); in updateSessionDisplayInfo() 520 if (shortcutExists(context, item.getIntent(), item.user)) { in addAndBindAddedWorkspaceItems() 897 @Thunk boolean shortcutExists(Context context, Intent intent, UserHandleCompat user) { in shortcutExists() argument 922 if (targetIntent != null && info.user.equals(user)) { in shortcutExists() 1051 final String pn, final UserHandleCompat user) { in getItemsByPackageName() argument 1055 return cn.getPackageName().equals(pn) && info.user.equals(user); in getItemsByPackageName() [all …]
|
D | InstallShortcutReceiver.java | 91 UserHandleCompat user) { in removeFromInstallQueue() argument 110 && user.equals(info.user))) { in removeFromInstallQueue() 252 final UserHandleCompat user; field in InstallShortcutReceiver.PendingInstallShortcutInfo 263 user = UserHandleCompat.myUserHandle(); in PendingInstallShortcutInfo() 274 user = info.getUser(); in PendingInstallShortcutInfo() 276 launchIntent = AppInfo.makeLaunchIntent(context, info, user); in PendingInstallShortcutInfo() 290 .getSerialNumberForUser(user)) in encodeToString() 367 UserHandleCompat user = UserManagerCompat.getInstance(context) in decode() local 369 if (user == null) { in decode() 374 .resolveActivity(launcherIntent, user); in decode() [all …]
|
D | WidgetPreviewLoader.java | 173 values.put(CacheDb.COLUMN_USER, mUserManager.getSerialNumberForUser(key.user)); in writeToDb() 188 public void removePackage(String packageName, UserHandleCompat user) { in removePackage() argument 189 removePackage(packageName, user, mUserManager.getSerialNumberForUser(user)); in removePackage() 192 private void removePackage(String packageName, UserHandleCompat user, long userSerial) { in removePackage() argument 218 final UserHandleCompat user; in removeObsoletePreviews() local 221 user = UserHandleCompat.myUserHandle(); in removeObsoletePreviews() 225 user = mManager.getUser(info); in removeObsoletePreviews() 229 final long userId = mUserManager.getSerialNumberForUser(user); in removeObsoletePreviews() 271 UserHandleCompat user = mUserManager.getUserForSerialNumber(userId); in removeObsoletePreviews() local 273 removePackage(pkg, user, userId); in removeObsoletePreviews() [all …]
|
D | AppInfo.java | 81 public AppInfo(Context context, LauncherActivityInfoCompat info, UserHandleCompat user, in AppInfo() argument 89 intent = makeLaunchIntent(context, info, user); in AppInfo() 90 this.user = user; in AppInfo() 122 + " user=" + user + ")"; in toString() 142 return new ComponentKey(componentName, user); in toComponentKey() 146 UserHandleCompat user) { in makeLaunchIntent() argument 147 long serialNumber = UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in makeLaunchIntent()
|
D | ShortcutInfo.java | 154 Bitmap icon, UserHandleCompat user) { in ShortcutInfo() argument 160 this.user = user; in ShortcutInfo() 176 user = info.user; in ShortcutInfo() 203 iconCache.getTitleAndIcon(this, promisedIntent != null ? promisedIntent : intent, user, in updateIcon() 248 + " dropPos=" + Arrays.toString(dropPos) + " user=" + user + ")"; in toString() 288 shortcut.user = info.getUser(); in fromActivityInfo()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserSettings.java | 329 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile() local 330 if (user.iconPath == null || user.iconPath.equals("")) { in loadProfile() 331 assignProfilePhoto(user); in loadProfile() 333 return user.name; in loadProfile() 407 UserHandle user = new UserHandle(userId); in createLimitedUser() local 408 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in createLimitedUser() 413 mUserManager.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user); in createLimitedUser() 420 am.addSharedAccount(account, user); in createLimitedUser() 662 UserInfo user; in addUserNow() local 665 user = createTrustedUser(); in addUserNow() [all …]
|
D | RestrictionUtils.java | 59 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { in getRestrictions() argument 63 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() 79 UserHandle user) { in setRestrictions() argument 81 Bundle userRestrictions = um.getUserRestrictions(user); in setRestrictions() 88 Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF, user.getIdentifier()); in setRestrictions() 91 um.setUserRestrictions(userRestrictions, user); in setRestrictions()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AllAppsList.java | 61 if (findActivity(data, info.componentName, info.user)) { in add() 87 public void addPackage(Context context, String packageName, UserHandle user) { in addPackage() argument 91 user); in addPackage() 94 add(new ApplicationInfo(info, user, mIconCache, null)); in addPackage() 101 public void removePackage(String packageName, UserHandle user) { in removePackage() argument 106 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage() 118 public void updatePackage(Context context, String packageName, UserHandle user) { in updatePackage() argument 122 user); in updatePackage() 129 if (user.equals(applicationInfo.user) in updatePackage() 131 if (!findActivity(matches, component, user)) { in updatePackage() [all …]
|
D | IconCache.java | 53 public UserHandle user; field in IconCache.CacheKey 55 CacheKey(ComponentName componentName, UserHandle user) { in CacheKey() argument 57 this.user = user; in CacheKey() 62 return componentName.hashCode() + user.hashCode(); in hashCode() 68 return other.componentName.equals(componentName) && other.user.equals(user); in equals() 95 public Drawable getFullResIcon(Resources resources, int iconId, UserHandle user) { in getFullResIcon() argument 106 return mPackageManager.getUserBadgedIcon(d, user); in getFullResIcon() 109 public Drawable getFullResIcon(String packageName, int iconId, UserHandle user) { in getFullResIcon() argument 121 return getFullResIcon(resources, iconId, user); in getFullResIcon() 127 public Drawable getFullResIcon(ResolveInfo info, UserHandle user) { in getFullResIcon() argument [all …]
|
D | LauncherModel.java | 170 boolean matchPackageNamesOnly, UserHandle user); in bindComponentsRemoved() argument 548 item.user = um.getUserForSerialNumber(serialNumber); in getItemsInLocalCoordinates() 550 if (item.user != null) { in getItemsInLocalCoordinates() 801 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() argument 803 PackageUpdatedTask.OP_UPDATE, new String[] { packageName }, user)); in onPackageChanged() 807 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument 809 PackageUpdatedTask.OP_REMOVE, new String[] { packageName }, user)); in onPackageRemoved() 813 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument 815 PackageUpdatedTask.OP_ADD, new String[] { packageName }, user)); in onPackageAdded() 819 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument [all …]
|
D | ItemInfo.java | 118 UserHandle user; field in ItemInfo 121 user = android.os.Process.myUserHandle(); in ItemInfo() 133 user = info.user; in ItemInfo() 156 user = (UserHandle) intent.getParcelableExtra(EXTRA_PROFILE); in updateUser() 176 .getSerialNumberForUser(user); in onAddToDatabase() 221 + " spanY=" + spanY + " dropPos=" + dropPos + " user=" + user in toString()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 50 UserHandleCompat user) { in getActivityList() argument 52 user.getUser()); in getActivityList() 64 public LauncherActivityInfoCompat resolveActivity(Intent intent, UserHandleCompat user) { in resolveActivity() argument 65 LauncherActivityInfo activity = mLauncherApps.resolveActivity(intent, user.getUser()); in resolveActivity() 73 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument 75 mLauncherApps.startMainActivity(component, user.getUser(), sourceBounds, opts); in startActivityForProfile() 78 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument 79 mLauncherApps.startAppDetailsActivity(component, user.getUser(), null, null); in showAppDetailsForProfile() 101 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument 102 return mLauncherApps.isPackageEnabled(packageName, user.getUser()); in isPackageEnabledForProfile() [all …]
|
D | UserManagerCompatVL.java | 57 for (UserHandle user : users) { in enableAndResetCache() 58 long serial = mUserManager.getSerialNumberForUser(user); in enableAndResetCache() 59 UserHandleCompat userCompat = UserHandleCompat.fromUser(user); in enableAndResetCache() 83 for (UserHandle user : users) { in getUserProfiles() 84 compatUsers.add(UserHandleCompat.fromUser(user)); in getUserProfiles() 90 public Drawable getBadgedDrawableForUser(Drawable unbadged, UserHandleCompat user) { in getBadgedDrawableForUser() argument 91 return mPm.getUserBadgedIcon(unbadged, user.getUser()); in getBadgedDrawableForUser() 95 public CharSequence getBadgedLabelForUser(CharSequence label, UserHandleCompat user) { in getBadgedLabelForUser() argument 96 if (user == null) { in getBadgedLabelForUser() 99 return mPm.getUserBadgedLabel(label, user.getUser()); in getBadgedLabelForUser() [all …]
|
D | LauncherAppsCompatV16.java | 60 UserHandleCompat user) { in getActivityList() argument 73 public LauncherActivityInfoCompat resolveActivity(Intent intent, UserHandleCompat user) { in resolveActivity() argument 81 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument 91 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument 116 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument 120 public boolean isActivityEnabledForProfile(ComponentName component, UserHandleCompat user) { in isActivityEnabledForProfile() argument 152 final UserHandleCompat user = UserHandleCompat.myUserHandle(); in onReceive() local 166 callback.onPackageChanged(packageName, user); in onReceive() 171 callback.onPackageRemoved(packageName, user); in onReceive() 179 callback.onPackageAdded(packageName, user); in onReceive() [all …]
|
D | LauncherAppsCompat.java | 40 void onPackageRemoved(String packageName, UserHandleCompat user); in onPackageRemoved() argument 41 void onPackageAdded(String packageName, UserHandleCompat user); in onPackageAdded() argument 42 void onPackageChanged(String packageName, UserHandleCompat user); in onPackageChanged() argument 43 void onPackagesAvailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesAvailable() argument 44 void onPackagesUnavailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesUnavailable() argument 67 UserHandleCompat user); in getActivityList() argument 69 UserHandleCompat user); in resolveActivity() argument 70 public abstract void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument 72 public abstract void showAppDetailsForProfile(ComponentName component, UserHandleCompat user); in showAppDetailsForProfile() argument 75 public abstract boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user); in isPackageEnabledForProfile() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | EmailAddress.java | 69 public EmailAddress(final String user, final String host) { in EmailAddress() argument 70 this(user, host, false); in EmailAddress() 80 public EmailAddress(final String user, final String host, final boolean i18n) { in EmailAddress() argument 82 this.user = user; in EmailAddress() 101 user = emailString.substring(0, atIndex); in parseEmail() 109 return user + "@" + host; in toString() 118 if ((user == null) || (host == null)) { in isValidInternal() 122 if ((user.length() == 0) || (host.length() == 0)) { in isValidInternal() 167 if (user.startsWith("\"")) { in isValidInternal() 173 if (ANY_WHITESPACE.indexIn(user) >= 0) { in isValidInternal() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ComponentKey.java | 29 public final UserHandleCompat user; field in ComponentKey 33 public ComponentKey(ComponentName componentName, UserHandleCompat user) { in ComponentKey() argument 35 assert (user != null); in ComponentKey() 37 this.user = user; in ComponentKey() 38 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey() 53 user = UserManagerCompat.getInstance(context) in ComponentKey() 58 user = UserHandleCompat.myUserHandle(); in ComponentKey() 60 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey() 68 if (user != null) { in flattenToString() 69 flattened += "#" + UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in flattenToString() [all …]
|
D | ManagedProfileHeuristic.java | 70 public static ManagedProfileHeuristic get(Context context, UserHandleCompat user) { in get() argument 71 if (Utilities.ATLEAST_LOLLIPOP && !UserHandleCompat.myUserHandle().equals(user)) { in get() 72 return new ManagedProfileHeuristic(context, user); in get() 89 private ManagedProfileHeuristic(Context context, UserHandleCompat user) { in ManagedProfileHeuristic() argument 91 mUser = user; in ManagedProfileHeuristic() 95 mUserSerial = userManager.getSerialNumberForUser(user); in ManagedProfileHeuristic() 96 mUserCreationTime = userManager.getUserCreationTime(user); in ManagedProfileHeuristic() 304 for (UserHandleCompat user : users) { in processAllUsers() 305 addAllUserKeys(userManager.getSerialNumberForUser(user), validKeys); in processAllUsers() 334 for (UserHandleCompat user : userManager.getUserProfiles()) { in markExistingUsersForNoFolderCreation() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
D | VendorPolicyLoader.java | 239 final String user = emailParts[0]; in expandTemplates() local 241 incomingUri = expandTemplate(incomingUriTemplate, email, user); in expandTemplates() 242 incomingUsername = expandTemplate(incomingUsernameTemplate, email, user); in expandTemplates() 243 outgoingUri = expandTemplate(outgoingUriTemplate, email, user); in expandTemplates() 244 outgoingUsername = expandTemplate(outgoingUsernameTemplate, email, user); in expandTemplates() 253 final String user = emailParts[0]; in expandAlternateTemplates() local 255 incomingUri = expandTemplate(altIncomingUriTemplate, email, user); in expandAlternateTemplates() 256 incomingUsername = expandTemplate(altIncomingUsernameTemplate, email, user); in expandAlternateTemplates() 257 outgoingUri = expandTemplate(altOutgoingUriTemplate, email, user); in expandAlternateTemplates() 258 outgoingUsername = expandTemplate(altOutgoingUsernameTemplate, email, user); in expandAlternateTemplates() [all …]
|
/packages/apps/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 161 static int term_damage(VTermRect rect, void *user) { in term_damage() argument 162 Terminal* term = reinterpret_cast<Terminal*>(user); in term_damage() 172 static int term_moverect(VTermRect dest, VTermRect src, void *user) { in term_moverect() argument 173 Terminal* term = reinterpret_cast<Terminal*>(user); in term_moverect() 184 static int term_movecursor(VTermPos pos, VTermPos oldpos, int visible, void *user) { in term_movecursor() argument 185 Terminal* term = reinterpret_cast<Terminal*>(user); in term_movecursor() 195 static int term_settermprop(VTermProp prop, VTermValue *val, void *user) { in term_settermprop() argument 196 Terminal* term = reinterpret_cast<Terminal*>(user); in term_settermprop() 220 static int term_setmousefunc(VTermMouseFunc func, void *data, void *user) { in term_setmousefunc() argument 221 Terminal* term = reinterpret_cast<Terminal*>(user); in term_setmousefunc() [all …]
|
/packages/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 421 final UserInfo user = users.get(i); in updateMwi() local 422 final UserHandle userHandle = user.getUserHandle(); in updateMwi() 425 && !user.isManagedProfile()) { in updateMwi() 491 final UserInfo user = users.get(i); in updateCfi() local 492 if (user.isManagedProfile()) { in updateCfi() 495 UserHandle userHandle = user.getUserHandle(); in updateCfi() 533 final UserInfo user = users.get(i); in showDataDisconnectedRoaming() local 534 if (user.isManagedProfile()) { in showDataDisconnectedRoaming() 537 UserHandle userHandle = user.getUserHandle(); in showDataDisconnectedRoaming() 581 final UserInfo user = users.get(i); in showNetworkSelection() local [all …]
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallerActivity.java | 83 } else if (!dialogInfo.user.equals(android.os.Process.myUserHandle())) { in onCreateDialog() 84 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog() 140 UserHandle user; field in UninstallerActivity.DialogInfo 172 mDialogInfo.user = intent.getParcelableExtra(Intent.EXTRA_USER); in onCreate() 173 if (mDialogInfo.user == null) { in onCreate() 174 mDialogInfo.user = android.os.Process.myUserHandle(); in onCreate() 182 PackageManager.GET_UNINSTALLED_PACKAGES, mDialogInfo.user.getIdentifier()); in onCreate() 199 mDialogInfo.user.getIdentifier()); in onCreate() 228 newIntent.putExtra(Intent.EXTRA_USER, mDialogInfo.user); in startUninstallProgress()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | RestrictionUtils.java | 50 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { in getRestrictions() argument 54 Bundle userRestrictions = um.getUserRestrictions(user); in getRestrictions() 70 UserHandle user) { in setRestrictions() argument 72 Bundle userRestrictions = um.getUserRestrictions(user); in setRestrictions() 79 Secure.LOCATION_MODE, Secure.LOCATION_MODE_OFF, user.getIdentifier()); in setRestrictions() 82 um.setUserRestrictions(userRestrictions, user); in setRestrictions()
|