/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 63 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList() argument 64 return mLauncherApps.getActivityList(packageName, user); in getActivityList() 68 public LauncherActivityInfo resolveActivity(Intent intent, UserHandle user) { in resolveActivity() argument 69 return mLauncherApps.resolveActivity(intent, user); in resolveActivity() 73 public void startActivityForProfile(ComponentName component, UserHandle user, in startActivityForProfile() argument 75 mLauncherApps.startMainActivity(component, user, sourceBounds, opts); in startActivityForProfile() 79 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) { in getApplicationInfo() argument 80 final boolean isPrimaryUser = Process.myUserHandle().equals(user); in getApplicationInfo() 85 mLauncherApps.getActivityList(packageName, user); in getApplicationInfo() 105 public void showAppDetailsForProfile(ComponentName component, UserHandle user, in showAppDetailsForProfile() argument [all …]
|
D | LauncherAppsCompat.java | 42 default void onPackageRemoved(String packageName, UserHandle user) { } in onPackageRemoved() argument 43 default void onPackageAdded(String packageName, UserHandle user) { } in onPackageAdded() argument 44 default void onPackageChanged(String packageName, UserHandle user) { } in onPackageChanged() argument 45 default void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 47 default void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 49 default void onPackagesSuspended(String[] packageNames, UserHandle user) { } in onPackagesSuspended() argument 50 default void onPackagesUnsuspended(String[] packageNames, UserHandle user) { } in onPackagesUnsuspended() argument 52 UserHandle user) { } in onShortcutsChanged() argument 77 UserHandle user); in getActivityList() argument 79 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 | 137 protected abstract long getSerialNumberForUser(UserHandle user); in getSerialNumberForUser() argument 186 private BitmapInfo makeDefaultIcon(UserHandle user) { in makeDefaultIcon() argument 188 return li.makeDefaultIcon(user); in makeDefaultIcon() 195 public synchronized void remove(ComponentName componentName, UserHandle user) { in remove() argument 196 mCache.remove(new ComponentKey(componentName, user)); in remove() 202 private void removeFromMemCacheLocked(String packageName, UserHandle user) { in removeFromMemCacheLocked() argument 206 && key.user.equals(user)) { in removeFromMemCacheLocked() 218 public synchronized void removeIconsForPkg(String packageName, UserHandle user) { in removeIconsForPkg() argument 219 removeFromMemCacheLocked(packageName, user); in removeIconsForPkg() 220 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 | 67 List<String> shortcutIds, UserHandle user) { in queryForFullDetails() argument 68 return query(FLAG_GET_ALL, packageName, null, shortcutIds, user); in queryForFullDetails() 76 UserHandle user) { in queryForShortcutsContainer() argument 79 activity.getPackageName(), activity, null, user); in queryForShortcutsContainer() 89 UserHandle user = key.user; in unpinShortcut() local 90 List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user)); in unpinShortcut() 93 mLauncherApps.pinShortcuts(packageName, pinnedIds, user); in unpinShortcut() 106 UserHandle user = key.user; in pinShortcut() local 107 List<String> pinnedIds = extractIds(queryForPinnedShortcuts(packageName, user)); in pinShortcut() 110 mLauncherApps.pinShortcuts(packageName, pinnedIds, user); in pinShortcut() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | AllAppsList.java | 103 if (findAppInfo(info.componentName, info.user) != null) { in add() 116 .getApplicationInfo(installInfo.packageName, 0, installInfo.user); in addPromiseApp() 129 UserHandle user = Process.myUserHandle(); in updatePromiseInstallInfo() local 134 && appInfo.user.equals(user) in updatePromiseInstallInfo() 166 public void addPackage(Context context, String packageName, UserHandle user) { in addPackage() argument 169 user); in addPackage() 172 add(new AppInfo(context, info, user), info); in addPackage() 179 public void removePackage(String packageName, UserHandle user) { in removePackage() argument 183 if (info.user.equals(user) && packageName.equals(info.componentName.getPackageName())) { in removePackage() 203 public void updateIconsAndLabels(HashSet<String> packages, UserHandle user) { in updateIconsAndLabels() argument [all …]
|
D | LoaderTask.java | 316 for (UserHandle user : mUserManager.getUserProfiles()) { in loadWorkspace() 317 long serialNo = mUserManager.getSerialNumberForUser(user); in loadWorkspace() 318 allUsers.put(serialNo, user); in loadWorkspace() 319 quietMode.put(serialNo, mUserManager.isQuietModeEnabled(user)); in loadWorkspace() 321 boolean userUnlocked = mUserManager.isUserUnlocked(user); in loadWorkspace() 326 mShortcutManager.queryForPinnedShortcuts(null, user); in loadWorkspace() 349 if (c.user == null) { in loadWorkspace() 371 if (allUsers.indexOfValue(c.user) < 0) { in loadWorkspace() 390 mLauncherApps.isPackageEnabledForProfile(targetPkg, c.user); in loadWorkspace() 399 if (mLauncherApps.isActivityEnabledForProfile(cn, c.user)) { in loadWorkspace() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 137 public void updateSessionDisplayInfo(final String packageName, final UserHandle user) { in updateSessionDisplayInfo() argument 141 CacheDataUpdatedTask.OP_SESSION_UPDATE, user, packages)); in updateSessionDisplayInfo() 171 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() argument 173 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packageName)); in onPackageChanged() 176 public void onSessionFailure(String packageName, UserHandle user) { in onSessionFailure() argument 185 && user.equals(info.user) in onSessionFailure() 201 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument 202 onPackagesRemoved(user, packageName); in onPackageRemoved() 205 public void onPackagesRemoved(UserHandle user, String... packages) { in onPackagesRemoved() argument 208 enqueueModelUpdateTask(new PackageUpdatedTask(op, user, packages)); in onPackagesRemoved() [all …]
|
D | InstallShortcutReceiver.java | 138 && !launcherApps.isPackageEnabledForProfile(pkg, info.user) in flushQueueInBackground() 156 UserHandle user) { in removeFromInstallQueue() argument 178 user.equals(decoder.user)) { in removeFromInstallQueue() 252 public static void queueApplication(Intent data, UserHandle user, Context context) { in queueApplication() argument 253 queuePendingShortcutInfo(new PendingInstallShortcutInfo(data, context, user), in queueApplication() 269 result.add(ShortcutKey.fromIntent(decoder.launcherIntent, decoder.user)); in getPendingShortcuts() 326 final UserHandle user; field in InstallShortcutReceiver.PendingInstallShortcutInfo 331 public PendingInstallShortcutInfo(Intent data, UserHandle user, Context context) { in PendingInstallShortcutInfo() argument 337 this.user = user; in PendingInstallShortcutInfo() 358 user = info.getUser(); in PendingInstallShortcutInfo() [all …]
|
D | AppInfo.java | 41 int uc = a.user.hashCode() - b.user.hashCode(); 67 public AppInfo(Context context, LauncherActivityInfo info, UserHandle user) { in AppInfo() argument 68 this(info, user, UserManagerCompat.getInstance(context).isQuietModeEnabled(user)); in AppInfo() 71 public AppInfo(LauncherActivityInfo info, UserHandle user, boolean quietModeEnabled) { in AppInfo() argument 74 this.user = user; in AppInfo() 88 user = info.user; in AppInfo() 102 return new ComponentKey(componentName, user); in toComponentKey()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | Role.java | 275 public boolean isAvailableAsUser(@NonNull UserHandle user, @NonNull Context context) { in isAvailableAsUser() argument 277 return mBehavior.isAvailableAsUser(this, user, context); in isAvailableAsUser() 334 public boolean isVisibleAsUser(@NonNull UserHandle user, @NonNull Context context) { in isVisibleAsUser() argument 336 return mBehavior.isVisibleAsUser(this, user, context); in isVisibleAsUser() 361 public Intent getManageIntentAsUser(@NonNull UserHandle user, @NonNull Context context) { in getManageIntentAsUser() argument 363 return mBehavior.getManageIntentAsUser(this, user, context); in getManageIntentAsUser() 376 @NonNull UserHandle user, @NonNull Context context) { in preparePreferenceAsUser() argument 378 mBehavior.preparePreferenceAsUser(this, preference, user, context); in preparePreferenceAsUser() 392 @NonNull UserHandle user, @NonNull Context context) { in isApplicationVisibleAsUser() argument 394 return mBehavior.isApplicationVisibleAsUser(this, applicationInfo, user, context); in isApplicationVisibleAsUser() [all …]
|
D | RoleBehavior.java | 46 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser() argument 70 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser() argument 79 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser() argument 88 @NonNull TwoTargetPreference preference, @NonNull UserHandle user, in preparePreferenceAsUser() argument 95 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser() argument 106 @NonNull UserHandle user, @NonNull Context context) {} in prepareApplicationPreferenceAsUser() argument 121 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser() argument 150 @NonNull UserHandle user, @NonNull Context context) {} in onHolderSelectedAsUser() argument 155 default void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser() argument
|
/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/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/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/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 17 package com.android.car.user; 211 Integer user = userHandle; in setUserLockStatus() local 215 mBackgroundUsersToRestart.remove(user); in setUserLockStatus() 216 mBackgroundUsersToRestart.add(0, user); in setUserLockStatus() 250 for (Integer user : users) { in startAllBackgroundUsers() 251 if (user == mCarUserManagerHelper.getCurrentForegroundUserId()) { in startAllBackgroundUsers() 255 if (mAm.startUserInBackground(user)) { in startAllBackgroundUsers() 256 if (mUserManager.isUserUnlockingOrUnlocked(user)) { in startAllBackgroundUsers() 258 startedUsers.add(user); in startAllBackgroundUsers() 259 } else if (mAm.unlockUser(user, null, null, null)) { in startAllBackgroundUsers() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/logging/ |
D | dialer_impression.proto | 27 // Number not identified as spam and the user tapped the block/report spam 31 // Number identified as spam and the user tapped on the block number call 36 // This does not deal with whether the user reported this spam or not while 38 // REPORT_AS_NOT_SPAM_VIA_UNBLOCK_NUMBER. If the user had not reported it as 43 // Number was identified as spam, and the user tapped that it was not spam 46 // Confirmation dialog in which the user confirmed that the number was not 51 // This happens when the user had initially blocked a number and also 57 // A number that was identified as spam and the user proceeded to block it. 59 // the user also acknowledged that they were going to be reporting this as 60 // spam. There is no option for the user in this case to not report it as [all …]
|
D | interaction_event.proto | 21 // The user blocked a number from the Call Log screen 24 // The user blocked a number from the Call details screen 27 // The user blocked a number from the Management screen 30 // The user unblocked a number from the Call Log screen 33 // The user unblocked a number from the Call details screen 36 // The user unblocked a number from the Management screen 39 // The user blocked numbers from contacts marked as send to voicemail 42 // The user blocked a number then undid the block 45 // The user unblocked a number then undid the unblock
|
/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 | 510 for (UserInfo user : users) { in getManagedProfilesCount() 511 if (user.isManagedProfile()) { in getManagedProfilesCount() 590 UserInfo user = mUserManager.getUserInfo(userId); in isPersistentUser() local 591 return !user.isEphemeral(); in isPersistentUser() 752 public void grantAdminPermissions(UserInfo user) { in grantAdminPermissions() argument 758 mUserManager.setUserAdmin(user.id); in grantAdminPermissions() 761 setDefaultNonAdminRestrictions(user, /* enable= */ false); in grantAdminPermissions() 762 setOptionalNonAdminRestrictions(user, /* enable= */ false); in grantAdminPermissions() 792 UserInfo user = mUserManager.createUser(userName, UserInfo.FLAG_ADMIN); in createNewAdminUser() local 793 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/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()
|