Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DProfileService.java257 int currentUserId = ActivityManager.getCurrentUser(); in doStart() local
258 setCurrentUser(currentUserId); in doStart()
260 if (userManager.isUserUnlocked(currentUserId)) { in doStart()
261 setUserUnlocked(currentUserId); in doStart()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java78 public static boolean checkCurrentOrManagedUserId(int currentUserId, Context context) { in checkCurrentOrManagedUserId() argument
79 if (currentUserId == UserHandle.myUserId()) { in checkCurrentOrManagedUserId()
84 if (currentUserId == allUsers.get(i).getIdentifier()) { in checkCurrentOrManagedUserId()
DRecentsModel.java137 int currentUserId = Process.myUserHandle().getIdentifier(); in onTaskStackChangedBackground() local
138 if (!checkCurrentOrManagedUserId(currentUserId, mContext)) { in onTaskStackChangedBackground()
DRecentTasksList.java148 int currentUserId = Process.myUserHandle().getIdentifier(); in loadTasksInBackground() local
151 ActivityManagerWrapper.getInstance().getRecentTasks(numTasks, currentUserId); in loadTasksInBackground()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceController.java94 int currentUserId = mCarUserManagerHelper.getCurrentProcessUserId(); in aggregateDataUsage() local
115 if (profileContainsUserId(profiles, userId) && userId == currentUserId) { in aggregateDataUsage()
122 if (profileContainsUserId(profiles, userId) && userId != currentUserId) { in aggregateDataUsage()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java118 int currentUserId = mUserManagerHelper.getCurrentForegroundUserId();
119 if (mCurrentUser != currentUserId) {
122 mCurrentUser = currentUserId;
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java150 final int currentUserId = mUserManagerHelper.getCurrentForegroundUserId(); in doUserLockChanged() local
154 + ", unlocked: " + unlocked + ", currentUser: " + currentUserId); in doUserLockChanged()
156 if (unlocked && (userId == currentUserId || userId == UserHandle.USER_SYSTEM)) { in doUserLockChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/manageapplications/
DResetAppsHelper.java136 final int currentUserId = ActivityManager.getCurrentUser(); in onClick()
139 if (UserHandle.getUserId(uid) == currentUserId) { in onClick()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java136 final int currentUserId = ActivityManager.getCurrentUser(); in onClick()
139 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/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java177 final int currentUserId = 10; in testSleepEntryAndWakeUpForProcessing() local
180 doReturn(currentUserId).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testSleepEntryAndWakeUpForProcessing()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java266 int currentUserId = ActivityManager.getCurrentUser(); in isCurrentUserHeadlessSystemUser() local
267 return mCarUserManagerHelper.isHeadlessSystemUser() && currentUserId == 0; in isCurrentUserHeadlessSystemUser()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.java335 final int currentUserId = ActivityManager.getCurrentUser(); in bindStats() local
349 if (userId != currentUserId) { in bindStats()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageList.java332 final int currentUserId = ActivityManager.getCurrentUser(); in bindStats() local
346 if (userId != currentUserId) { in bindStats()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DUtils.java372 int currentUserId = userManager.getUserHandle(); in getManagedProfile() local
373 List<UserInfo> userProfiles = userManager.getProfiles(currentUserId); in getManagedProfile()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationStation.java269 final int currentUserId = ActivityManager.getCurrentUser(); in loadNotifications() local
282 if (sbn.getUserId() != UserHandle.USER_ALL & sbn.getUserId() != currentUserId) { in loadNotifications()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationStation.java269 final int currentUserId = ActivityManager.getCurrentUser(); in loadNotifications() local
282 if (sbn.getUserId() != UserHandle.USER_ALL & sbn.getUserId() != currentUserId) { in loadNotifications()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java875 final int currentUserId = userManager.getUserHandle(); in getWorkProfileUserInfo() local
887 if (parent.id == currentUserId in getWorkProfileUserInfo()