Home
last modified time | relevance | path

Searched refs:targetUser (Results 1 – 19 of 19) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserJourneyLogger.java399 UserInfo targetUser, @UserJourney int journey) { in logUserJourneyFinish() argument
409 UserInfo targetUser) { in logUserSwitchJourneyFinish() argument
439 userJourneySession, targetUser.id, in logUserJourneyFinishWithError()
446 journey, originalUserId, targetUser.id, in logUserJourneyFinishWithError()
447 getUserTypeForStatsd(targetUser.userType), in logUserJourneyFinishWithError()
448 targetUser.flags, in logUserJourneyFinishWithError()
469 journey, originalUserId, targetUser.id, in logDelayedUserJourneyFinishWithError()
471 targetUser.flags, in logDelayedUserJourneyFinishWithError()
513 UserInfo targetUser) { in logUserCreateJourneyFinish() argument
521 userJourneySession, targetUser.id, in logUserCreateJourneyFinish()
[all …]
H A DLauncherAppsService.java926 if (!canAccessProfile(targetUser.getIdentifier(), "Cannot get shortcuts")) { in getShortcuts()
952 componentName, flags, targetUser.getIdentifier(), in getShortcuts()
961 if (!canAccessProfile(targetUser.getIdentifier(), "Cannot get shortcuts")) { in getShortcutsAsync()
986 componentName, flags, targetUser.getIdentifier(), in getShortcutsAsync()
1025 UserHandle targetUser) { in pinShortcuts() argument
1027 if (!canAccessProfile(targetUser.getIdentifier(), "Cannot pin shortcuts")) { in pinShortcuts()
1032 callingPackage, packageName, ids, targetUser.getIdentifier()); in pinShortcuts()
1037 UserHandle targetUser, int cacheFlags) { in cacheShortcuts() argument
1045 targetUser.getIdentifier(), toShortcutsCacheFlags(cacheFlags)); in cacheShortcuts()
1050 UserHandle targetUser, int cacheFlags) { in uncacheShortcuts() argument
[all …]
H A DUserManagerService.java700 public void onUserStarting(@NonNull TargetUser targetUser) { in onUserStarting() argument
703 final UserData user = mUms.getUserDataLU(targetUser.getUserIdentifier()); in onUserStarting()
706 if (targetUser.getUserIdentifier() == UserHandle.USER_SYSTEM in onUserStarting()
707 && targetUser.isFull()) { in onUserStarting()
715 mUms.setAppOpsRestrictedForQuietMode(targetUser.getUserIdentifier(), true); in onUserStarting()
720 public void onUserUnlocking(@NonNull TargetUser targetUser) { in onUserUnlocking() argument
722 final UserData user = mUms.getUserDataLU(targetUser.getUserIdentifier()); in onUserUnlocking()
740 public void onUserStopping(@NonNull TargetUser targetUser) { in onUserStopping() argument
742 final UserData user = mUms.getUserDataLU(targetUser.getUserIdentifier()); in onUserStopping()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserJourneyLoggerTest.java123 UserInfo targetUser = new UserInfo(10, "test target user", in testCreateUserJourney() local
125 mUserJourneyLogger.logUserCreateJourneyFinish(0, targetUser); in testCreateUserJourney()
150 mUserJourneyLogger.logUserJourneyFinish(0, targetUser, in testRemoveUserJourney()
176 mUserJourneyLogger.logUserJourneyFinish(0, targetUser, in testStartUserJourney()
201 mUserJourneyLogger.logUserJourneyFinish(0, targetUser, in testStopUserJourney()
275 mUserJourneyLogger.logUserJourneyFinish(0, targetUser, in testGrantAdminUserJourney()
325 mUserJourneyLogger.logUserJourneyFinish(0, targetUser, in testRevokeAdminUserJourney()
358 mUserJourneyLogger.logUserJourneyFinish(10, targetUser, in testSwitchFGUserJourney()
401 UserInfo targetUser = new UserInfo(11, "test target user", in testSwitchUIUserJourney() local
403 mUserJourneyLogger.logUserJourneyFinish(10, targetUser, in testSwitchUIUserJourney()
[all …]
H A DCrossProfileAppsServiceImplTest.java130 final int targetUser = invocation.getArgument(0); in setupEnabledProfiles()
131 users.add(targetUser); in setupEnabledProfiles()
134 if (targetUser == PRIMARY_USER) { in setupEnabledProfiles()
136 } else if (targetUser == PROFILE_OF_PRIMARY_USER) { in setupEnabledProfiles()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DCrossProfileApps.java105 @NonNull UserHandle targetUser) { in startMainActivity() argument
112 targetUser.getIdentifier(), in startMainActivity()
138 @NonNull UserHandle targetUser, in startMainActivity() argument
147 targetUser.getIdentifier(), in startMainActivity()
179 @NonNull UserHandle targetUser, in startActivity() argument
181 startActivity(intent, targetUser, callingActivity, /* options= */ null); in startActivity()
208 @NonNull UserHandle targetUser, in startActivity() argument
217 targetUser.getIdentifier(), in startActivity()
249 @NonNull UserHandle targetUser, in startActivity() argument
258 targetUser.getIdentifier(), in startActivity()
[all …]
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DBroadcastResponseStatsLogger.java57 UserHandle targetUser, long idForResponseEvent, in logBroadcastDispatchEvent() argument
62 targetUser.getIdentifier(), idForResponseEvent, timeStampMs, in logBroadcastDispatchEvent()
66 targetUser, idForResponseEvent, timeStampMs, targetUidProcessState); in logBroadcastDispatchEvent()
103 UserHandle targetUser, long idForResponseEvent, in logBroadcastDispatchEvent() argument
111 event.targetUserId = targetUser.getIdentifier(); in logBroadcastDispatchEvent()
H A DBroadcastResponseStatsTracker.java111 UserHandle targetUser, long idForResponseEvent, in reportBroadcastDispatchEvent() argument
113 mLogger.logBroadcastDispatchEvent(sourceUid, targetPackage, targetUser, in reportBroadcastDispatchEvent()
120 if (doesPackageHoldExemptedRole(targetPackage, targetUser)) { in reportBroadcastDispatchEvent()
124 if (doesPackageHoldExemptedPermission(targetPackage, targetUser)) { in reportBroadcastDispatchEvent()
131 getOrCreateBroadcastEventsLocked(targetPackage, targetUser); in reportBroadcastDispatchEvent()
133 sourceUid, targetPackage, targetUser.getIdentifier(), idForResponseEvent); in reportBroadcastDispatchEvent()
H A DUsageStatsService.java3196 @NonNull UserHandle targetUser, long idForResponseEvent, in reportBroadcastDispatched() argument
3199 targetUser, idForResponseEvent, timestampMs, targetUidProcState); in reportBroadcastDispatched()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DSystemServiceManager.java354 final TargetUser targetUser = newTargetUser(userId); in onUserStarting() local
369 mTargetUsers.put(userId, targetUser); in onUserStarting()
372 onUser(t, USER_STARTING, /* prevUser= */ null, targetUser); in onUserStarting()
454 TargetUser targetUser = getTargetUser(userId); in onUserCompletedEvent() local
455 if (targetUser == null) { in onUserCompletedEvent()
462 targetUser, in onUserCompletedEvent() local
467 TargetUser targetUser = getTargetUser(userId); in onUser() local
468 Preconditions.checkState(targetUser != null, "No TargetUser for " + userId); in onUser()
470 onUser(TimingsTraceAndSlog.newAsyncLog(), onWhat, /* prevUser= */ null, targetUser); in onUser() local
/aosp14/frameworks/base/core/java/android/app/admin/
H A DPolicyUpdateReceiver.java250 @NonNull TargetUser targetUser, in onPolicySetResult() argument
284 @NonNull TargetUser targetUser, in onPolicyChanged() argument
H A DDevicePolicyManager.java14707 @Context.BindServiceFlagsBits int flags, @NonNull UserHandle targetUser) { in bindDeviceAdminServiceAsUser() argument
14716 sd, Integer.toUnsignedLong(flags), targetUser.getIdentifier()); in bindDeviceAdminServiceAsUser()
14729 @NonNull Context.BindServiceFlags flags, @NonNull UserHandle targetUser) { in bindDeviceAdminServiceAsUser() argument
14738 sd, flags.getValue(), targetUser.getIdentifier()); in bindDeviceAdminServiceAsUser()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplTest.java130 final int targetUser = invocation.getArgument(0); in setupEnabledProfiles()
131 users.add(targetUser); in setupEnabledProfiles()
134 if (targetUser == PRIMARY_USER) { in setupEnabledProfiles()
136 } else if (targetUser == PROFILE_OF_PRIMARY_USER) { in setupEnabledProfiles()
/aosp14/frameworks/base/services/core/java/android/app/usage/
H A DUsageStatsManagerInternal.java392 @NonNull UserHandle targetUser, long idForResponseEvent, in reportBroadcastDispatched() argument
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DAppRestrictionController.java2609 final UserHandle targetUser = UserHandle.of(UserHandle.getUserId(uid)); in postNotification() local
2610 postSummaryNotification(targetUser); in postNotification()
2636 mNotificationManager.notifyAsUser(null, notificationId, notification, targetUser); in postNotification()
2639 private void postSummaryNotification(@NonNull UserHandle targetUser) { in postSummaryNotification() argument
2649 mNotificationManager.notifyAsUser(null, SUMMARY_NOTIFICATION_ID, summary, targetUser); in postSummaryNotification()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java402 public void onUserStopped(@NonNull TargetUser targetUser) { in onUserStopped() argument
403 int userId = targetUser.getUserIdentifier(); in onUserStopped()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java21967 final UserHandle targetUser = UserHandle.of(targetUserId);
21972 if (sourceUser.equals(targetUser)) {
21976 copyAccount(targetUser, sourceUser, accountToMigrate, callerPackage);
21983 UserHandle targetUser, UserHandle sourceUser, Account accountToMigrate,
21991 targetUser,
22002 Slogf.e(LOG_TAG, "Failed to copy account to " + targetUser);
22007 Slogf.e(LOG_TAG, "Exception copying account to " + targetUser, e);
22010 Slogf.e(LOG_TAG, "Exception copying account to " + targetUser, e);
/aosp14/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java1807 final Bundle accountCredentials, final Account account, final UserAccounts targetUser, in completeCloningAccount() argument
1812 new Session(targetUser, response, account.type, false, in completeCloningAccount() argument
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...