Home
last modified time | relevance | path

Searched defs:user (Results 1 – 25 of 227) sorted by relevance

12345678910

/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/shadows/
DLShadowLauncherApps.java60 protected List<ShortcutInfo> getShortcuts(LauncherApps.ShortcutQuery query, UserHandle user) { in getShortcuts()
69 protected boolean isPackageEnabled(String packageName, UserHandle user) { in isPackageEnabled()
74 protected boolean isActivityEnabled(ComponentName component, UserHandle user) { in isActivityEnabled()
79 protected LauncherActivityInfo resolveActivity(Intent intent, UserHandle user) { in resolveActivity()
86 ActivityInfo activityInfo, UserHandle user) { in getLauncherActivityInfo()
94 public ApplicationInfo getApplicationInfo(String packageName, int flags, UserHandle user) in getApplicationInfo()
101 public List<LauncherActivityInfo> getActivityList(String packageName, UserHandle user) { in getActivityList()
129 UserHandle user) { in getShortcutConfigActivityList()
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/model/
DRoleBehavior.java46 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
70 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
79 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
88 @NonNull TwoTargetPreference preference, @NonNull UserHandle user, in preparePreferenceAsUser()
95 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser()
106 @NonNull UserHandle user, @NonNull Context context) {} in prepareApplicationPreferenceAsUser()
121 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
150 @NonNull UserHandle user, @NonNull Context context) {} in onHolderSelectedAsUser()
155 default void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser()
DHomeRoleBehavior.java56 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
96 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
103 @NonNull UserHandle user, @NonNull Context context) { in preparePreferenceAsUser()
130 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in isApplicationVisibleAsUser()
139 @NonNull UserHandle user, @NonNull Context context) { in prepareApplicationPreferenceAsUser()
172 @NonNull UserHandle user, @NonNull Context context) { in onHolderSelectedAsUser()
DDialerRoleBehavior.java43 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
52 @NonNull UserHandle user, @NonNull Context context) { in prepareApplicationPreferenceAsUser()
71 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DBrowserRoleBehavior.java68 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
84 @NonNull UserHandle user, @NonNull Context context) { in getQualifyingPackagesAsUserInternal()
110 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DRole.java327 public boolean isAvailableAsUser(@NonNull UserHandle user, @NonNull Context context) { in isAvailableAsUser()
446 public boolean isVisibleAsUser(@NonNull UserHandle user, @NonNull Context context) { in isVisibleAsUser()
470 public Intent getManageIntentAsUser(@NonNull UserHandle user, @NonNull Context context) { in getManageIntentAsUser()
485 @NonNull UserHandle user, @NonNull Context context) { in preparePreferenceAsUser()
501 @NonNull UserHandle user, @NonNull Context context) { in isApplicationVisibleAsUser()
517 @NonNull ApplicationInfo applicationInfo, @NonNull UserHandle user, in prepareApplicationPreferenceAsUser()
586 public List<String> getQualifyingPackagesAsUser(@NonNull UserHandle user, in getQualifyingPackagesAsUser()
648 @NonNull String packageName, @NonNull UserHandle user, @NonNull Context context) { in isPackageMinimallyQualifiedAsUser()
821 public void onHolderAddedAsUser(@NonNull String packageName, @NonNull UserHandle user, in onHolderAddedAsUser()
836 public void onHolderSelectedAsUser(@NonNull String packageName, @NonNull UserHandle user, in onHolderSelectedAsUser()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/utils/
DUserUtils.java46 public static boolean isWorkProfile(@NonNull UserHandle user, @NonNull Context context) { in isWorkProfile()
62 UserHandle user = Process.myUserHandle(); in getWorkProfile() local
88 public static Context getUserContext(@NonNull Context context, @NonNull UserHandle user) { in getUserContext()
/packages/apps/Launcher3/src_plugins/com/android/systemui/plugins/
DAppLaunchEventsPlugin.java35 void onStartShortcut(String packageName, String shortcutId, UserHandle user, String container); in onStartShortcut()
41 void onStartApp(ComponentName componentName, UserHandle user, String container); in onStartApp()
47 void onDismissApp(ComponentName componentName, UserHandle user, String container); in onDismissApp()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java147 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged()
153 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved()
157 public void onPackagesRemoved(UserHandle user, String... packages) { in onPackagesRemoved()
164 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded()
170 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable()
177 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable()
186 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended()
192 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended()
199 UserHandle user) { in onShortcutsChanged()
207 public void onAppIconChanged(String packageName, UserHandle user) { in onAppIconChanged()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DRestrictionUtils.java58 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { in getRestrictions()
78 UserHandle user) { in setRestrictions()
81 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user); in setRestrictions() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictionUtils.java49 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { in getRestrictions()
69 UserHandle user) { in setRestrictions()
73 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user); in setRestrictions() local
/packages/apps/Settings/src/com/android/settings/users/
DRestrictionUtils.java58 public static ArrayList<RestrictionEntry> getRestrictions(Context context, UserHandle user) { in getRestrictions()
78 UserHandle user) { in setRestrictions()
81 um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user); in setRestrictions() local
DEditUserInfoController.java66 void onPhotoChanged(UserHandle user, Drawable photo); in onPhotoChanged()
68 void onLabelChanged(UserHandle user, CharSequence label); in onLabelChanged()
130 String title, final OnContentChangedCallback callback, UserHandle user, in createDialog()
227 boolean canChangePhoto(Context context, UserInfo user) { in canChangePhoto()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DPackageInstallInfo.java34 public final UserHandle user; field in PackageInstallInfo
44 public PackageInstallInfo(String packageName, int state, int progress, UserHandle user) { in PackageInstallInfo()
56 public static PackageInstallInfo fromState(int state, String packageName, UserHandle user) { in fromState()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAppLaunchTracker.java50 public void onStartShortcut(String packageName, String shortcutId, UserHandle user, in onStartShortcut()
53 public void onStartApp(ComponentName componentName, UserHandle user, in onStartApp()
56 public void onDismissApp(ComponentName componentName, UserHandle user, in onDismissApp()
DAllAppsList.java163 UserHandle user = Process.myUserHandle(); in updatePromiseInstallInfo() local
200 public void addPackage(Context context, String packageName, UserHandle user) { in addPackage()
210 public void removePackage(String packageName, UserHandle user) { in removePackage()
234 public void updateIconsAndLabels(HashSet<String> packages, UserHandle user) { in updateIconsAndLabels()
247 public void updatePackage(Context context, String packageName, UserHandle user) { in updatePackage()
309 @NonNull UserHandle user) { in findAppInfo()
DSdCardAvailableReceiver.java59 UserHandle user = entry.getKey(); in onReceive() local
80 user, false); in onReceive() local
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java20 public ShortcutKey(String packageName, UserHandle user, String id) { in ShortcutKey()
25 public ShortcutKey(ComponentName componentName, UserHandle user) { in ShortcutKey()
46 public static ShortcutKey fromIntent(Intent intent, UserHandle user) { in fromIntent()
/packages/services/Car/service/src/com/android/car/systeminterface/
DActivityManagerInterface.java31 void sendBroadcastAsUser(Intent intent, UserHandle user); in sendBroadcastAsUser()
44 public void sendBroadcastAsUser(@RequiresPermission Intent intent, UserHandle user) { in sendBroadcastAsUser()
/packages/apps/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppActivity.java56 public static Intent createIntent(@NonNull String roleName, @NonNull UserHandle user, in createIntent()
77 UserHandle user = intent.getParcelableExtra(Intent.EXTRA_USER); in onCreate() local
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/service/
DLocationAccessCheck.java226 UserHandle user = mUserManager.getUserForSerialNumber( in loadAlreadyNotifiedPackagesLocked() local
282 private void markAsNotified(@NonNull String pkg, @NonNull UserHandle user) { in markAsNotified()
295 private void createPermissionReminderChannel(@NonNull UserHandle user) { in createPermissionReminderChannel()
447 UserHandle user = getUserHandleForUid(packageOps.getUid()); in getLocationUsersWithNoNotificationYetLocked() local
566 UserHandle user = getUserHandleForUid(pkg.applicationInfo.uid); in createNotificationForLocationUser() local
692 private void forgetAboutPackage(@NonNull String pkg, @NonNull UserHandle user) { in forgetAboutPackage()
731 UserHandle user = UserHandle.of(myUserId()); in isRunningInParentProfile() local
863 UserHandle user = getParcelableExtraSafe(intent, EXTRA_USER); in onReceive() local
885 UserHandle user = getParcelableExtraSafe(intent, EXTRA_USER); in onReceive() local
924 UserHandle user = getUserHandleForUid(intent.getIntExtra(EXTRA_UID, 0)); in onReceive() local
[all …]
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DInitialUserSetterTest.java146 UserInfo user = expectUserExists(USER_ID); in testSwitchUser_ok_nonGuest() local
161 UserInfo user = expectUserExists(UserHandle.USER_SYSTEM); in testSwitchUser_ok_systemUser() local
292 UserInfo user = newSecondaryUser(USER_ID); in testReplaceGuestIfNeeded_nonGuest() local
303 UserInfo user = newGuestUser(USER_ID, /* ephemeral= */ false); in testReplaceGuestIfNeeded_ok_nonEphemeralGuest() local
312 UserInfo user = newGuestUser(USER_ID, /* ephemeral= */ false); in testReplaceGuestIfNeeded_lockScreen() local
323 UserInfo user = newGuestUser(USER_ID, /* ephemeral= */ true); in testReplaceGuestIfNeeded_ok_ephemeralGuest() local
334 UserInfo user = newGuestUser(USER_ID, /* ephemeral= */ true); in testReplaceGuestIfNeeded_fail_ephemeralGuest_createFailed() local
342 UserInfo user = expectUserExists(USER_ID); in testCanReplaceGuestUser_NotGuest() local
349 UserInfo user = expectGuestExists(USER_ID, /* isEphemeral */true); in testCanReplaceGuestUser_Guest() local
356 UserInfo user = expectGuestExists(USER_ID, /* isEphemeral */true); in testCanReplaceGuestUser_GuestLocked() local
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DItemInfoMatcher.java91 static ItemInfoMatcher ofUser(UserHandle user) { in ofUser()
95 static ItemInfoMatcher ofComponents(HashSet<ComponentName> components, UserHandle user) { in ofComponents()
99 static ItemInfoMatcher ofPackages(HashSet<String> packageNames, UserHandle user) { in ofPackages()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DUserHelper.java73 @NonNull UserInfo user, boolean enable) { in setDefaultNonAdminRestrictions()
91 public static Bitmap assignDefaultIcon(@NonNull Context context, @NonNull UserInfo user) { in assignDefaultIcon()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DAppInfo.java73 public AppInfo(Context context, LauncherActivityInfo info, UserHandle user) { in AppInfo()
77 public AppInfo(LauncherActivityInfo info, UserHandle user, boolean quietModeEnabled) { in AppInfo()
100 UserHandle user, Intent intent) { in AppInfo()

12345678910