Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/core/java/android/hardware/display/
DAmbientDisplayConfiguration.java47 public boolean enabled(int user) { in enabled() argument
48 return pulseOnNotificationEnabled(user) in enabled()
49 || pulseOnLongPressEnabled(user) in enabled()
50 || alwaysOnEnabled(user) in enabled()
51 || wakeLockScreenGestureEnabled(user) in enabled()
52 || wakeDisplayGestureEnabled(user) in enabled()
53 || pickupGestureEnabled(user) in enabled()
54 || tapGestureEnabled(user) in enabled()
55 || doubleTapGestureEnabled(user); in enabled()
59 public boolean pulseOnNotificationEnabled(int user) { in pulseOnNotificationEnabled() argument
[all …]
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java169 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument
180 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument
190 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument
203 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument
217 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
233 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument
252 public void onPackagesSuspended(String[] packageNames, UserHandle user, in onPackagesSuspended() argument
254 onPackagesSuspended(packageNames, user); in onPackagesSuspended()
266 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument
285 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() argument
[all …]
DILauncherApps.aidl46 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities() argument
48 String callingPackage, in ComponentName component, in UserHandle user); in resolveActivity() argument
51 in UserHandle user); in startSessionDetailsActivityAsUser() argument
54 in Bundle opts, in UserHandle user); in startActivityAsUser() argument
57 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() argument
58 boolean isPackageEnabled(String callingPackage, String packageName, in UserHandle user); in isPackageEnabled() argument
59 Bundle getSuspendedPackageLauncherExtras(String packageName, in UserHandle user); in getSuspendedPackageLauncherExtras() argument
61 String callingPackage, in ComponentName component, in UserHandle user); in isActivityEnabled() argument
63 String callingPackage, String packageName, int flags, in UserHandle user); in getApplicationInfo() argument
66 in UserHandle user); in getAppUsageLimit() argument
[all …]
DRegisteredServicesCache.java122 UserInfo user = getUser(userId); in findOrCreateUserLocked() local
123 if (user != null) { in findOrCreateUserLocked()
124 AtomicFile file = createFileForUser(user.id); in findOrCreateUserLocked()
127 Slog.i(TAG, String.format("Loading u%s data from %s", user.id, file)); in findOrCreateUserLocked()
134 Log.w(TAG, "Error reading persistent services for user " + user.id, e); in findOrCreateUserLocked()
241 final UserServices<V> user = findOrCreateUserLocked(userId); in invalidateCache() local
242 user.services = null; in invalidateCache()
249 final UserServices<V> user = findOrCreateUserLocked(userId); in dump() local
250 if (user.services != null) { in dump()
251 fout.println("RegisteredServicesCache: " + user.services.size() + " services"); in dump()
[all …]
DIOnAppsChangedListener.aidl27 void onPackageRemoved(in UserHandle user, String packageName); in onPackageRemoved() argument
28 void onPackageAdded(in UserHandle user, String packageName); in onPackageAdded() argument
29 void onPackageChanged(in UserHandle user, String packageName); in onPackageChanged() argument
30 void onPackagesAvailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesAvailable() argument
31 void onPackagesUnavailable(in UserHandle user, in String[] packageNames, boolean replacing); in onPackagesUnavailable() argument
32 void onPackagesSuspended(in UserHandle user, in String[] packageNames, in onPackagesSuspended() argument
34 void onPackagesUnsuspended(in UserHandle user, in String[] packageNames); in onPackagesUnsuspended() argument
35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged() argument
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/
DRestrictedLockUtils.java37 public static EnforcedAdmin getProfileOrDeviceOwner(Context context, UserHandle user) { in getProfileOrDeviceOwner() argument
38 return getProfileOrDeviceOwner(context, null, user); in getProfileOrDeviceOwner()
42 Context context, String enforcedRestriction, UserHandle user) { in getProfileOrDeviceOwner() argument
43 if (user == null) { in getProfileOrDeviceOwner()
54 userContext = context.createPackageContextAsUser(context.getPackageName(), 0, user); in getProfileOrDeviceOwner()
62 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
64 if (Objects.equals(dpm.getDeviceOwnerUser(), user)) { in getProfileOrDeviceOwner()
67 return new EnforcedAdmin(adminComponent, enforcedRestriction, user); in getProfileOrDeviceOwner()
80 if (admin.user != null in sendShowAdminSupportDetailsIntent()
81 && isCurrentUserOrProfile(context, admin.user.getIdentifier())) { in sendShowAdminSupportDetailsIntent()
[all …]
/frameworks/base/proto/src/
Dsystem_messages.proto34 // Notify the user that a screenshot was captured.
38 // Warn the user about an invalid charger.
42 // Warn the user about low battery.
46 // Warn the user that the device has gotten warm.
50 // Warn the user that some notifications are hidden.
54 // Notify the user of a problem with a plugin (dev devices only).
58 // Notify the user that instant app is running.
62 // Notify the user that they should select an input method
66 // Notify the user about limited functionality before decryption
70 // Give the user a way out of car mode
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java263 final UidRange user = UidRange.createForUser(primaryUser.id); in testUidWhiteAndBlacklist() local
270 new UidRange(user.start + PKG_UIDS[0], user.start + PKG_UIDS[0]), in testUidWhiteAndBlacklist()
271 new UidRange(user.start + PKG_UIDS[1], user.start + PKG_UIDS[2]) in testUidWhiteAndBlacklist()
278 new UidRange(user.start, user.start + PKG_UIDS[0] - 1), in testUidWhiteAndBlacklist()
279 new UidRange(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[1] - 1), in testUidWhiteAndBlacklist()
281 new UidRange(user.start + PKG_UIDS[2] + 1, user.stop) in testUidWhiteAndBlacklist()
312 final UidRange user = UidRange.createForUser(primaryUser.id); in testLockdownChangingPackage() local
315 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage()
319 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage()
324 new UidRange(user.start, user.start + PKG_UIDS[1] - 1), in testLockdownChangingPackage()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java100 public final UserHandle user; field in LauncherAppsService.BroadcastCookie
106 this.user = userHandle; in BroadcastCookie()
339 UserHandle user) { in getHiddenAppActivityInfo() argument
348 callingUid, user.getIdentifier()); in getHiddenAppActivityInfo()
356 public boolean shouldHideFromSuggestions(String packageName, UserHandle user) { in shouldHideFromSuggestions() argument
357 if (!canAccessProfile(user.getIdentifier(), "cannot get shouldHideFromSuggestions")) { in shouldHideFromSuggestions()
362 int flags = pmi.getDistractingPackageRestrictions(packageName, user.getIdentifier()); in shouldHideFromSuggestions()
368 String packageName, UserHandle user) throws RemoteException { in getLauncherActivities() argument
374 user); in getLauncherActivities()
387 if (mUm.getUserInfo(user.getIdentifier()).isManagedProfile()) { in getLauncherActivities()
[all …]
/frameworks/base/packages/SystemUI/scripts/
Dcopy_profile_icons.sh3 for user in `adb $* shell ls /data/system/users | grep -v xml`
5 user=${user/$'\r'/}
6 adb shell mkdir /data/user/${user}/users
10 adb shell mkdir /data/user/${user}/users/${photo}
12 adb push photo.png /data/user/${user}/users/${photo}
/frameworks/base/services/usage/java/com/android/server/usage/
DAppTimeLimitController.java258 UsageGroup(UserData user, ObserverAppData observerApp, int observerId, String[] observed, in UsageGroup() argument
260 mUserRef = new WeakReference<>(user); in UsageGroup()
276 UserData user = mUserRef.get(); in remove() local
277 if (user != null) { in remove()
278 user.removeUsageGroup(this); in remove()
312 final UserData user = mUserRef.get(); in noteUsageStart() local
313 if (user == null) return; in noteUsageStart()
314 final Object[] array = user.currentlyActive.keySet().toArray(); in noteUsageStart()
339 final UserData user = mUserRef.get(); in noteUsageStop() local
340 if (user == null) return; in noteUsageStop()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java272 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument
274 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions()
319 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() argument
324 Assert.assertEquals(UserHandle.getUserId(binder.getCallingUid()), user.getIdentifier()); in sendBroadcastAsUser()
327 spiedContext.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser()
332 UserHandle user, @Nullable String receiverPermission, @Nullable Bundle options) { in sendBroadcastAsUser() argument
333 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission, options); in sendBroadcastAsUser()
337 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) { in sendBroadcastAsUser() argument
338 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser()
342 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() argument
[all …]
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java26 public UserHandle user; field in StatusBarIcon
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon() argument
44 this.user = user; in StatusBarIcon()
51 public StatusBarIcon(String iconPackage, UserHandle user, in StatusBarIcon() argument
54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
63 + " user=" + user.getIdentifier() in toString()
70 StatusBarIcon that = new StatusBarIcon(this.user, this.pkg, this.icon, in clone()
86 this.user = (UserHandle) in.readParcelable(null); in readFromParcel()
96 out.writeParcelable(this.user, 0); in writeToParcel()
/frameworks/base/core/java/android/os/
DUserManager.java1419 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser() local
1420 return user != null && user.isPrimary(); in isPrimaryUser()
1455 UserInfo user = getUserInfo(userId); in isUserAdmin() local
1456 return user != null && user.isAdmin(); in isUserAdmin()
1496 public boolean isRestrictedProfile(@NonNull UserHandle user) { in isRestrictedProfile() argument
1498 return mService.getUserInfo(user.getIdentifier()).isRestricted(); in isRestrictedProfile()
1537 UserInfo user = getUserInfo(id); in isGuestUser() local
1538 return user != null && user.isGuest(); in isGuestUser()
1550 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser() local
1551 return user != null && user.isGuest(); in isGuestUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java106 for (UserInfo user : list) { in removeExistingUsers()
111 if (user.id != UserHandle.USER_SYSTEM && !user.isPrimary()) { in removeExistingUsers()
112 removeUser(user.id); in removeExistingUsers()
129 for (UserInfo user : list) { in testAddUser()
130 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddUser()
131 && user.isGuest() in testAddUser()
132 && !user.isAdmin() in testAddUser()
133 && !user.isPrimary()) { in testAddUser()
135 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser()
167 final UserHandle user = userInfo.getUserHandle(); in testRemoveUserByHandle() local
[all …]
DUserManagerServiceUserInfoTest.java125 UserInfo user = new UserInfo(/*id*/ 21, "A Name", "A path", /*flags*/ 0x0ff0ff); in createUser() local
126 user.serialNumber = 5; in createUser()
127 user.creationTime = 4L << 32; in createUser()
128 user.lastLoggedInTime = 5L << 32; in createUser()
129 user.lastLoggedInFingerprint = "afingerprint"; in createUser()
130 user.profileGroupId = 45; in createUser()
131 user.restrictedProfileParentId = 4; in createUser()
132 user.profileBadge = 2; in createUser()
133 user.partial = true; in createUser()
134 user.guestToRemove = true; in createUser()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DRingtonePlayer.java82 public Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa) { in Client() argument
83 this(token, uri, user, aa, null); in Client()
86 Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa, in Client() argument
90 mRingtone = new Ringtone(getContextForUser(user), false); in Client()
123 final UserHandle user = Binder.getCallingUserHandle();
124 client = new Client(token, uri, user, aa, volumeShaperConfig);
175 public void playAsync(Uri uri, UserHandle user, boolean looping, AudioAttributes aa) {
176 if (LOGD) Log.d(TAG, "playAsync(uri=" + uri + ", user=" + user + ")");
180 if (UserHandle.ALL.equals(user)) {
181 user = UserHandle.SYSTEM;
[all …]
/frameworks/native/cmds/installd/
Dutils.h56 userid_t user, const char* package_name);
58 userid_t user, const char* package_name, ino_t ce_data_inode);
60 userid_t user, const char* package_name);
64 std::string create_data_misc_ce_rollback_base_path(const char* volume_uuid, userid_t user);
65 std::string create_data_misc_de_rollback_base_path(const char* volume_uuid, userid_t user);
66 std::string create_data_misc_ce_rollback_path(const char* volume_uuid, userid_t user,
68 std::string create_data_misc_de_rollback_path(const char* volume_uuid, userid_t user,
71 userid_t user, int32_t snapshot_id, const char* package_name);
73 userid_t user, int32_t snapshot_id, const char* package_name, ino_t ce_rollback_inode);
75 userid_t user, int32_t snapshot_id, const char* package_name);
[all …]
/frameworks/base/core/java/android/app/role/
DRoleManager.java284 public List<String> getRoleHoldersAsUser(@NonNull String roleName, @NonNull UserHandle user) { in getRoleHoldersAsUser() argument
286 Preconditions.checkNotNull(user, "user cannot be null"); in getRoleHoldersAsUser()
288 return mService.getRoleHoldersAsUser(roleName, user.getIdentifier()); in getRoleHoldersAsUser()
319 @ManageHoldersFlags int flags, @NonNull UserHandle user, in addRoleHolderAsUser() argument
323 Preconditions.checkNotNull(user, "user cannot be null"); in addRoleHolderAsUser()
327 mService.addRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in addRoleHolderAsUser()
358 @ManageHoldersFlags int flags, @NonNull UserHandle user, in removeRoleHolderAsUser() argument
362 Preconditions.checkNotNull(user, "user cannot be null"); in removeRoleHolderAsUser()
366 mService.removeRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in removeRoleHolderAsUser()
396 @NonNull UserHandle user, @CallbackExecutor @NonNull Executor executor, in clearRoleHoldersAsUser() argument
[all …]
/frameworks/base/core/java/android/content/
DContextWrapper.java391 public void startActivityAsUser(Intent intent, UserHandle user) { in startActivityAsUser() argument
392 mBase.startActivityAsUser(intent, user); in startActivityAsUser()
413 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in startActivityAsUser() argument
414 mBase.startActivityAsUser(intent, options, user); in startActivityAsUser()
467 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument
469 mBase.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions()
526 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() argument
527 mBase.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser()
531 public void sendBroadcastAsUser(Intent intent, UserHandle user, in sendBroadcastAsUser() argument
533 mBase.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java182 FullUserRecord user = getFullUserRecordLocked( in onStart() local
184 if (user != null) { in onStart()
185 user.mPriorityStack.updateMediaButtonSessionIfNeeded(); in onStart()
208 FullUserRecord user = getFullUserRecordLocked(record.getUserId()); in updateSession() local
209 if (user == null) { in updateSession()
217 user.pushAddressedPlayerChangedLocked(); in updateSession()
219 if (!user.mPriorityStack.contains(record)) { in updateSession()
223 user.mPriorityStack.onSessionStateChange(record); in updateSession()
231 FullUserRecord user = getFullUserRecordLocked(record.getUserId()); in setGlobalPrioritySession() local
236 if (user != null && user.mPriorityStack.contains(record)) { in setGlobalPrioritySession()
[all …]
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java63 private final UserHandle user; field in StatusBarNotification
71 String tag, int uid, int initialPid, Notification notification, UserHandle user, in StatusBarNotification() argument
83 this.user = user; in StatusBarNotification()
95 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification() argument
107 this.user = user; in StatusBarNotification()
125 this.user = UserHandle.readFromParcel(in); in StatusBarNotification()
137 String sbnKey = user.getIdentifier() + "|" + pkg + "|" + id + "|" + tag + "|" + uid; in key()
146 return user.getIdentifier() + "|" + pkg + "|" + "g:" + overrideGroupKey; in groupKey()
154 return user.getIdentifier() + "|" + pkg + "|" + in groupKey()
195 user.writeToParcel(out, flags); in writeToParcel()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DEventLogTags.logtags14 ## keyguardShowing: 1: Keyguard shown to the user (or keyguardOccluded)
16 ## bouncerShowing: 1: Bouncer currently shown to the user
17 ## secure: 1: The user has set up a secure unlock method (PIN, password, etc.)
58 ## type: 1: USER_BIND_SERVICE Secondary user tries binding to the system sysui service
59 ## 2: USER_SYSTEM_BOUND Secondary user is bound to the system sysui service
60 ## 3: USER_SYSTEM_UNBOUND Secondary user loses connection after system sysui has died
61 ## 4: SYSTEM_REGISTER_USER System sysui registers user's callbacks
62 ## 5: SYSTEM_UNREGISTER_USER System sysui unregisters user's callbacks (after death)
63 36060 sysui_recents_connection (type|1),(user|1)
/frameworks/base/core/java/android/app/usage/
DStorageStatsManager.java205 @NonNull String packageName, @NonNull UserHandle user) in queryStatsForPackage() argument
209 user.getIdentifier(), mContext.getOpPackageName()); in queryStatsForPackage()
222 UserHandle user) throws PackageManager.NameNotFoundException, IOException { in queryStatsForPackage() argument
223 return queryStatsForPackage(convert(uuid), packageName, user); in queryStatsForPackage()
286 @NonNull UserHandle user) throws IOException { in queryStatsForUser() argument
288 return mService.queryStatsForUser(convert(storageUuid), user.getIdentifier(), in queryStatsForUser()
300 public StorageStats queryStatsForUser(String uuid, UserHandle user) throws IOException { in queryStatsForUser() argument
301 return queryStatsForUser(convert(uuid), user); in queryStatsForUser()
323 @NonNull UserHandle user) throws IOException { in queryExternalStatsForUser() argument
325 return mService.queryExternalStatsForUser(convert(storageUuid), user.getIdentifier(), in queryExternalStatsForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java164 int user = Binder.getCallingUserHandle().getIdentifier(); in pinSlice() local
165 uri = maybeAddUserId(uri, user); in pinSlice()
166 String slicePkg = getProviderPkg(uri, user); in pinSlice()
171 mAppUsageStats.reportEvent(slicePkg, user, in pinSlice()
172 isAssistant(pkg, user) || isDefaultHomeApp(pkg, user) in pinSlice()
205 int user = Binder.getCallingUserHandle().getIdentifier(); in grantSlicePermission() local
206 enforceOwner(pkg, uri, user); in grantSlicePermission()
207 mPermissions.grantSliceAccess(toPkg, user, pkg, user, uri); in grantSlicePermission()
213 int user = Binder.getCallingUserHandle().getIdentifier(); in revokeSlicePermission() local
214 enforceOwner(pkg, uri, user); in revokeSlicePermission()
[all …]

12345678910>>...19