Home
last modified time | relevance | path

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

12345

/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatVL.java50 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 …]
DLauncherAppsCompat.java41 void onPackageRemoved(String packageName, UserHandleCompat user); in onPackageRemoved() argument
42 void onPackageAdded(String packageName, UserHandleCompat user); in onPackageAdded() argument
43 void onPackageChanged(String packageName, UserHandleCompat user); in onPackageChanged() argument
44 void onPackagesAvailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesAvailable() argument
45 void onPackagesUnavailable(String[] packageNames, UserHandleCompat user, boolean replacing); in onPackagesUnavailable() argument
46 void onPackagesSuspended(String[] packageNames, UserHandleCompat user); in onPackagesSuspended() argument
47 void onPackagesUnsuspended(String[] packageNames, UserHandleCompat user); in onPackagesUnsuspended() argument
70 UserHandleCompat user); in getActivityList() argument
72 UserHandleCompat user); in resolveActivity() argument
73 public abstract void startActivityForProfile(ComponentName component, UserHandleCompat user, in startActivityForProfile() argument
[all …]
DUserManagerCompatVL.java55 for (UserHandle user : users) { in enableAndResetCache()
56 long serial = mUserManager.getSerialNumberForUser(user); in enableAndResetCache()
57 UserHandleCompat userCompat = UserHandleCompat.fromUser(user); in enableAndResetCache()
81 for (UserHandle user : users) { in getUserProfiles()
82 compatUsers.add(UserHandleCompat.fromUser(user)); in getUserProfiles()
88 public CharSequence getBadgedLabelForUser(CharSequence label, UserHandleCompat user) { in getBadgedLabelForUser() argument
89 if (user == null) { in getBadgedLabelForUser()
92 return mPm.getUserBadgedLabel(label, user.getUser()); in getBadgedLabelForUser()
96 public long getUserCreationTime(UserHandleCompat user) { in getUserCreationTime() argument
98 return mUserManager.getUserCreationTime(user.getUser()); in getUserCreationTime()
[all …]
DLauncherAppsCompatV16.java60 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
129 public boolean isPackageSuspendedForProfile(String packageName, UserHandleCompat user) { in isPackageSuspendedForProfile() argument
156 final UserHandleCompat user = UserHandleCompat.myUserHandle(); in onReceive() local
170 callback.onPackageChanged(packageName, user); in onReceive()
175 callback.onPackageRemoved(packageName, user); in onReceive()
[all …]
DUserHandleCompat.java28 private UserHandleCompat(UserHandle user) { in UserHandleCompat() argument
29 mUser = user; in UserHandleCompat()
44 public static UserHandleCompat fromUser(UserHandle user) { in fromUser() argument
45 if (user == null) { in fromUser()
48 return new UserHandleCompat(user); in fromUser()
99 UserHandle user = intent.getParcelableExtra(Intent.EXTRA_USER); in fromIntent() local
100 if (user != null) { in fromIntent()
101 return UserHandleCompat.fromUser(user); in fromIntent()
/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 …]
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()
/packages/apps/Launcher3/src/com/android/launcher3/
DAllAppsList.java72 if (findActivity(data, info.componentName, info.user)) { in add()
98 public void addPackage(Context context, String packageName, UserHandleCompat user) { in addPackage() argument
101 user); in addPackage()
104 add(new AppInfo(context, info, user, mIconCache)); in addPackage()
111 public void removePackage(String packageName, UserHandleCompat user) { in removePackage() argument
116 if (info.user.equals(user) && packageName.equals(component.getPackageName())) { in removePackage()
126 public void updatePackageFlags(StringFilter pkgFilter, UserHandleCompat user, FlagOp op) { in updatePackageFlags() argument
131 if (info.user.equals(user) && pkgFilter.matches(component.getPackageName())) { in updatePackageFlags()
138 public void updateIconsAndLabels(HashSet<String> packages, UserHandleCompat user, in updateIconsAndLabels() argument
141 if (info.user.equals(user) && packages.contains(info.componentName.getPackageName())) { in updateIconsAndLabels()
[all …]
DIconCache.java182 private Bitmap makeDefaultIcon(UserHandleCompat user) { in makeDefaultIcon() argument
184 return Utilities.createBadgedIconBitmap(unbadged, user, mContext); in makeDefaultIcon()
190 public synchronized void remove(ComponentName componentName, UserHandleCompat user) { in remove() argument
191 mCache.remove(new ComponentKey(componentName, user)); in remove()
197 private void removeFromMemCacheLocked(String packageName, UserHandleCompat user) { in removeFromMemCacheLocked() argument
201 && key.user.equals(user)) { in removeFromMemCacheLocked()
213 public synchronized void updateIconsForPkg(String packageName, UserHandleCompat user) { in updateIconsForPkg() argument
214 removeIconsForPkg(packageName, user); in updateIconsForPkg()
218 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg()
219 … for (LauncherActivityInfoCompat app : mLauncherApps.getActivityList(packageName, user)) { in updateIconsForPkg()
[all …]
DAppInfo.java82 public AppInfo(Context context, LauncherActivityInfoCompat info, UserHandleCompat user, in AppInfo() argument
84 this(context, info, user, iconCache, in AppInfo()
85 UserManagerCompat.getInstance(context).isQuietModeEnabled(user)); in AppInfo()
88 public AppInfo(Context context, LauncherActivityInfoCompat info, UserHandleCompat user, in AppInfo() argument
101 intent = makeLaunchIntent(context, info, user); in AppInfo()
102 this.user = user; in AppInfo()
134 + " user=" + user + ")"; in toString()
153 return new ComponentKey(componentName, user); in toComponentKey()
157 UserHandleCompat user) { in makeLaunchIntent() argument
158 long serialNumber = UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in makeLaunchIntent()
DLauncherModel.java196 ArrayList<ShortcutInfo> removed, UserHandleCompat user); in bindShortcutsChanged() argument
201 UserHandleCompat user); in bindWorkspaceComponentsRemoved() argument
336 final UserHandleCompat user = UserHandleCompat.myUserHandle(); in updateSessionDisplayInfo()
347 si.promisedIntent, user, in updateSessionDisplayInfo()
365 new ArrayList<ShortcutInfo>(), user); in updateSessionDisplayInfo()
517 if (shortcutExists(context, item.getIntent(), item.user)) { in addAndBindAddedWorkspaceItems()
894 @Thunk boolean shortcutExists(Context context, Intent intent, UserHandleCompat user) { in shortcutExists() argument
919 if (targetIntent != null && info.user.equals(user)) { in shortcutExists()
1048 final String pn, final UserHandleCompat user) { in getItemsByPackageName() argument
1052 return cn.getPackageName().equals(pn) && info.user.equals(user); in getItemsByPackageName()
[all …]
DItemInfo.java122 public UserHandleCompat user; field in ItemInfo
125 user = UserHandleCompat.myUserHandle(); in ItemInfo()
144 user = info.user; in copyFrom()
168 long serialNumber = UserManagerCompat.getInstance(context).getSerialNumberForUser(user); in onAddToDatabase()
198 + " user=" + user + ")"; in toString()
DShortcutInfo.java159 Bitmap icon, UserHandleCompat user) { in ShortcutInfo() argument
165 this.user = user; in ShortcutInfo()
180 user = info.user; in ShortcutInfo()
207 iconCache.getTitleAndIcon(this, promisedIntent != null ? promisedIntent : intent, user, in updateIcon()
252 + " dropPos=" + Arrays.toString(dropPos) + " user=" + user + ")"; in toString()
292 shortcut.user = info.getUser(); in fromActivityInfo()
DInfoDropTarget.java53 final UserHandleCompat user; in startDetailsActivityForInfo() local
55 user = ((ItemInfo) info).user; in startDetailsActivityForInfo()
57 user = UserHandleCompat.myUserHandle(); in startDetailsActivityForInfo()
61 launcher.startApplicationDetailsActivity(componentName, user); in startDetailsActivityForInfo()
DInstallShortcutReceiver.java91 UserHandleCompat user) { in removeFromInstallQueue() argument
109 && user.equals(info.user))) { in removeFromInstallQueue()
263 final UserHandleCompat user; field in InstallShortcutReceiver.PendingInstallShortcutInfo
274 user = UserHandleCompat.myUserHandle(); in PendingInstallShortcutInfo()
285 user = info.getUser(); in PendingInstallShortcutInfo()
287 launchIntent = AppInfo.makeLaunchIntent(context, info, user); in PendingInstallShortcutInfo()
301 .getSerialNumberForUser(user)) in encodeToString()
378 UserHandleCompat user = UserManagerCompat.getInstance(context) in decode() local
380 if (user == null) { in decode()
385 .resolveActivity(launcherIntent, user); in decode()
[all …]
DUninstallDropTarget.java84 final UserHandleCompat user = ((ItemInfo) d.dragInfo).user; in completeDrop() local
92 getContext(), packageName, user); in completeDrop()
104 final UserHandleCompat user = ((ItemInfo) info).user; in startUninstallActivity() local
106 componentInfo.first, componentInfo.second, user); in startUninstallActivity()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java69 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/
DComponentKey.java29 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 …]
DManagedProfileHeuristic.java71 public static ManagedProfileHeuristic get(Context context, UserHandleCompat user) { in get() argument
72 if (Utilities.ATLEAST_LOLLIPOP && !UserHandleCompat.myUserHandle().equals(user)) { in get()
73 return new ManagedProfileHeuristic(context, user); in get()
91 private ManagedProfileHeuristic(Context context, UserHandleCompat user) { in ManagedProfileHeuristic() argument
93 mUser = user; in ManagedProfileHeuristic()
97 mUserSerial = userManager.getSerialNumberForUser(user); in ManagedProfileHeuristic()
98 mUserCreationTime = userManager.getUserCreationTime(user); in ManagedProfileHeuristic()
311 for (UserHandleCompat user : users) { in processAllUsers()
312 addAllUserKeys(userManager.getSerialNumberForUser(user), validKeys); in processAllUsers()
341 for (UserHandleCompat user : userManager.getUserProfiles()) { in markExistingUsersForNoFolderCreation()
[all …]
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java332 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile() local
333 if (user.iconPath == null || user.iconPath.equals("")) { in loadProfile()
335 Utils.copyMeProfilePhoto(getActivity(), user); in loadProfile() local
337 return user.name; in loadProfile()
663 UserInfo user; in addUserNow() local
666 user = createTrustedUser(); in addUserNow()
668 user = createRestrictedProfile(); in addUserNow()
670 if (user == null) { in addUserNow()
678 MESSAGE_SETUP_USER, user.id, user.serialNumber)); in addUserNow()
681 MESSAGE_CONFIG_USER, user.id, user.serialNumber)); in addUserNow()
[all …]
/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/services/Telephony/src/com/android/phone/
DNotificationMgr.java330 final UserInfo user = users.get(i); in updateMwi() local
331 final UserHandle userHandle = user.getUserHandle(); in updateMwi()
334 && !user.isManagedProfile()) { in updateMwi()
453 final UserInfo user = users.get(i); in updateCfi() local
454 if (user.isManagedProfile()) { in updateCfi()
457 UserHandle userHandle = user.getUserHandle(); in updateCfi()
458 builder.setContentIntent(user.isAdmin() ? contentIntent : null); in updateCfi()
495 final UserInfo user = users.get(i); in showDataDisconnectedRoaming() local
496 if (user.isManagedProfile()) { in showDataDisconnectedRoaming()
499 UserHandle userHandle = user.getUserHandle(); in showDataDisconnectedRoaming()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DUninstallerActivity.java87 } else if (!dialogInfo.user.equals(android.os.Process.myUserHandle())) { in onCreateDialog()
88 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog()
158 UserHandle user; field in UninstallerActivity.DialogInfo
190 mDialogInfo.user = intent.getParcelableExtra(Intent.EXTRA_USER); in onCreate()
191 if (mDialogInfo.user == null) { in onCreate()
192 mDialogInfo.user = android.os.Process.myUserHandle(); in onCreate()
200 PackageManager.GET_UNINSTALLED_PACKAGES, mDialogInfo.user.getIdentifier()); in onCreate()
217 mDialogInfo.user.getIdentifier()); in onCreate()
246 newIntent.putExtra(Intent.EXTRA_USER, mDialogInfo.user); in startUninstallProgress()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp161 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 …]

12345