Home
last modified time | relevance | path

Searched refs:CarUserManager (Results 1 – 25 of 41) sorted by relevance

12

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java21 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STARTING;
22 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPED;
23 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPING;
24 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING;
25 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED;
26 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING;
39 import android.car.user.CarUserManager;
40 import android.car.user.CarUserManager.UserLifecycleEvent;
86 private CarUserManager mCarUserManager;
111 mCarUserManager = (CarUserManager) getCar().getCarManager(Car.CAR_USER_SERVICE); in setManager()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java20 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STARTING;
21 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPED;
22 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPING;
23 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING;
24 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED;
25 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING;
35 import android.car.user.CarUserManager;
36 import android.car.user.CarUserManager.UserLifecycleEvent;
37 import android.car.user.CarUserManager.UserLifecycleEventType;
289 CarUserManager.lifecycleEventTypeToString(expectedType)).that(event.getEventType()) in assertEvent()
/packages/services/Car/car-lib/api/
Dtest-current.txt54 public final class CarUserManager {
55 …er(@NonNull java.util.concurrent.Executor, @NonNull android.car.user.CarUserManager.UserLifecycleL…
57 …SS_USERS_FULL}) public void removeListener(@NonNull android.car.user.CarUserManager.UserLifecycleL…
66 public static final class CarUserManager.UserLifecycleEvent {
72 public static interface CarUserManager.UserLifecycleListener {
73 method public void onEvent(@NonNull android.car.user.CarUserManager.UserLifecycleEvent);
/packages/services/Car/service/src/com/android/car/user/
DUserMetrics.java19 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STARTING;
20 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPED;
21 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPING;
22 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING;
23 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED;
24 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING;
25 import static android.car.user.CarUserManager.lifecycleEventTypeToString;
30 import android.car.user.CarUserManager.UserLifecycleEventType;
DCarUserNoticeService.java30 import android.car.user.CarUserManager;
31 import android.car.user.CarUserManager.UserLifecycleListener;
117 if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING == event.getEventType()) {
DCarUserService.java32 import android.car.user.CarUserManager;
33 import android.car.user.CarUserManager.UserLifecycleEvent;
34 import android.car.user.CarUserManager.UserLifecycleEventType;
35 import android.car.user.CarUserManager.UserLifecycleListener;
1565 if (eventType == CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING) { in onUserLifecycleEvent()
1567 } else if (eventType == CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED) { in onUserLifecycleEvent()
1628 data.putInt(CarUserManager.BUNDLE_PARAM_ACTION, eventType); in handleNotifyAppUserLifecycleListeners()
1632 data.putInt(CarUserManager.BUNDLE_PARAM_PREVIOUS_USER_ID, fromUserId); in handleNotifyAppUserLifecycleListeners()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserMetricsTest.java19 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STARTING;
20 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPED;
21 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_STOPPING;
22 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING;
23 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKED;
24 import static android.car.user.CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING;
DCarUserNoticeServiceTest.java38 import android.car.user.CarUserManager;
39 import android.car.user.CarUserManager.UserLifecycleEvent;
40 import android.car.user.CarUserManager.UserLifecycleListener;
229 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, userId)); in switchUser()
DCarUserManagerUnitTest.java43 import android.car.user.CarUserManager;
44 import android.car.user.CarUserManager.UserLifecycleListener;
45 import android.car.user.CarUserManager.UserSwitchUiCallback;
74 private CarUserManager mMgr;
83 mMgr = new CarUserManager(mCar, mService, mUserManager); in setFixtures()
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DUserSwitchMonitorService.java23 import android.car.user.CarUserManager;
24 import android.car.user.CarUserManager.UserLifecycleEvent;
50 private final CarUserManager.UserLifecycleListener mListener = (e) -> {
59 private CarUserManager mCarUserManager;
66 mCarUserManager = (CarUserManager) mCar.getCarManager(Car.CAR_USER_SERVICE); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DUserHelper.java23 import android.car.user.CarUserManager;
54 private final CarUserManager mCarUserManager;
76 String defaultGuestName, CarUserManager carUserManager) { in UserHelper()
84 private static CarUserManager getCarUserManager(@NonNull Context context) { in getCarUserManager()
86 CarUserManager carUserManager = (CarUserManager) car.getCarManager(Car.CAR_USER_SERVICE); in getCarUserManager()
DAddNewUserTask.java19 import android.car.user.CarUserManager;
28 private final CarUserManager mCarUserManager;
34 public AddNewUserTask(CarUserManagerHelper carUserManagerHelper, CarUserManager carUserManager, in AddNewUserTask()
DUsersListFragment.java21 import android.car.user.CarUserManager;
64 private CarUserManager mCarUserManager;
116 mCarUserManager = (CarUserManager) mCar.getCarManager(Car.CAR_USER_SERVICE); in onAttach()
DUserGridRecyclerView.java26 import android.car.user.CarUserManager;
83 private CarUserManager mCarUserManager;
100 mCarUserManager = (CarUserManager) mCar.getCarManager(Car.CAR_USER_SERVICE); in UserGridRecyclerView()
/packages/services/Car/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java22 import android.car.user.CarUserManager;
23 import android.car.user.CarUserManager.UserLifecycleEvent;
24 import android.car.user.CarUserManager.UserLifecycleEventType;
25 import android.car.user.CarUserManager.UserLifecycleListener;
300 .map((i) -> CarUserManager.lifecycleEventTypeToString(i)) in toString()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/user/
DCarUserManagerPermissionTest.java35 import android.car.user.CarUserManager;
36 import android.car.user.CarUserManager.UserLifecycleListener;
57 private CarUserManager mCarUserManager;
66 mCarUserManager = (CarUserManager) car.getCarManager(CAR_USER_SERVICE); in setUp()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java31 import android.car.user.CarUserManager;
32 import android.car.user.CarUserManager.UserLifecycleEventType;
160 sendUserLifecycleEvent(CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, in systemUserUnlocked()
180 sendUserLifecycleEvent(CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, FG_USER_ID); in fgUserUnlocked()
188 sendUserLifecycleEvent(CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, FG_USER_ID); in fgUserUnlocked()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java22 import android.car.user.CarUserManager;
23 import android.car.user.CarUserManager.UserLifecycleEvent;
24 import android.car.user.CarUserManager.UserLifecycleListener;
132 if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING == event.getEventType()) { in onEvent()
138 } else if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING == event.getEventType()) { in onEvent()
/packages/services/Car/service/src/com/android/car/
DPerUserCarServiceHelper.java20 import android.car.user.CarUserManager;
21 import android.car.user.CarUserManager.UserLifecycleListener;
82 if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING == event.getEventType()) {
DCarShellCommand.java36 import android.car.user.CarUserManager;
1014 CarUserManager carUserManager = getCarUserManager(mContext);
1067 CarUserManager carUserManager = getCarUserManager(mContext);
1173 CarUserManager carUserManager = getCarUserManager(mContext);
1251 CarUserManager carUserManager = getCarUserManager(writer, userId);
1261 private CarUserManager getCarUserManager(@NonNull PrintWriter writer, @UserIdInt int userId) {
1277 private CarUserManager getCarUserManager(@NonNull Context context) {
1279 CarUserManager carUserManager = (CarUserManager) car.getCarManager(Car.CAR_USER_SERVICE);
1396 CarUserManager carUserManager = getCarUserManager(writer, userId);
DCarMediaService.java29 import android.car.user.CarUserManager;
30 import android.car.user.CarUserManager.UserLifecycleListener;
213 if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING == event.getEventType()) {
215 } else if (CarUserManager.USER_LIFECYCLE_EVENT_TYPE_UNLOCKING == event.getEventType()) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java36 import android.car.user.CarUserManager;
37 import android.car.user.CarUserManager.UserLifecycleEvent;
415 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testAssignProfileFollowedByUserSwitch()
628 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testActiveUserAfterUserSwitching()
843 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, newUserId)); in testManagerGetUserForOccupantAfterUserSwitch()
862 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, 0)); // user id does not matter. in testManagerRegisterUnregister()
875 CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, 0)); in testManagerRegisterUnregister()
DCarInputServiceTest.java44 import android.car.user.CarUserManager;
186 sendUserLifecycleEvent(CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, userId); in rotaryServiceSettingsUpdated_whenRotaryServiceIsNotEmpty()
216 sendUserLifecycleEvent(CarUserManager.USER_LIFECYCLE_EVENT_TYPE_SWITCHING, userId); in rotaryServiceSettingsNotUpdated_whenRotaryServiceIsEmpty()
615 private void sendUserLifecycleEvent(@CarUserManager.UserLifecycleEventType int eventType, in sendUserLifecycleEvent()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DAddNewUserTaskTest.java22 import android.car.user.CarUserManager;
39 private CarUserManager mCarUserManager;
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java72 public final class CarUserManager extends CarManagerBase { class
74 private static final String TAG = CarUserManager.class.getSimpleName();
188 public CarUserManager(@NonNull Car car, @NonNull IBinder service) { in CarUserManager() method in CarUserManager
196 public CarUserManager(@NonNull Car car, @NonNull ICarUserService service, in CarUserManager() method in CarUserManager

12