Home
last modified time | relevance | path

Searched refs:mCarUserManagerHelper (Results 1 – 4 of 4) sorted by relevance

/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarHelperServiceTest.java59 private CarUserManagerHelper mCarUserManagerHelper; field in CarHelperServiceTest
69 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()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/car/
DUserGridRecyclerView.java60 private CarUserManagerHelper mCarUserManagerHelper; field in UserGridRecyclerView
66 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 …]
DSwitchToGuestTimer.java38 private final CarUserManagerHelper mCarUserManagerHelper; field in SwitchToGuestTimer
48 mCarUserManagerHelper = new CarUserManagerHelper(context); in SwitchToGuestTimer()
82 mCarUserManagerHelper.startGuestSession(mGuestName); in start()
/frameworks/opt/car/services/src/com/android/internal/car/
DCarServiceHelperService.java89 private final CarUserManagerHelper mCarUserManagerHelper; field in CarServiceHelperService
114 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()