Searched refs:mCarUserManagerHelper (Results 1 – 4 of 4) sorted by relevance
59 private CarUserManagerHelper mCarUserManagerHelper; field in CarHelperServiceTest69 mCarServiceHelperService = new CarServiceHelperService(mMockContext, mCarUserManagerHelper); in setUpMocks()80 doReturn(new ArrayList<>()).when(mCarUserManagerHelper).getAllUsers(); in testStartsSecondaryAdminUserOnFirstRun()83 verify(mCarUserManagerHelper).createNewAdminUser(); in testStartsSecondaryAdminUserOnFirstRun()84 verify(mCarUserManagerHelper).switchToUserId(admin.id); in testStartsSecondaryAdminUserOnFirstRun()97 verify(mCarUserManagerHelper).setLastActiveUser(admin.id); in testUpdateLastActiveUserOnFirstRun()118 doReturn(users).when(mCarUserManagerHelper).getAllUsers(); in testStartsLastActiveUserOnReboot()119 doReturn(secUserId).when(mCarUserManagerHelper).getInitialUser(); in testStartsLastActiveUserOnReboot()123 verify(mCarUserManagerHelper).switchToUserId(secUserId); in testStartsLastActiveUserOnReboot()128 doReturn(admin).when(mCarUserManagerHelper).createNewAdminUser(); in mockAdminWithDefaultName()
60 private CarUserManagerHelper mCarUserManagerHelper; field in UserGridRecyclerView66 mCarUserManagerHelper = new CarUserManagerHelper(mContext); in UserGridRecyclerView()78 mCarUserManagerHelper.registerOnUsersUpdateListener(this); in onFinishInflate()87 mCarUserManagerHelper.unregisterOnUsersUpdateListener(this); in onDetachedFromWindow()96 List<UserRecord> userRecords = createUserRecords(mCarUserManagerHelper in buildAdapter()106 if (!mCarUserManagerHelper.canForegroundUserSwitchUsers()) { in createUserRecords()118 mCarUserManagerHelper.getCurrentForegroundUserId() == userInfo.id; in createUserRecords()128 if (mCarUserManagerHelper.canForegroundUserAddUsers()) { in createUserRecords()136 return new UserRecord(mCarUserManagerHelper.getCurrentForegroundUserInfo(), in createForegroundUserRecord()167 mAdapter.updateUsers(createUserRecords(mCarUserManagerHelper.getAllUsers())); in onUsersUpdate()[all …]
38 private final CarUserManagerHelper mCarUserManagerHelper; field in SwitchToGuestTimer48 mCarUserManagerHelper = new CarUserManagerHelper(context); in SwitchToGuestTimer()82 mCarUserManagerHelper.startGuestSession(mGuestName); in start()
89 private final CarUserManagerHelper mCarUserManagerHelper; field in CarServiceHelperService114 mCarUserManagerHelper = carUserManagerHelper; in CarServiceHelperService()255 if (mCarUserManagerHelper.getAllUsers().size() == 0) { in setupAndStartUsers()258 UserInfo admin = mCarUserManagerHelper.createNewAdminUser(); in setupAndStartUsers()266 targetUserId = mCarUserManagerHelper.getInitialUser(); in setupAndStartUsers()307 mCarUserManagerHelper.setLastActiveUser(targetUserId); in setupAndStartUsers()