/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 58 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument 59 return mLauncherApps.getActivityList(packageName, user); in getActivityList() 63 public LauncherActivityInfo resolveActivity(Intent intent, UserHandle user) { in resolveActivity() argument 64 return mLauncherApps.resolveActivity(intent, user); in resolveActivity() 68 public void startActivityForProfile(ComponentName component, UserHandle user, in startActivityForProfile() argument 70 mLauncherApps.startMainActivity(component, user, sourceBounds, opts); in startActivityForProfile() 74 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() argument 75 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo() 80 mLauncherApps.getActivityList(packageName, user); in getApplicationInfo() 100 public void showAppDetailsForProfile(ComponentName component, UserHandle user, in showAppDetailsForProfile() argument [all …]
|
D | LauncherAppsCompat.java | 40 void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument 41 void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument 42 void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument 43 void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing); in onPackagesAvailable() argument 44 void onPackagesUnavailable(String[] packageNames, UserHandle user, boolean replacing); in onPackagesUnavailable() argument 45 void onPackagesSuspended(String[] packageNames, UserHandle user); in onPackagesSuspended() argument 46 void onPackagesUnsuspended(String[] packageNames, UserHandle user); in onPackagesUnsuspended() argument 48 UserHandle user); in onShortcutsChanged() argument 73 UserHandle user); in getActivityList() argument 75 UserHandle user); in resolveActivity() argument [all …]
|
D | UserManagerCompatVNMr1.java | 47 public boolean isQuietModeEnabled(UserHandle user) { in isQuietModeEnabled() argument 48 return mUserManager.isQuietModeEnabled(user); in isQuietModeEnabled() 52 public boolean isUserUnlocked(UserHandle user) { in isUserUnlocked() argument 53 return mUserManager.isUserUnlocked(user); in isUserUnlocked() 71 public long getSerialNumberForUser(UserHandle user) { in getSerialNumberForUser() argument 74 Long serial = mUserToSerialMap.get(user); in getSerialNumberForUser() 78 return mUserManager.getSerialNumberForUser(user); in getSerialNumberForUser() 97 public boolean requestQuietModeEnabled(boolean enableQuietMode, UserHandle user) { in requestQuietModeEnabled() argument 108 for (UserHandle user : users) { in enableAndResetCache() 109 long serial = mUserManager.getSerialNumberForUser(user); in enableAndResetCache() [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 134 protected abstract long getSerialNumberForUser(UserHandle user); in getSerialNumberForUser() argument 183 private BitmapInfo makeDefaultIcon(UserHandle user) { in makeDefaultIcon() argument 185 return li.makeDefaultIcon(user); in makeDefaultIcon() 192 public synchronized void remove(ComponentName componentName, UserHandle user) { in remove() argument 193 mCache.remove(new ComponentKey(componentName, user)); in remove() 199 private void removeFromMemCacheLocked(String packageName, UserHandle user) { in removeFromMemCacheLocked() argument 203 && key.user.equals(user)) { in removeFromMemCacheLocked() 215 public synchronized void removeIconsForPkg(String packageName, UserHandle user) { in removeIconsForPkg() argument 216 removeFromMemCacheLocked(packageName, user); in removeIconsForPkg() 217 long userSerial = getSerialNumberForUser(user); in removeIconsForPkg() [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_shortcuts_overrides/com/android/launcher3/shortcuts/ |
D | DeepShortcutManager.java | 84 List<String> shortcutIds, UserHandle user) { in queryForFullDetails() argument 85 return query(FLAG_GET_ALL, packageName, null, shortcutIds, user); in queryForFullDetails() 93 UserHandle user) { in queryForShortcutsContainer() argument 95 activity.getPackageName(), activity, null, user); in queryForShortcutsContainer() 105 UserHandle user = key.user; in unpinShortcut() local 106 List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user)); in unpinShortcut() 109 mLauncherApps.pinShortcuts(packageName, pinnedIds, user); in unpinShortcut() 124 UserHandle user = key.user; in pinShortcut() local 125 List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user)); in pinShortcut() 128 mLauncherApps.pinShortcuts(packageName, pinnedIds, user); in pinShortcut() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AllAppsList.java | 80 if (findAppInfo(info.componentName, info.user) != null) { in add() 127 public void addPackage(Context context, String packageName, UserHandle user) { in addPackage() argument 130 user); in addPackage() 133 add(new AppInfo(context, info, user), info); in addPackage() 140 public void removePackage(String packageName, UserHandle user) { in removePackage() argument 144 if (info.user.equals(user) && packageName.equals(info.componentName.getPackageName())) { in removePackage() 165 public void updateIconsAndLabels(HashSet<String> packages, UserHandle user, in updateIconsAndLabels() argument 168 if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) { in updateIconsAndLabels() 178 public void updatePackage(Context context, String packageName, UserHandle user) { in updatePackage() argument 181 user); in updatePackage() [all …]
|
D | LauncherModel.java | 209 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() argument 211 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageChanged() 215 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument 216 onPackagesRemoved(user, packageName); in onPackageRemoved() 219 public void onPackagesRemoved(UserHandle user, String... packages) { in onPackagesRemoved() argument 221 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packages)); in onPackagesRemoved() 225 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument 227 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageAdded() 231 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 234 new PackageUpdatedTask(PackageUpdatedTask.OP_UPDATE, user, packageNames)); in onPackagesAvailable() [all …]
|
D | InstallShortcutReceiver.java | 144 && !launcherApps.isPackageEnabledForProfile(pkg, info.user)) { 164 UserHandle user) { in removeFromInstallQueue() argument 186 user.equals(decoder.user)) { in removeFromInstallQueue() 280 result.add(ShortcutKey.fromIntent(decoder.launcherIntent, decoder.user)); in getPendingShortcuts() 337 final UserHandle user; field in InstallShortcutReceiver.PendingInstallShortcutInfo 342 public PendingInstallShortcutInfo(Intent data, UserHandle user, Context context) { in PendingInstallShortcutInfo() argument 348 this.user = user; in PendingInstallShortcutInfo() 365 user = info.getUser(); in PendingInstallShortcutInfo() 382 user = info.getUserHandle(); in PendingInstallShortcutInfo() 399 user = info.getProfile(); in PendingInstallShortcutInfo() [all …]
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserSettings.java | 395 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile() local 396 if (user.iconPath == null || user.iconPath.equals("")) { in loadProfile() 398 copyMeProfilePhoto(getActivity(), user); in loadProfile() local 400 return user.name; in loadProfile() 754 UserInfo user; in addUserNow() local 757 user = createTrustedUser(); in addUserNow() 759 user = createRestrictedProfile(); in addUserNow() 761 if (user == null) { in addUserNow() 772 MESSAGE_SETUP_USER, user.id, user.serialNumber)); in addUserNow() 776 MESSAGE_CONFIG_USER, user.id, user.serialNumber)); in addUserNow() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserSettings.java | 391 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile() local 392 if (user.iconPath == null || user.iconPath.equals("")) { in loadProfile() 394 copyMeProfilePhoto(getActivity(), user); in loadProfile() local 396 return user.name; in loadProfile() 750 UserInfo user; in addUserNow() local 753 user = createTrustedUser(); in addUserNow() 755 user = createRestrictedProfile(); in addUserNow() 757 if (user == null) { in addUserNow() 768 MESSAGE_SETUP_USER, user.id, user.serialNumber)); in addUserNow() 772 MESSAGE_CONFIG_USER, user.id, user.serialNumber)); in addUserNow() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Role.java | 264 public boolean isAvailableAsUser(@NonNull UserHandle user, @NonNull Context context) { in isAvailableAsUser() argument 266 return mBehavior.isAvailableAsUser(this, user, context); in isAvailableAsUser() 323 public boolean isVisibleAsUser(@NonNull UserHandle user, @NonNull Context context) { in isVisibleAsUser() argument 325 return mBehavior.isVisibleAsUser(this, user, context); in isVisibleAsUser() 350 public Intent getManageIntentAsUser(@NonNull UserHandle user, @NonNull Context context) { in getManageIntentAsUser() argument 352 return mBehavior.getManageIntentAsUser(this, user, context); in getManageIntentAsUser() 365 @NonNull UserHandle user, @NonNull Context context) { in preparePreferenceAsUser() argument 367 mBehavior.preparePreferenceAsUser(this, preference, user, context); in preparePreferenceAsUser() 380 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in prepareApplicationPreferenceAsUser() argument 383 mBehavior.prepareApplicationPreferenceAsUser(this, preference, applicationInfo, user, in prepareApplicationPreferenceAsUser() [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 17 package com.android.car.user; 202 Integer user = userHandle; in setUserLockStatus() local 206 mBackgroundUsersToRestart.remove(user); in setUserLockStatus() 207 mBackgroundUsersToRestart.add(0, user); in setUserLockStatus() 241 for (Integer user : users) { in startAllBackgroundUsers() 242 if (user == mCarUserManagerHelper.getCurrentForegroundUserId()) { in startAllBackgroundUsers() 246 if (mAm.startUserInBackground(user)) { in startAllBackgroundUsers() 247 if (mUserManager.isUserUnlockingOrUnlocked(user)) { in startAllBackgroundUsers() 249 startedUsers.add(user); in startAllBackgroundUsers() 250 } else if (mAm.unlockUser(user, null, null, null)) { in startAllBackgroundUsers() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/ |
D | LocationAccessCheck.java | 226 UserHandle user = mUserManager.getUserForSerialNumber( in loadAlreadyNotifiedPackagesLocked() local 229 if (user != null) { in loadAlreadyNotifiedPackagesLocked() 230 packages.add(new UserPackage(mContext, pkg, user)); in loadAlreadyNotifiedPackagesLocked() 268 Long.valueOf(mUserManager.getSerialNumberForUser(userPkg.user)).toString()); in safeAlreadyNotifiedPackagesLocked() 282 private void markAsNotified(@NonNull String pkg, @NonNull UserHandle user) { in markAsNotified() argument 285 alreadyNotifiedPackages.add(new UserPackage(mContext, pkg, user)); in markAsNotified() 295 private void createPermissionReminderChannel(@NonNull UserHandle user) { in createPermissionReminderChannel() argument 297 NotificationManager.class, user); in createPermissionReminderChannel() 397 LocationManager.class, pkg.user); in addLocationNotificationIfNeeded() 447 UserHandle user = getUserHandleForUid(packageOps.getUid()); in getLocationUsersWithNoNotificationYetLocked() local [all …]
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | dialer_impression.proto | 28 // Number not identified as spam and the user tapped the block/report spam 32 // Number identified as spam and the user tapped on the block number call 37 // This does not deal with whether the user reported this spam or not while 39 // REPORT_AS_NOT_SPAM_VIA_UNBLOCK_NUMBER. If the user had not reported it as 44 // Number was identified as spam, and the user tapped that it was not spam 47 // Confirmation dialog in which the user confirmed that the number was not 52 // This happens when the user had initially blocked a number and also 58 // A number that was identified as spam and the user proceeded to block it. 60 // the user also acknowledged that they were going to be reporting this as 61 // spam. There is no option for the user in this case to not report it as [all …]
|
D | interaction_event.proto | 22 // The user blocked a number from the Call Log screen 25 // The user blocked a number from the Call details screen 28 // The user blocked a number from the Management screen 31 // The user unblocked a number from the Call Log screen 34 // The user unblocked a number from the Call details screen 37 // The user unblocked a number from the Management screen 40 // The user blocked numbers from contacts marked as send to voicemail 43 // The user blocked a number then undid the block 46 // The user unblocked a number then undid the unblock
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | LoaderTask.java | 311 for (UserHandle user : mUserManager.getUserProfiles()) { in loadWorkspace() 312 long serialNo = mUserManager.getSerialNumberForUser(user); in loadWorkspace() 313 allUsers.put(serialNo, user); in loadWorkspace() 314 quietMode.put(serialNo, mUserManager.isQuietModeEnabled(user)); in loadWorkspace() 316 boolean userUnlocked = mUserManager.isUserUnlocked(user); in loadWorkspace() 321 mShortcutManager.queryForPinnedShortcuts(null, user); in loadWorkspace() 344 if (c.user == null) { in loadWorkspace() 366 if (allUsers.indexOfValue(c.user) < 0) { in loadWorkspace() 385 mLauncherApps.isPackageEnabledForProfile(targetPkg, c.user); in loadWorkspace() 392 if (mLauncherApps.isActivityEnabledForProfile(cn, c.user)) { in loadWorkspace() [all …]
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/util/ |
D | ComponentKey.java | 27 public final UserHandle user; field in ComponentKey 31 public ComponentKey(ComponentName componentName, UserHandle user) { in ComponentKey() argument 32 if (componentName == null || user == null) { in ComponentKey() 36 this.user = user; in ComponentKey() 37 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey() 49 return other.componentName.equals(componentName) && other.user.equals(user); in equals() 57 return componentName.flattenToString() + "#" + user; in toString()
|
/packages/services/Car/user/car-user-lib/src/android/car/userlib/ |
D | CarUserManagerHelper.java | 516 for (UserInfo user : users) { in getManagedProfilesCount() 517 if (user.isManagedProfile()) { in getManagedProfilesCount() 596 UserInfo user = mUserManager.getUserInfo(userId); in isPersistentUser() local 597 return !user.isEphemeral(); in isPersistentUser() 758 public void grantAdminPermissions(UserInfo user) { in grantAdminPermissions() argument 764 mUserManager.setUserAdmin(user.id); in grantAdminPermissions() 767 setDefaultNonAdminRestrictions(user, /* enable= */ false); in grantAdminPermissions() 768 setOptionalNonAdminRestrictions(user, /* enable= */ false); in grantAdminPermissions() 798 UserInfo user = mUserManager.createUser(userName, UserInfo.FLAG_ADMIN); in createNewAdminUser() local 799 if (user == null) { in createNewAdminUser() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | IconCache.java | 86 protected long getSerialNumberForUser(UserHandle user) { in getSerialNumberForUser() argument 87 return mUserManager.getSerialNumberForUser(user); in getSerialNumberForUser() 103 public synchronized void updateIconsForPkg(String packageName, UserHandle user) { in updateIconsForPkg() argument 104 removeIconsForPkg(packageName, user); in updateIconsForPkg() 108 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg() 109 for (LauncherActivityInfo app : mLauncherApps.getActivityList(packageName, user)) { in updateIconsForPkg() 160 application.user, () -> null, mLauncherActivityInfoCachingLogic, in updateTitleAndIcon() 162 if (entry.icon != null && !isDefaultIcon(entry.icon, application.user)) { in updateTitleAndIcon() 184 info.applyFrom(getDefaultIcon(info.user)); in getTitleAndIcon() 189 getTitleAndIcon(info, () -> mLauncherApps.resolveActivity(intent, info.user), in getTitleAndIcon() [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 40 import com.android.car.user.CarUserService; 167 private void startOrBindServicesForUser(UserHandle user) { in startOrBindServicesForUser() argument 168 boolean unlocked = mUserManager.isUserUnlockingOrUnlocked(user); in startOrBindServicesForUser() 169 boolean systemUser = UserHandle.SYSTEM.equals(user); in startOrBindServicesForUser() 177 startOrBindService(service, user); in startOrBindServicesForUser() 203 private void startOrBindService(VendorServiceInfo service, UserHandle user) { in startOrBindService() argument 204 ConnectionKey key = ConnectionKey.of(service, user); in startOrBindService() 212 private void stopOrUnbindService(VendorServiceInfo service, UserHandle user) { in stopOrUnbindService() argument 213 ConnectionKey key = ConnectionKey.of(service, user); in stopOrUnbindService() 273 UserHandle user) { in VendorServiceConnection() argument [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/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | DefaultAppActivity.java | 56 public static Intent createIntent(@NonNull String roleName, @NonNull UserHandle user, in createIntent() argument 60 .putExtra(Intent.EXTRA_USER, user); in createIntent() 77 UserHandle user = intent.getParcelableExtra(Intent.EXTRA_USER); in onCreate() local 79 if (user == null) { in onCreate() 80 user = Process.myUserHandle(); in onCreate() 89 if (!role.isAvailableAsUser(user, this)) { in onCreate() 94 if (!role.isVisibleAsUser(user, this)) { in onCreate() 103 fragment = AutoDefaultAppFragment.newInstance(roleName, user); in onCreate() 105 fragment = HandheldDefaultAppFragment.newInstance(roleName, user); in onCreate()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ItemInfoMatcher.java | 91 static ItemInfoMatcher ofUser(UserHandle user) { in ofUser() argument 92 return (info, cn) -> info.user.equals(user); in ofUser() 95 static ItemInfoMatcher ofComponents(HashSet<ComponentName> components, UserHandle user) { in ofComponents() argument 96 return (info, cn) -> components.contains(cn) && info.user.equals(user); in ofComponents() 99 static ItemInfoMatcher ofPackages(HashSet<String> packageNames, UserHandle user) { in ofPackages() argument 100 return (info, cn) -> packageNames.contains(cn.getPackageName()) && info.user.equals(user); in ofPackages()
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | BaseIconFactory.java | 118 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument 120 return createBadgedIconBitmap(icon, user, shrinkNonAdaptiveIcons, false, null); in createBadgedIconBitmap() 123 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument 125 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, false); in createBadgedIconBitmap() 128 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument 130 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, isInstantApp, null); in createBadgedIconBitmap() 133 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument 137 return createBadgedIconBitmap(icon, user, shrinkNonAdaptiveIcons, isInstantApp, scale); in createBadgedIconBitmap() 157 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument 173 if (user != null) { in createBadgedIconBitmap() [all …]
|