Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 22 of 22) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarMultiUserTestBase.java106 int currentUserId = getCurrentUserId(); in setMultiUserFixtures() local
107 Log.d(TAG, "Multi-user state on " + getTestName() + ": currentUser=" + currentUserId in setMultiUserFixtures()
110 if (user.id == currentUserId) { in setMultiUserFixtures()
157 int currentUserId = getCurrentUserId(); in cleanupUserState() local
159 if (currentUserId != initialUserId) { in cleanupUserState()
161 + currentUserId + "; switching back to " + initialUserId); in cleanupUserState()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java80 public static boolean checkCurrentOrManagedUserId(int currentUserId, Context context) { in checkCurrentOrManagedUserId() argument
81 if (currentUserId == UserHandle.myUserId()) { in checkCurrentOrManagedUserId()
86 if (currentUserId == allUsers.get(i).getIdentifier()) { in checkCurrentOrManagedUserId()
DRecentTasksList.java182 int currentUserId = Process.myUserHandle().getIdentifier(); in loadTasksInBackground() local
184 mActivityManagerWrapper.getRecentTasks(numTasks, currentUserId); in loadTasksInBackground()
DRecentsModel.java141 int currentUserId = Process.myUserHandle().getIdentifier(); in onTaskStackChangedBackground() local
142 if (!checkCurrentOrManagedUserId(currentUserId, mContext)) { in onTaskStackChangedBackground()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java303 int currentUserId = ActivityManager.getCurrentUser(); in doStart() local
304 setCurrentUser(currentUserId); in doStart()
306 if (userManager.isUserUnlocked(currentUserId)) { in doStart()
307 setUserUnlocked(currentUserId); in doStart()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantController.java109 int currentUserId = android.os.Process.myUserHandle().getIdentifier(); in isParentProfileOfManagedProfile() local
110 for (UserInfo userInfo : mUserManager.getProfiles(currentUserId)) { in isParentProfileOfManagedProfile()
113 mUserManager.getProfileParent(userHandle).getIdentifier() == currentUserId) { in isParentProfileOfManagedProfile()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DPrivacyChipViewController.java99 int currentUserId = mCarDeviceProvisionedController.getCurrentUser();
100 if (mCurrentUserId == currentUserId) {
104 setUser(currentUserId);
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java92 int currentUserId = UserHandle.myUserId(); in aggregateDataUsage() local
113 if (profileContainsUserId(profiles, userId) && userId == currentUserId) { in aggregateDataUsage()
120 if (profileContainsUserId(profiles, userId) && userId != currentUserId) { in aggregateDataUsage()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java2430 int currentUserId = ActivityManager.getCurrentUser(); in mockCurrentUserForBinderCalls() local
2431 Log.d(TAG, "testetUserIdentificationAssociation_ok(): current user is " + currentUserId); in mockCurrentUserForBinderCalls()
2432 UserInfo currentUser = mockUmGetUserInfo(mMockedUserManager, currentUserId, in mockCurrentUserForBinderCalls()
2514 private void mockHalGetInitialInfo(@UserIdInt int currentUserId, in mockHalGetInitialInfo() argument
2516 UsersInfo usersInfo = newUsersInfo(currentUserId); in mockHalGetInitialInfo()
2532 private void mockHalSwitch(@UserIdInt int currentUserId, @NonNull UserInfo androidTargetUser, in mockHalSwitch() argument
2534 mockHalSwitch(currentUserId, HalCallback.STATUS_OK, response, androidTargetUser); in mockHalSwitch()
2573 private BlockingAnswer<Void> mockHalSwitchLateResponse(@UserIdInt int currentUserId, in mockHalSwitchLateResponse() argument
2579 UsersInfo usersInfo = newUsersInfo(currentUserId); in mockHalSwitchLateResponse()
2596 private void mockHalSwitch(@UserIdInt int currentUserId, in mockHalSwitch() argument
[all …]
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java177 final int currentUserId = ActivityManager.getCurrentUser(); in doUserLockChanged() local
181 + ", unlocked: " + unlocked + ", currentUser: " + currentUserId); in doUserLockChanged()
183 if (unlocked && (userId == currentUserId || userId == UserHandle.USER_SYSTEM)) { in doUserLockChanged()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java144 final int currentUserId = ActivityManager.getCurrentUser(); in onClick()
147 if (UserHandle.getUserId(uid) == currentUserId) { in onClick()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppDeletionPreferenceGroup.java55 int currentUserId = getContext().getUserId(); in onAppRebuild() local
60 if (app.userId != currentUserId) { in onAppRebuild()
/packages/services/Car/service/src/com/android/car/user/
DInitialUserSetter.java356 int currentUserId = ActivityManager.getCurrentUser(); in replaceUser() local
357 UserInfo currentUser = mUm.getUserInfo(currentUserId); in replaceUser()
443 int currentUserId = ActivityManager.getCurrentUser(); in switchUser() local
444 if (actualUserId != currentUserId) { in switchUser()
DCarUserService.java755 int currentUserId = ActivityManager.getCurrentUser(); in initResumeReplaceGuest() local
756 UserInfo currentUser = mUserManager.getUserInfo(currentUserId); in initResumeReplaceGuest()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java276 int currentUserId = 10; in testStartFixedActivityModeForDisplayAndUser_notAllowedUser() local
281 mockAmGetCurrentUser(currentUserId); in testStartFixedActivityModeForDisplayAndUser_notAllowedUser()
282 expectNoProfileUser(currentUserId); in testStartFixedActivityModeForDisplayAndUser_notAllowedUser()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DProfileUserFragment.java151 int currentUserId = ActivityManager.getCurrentUser(); in updateTextInfo() local
153 mUserIdText.setText("Current userId:" + currentUserId + " myUserId:" + myUserId); in updateTextInfo()
172 int[] profileUsers = mUserManager.getEnabledProfileIds(currentUserId); in updateTextInfo()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java289 int currentUserId = ActivityManager.getCurrentUser(); in isCurrentUserHeadlessSystemUser() local
291 && currentUserId == UserHandle.USER_SYSTEM; in isCurrentUserHeadlessSystemUser()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java369 final int currentUserId = ActivityManager.getCurrentUser(); in bindStats() local
383 if (userId != currentUserId) { in bindStats()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java362 int currentUserId = userManager.getUserHandle(); in getManagedProfile() local
363 List<UserInfo> userProfiles = userManager.getProfiles(currentUserId); in getManagedProfile()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java504 int currentUserId = ActivityManager.getCurrentUser(); in updateCarUserNoticeServiceIfNecessary() local
505 UserInfo currentUserInfo = mUserManager.getUserInfo(currentUserId); in updateCarUserNoticeServiceIfNecessary()
517 carUserNoticeService.ignoreUserNotice(currentUserId); in updateCarUserNoticeServiceIfNecessary()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java531 void onUnlockedUserSwitching(int currentUserId) { in onUnlockedUserSwitching() argument
540 + " NETWORK_CARRIER_PROVISIONING permission for user - " + currentUserId); in onUnlockedUserSwitching()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java892 final int currentUserId = userManager.getUserHandle(); in getWorkProfileUserInfo() local
904 if (parent.id == currentUserId in getWorkProfileUserInfo()