Searched refs:targetUserId (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DViewMediatorCallback.java34 * @param targetUserId a user that needs to be the foreground user at the completion.
36 void keyguardDone(boolean strongAuth, int targetUserId); argument
54 * @param targetUserId a user that needs to be the foreground user at the completion.
56 void keyguardDonePending(boolean strongAuth, int targetUserId); argument
H A DKeyguardSecurityCallback.java23 * @param targetUserId a user that needs to be the foreground user at the dismissal completion.
25 void dismiss(boolean securityVerified, int targetUserId); argument
H A DKeyguardSecurityContainer.java56 public boolean dismiss(boolean authenticated, int targetUserId); argument
63 * @param targetUserId a user that needs to be the foreground user at the finish completion.
65 public void finish(boolean strongAuth, int targetUserId); argument
316 * @param targetUserId a user that needs to be the foreground user at the finish (if called)
320 boolean showNextSecurityScreenOrFinish(boolean authenticated, int targetUserId) { argument
324 if (mUpdateMonitor.getUserCanSkipBouncer(targetUserId)) {
327 SecurityMode securityMode = mSecurityModel.getSecurityMode(targetUserId);
345 SecurityMode securityMode = mSecurityModel.getSecurityMode(targetUserId);
362 mSecurityCallback.finish(strongAuth, targetUserId);
458 public void dismiss(boolean securityVerified, int targetUserId) { }
503 dismiss(boolean authenticated, int targetUserId) argument
[all...]
H A DKeyguardHostView.java180 * @param targetUserId a user that needs to be the foreground user at the dismissal completion.
183 public boolean dismiss(int targetUserId) { argument
184 return dismiss(false, targetUserId);
210 public boolean dismiss(boolean authenticated, int targetUserId) { argument
211 return mSecurityContainer.showNextSecurityScreenOrFinish(authenticated, targetUserId);
220 * @param targetUserId a user that needs to be the foreground user at the dismissal completion.
223 public void finish(boolean strongAuth, int targetUserId) { argument
234 mViewMediatorCallback.keyguardDonePending(strongAuth, targetUserId);
236 mViewMediatorCallback.keyguardDone(strongAuth, targetUserId);
/frameworks/base/services/core/java/com/android/server/job/
H A DGrantedUriPermissions.java64 int sourceUid, String targetPackage, int targetUserId, String tag) {
74 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag,
80 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag,
88 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag) {
94 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags,
101 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag,
105 curPerms = grantItem(am, clip.getItemAt(i), sourceUid, targetPackage, targetUserId,
112 int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag,
122 uri, grantFlags, sourceUserId, targetUserId);
131 int sourceUid, String targetPackage, int targetUserId, in
63 createFromIntent(IActivityManager am, Intent intent, int sourceUid, String targetPackage, int targetUserId, String tag) argument
87 createFromClip(IActivityManager am, ClipData clip, int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag) argument
100 grantClip(IActivityManager am, ClipData clip, int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, GrantedUriPermissions curPerms) argument
111 grantUri(IActivityManager am, Uri uri, int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, GrantedUriPermissions curPerms) argument
130 grantItem(IActivityManager am, ClipData.Item item, int sourceUid, String targetPackage, int targetUserId, int grantFlags, String tag, GrantedUriPermissions curPerms) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DIntentForwarderActivity.java60 final int targetUserId;
65 targetUserId = getProfileParent();
68 targetUserId = getManagedProfile();
72 targetUserId = UserHandle.USER_NULL;
74 if (targetUserId == UserHandle.USER_NULL) {
87 if (canForward(newIntent, targetUserId)) {
98 newIntent, MATCH_DEFAULT_ONLY, targetUserId);
108 startActivityAsCaller(newIntent, null, false, targetUserId);
130 + callingUserId + " to user " + targetUserId);
135 boolean canForward(Intent intent, int targetUserId) { argument
[all...]
H A DResolverComparator.java291 if (lhs.targetUserId != UserHandle.USER_CURRENT) {
292 return rhs.targetUserId != UserHandle.USER_CURRENT ? 0 : 1;
294 if (rhs.targetUserId != UserHandle.USER_CURRENT) {
/frameworks/base/core/java/android/content/pm/
H A DResolveInfo.java152 public int targetUserId; field in class:ResolveInfo
316 targetUserId = UserHandle.USER_CURRENT;
335 targetUserId = orig.targetUserId;
358 if (targetUserId != UserHandle.USER_CURRENT) {
359 sb.append(" targetUserId=");
360 sb.append(targetUserId);
397 dest.writeInt(targetUserId);
445 targetUserId = source.readInt();
462 if (a.targetUserId !
[all...]
H A DIPackageManager.aidl145 boolean canForwardTo(in Intent intent, String resolvedType, int sourceUserId, int targetUserId);
276 int sourceUserId, int targetUserId, int flags);
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DWorkLockActivity.java125 final int targetUserId = getTargetUserId();
126 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, targetUserId);
127 if (userId == targetUserId && !getKeyguardManager().isDeviceLocked(targetUserId)) {
H A DKeyguardViewMediator.java554 public void keyguardDone(boolean strongAuth, int targetUserId) {
555 if (targetUserId != ActivityManager.getCurrentUser()) {
578 public void keyguardDonePending(boolean strongAuth, int targetUserId) {
580 if (targetUserId != ActivityManager.getCurrentUser()) {
/frameworks/base/services/core/java/com/android/server/
H A DInputContentUriTokenHandler.java50 @UserIdInt int targetUserId) {
55 mTargetUserId = targetUserId;
48 InputContentUriTokenHandler(@onNull Uri contentUri, int sourceUid, @NonNull String targetPackage, @UserIdInt int sourceUserId, @UserIdInt int targetUserId) argument
H A DLockSettingsService.java1685 private void removeKeystoreProfileKey(int targetUserId) { argument
1686 if (DEBUG) Slog.v(TAG, "Remove keystore profile key for user: " + targetUserId);
1690 keyStore.deleteEntry(LockPatternUtils.PROFILE_KEY_NAME_ENCRYPT + targetUserId);
1691 keyStore.deleteEntry(LockPatternUtils.PROFILE_KEY_NAME_DECRYPT + targetUserId);
1695 Slog.e(TAG, "Unable to remove keystore profile key for user:" + targetUserId, e);
/frameworks/base/services/core/java/com/android/server/pm/
H A DLauncherAppsService.java229 * @return TRUE if the calling user can access {@code targetUserId}. FALSE if not *but
235 private boolean canAccessProfile(String callingPackage, int targetUserId, String message) { argument
238 if (targetUserId == callingUserId) return true;
245 + targetUserId + " from " + callingUserId);
249 UserInfo targetUserInfo = mUm.getUserInfo(targetUserId);
253 throw new SecurityException(message + " for unrelated profile " + targetUserId);
485 int targetUserId) {
487 if (!canAccessProfile(callingPackage, targetUserId, "Cannot access shortcuts")) {
490 if (!isUserEnabled(targetUserId)) {
495 callingPackage, packageName, id, targetUserId);
484 getShortcutIconResId(String callingPackage, String packageName, String id, int targetUserId) argument
499 getShortcutIconFd(String callingPackage, String packageName, String id, int targetUserId) argument
521 startShortcut(String callingPackage, String packageName, String shortcutId, Rect sourceBounds, Bundle startActivityOptions, int targetUserId) argument
[all...]
H A DCrossProfileIntentFilter.java34 private static final String ATTR_TARGET_USER_ID = "targetUserId";
46 CrossProfileIntentFilter(IntentFilter filter, String ownerPackage, int targetUserId, argument
49 mTargetUserId = targetUserId;
/frameworks/base/services/core/java/com/android/server/am/
H A DUriPermission.java47 final int targetUserId; field in class:UriPermission
89 this.targetUserId = UserHandle.getUserId(targetUid);
319 pw.print("targetUserId=" + targetUserId);
364 final int targetUserId; field in class:UriPermission.Snapshot
372 this.targetUserId = perm.targetUserId;
H A DUserController.java975 void startUserInForeground(final int targetUserId) { argument
976 boolean success = startUser(targetUserId, /* foreground */ true);
1288 int targetUserId = unsafeConvertIncomingUserLocked(userId);
1309 allow = isSameProfileGroup(callingUserId, targetUserId);
1317 targetUserId = callingUserId;
1342 if (!allowAll && targetUserId < 0) {
1344 "Call does not support special user #" + targetUserId);
1347 if (callingUid == Process.SHELL_UID && targetUserId >= UserHandle.USER_SYSTEM) {
1348 if (hasUserRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES, targetUserId)) {
1350 + targetUserId
1531 setTargetUserIdLocked(int targetUserId) argument
1566 isSameProfileGroup(int callingUserId, int targetUserId) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDragAndDropPermissionsHandler.java46 int sourceUserId, int targetUserId) {
51 mTargetUserId = targetUserId;
45 DragAndDropPermissionsHandler(ClipData clipData, int sourceUid, String targetPackage, int mode, int sourceUserId, int targetUserId) argument
H A DDragState.java513 final int targetUserId = UserHandle.getUserId(touchedWin.getOwningUid());
524 targetUserId);
526 if (mSourceUserId != targetUserId){
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DAuthenticationClient.java45 IFingerprintServiceReceiver receiver, int targetUserId, int groupId, long opId,
47 super(context, halDeviceId, token, receiver, targetUserId, groupId, restricted, owner);
44 AuthenticationClient(Context context, long halDeviceId, IBinder token, IFingerprintServiceReceiver receiver, int targetUserId, int groupId, long opId, boolean restricted, String owner) argument
/frameworks/base/core/java/android/app/
H A DActivityManagerInternal.java79 Intent intent, int targetUserId);
78 grantUriPermissionFromIntent(int callingUid, String targetPkg, Intent intent, int targetUserId) argument
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DResolverDataProvider.java55 resolveInfo.targetUserId = userId;
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbResolverActivity.java148 UserHandle.of(mForwardResolveInfo.targetUserId));
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbProfileGroupSettingsManager.java941 if (highestPriorityByUserId.indexOfKey(match.targetUserId) < 0) {
942 highestPriorityByUserId.put(match.targetUserId, Integer.MIN_VALUE);
943 highestPriorityMatchesByUserId.put(match.targetUserId, new ArrayList<>());
947 int highestPriority = highestPriorityByUserId.get(match.targetUserId);
949 match.targetUserId);
954 highestPriorityByUserId.put(match.targetUserId, match.priority);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtils.java646 int targetUserId = UserHandle.myUserId();
649 targetUserId = admin.userId;
651 context.startActivityAsUser(intent, new UserHandle(targetUserId));

Completed in 527 milliseconds

12