/frameworks/base/core/java/android/hardware/display/ |
D | AmbientDisplayConfiguration.java | 47 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/ |
D | LauncherApps.java | 204 abstract public void onPackageRemoved(String packageName, UserHandle user); in onPackageRemoved() argument 215 abstract public void onPackageAdded(String packageName, UserHandle user); in onPackageAdded() argument 225 abstract public void onPackageChanged(String packageName, UserHandle user); in onPackageChanged() argument 238 abstract public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 252 abstract public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument 268 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in onPackagesSuspended() argument 291 public void onPackagesSuspended(String[] packageNames, UserHandle user, in onPackagesSuspended() argument 293 onPackagesSuspended(packageNames, user); in onPackagesSuspended() 305 public void onPackagesUnsuspended(String[] packageNames, UserHandle user) { in onPackagesUnsuspended() argument 324 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() argument [all …]
|
D | ILauncherApps.aidl | 49 String callingPackage, String packageName, in UserHandle user); in getLauncherActivities() argument 51 String callingPackage, in ComponentName component, in UserHandle user); in resolveActivity() argument 54 in Rect sourceBounds, in Bundle opts, in UserHandle user); in startSessionDetailsActivityAsUser() argument 57 in Bundle opts, in UserHandle user); in startActivityAsUser() argument 60 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() argument 61 boolean isPackageEnabled(String callingPackage, String packageName, in UserHandle user); in isPackageEnabled() argument 62 Bundle getSuspendedPackageLauncherExtras(String packageName, in UserHandle user); in getSuspendedPackageLauncherExtras() argument 64 String callingPackage, in ComponentName component, in UserHandle user); in isActivityEnabled() argument 66 String callingPackage, String packageName, int flags, in UserHandle user); in getApplicationInfo() argument 69 in UserHandle user); in getAppUsageLimit() argument [all …]
|
D | IOnAppsChangedListener.aidl | 27 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
|
D | RegisteredServicesCache.java | 122 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 …]
|
/frameworks/base/packages/SettingsLib/RestrictedLockUtils/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 37 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/ |
D | system_messages.proto | 34 // 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/ |
D | VpnTest.java | 263 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/packages/SystemUI/scripts/ |
D | copy_profile_icons.sh | 3 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/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 114 public final UserHandle user; field in LauncherAppsService.BroadcastCookie 120 this.user = userHandle; in BroadcastCookie() 363 UserHandle user) { in getHiddenAppActivityInfo() argument 373 callingUid, user.getIdentifier()); in getHiddenAppActivityInfo() 381 public boolean shouldHideFromSuggestions(String packageName, UserHandle user) { in shouldHideFromSuggestions() argument 382 if (!canAccessProfile(user.getIdentifier(), "cannot get shouldHideFromSuggestions")) { in shouldHideFromSuggestions() 387 int flags = pmi.getDistractingPackageRestrictions(packageName, user.getIdentifier()); in shouldHideFromSuggestions() 393 String packageName, UserHandle user) throws RemoteException { in getLauncherActivities() argument 399 user); in getLauncherActivities() 412 if (mUm.getUserInfo(user.getIdentifier()).isManagedProfile()) { in getLauncherActivities() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppTimeLimitController.java | 258 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/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 141 protected abstract long getSerialNumberForUser(UserHandle user); in getSerialNumberForUser() argument 190 private BitmapInfo makeDefaultIcon(UserHandle user) { in makeDefaultIcon() argument 192 return li.makeDefaultIcon(user); in makeDefaultIcon() 199 public synchronized void remove(ComponentName componentName, UserHandle user) { in remove() argument 200 mCache.remove(new ComponentKey(componentName, user)); in remove() 206 private void removeFromMemCacheLocked(String packageName, UserHandle user) { in removeFromMemCacheLocked() argument 210 && key.user.equals(user)) { in removeFromMemCacheLocked() 222 public synchronized void removeIconsForPkg(String packageName, UserHandle user) { in removeIconsForPkg() argument 223 removeFromMemCacheLocked(packageName, user); in removeIconsForPkg() 224 long userSerial = getSerialNumberForUser(user); in removeIconsForPkg() [all …]
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/ |
D | ComponentKey.java | 30 public final UserHandle user; field in ComponentKey 34 public ComponentKey(ComponentName componentName, UserHandle user) { in ComponentKey() argument 35 if (componentName == null || user == null) { in ComponentKey() 39 this.user = user; in ComponentKey() 40 mHashCode = Arrays.hashCode(new Object[] {componentName, user}); in ComponentKey() 52 return other.componentName.equals(componentName) && other.user.equals(user); in equals() 60 return componentName.flattenToString() + "#" + user.hashCode(); in toString()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemService.java | 240 public boolean isUserSupported(@NonNull TargetUser user) { in isUserSupported() argument 252 for (UserInfo user : allUsers) { in dumpSupportedUsers() 253 supportedUsers.add(user.id); in dumpSupportedUsers() 294 public void onUserStarting(@NonNull TargetUser user) { in onUserStarting() argument 295 onStartUser(user.getUserInfo()); in onUserStarting() 335 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking() argument 336 onUnlockUser(user.getUserInfo()); in onUserUnlocking() 347 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked() argument 404 public void onStopUser(@NonNull UserInfo user) { in onStopUser() argument 405 onStopUser(user.id); in onStopUser() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 292 public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, in sendBroadcastAsUserMultiplePermissions() argument 294 spiedContext.sendBroadcastAsUserMultiplePermissions(intent, user, receiverPermissions); in sendBroadcastAsUserMultiplePermissions() 339 public void sendBroadcastAsUser(Intent intent, UserHandle user) { in sendBroadcastAsUser() argument 344 Assert.assertEquals(UserHandle.getUserId(binder.getCallingUid()), user.getIdentifier()); in sendBroadcastAsUser() 347 spiedContext.sendBroadcastAsUser(intent, user); in sendBroadcastAsUser() 352 UserHandle user, @Nullable String receiverPermission, @Nullable Bundle options) { in sendBroadcastAsUser() argument 353 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission, options); in sendBroadcastAsUser() 357 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) { in sendBroadcastAsUser() argument 358 spiedContext.sendBroadcastAsUser(intent, user, receiverPermission); in sendBroadcastAsUser() 362 public void sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission, in sendBroadcastAsUser() argument [all …]
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | StatusBarIcon.java | 26 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/packages/SystemUI/src/com/android/systemui/broadcast/logging/ |
D | BroadcastDispatcherLogger.kt | 36 fun logBroadcastReceived(broadcastId: Int, user: Int, intent: Intent) { in logBroadcastReceived() 40 int2 = user in logBroadcastReceived() 58 fun logReceiverRegistered(user: Int, receiver: BroadcastReceiver) { in logReceiverRegistered() 61 int1 = user in logReceiverRegistered() 68 fun logReceiverUnregistered(user: Int, receiver: BroadcastReceiver) { in logReceiverUnregistered() 71 int1 = user in logReceiverUnregistered() 78 fun logContextReceiverRegistered(user: Int, filter: IntentFilter) { in logContextReceiverRegistered() 88 int1 = user in logContextReceiverRegistered() 102 fun logContextReceiverUnregistered(user: Int, action: String) { in logContextReceiverUnregistered() 104 int1 = user in logContextReceiverUnregistered()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | RingtonePlayer.java | 86 public Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa) { in Client() argument 87 this(token, uri, user, aa, null); in Client() 90 Client(IBinder token, Uri uri, UserHandle user, AudioAttributes aa, in Client() argument 94 mRingtone = new Ringtone(getContextForUser(user), false); in Client() 127 final UserHandle user = Binder.getCallingUserHandle(); 128 client = new Client(token, uri, user, aa, volumeShaperConfig); 179 public void playAsync(Uri uri, UserHandle user, boolean looping, AudioAttributes aa) { 180 if (LOGD) Log.d(TAG, "playAsync(uri=" + uri + ", user=" + user + ")"); 184 if (UserHandle.ALL.equals(user)) { 185 user = UserHandle.SYSTEM; [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/ |
D | BroadcastDispatcher.kt | 44 val user: UserHandle constant in com.android.systemui.broadcast.ReceiverData 85 val user = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, UserHandle.USER_NULL) in onReceive() constant 86 handler.obtainMessage(MSG_USER_SWITCH, user, 0).sendToTarget() in onReceive() 110 user: UserHandle = context.user in registerReceiverWithHandler() 112 registerReceiver(receiver, filter, HandlerExecutor(handler), user) in registerReceiverWithHandler() 134 user: UserHandle = context.user in registerReceiver() 139 ReceiverData(receiver, filter, executor ?: context.mainExecutor, user)) in registerReceiver() 171 open fun unregisterReceiverForUser(receiver: BroadcastReceiver, user: UserHandle) { in unregisterReceiverForUser() 172 handler.obtainMessage(MSG_REMOVE_RECEIVER_FOR_USER, user.identifier, 0, receiver) in unregisterReceiverForUser() 201 val userId = if (data.user.identifier == UserHandle.USER_CURRENT) { in handleMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 185 FullUserRecord user = getFullUserRecordLocked( in onStart() local 188 if (user != null) { in onStart() 189 user.mPriorityStack.updateMediaButtonSessionIfNeeded(); in onStart() 212 FullUserRecord user = getFullUserRecordLocked(record.getUserId()); in onSessionActiveStateChanged() local 213 if (user == null) { in onSessionActiveStateChanged() 221 user.pushAddressedPlayerChangedLocked(); in onSessionActiveStateChanged() 223 if (!user.mPriorityStack.contains(record)) { in onSessionActiveStateChanged() 227 user.mPriorityStack.onSessionActiveStateChanged(record); in onSessionActiveStateChanged() 237 FullUserRecord user = getFullUserRecordLocked(record.getUserId()); in setGlobalPrioritySession() local 242 if (user != null && user.mPriorityStack.contains(record)) { in setGlobalPrioritySession() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 259 public void onUnlockUser(int user) { in onUnlockUser() argument 261 mDeviceManager.onUnlockUser(user); in onUnlockUser() 282 int user = UserHandle.getUserId(uid); in openDevice() local 287 if (mUserManager.isSameProfileGroup(user, mCurrentUserId)) { in openDevice() 288 fd = mHostManager.openDevice(deviceName, getPermissionsForUser(user), in openDevice() 291 Slog.w(TAG, "Cannot open " + deviceName + " for user " + user in openDevice() 319 int user = UserHandle.getUserId(uid); in openAccessory() local 324 if (mUserManager.isSameProfileGroup(user, mCurrentUserId)) { in openAccessory() 325 return mDeviceManager.openAccessory(accessory, getPermissionsForUser(user), in openAccessory() 328 Slog.w(TAG, "Cannot open " + accessory + " for user " + user in openAccessory() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 95 int user = UserHandle.USER_SYSTEM; in testCanProfileOwnerChange() local 97 UserManager.DISALLOW_RECORD_AUDIO, user)); in testCanProfileOwnerChange() 99 UserManager.DISALLOW_WALLPAPER, user)); in testCanProfileOwnerChange() 101 UserManager.DISALLOW_USER_SWITCH, user)); in testCanProfileOwnerChange() 103 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange() 105 UserManager.DISALLOW_ADJUST_VOLUME, user)); in testCanProfileOwnerChange() 107 user = 10; in testCanProfileOwnerChange() 109 UserManager.DISALLOW_RECORD_AUDIO, user)); in testCanProfileOwnerChange() 111 UserManager.DISALLOW_WALLPAPER, user)); in testCanProfileOwnerChange() 113 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange() [all …]
|
/frameworks/native/cmds/installd/ |
D | utils.h | 55 userid_t user, const char* package_name); 57 userid_t user, const char* package_name, ino_t ce_data_inode); 59 userid_t user, const char* package_name); 63 std::string create_data_misc_ce_rollback_base_path(const char* volume_uuid, userid_t user); 64 std::string create_data_misc_de_rollback_base_path(const char* volume_uuid, userid_t user); 65 std::string create_data_misc_ce_rollback_path(const char* volume_uuid, userid_t user, 67 std::string create_data_misc_de_rollback_path(const char* volume_uuid, userid_t user, 70 userid_t user, int32_t snapshot_id, const char* package_name); 72 userid_t user, int32_t snapshot_id, const char* package_name, ino_t ce_rollback_inode); 74 userid_t user, int32_t snapshot_id, const char* package_name); [all …]
|
/frameworks/opt/car/services/src/com/android/internal/car/ |
D | CarServiceHelperService.java | 339 public void onUserUnlocking(@NonNull TargetUser user) { in onUserUnlocking() argument 340 if (isPreCreated(user, USER_LIFECYCLE_EVENT_TYPE_UNLOCKING)) return; in onUserUnlocking() 341 EventLog.writeEvent(EventLogTags.CAR_HELPER_USER_UNLOCKING, user.getUserIdentifier()); in onUserUnlocking() 342 if (DBG) Slog.d(TAG, "onUserUnlocking(" + user + ")"); in onUserUnlocking() 344 sendUserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, user); in onUserUnlocking() 348 public void onUserUnlocked(@NonNull TargetUser user) { in onUserUnlocked() argument 349 if (isPreCreated(user, USER_LIFECYCLE_EVENT_TYPE_UNLOCKED)) return; in onUserUnlocked() 350 int userId = user.getUserIdentifier(); in onUserUnlocked() 352 if (DBG) Slog.d(TAG, "onUserUnlocked(" + user + ")"); in onUserUnlocked() 357 Slog.i(TAG, "Time to unlock 1st user(" + user + "): " in onUserUnlocked() [all …]
|
/frameworks/base/core/java/android/app/role/ |
D | RoleManager.java | 285 public List<String> getRoleHoldersAsUser(@NonNull String roleName, @NonNull UserHandle user) { in getRoleHoldersAsUser() argument 287 Objects.requireNonNull(user, "user cannot be null"); in getRoleHoldersAsUser() 289 return mService.getRoleHoldersAsUser(roleName, user.getIdentifier()); in getRoleHoldersAsUser() 320 @ManageHoldersFlags int flags, @NonNull UserHandle user, in addRoleHolderAsUser() argument 324 Objects.requireNonNull(user, "user cannot be null"); in addRoleHolderAsUser() 328 mService.addRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in addRoleHolderAsUser() 359 @ManageHoldersFlags int flags, @NonNull UserHandle user, in removeRoleHolderAsUser() argument 363 Objects.requireNonNull(user, "user cannot be null"); in removeRoleHolderAsUser() 367 mService.removeRoleHolderAsUser(roleName, packageName, flags, user.getIdentifier(), in removeRoleHolderAsUser() 397 @NonNull UserHandle user, @CallbackExecutor @NonNull Executor executor, in clearRoleHoldersAsUser() argument [all …]
|