/packages/modules/IntentResolver/java/src/com/android/intentresolver/ |
D | IntentForwarderActivity.java | 103 final int targetUserId; in onCreate() local 107 targetUserId = getProfileParent(); in onCreate() 114 targetUserId = getManagedProfile(); in onCreate() 122 targetUserId = UserHandle.USER_NULL; in onCreate() 124 if (targetUserId == UserHandle.USER_NULL) { in onCreate() 135 final Intent newIntent = canForward(intentReceived, getUserId(), targetUserId, in onCreate() 140 + callingUserId + " to user " + targetUserId); in onCreate() 147 mInjector.resolveActivityAsUser(newIntent, MATCH_DEFAULT_ONLY, targetUserId); in onCreate() 152 callingUserId, targetUserId); in onCreate() 155 startActivityAsCaller(newIntent, targetUserId); in onCreate() [all …]
|
D | ResolverListAdapter.java | 614 && dri.getResolveInfo().targetUserId == UserHandle.USER_CURRENT) { in addResolveInfo() 854 if (resolveInfo.targetUserId != UserHandle.USER_CURRENT) { in getFirstNonCurrentUserResolvedComponentInfo()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | EventLogHelper.java | 161 public static void writeCarUserServicePostSwitchUserReq(int targetUserId, int currentUserId) { in writeCarUserServicePostSwitchUserReq() argument 162 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_POST_SWITCH_USER_REQ, targetUserId, in writeCarUserServicePostSwitchUserReq() 341 public static void writeCarUserHalPostSwitchUserReq(int requestId, int targetUserId, in writeCarUserHalPostSwitchUserReq() argument 343 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_POST_SWITCH_USER_REQ, requestId, targetUserId, in writeCarUserHalPostSwitchUserReq() 355 public static void writeCarUserHalLegacySwitchUserReq(int requestId, int targetUserId, in writeCarUserHalLegacySwitchUserReq() argument 358 targetUserId, currentUserId); in writeCarUserHalLegacySwitchUserReq() 369 public static void writeCarUserHalOemSwitchUserReq(int requestId, int targetUserId) { in writeCarUserHalOemSwitchUserReq() argument 370 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_OEM_SWITCH_USER_REQ, requestId, targetUserId); in writeCarUserHalOemSwitchUserReq() 385 public static void writeCarUserHalRemoveUserReq(int targetUserId, int currentUserId) { in writeCarUserHalRemoveUserReq() argument 386 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_REMOVE_USER_REQ, targetUserId, currentUserId); in writeCarUserHalRemoveUserReq()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 968 public void switchUser(@UserIdInt int targetUserId, int timeoutMs, in switchUser() argument 970 EventLogHelper.writeCarUserServiceSwitchUserReq(targetUserId, timeoutMs); in switchUser() 973 UserHandle targetUser = mUserHandleHelper.getExistingUserHandle(targetUserId); in switchUser() 1013 int targetUserId = targetUser.getIdentifier(); in handleSwitchUser() local 1014 if (currentUser == targetUserId) { in handleSwitchUser() 1016 Slogf.d(TAG, "Current user is same as requested target user: %d", targetUserId); in handleSwitchUser() 1044 + "mUserIdForUserSwitchInProcess=%b", targetUserId, currentUser, isLogout, in handleSwitchUser() 1053 if (mUserIdForUserSwitchInProcess == targetUserId) { in handleSwitchUser() 1062 mUserIdForUserSwitchInProcess, targetUserId); in handleSwitchUser() 1064 mUserIdForUserSwitchInProcess = targetUserId; in handleSwitchUser() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | BiometricNavigationUtils.java | 107 int targetUserId = mUserId; in getRestrictedDialogIntent() local 110 targetUserId = enforcedAdmin.user.getIdentifier(); in getRestrictedDialogIntent() 113 intent.putExtra(Intent.EXTRA_USER_ID, targetUserId); in getRestrictedDialogIntent()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtils.java | 78 int targetUserId = UserHandle.myUserId(); in sendShowAdminSupportDetailsIntent() local 82 targetUserId = admin.user.getIdentifier(); in sendShowAdminSupportDetailsIntent() 86 context.startActivityAsUser(intent, UserHandle.of(targetUserId)); in sendShowAdminSupportDetailsIntent()
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/ |
D | NoCrossProfileEmptyStateProviderTest.kt | 207 val targetUserId = argumentCaptor<Int>() in CrossProfileIntentsChecker() constant 210 .hasCrossProfileIntents(same(list), sourceUserId.capture(), targetUserId.capture()) in CrossProfileIntentsChecker() 218 .that(targetUserId.firstValue) in CrossProfileIntentsChecker()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/model/ |
D | AbstractResolverComparator.java | 188 if (lhs.targetUserId != UserHandle.USER_CURRENT) { in compare() 189 return rhs.targetUserId != UserHandle.USER_CURRENT ? 0 : 1; in compare() 191 if (rhs.targetUserId != UserHandle.USER_CURRENT) { in compare()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/chooser/ |
D | TargetInfo.java | 462 static void prepareIntentForCrossProfileLaunch(Intent intent, int targetUserId) { in prepareIntentForCrossProfileLaunch() argument 464 if (targetUserId != currentUserId) { in prepareIntentForCrossProfileLaunch()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SetNewPasswordController.java | 95 int targetUserId, in SetNewPasswordController() argument 101 mTargetUserId = targetUserId; in SetNewPasswordController()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/ |
D | UserManagerStateTest.java | 76 public int targetUserId; field in UserManagerStateTest.ReflectedResolveInfo 78 ReflectedResolveInfo(int targetUserId) { in ReflectedResolveInfo() argument 79 this.targetUserId = targetUserId; in ReflectedResolveInfo()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | ManageWindowsTaskbarShortcut.kt | 63 val targetUserId = itemInfo?.user?.identifier in <lambda>() constant 65 task.key?.packageName == targetPackage && task.key.userId == targetUserId in <lambda>()
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | CarUserManager.java | 540 int targetUserId = userSwitchRequest.getUserHandle().getIdentifier(); in switchUser() local 557 EventLogHelper.writeCarUserManagerSwitchUserReq(uid, targetUserId); in switchUser() 558 mService.switchUser(targetUserId, HAL_TIMEOUT_MS, resultCallbackImpl, in switchUser() 561 Slog.w(TAG, "switchUser(" + targetUserId + ") failed: " + e); in switchUser() 580 public AsyncFuture<UserSwitchResult> switchUser(@UserIdInt int targetUserId) { in switchUser() argument 582 UserHandle.of(targetUserId)).build(); in switchUser()
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarUserService.aidl | 37 void switchUser(int targetUserId, int timeoutMs, in switchUser() argument
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 1074 int targetUserId = mRegularUserId; in testRemoveUser_androidFailure() local 1077 removeUser(targetUserId, NO_CALLER_RESTRICTIONS, mUserRemovalResultCallbackImpl); in testRemoveUser_androidFailure() 1678 int targetUserId = mRegularUserId; in testLegacyUserSwitch_ok() local 1684 sendUserSwitchingEvent(sourceUserId, targetUserId); in testLegacyUserSwitch_ok() 1687 isSwitchUserRequest(/* requestId= */ 0, sourceUserId, targetUserId)); in testLegacyUserSwitch_ok() 1688 verify(mSwitchUserUiReceiver).send(targetUserId, null); in testLegacyUserSwitch_ok() 1701 int targetUserId = mGuestUserId; in testLegacyUserSwitch_notCalledAfterNormalSwitch() local 1704 switchUser(targetUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testLegacyUserSwitch_notCalledAfterNormalSwitch() 1707 sendUserSwitchingEvent(mAdminUserId, targetUserId); in testLegacyUserSwitch_notCalledAfterNormalSwitch() 1711 verify(mSwitchUserUiReceiver).send(targetUserId, null); in testLegacyUserSwitch_notCalledAfterNormalSwitch()
|
D | BaseCarUserServiceTestCase.java | 1108 @UserIdInt int currentUserId, @UserIdInt int targetUserId) { in isSwitchUserRequest() argument 1109 return argThat(new SwitchUserRequestMatcher(requestId, currentUserId, targetUserId)); in isSwitchUserRequest() 1216 @UserIdInt int targetUserId) { in SwitchUserRequestMatcher() argument 1218 mTargetUserId = targetUserId; in SwitchUserRequestMatcher()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | UserManagerStateTest.java | 79 public int targetUserId; field in UserManagerStateTest.ReflectedResolveInfo 81 ReflectedResolveInfo(int targetUserId) { in ReflectedResolveInfo() argument 82 this.targetUserId = targetUserId; in ReflectedResolveInfo()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | UserManagerState.java | 440 int targetUserId = (int) targetUserIdField.get(resolveInfo); in doesCrossProfileIntentForwarderExist() local 442 if (targetUserId == targetUserHandle.getIdentifier()) { in doesCrossProfileIntentForwarderExist()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | UserManagerState.java | 728 Intent intent, PackageManager pm, UserId fromUser, UserId targetUserId) { in doesCrossProfileIntentForwarderExist() argument 760 if (activityTargetUserId == targetUserId.getIdentifier()) { in doesCrossProfileIntentForwarderExist()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | UserHalService.java | 979 int targetUserId = value.getInt32Value(2); in handleOnSwitchUserVehicleRequest() local 980 EventLogHelper.writeCarUserHalOemSwitchUserReq(requestId, targetUserId); in handleOnSwitchUserVehicleRequest() 985 /* current user id= */ -1, /* current user flag= */ -1, targetUserId, in handleOnSwitchUserVehicleRequest() 996 userService.switchAndroidUserFromHal(requestId, targetUserId); in handleOnSwitchUserVehicleRequest()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/dpp/ |
D | WifiDppQrCodeGeneratorFragmentTest.java | 108 resolveInfo.targetUserId = userId; in createResolveInfo()
|
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/ |
D | ResolverDataProvider.java | 128 resolveInfo.targetUserId = userId; in createResolveInfo()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/ |
D | SwitchProfileBannerTest.kt | 102 private class ReflectedResolveInfo(@JvmField val targetUserId: Int) : ResolveInfo() { constant in com.android.photopicker.features.profileselector.SwitchProfileBannerTest.ReflectedResolveInfo
|
D | ProfileSelectorViewModelTest.kt | 79 private class ReflectedResolveInfo(@JvmField val targetUserId: Int) : ResolveInfo() { constant in com.android.photopicker.features.profileselector.ProfileSelectorViewModelTest.ReflectedResolveInfo
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | UserHalServiceTest.java | 957 int targetUserId = 11; in testUserSwitch_OEMRequest_success() local 959 SwitchUserMessageType.VEHICLE_REQUEST, new int[]{targetUserId}); in testUserSwitch_OEMRequest_success() 964 verify(mCarUserService).switchAndroidUserFromHal(requestId, targetUserId); in testUserSwitch_OEMRequest_success() 983 int targetUserId = 11; in testUserSwitch_OEMRequest_failure_positiveRequestId() local 985 SwitchUserMessageType.VEHICLE_REQUEST, new int[]{targetUserId}); in testUserSwitch_OEMRequest_failure_positiveRequestId()
|