Home
last modified time | relevance | path

Searched refs:targetUserId (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DIntentForwarderActivity.java103 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 …]
DResolverListAdapter.java612 && dri.getResolveInfo().targetUserId == UserHandle.USER_CURRENT) { in addResolveInfo()
875 if (resolveInfo.targetUserId != UserHandle.USER_CURRENT) { in getFirstNonCurrentUserResolvedComponentInfo()
DResolverActivity.java1205 } else if (ri.targetUserId != UserHandle.USER_CURRENT) {
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DEventLogHelper.java157 public static void writeCarUserServicePostSwitchUserReq(int targetUserId, int currentUserId) { in writeCarUserServicePostSwitchUserReq() argument
158 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_POST_SWITCH_USER_REQ, targetUserId, in writeCarUserServicePostSwitchUserReq()
337 public static void writeCarUserHalPostSwitchUserReq(int requestId, int targetUserId, in writeCarUserHalPostSwitchUserReq() argument
339 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_POST_SWITCH_USER_REQ, requestId, targetUserId, in writeCarUserHalPostSwitchUserReq()
351 public static void writeCarUserHalLegacySwitchUserReq(int requestId, int targetUserId, in writeCarUserHalLegacySwitchUserReq() argument
354 targetUserId, currentUserId); in writeCarUserHalLegacySwitchUserReq()
365 public static void writeCarUserHalOemSwitchUserReq(int requestId, int targetUserId) { in writeCarUserHalOemSwitchUserReq() argument
366 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_OEM_SWITCH_USER_REQ, requestId, targetUserId); in writeCarUserHalOemSwitchUserReq()
381 public static void writeCarUserHalRemoveUserReq(int targetUserId, int currentUserId) { in writeCarUserHalRemoveUserReq() argument
382 EventLog.writeEvent(EventLogTags.CAR_USER_HAL_REMOVE_USER_REQ, targetUserId, currentUserId); in writeCarUserHalRemoveUserReq()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java912 public void switchUser(@UserIdInt int targetUserId, int timeoutMs, in switchUser() argument
914 EventLogHelper.writeCarUserServiceSwitchUserReq(targetUserId, timeoutMs); in switchUser()
917 UserHandle targetUser = mUserHandleHelper.getExistingUserHandle(targetUserId); in switchUser()
957 int targetUserId = targetUser.getIdentifier(); in handleSwitchUser() local
958 if (currentUser == targetUserId) { in handleSwitchUser()
960 Slogf.d(TAG, "Current user is same as requested target user: %d", targetUserId); in handleSwitchUser()
988 + "mUserIdForUserSwitchInProcess=%b", targetUserId, currentUser, isLogout, in handleSwitchUser()
997 if (mUserIdForUserSwitchInProcess == targetUserId) { in handleSwitchUser()
1006 mUserIdForUserSwitchInProcess, targetUserId); in handleSwitchUser()
1008 mUserIdForUserSwitchInProcess = targetUserId; in handleSwitchUser()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/
DBiometricNavigationUtils.java107 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/
DRestrictedLockUtils.java78 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/java/src/com/android/intentresolver/model/
DAbstractResolverComparator.java188 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/tests/unit/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProviderTest.kt215 val targetUserId = argumentCaptor<Int>() in CrossProfileIntentsChecker() constant
218 .hasCrossProfileIntents(same(list), sourceUserId.capture(), targetUserId.capture()) in CrossProfileIntentsChecker()
226 .that(targetUserId.firstValue) in CrossProfileIntentsChecker()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/chooser/
DTargetInfo.java458 static void prepareIntentForCrossProfileLaunch(Intent intent, int targetUserId) { in prepareIntentForCrossProfileLaunch() argument
460 if (targetUserId != currentUserId) { in prepareIntentForCrossProfileLaunch()
/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java95 int targetUserId, in SetNewPasswordController() argument
101 mTargetUserId = targetUserId; in SetNewPasswordController()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java540 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/
DICarUserService.aidl37 void switchUser(int targetUserId, int timeoutMs, in switchUser() argument
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_built_in_api_list.txt164 … method TIRAMISU_0 void writeCarUserServicePostSwitchUserReq(int targetUserId, int currentUserId);
190 …method TIRAMISU_0 void writeCarUserHalPostSwitchUserReq(int requestId, int targetUserId, int curre…
193 …method TIRAMISU_0 void writeCarUserHalLegacySwitchUserReq(int requestId, int targetUserId, int cur…
196 method TIRAMISU_0 void writeCarUserHalOemSwitchUserReq(int requestId, int targetUserId);
199 method TIRAMISU_0 void writeCarUserHalRemoveUserReq(int targetUserId, int currentUserId);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java1065 int targetUserId = mRegularUserId; in testRemoveUser_androidFailure() local
1068 removeUser(targetUserId, NO_CALLER_RESTRICTIONS, mUserRemovalResultCallbackImpl); in testRemoveUser_androidFailure()
1669 int targetUserId = mRegularUserId; in testLegacyUserSwitch_ok() local
1675 sendUserSwitchingEvent(sourceUserId, targetUserId); in testLegacyUserSwitch_ok()
1678 isSwitchUserRequest(/* requestId= */ 0, sourceUserId, targetUserId)); in testLegacyUserSwitch_ok()
1679 verify(mSwitchUserUiReceiver).send(targetUserId, null); in testLegacyUserSwitch_ok()
1692 int targetUserId = mGuestUserId; in testLegacyUserSwitch_notCalledAfterNormalSwitch() local
1695 switchUser(targetUserId, ASYNC_CALL_TIMEOUT_MS, mUserSwitchResultCallbackImpl); in testLegacyUserSwitch_notCalledAfterNormalSwitch()
1698 sendUserSwitchingEvent(mAdminUserId, targetUserId); in testLegacyUserSwitch_notCalledAfterNormalSwitch()
1702 verify(mSwitchUserUiReceiver).send(targetUserId, null); in testLegacyUserSwitch_notCalledAfterNormalSwitch()
DBaseCarUserServiceTestCase.java1097 @UserIdInt int currentUserId, @UserIdInt int targetUserId) { in isSwitchUserRequest() argument
1098 return argThat(new SwitchUserRequestMatcher(requestId, currentUserId, targetUserId)); in isSwitchUserRequest()
1205 @UserIdInt int targetUserId) { in SwitchUserRequestMatcher() argument
1207 mTargetUserId = targetUserId; in SwitchUserRequestMatcher()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java979 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/
DWifiDppQrCodeGeneratorFragmentTest.java100 resolveInfo.targetUserId = userId; in createResolveInfo()
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/
DResolverDataProvider.java128 resolveInfo.targetUserId = userId; in createResolveInfo()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalServiceTest.java957 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()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DResolverListAdapterTest.kt436 resolvedTargets[1].getResolveInfoAt(0).targetUserId = 10 in test_twoTargetsWithOtherProfileAndLastChosen_oneTargetInAdapter()
1063 targetUserId = handle.identifier in createResolveInfo()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java2274 int targetUserId = Integer.parseInt(args[1]);
2297 Slogf.d(TAG, "switchUser(): target=" + targetUserId + ", halOnly=" + halOnly
2304 targetUserInfo.userId = targetUserId;
2305 targetUserInfo.flags = getUserHalFlags(targetUserId);
2347 new UserSwitchRequest.Builder(UserHandle.of(targetUserId)).build(),
2352 new UserSwitchRequest.Builder(UserHandle.of(targetUserId)).build(),
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.2.txt587 android.car.user CarUserManager AsyncFuture<UserSwitchResult> switchUser(int targetUserId)
Dcar_hidden_apis_release_33.1.txt578 android.car.user CarUserManager AsyncFuture<UserSwitchResult> switchUser(int targetUserId)
Dcar_hidden_apis.txt684 android.car.user CarUserManager AsyncFuture<UserSwitchResult> switchUser(int targetUserId)

12