Home
last modified time | relevance | path

Searched refs:getCurrentForegroundUserId (Results 1 – 14 of 14) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java289 doReturn(user1).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUserList()
304 doReturn(user3).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUserList()
310 doReturn(user4Guest).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUserList()
316 doReturn(user5).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUserList()
335 doReturn(user1).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUsersStartStopKeepBackgroundUserList()
338 doReturn(user2).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUsersStartStopKeepBackgroundUserList()
341 doReturn(user3).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testBackgroundUsersStartStopKeepBackgroundUserList()
377 doReturn(user1).when(mCarUserManagerHelper).getCurrentForegroundUserId(); in testStopBackgroundUserForFgUser()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java310 return mUserManager.getUserInfo(getCurrentForegroundUserId()); in getCurrentForegroundUserInfo()
316 public int getCurrentForegroundUserId() { in getCurrentForegroundUserId() method in CarUserManagerHelper
352 return getAllUsersExceptSystemUserAndSpecifiedUser(getCurrentForegroundUserId()); in getAllSwitchableUsers()
354 return getAllUsersExceptSpecifiedUser(getCurrentForegroundUserId()); in getAllSwitchableUsers()
547 return getCurrentForegroundUserId() == userInfo.id; in isForegroundUser()
892 if (userInfo.id == getCurrentForegroundUserId()) { in removeUser()
935 if (id == getCurrentForegroundUserId()) { in switchToUserId()
/packages/apps/Car/Notification/src/com/android/car/notification/
DNotificationUtils.java73 carUserManagerHelper.getCurrentForegroundUserId()); in isSystemApp()
93 carUserManagerHelper.getCurrentForegroundUserId()); in isSignedWithPlatformKey()
110 carUserManagerHelper.getCurrentForegroundUserId()); in isSystemPrivilegedOrPlatformKeyInner()
DBeeper.java251 0, UserHandle.of(mCarUserManagerHelper.getCurrentForegroundUserId())); in getContextForForegroundUser()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java127 final int fgUser = mUserManagerHelper.getCurrentForegroundUserId(); in doSwitchUser()
150 final int currentUserId = mUserManagerHelper.getCurrentForegroundUserId(); in doUserLockChanged()
183 int userId = mUserManagerHelper.getCurrentForegroundUserId(); in startOrBindServicesIfNeeded()
354 if (UserHandle.of(mUserManagerHelper.getCurrentForegroundUserId()).equals(mUser) in tryToRebind()
/packages/apps/Car/libs/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/overlays/
DOverlayManagerImpl.java66 .getAllOverlays(mCarUserManagerHelper.getCurrentForegroundUserId());
78 mCarUserManagerHelper.getCurrentForegroundUserId());
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java214 if (userHandle == mCarUserManagerHelper.getCurrentForegroundUserId()) { in setUserLockStatus()
251 if (user == mCarUserManagerHelper.getCurrentForegroundUserId()) { in startAllBackgroundUsers()
294 if (userId == mCarUserManagerHelper.getCurrentForegroundUserId()) { in stopBackgroundUser()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBrightnessTile.java65 mCarUserManagerHelper.getCurrentForegroundUserId()); in onProgressChanged()
86 mCarUserManagerHelper.getCurrentForegroundUserId()); in getCurrent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java101 when(mUserManagerHelper.getCurrentForegroundUserId()).thenReturn(UserHandle.USER_SYSTEM); in setUp()
152 when(mUserManagerHelper.getCurrentForegroundUserId()).thenReturn(FG_USER_ID); in fgUserUnlocked()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetAppPrefFragment.java136 new CarUserManagerHelper(context).getCurrentForegroundUserId()); in doInBackground()
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationHeaderView.java236 mCarUserManagerHelper.getCurrentForegroundUserId()); in loadHeaderAppName()
/packages/services/Car/tests/robotests/src/com/android/car/users/
DCarUserManagerHelperRoboTest.java71 assertThat(mHelper.getCurrentForegroundUserId()).isEqualTo(15); in testGetForegroundUserId()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserGridRecyclerView.java114 mCarUserManagerHelper.getCurrentForegroundUserId() == userInfo.id; in createUserRecords()
/packages/services/Car/service/src/com/android/car/
DICarImpl.java745 mUserManagerHelper.getCurrentForegroundUserId()); in exec()