Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java76 public UserHandleCompat user; field in IconCache.CacheKey
78 CacheKey(ComponentName componentName, UserHandleCompat user) { in CacheKey() argument
80 this.user = user; in CacheKey()
85 return componentName.hashCode() + user.hashCode(); in hashCode()
91 return other.componentName.equals(componentName) && other.user.equals(user); in equals()
178 private Bitmap makeDefaultIcon(UserHandleCompat user) { in makeDefaultIcon() argument
180 Drawable d = mUserManager.getBadgedDrawableForUser(unbadged, user); in makeDefaultIcon()
194 public void remove(ComponentName componentName, UserHandleCompat user) { in remove() argument
196 mCache.remove(new CacheKey(componentName, user)); in remove()
203 public void remove(String packageName, UserHandleCompat user) { in remove() argument
[all …]
DAllAppsList.java73 if (findActivity(data, info.componentName, info.user)) { in add()
99 public void addPackage(Context context, String packageName, UserHandleCompat user) { in addPackage() argument
102 user); in addPackage()
106 add(new AppInfo(context, info, user, mIconCache, null)); in addPackage()
114 public void removePackage(String packageName, UserHandleCompat user) { in removePackage() argument
119 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage()
124 mIconCache.remove(packageName, user); in removePackage()
130 public void updatePackage(Context context, String packageName, UserHandleCompat user) { in updatePackage() argument
133 user); in updatePackage()
140 if (user.equals(applicationInfo.user) in updatePackage()
[all …]
DLauncherModel.java205 ArrayList<AppInfo> appInfos, UserHandleCompat user); in bindComponentsRemoved() argument
380 if (LauncherModel.appWasPromise(ctx, a.getIntent(), a.user)) { in addAppsToAllApps()
397 info.user); in addAppsToAllApps()
449 LauncherModel.appWasPromise(context, launchIntent, a.user)) { in addAndBindAddedWorkspaceApps()
907 static boolean appWasPromise(Context context, Intent intent, UserHandleCompat user) { in appWasPromise() argument
912 return !getItemsByPackageName(component.getPackageName(), user).isEmpty(); in appWasPromise()
949 item.user = userManager.getUserForSerialNumber(serialNumber); in getItemsInLocalCoordinates()
951 if (item.user != null) { in getItemsInLocalCoordinates()
1080 final String pn, final UserHandleCompat user) { in getItemsByPackageName() argument
1084 return cn.getPackageName().equals(pn) && info.user.equals(user); in getItemsByPackageName()
[all …]
DShortcutInfo.java129 Bitmap icon, UserHandleCompat user) { in ShortcutInfo() argument
135 this.user = user; in ShortcutInfo()
151 user = info.user; in ShortcutInfo()
177 mIcon = iconCache.getIcon(promisedIntent != null ? promisedIntent : intent, user); in updateIcon()
178 usingFallbackIcon = iconCache.isDefaultIcon(mIcon, user); in updateIcon()
216 + " dropPos=" + Arrays.toString(dropPos) + " user=" + user + ")"; in toString()
DItemInfo.java120 UserHandleCompat user; field in ItemInfo
123 user = UserHandleCompat.myUserHandle(); in ItemInfo()
141 user = info.user; in copyFrom()
164 long serialNumber = UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in onAddToDatabase()
215 + " user=" + user + ")"; in toString()
DInfoDropTarget.java87 final UserHandleCompat user; in acceptDrop() local
89 user = ((ItemInfo) d.dragInfo).user; in acceptDrop()
91 user = UserHandleCompat.myUserHandle(); in acceptDrop()
95 mLauncher.startApplicationDetailsActivity(componentName, user); in acceptDrop()
DAppInfo.java79 public AppInfo(Context context, LauncherActivityInfoCompat info, UserHandleCompat user, in AppInfo() argument
91 long serialNumber = UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in AppInfo()
93 this.user = user; in AppInfo()
125 + " user=" + user + ")"; in toString()
DWorkspace.java4635 void removeItemsByPackageName(final ArrayList<String> packages, final UserHandleCompat user) {
4656 && info.user.equals(user)) {
4666 removeItemsByComponentName(cns, user);
4672 void removeItemsByApplicationInfo(final ArrayList<AppInfo> appInfos, UserHandleCompat user) {
4680 removeItemsByComponentName(cns, user);
4684 final UserHandleCompat user) {
4703 if (componentNames.contains(cn) && info.user.equals(user)) {
4716 if (componentNames.contains(cn) && info.user.equals(user)) {
4808 ArrayList<AppInfo> filtered = appsPerUser.get(info.user);
4811 appsPerUser.put(info.user, filtered);
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java326 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile() local
327 if (user.iconPath == null || user.iconPath.equals("")) { in loadProfile()
328 assignProfilePhoto(user); in loadProfile()
330 return user.name; in loadProfile()
404 UserHandle user = new UserHandle(userId); in createLimitedUser() local
405 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in createLimitedUser()
410 mUserManager.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user); in createLimitedUser()
417 am.addSharedAccount(account, user); in createLimitedUser()
666 UserInfo user = null; in addUserNow() local
669 user = createTrustedUser(); in addUserNow()
[all …]
DRestrictionUtils.java59 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/
DAllAppsList.java61 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 …]
DIconCache.java53 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 …]
DLauncherModel.java170 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 …]
DItemInfo.java118 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()
DInfoDropTarget.java85 final UserHandle user; in acceptDrop() local
87 user = ((ItemInfo) d.dragInfo).user; in acceptDrop()
89 user = android.os.Process.myUserHandle(); in acceptDrop()
92 mLauncher.startApplicationDetailsActivity(componentName, user); in acceptDrop()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java48 UserHandleCompat user) { in getActivityList() argument
50 user.getUser()); in getActivityList()
62 public LauncherActivityInfoCompat resolveActivity(Intent intent, UserHandleCompat user) { in resolveActivity() argument
63 LauncherActivityInfo activity = mLauncherApps.resolveActivity(intent, user.getUser()); in resolveActivity()
71 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
73 mLauncherApps.startMainActivity(component, user.getUser(), sourceBounds, opts); in startActivityForProfile()
76 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument
77 mLauncherApps.startAppDetailsActivity(component, user.getUser(), null, null); in showAppDetailsForProfile()
99 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument
100 return mLauncherApps.isPackageEnabled(packageName, user.getUser()); in isPackageEnabledForProfile()
[all …]
DLauncherAppsCompatV16.java58 UserHandleCompat user) { in getActivityList() argument
71 public LauncherActivityInfoCompat resolveActivity(Intent intent, UserHandleCompat user) { in resolveActivity() argument
79 public void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
89 public void showAppDetailsForProfile(ComponentName component, UserHandleCompat user) { in showAppDetailsForProfile() argument
114 public boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user) { in isPackageEnabledForProfile() argument
123 public boolean isActivityEnabledForProfile(ComponentName component, UserHandleCompat user) { in isActivityEnabledForProfile() argument
155 final UserHandleCompat user = UserHandleCompat.myUserHandle(); in onReceive() local
169 callback.onPackageChanged(packageName, user); in onReceive()
174 callback.onPackageRemoved(packageName, user); in onReceive()
182 callback.onPackageAdded(packageName, user); in onReceive()
[all …]
DLauncherAppsCompat.java38 void onPackageRemoved(String packageName, UserHandleCompat user); in onPackageRemoved() argument
39 void onPackageAdded(String packageName, UserHandleCompat user); in onPackageAdded() argument
40 void onPackageChanged(String packageName, UserHandleCompat user); in onPackageChanged() argument
41 void onPackagesAvailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesAvailable() argument
42 void onPackagesUnavailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesUnavailable() argument
65 UserHandleCompat user); in getActivityList() argument
67 UserHandleCompat user); in resolveActivity() argument
68 public abstract void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
70 public abstract void showAppDetailsForProfile(ComponentName component, UserHandleCompat user); in showAppDetailsForProfile() argument
73 public abstract boolean isPackageEnabledForProfile(String packageName, UserHandleCompat user); in isPackageEnabledForProfile() argument
[all …]
DUserManagerCompatVL.java46 for (UserHandle user : users) { in getUserProfiles()
47 compatUsers.add(UserHandleCompat.fromUser(user)); in getUserProfiles()
53 public Drawable getBadgedDrawableForUser(Drawable unbadged, UserHandleCompat user) { in getBadgedDrawableForUser() argument
54 return mPm.getUserBadgedIcon(unbadged, user.getUser()); in getBadgedDrawableForUser()
58 public CharSequence getBadgedLabelForUser(CharSequence label, UserHandleCompat user) { in getBadgedLabelForUser() argument
59 if (user == null) { in getBadgedLabelForUser()
62 return mPm.getUserBadgedLabel(label, user.getUser()); in getBadgedLabelForUser()
DUserHandleCompat.java28 private UserHandleCompat(UserHandle user) { in UserHandleCompat() argument
29 mUser = user; in UserHandleCompat()
43 static UserHandleCompat fromUser(UserHandle user) { in fromUser() argument
44 if (user == null) { in fromUser()
47 return new UserHandleCompat(user); in fromUser()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DVendorPolicyLoader.java239 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/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java83 } 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
171 mDialogInfo.user = intent.getParcelableExtra(Intent.EXTRA_USER); in onCreate()
172 if (mDialogInfo.user == null) { in onCreate()
173 mDialogInfo.user = android.os.Process.myUserHandle(); in onCreate()
181 PackageManager.GET_UNINSTALLED_PACKAGES, mDialogInfo.user.getIdentifier()); in onCreate()
198 mDialogInfo.user.getIdentifier()); in onCreate()
227 newIntent.putExtra(Intent.EXTRA_USER, mDialogInfo.user); in startUninstallProgress()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictionUtils.java50 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()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java356 String user = (userIndex >= 0 ? cursor.getString(userIndex) : "-1"); in findAlbums() local
362 String account = accounts.get(user); in findAlbums()
364 account = resolveAccount(user); in findAlbums()
365 accounts.put(user, account); in findAlbums()
370 id = constructId(PICASA_POSTS_TYPE + ":" + user); in findAlbums()
375 String uploadId = constructId(PICASA_UPLOAD_TYPE + ":" + user); in findAlbums()
399 " of type " + type + " owned by " + user); in findAlbums()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationStation.java69 public int user; field in NotificationStation.HistoricalNotificationInfo
190 info.user = sbn.getUserId(); in loadNotifications()
191 info.icon = loadIconDrawable(info.pkg, info.user, sbn.getNotification().icon); in loadNotifications()
192 info.pkgicon = loadPackageIconDrawable(info.pkg, info.user); in loadNotifications()
215 if (info.user == UserHandle.USER_ALL in loadNotifications()
216 || info.user == currentUserId) { in loadNotifications()

1234