Home
last modified time | relevance | path

Searched refs:UserLifecycleEvent (Results 1 – 13 of 13) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java36 import android.car.user.CarUserManager.UserLifecycleEvent;
87 UserLifecycleEvent event = listener.waitForAnyEvent(); in testForAnyEvent_ok()
110 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedOnlyExpected()
115 List<UserLifecycleEvent> allReceivedEvents = listener.getAllReceivedEvents(); in testForSpecificEvents_receivedOnlyExpected()
132 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedExtraEvents()
138 List<UserLifecycleEvent> allReceivedEvents = listener.getAllReceivedEvents(); in testForSpecificEvents_receivedExtraEvents()
153 UserLifecycleEvent wrong1 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPING, 11); in testForSpecificEvents_filterByUser()
154 UserLifecycleEvent wrong2 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPED, 11); in testForSpecificEvents_filterByUser()
155 UserLifecycleEvent right1 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, 10); in testForSpecificEvents_filterByUser()
156 UserLifecycleEvent right2 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, 10); in testForSpecificEvents_filterByUser()
[all …]
/packages/services/Car/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java23 import android.car.user.CarUserManager.UserLifecycleEvent;
62 private final List<UserLifecycleEvent> mAllReceivedEvents = new ArrayList<>();
64 private final List<UserLifecycleEvent> mExpectedEventsReceived = new ArrayList<>();
182 public void onEvent(UserLifecycleEvent event) { in onEvent()
225 public UserLifecycleEvent waitForAnyEvent() throws InterruptedException { in waitForAnyEvent()
230 UserLifecycleEvent event; in waitForAnyEvent()
247 public List<UserLifecycleEvent> waitForEvents() throws InterruptedException { in waitForEvents()
251 List<UserLifecycleEvent> events; in waitForEvents()
263 public List<UserLifecycleEvent> getAllReceivedEvents() { in getAllReceivedEvents()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventTest.java20 import android.car.user.CarUserManager.UserLifecycleEvent;
32 UserLifecycleEvent event = new UserLifecycleEvent(eventType, from, to); in testFullConstructor()
45 UserLifecycleEvent event = new UserLifecycleEvent(eventType, to); in testAlternativeConstructor()
DCarUserNoticeServiceTest.java39 import android.car.user.CarUserManager.UserLifecycleEvent;
228 mUserLifecycleListenerArgumentCaptor.getValue().onEvent(new UserLifecycleEvent( in switchUser()
DCarUserServiceTest.java64 import android.car.user.CarUserManager.UserLifecycleEvent;
294 failureListener).onEvent(any(UserLifecycleEvent.class)); in testOnUserLifecycleEvent_ensureAllListenersAreNotified()
311 UserLifecycleEvent actualEvent = mUserLifecycleListener.waitForAnyEvent(); in verifyListenerOnEventInvoked()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java40 import android.car.user.CarUserManager.UserLifecycleEvent;
141 List<UserLifecycleEvent> startEvents = startListener.waitForEvents(); in testLifecycleListener()
148 List<UserLifecycleEvent> expectedEvents = startListener.waitForEvents(); in testLifecycleListener()
150 for (UserLifecycleEvent event : expectedEvents) { in testLifecycleListener()
184 List<UserLifecycleEvent> stopEvents = stopListener.waitForEvents(); in testLifecycleListener()
189 for (UserLifecycleEvent event : stopEvents) { in testLifecycleListener()
200 List<UserLifecycleEvent> allStartEvents = startListener.getAllReceivedEvents(); in testLifecycleListener()
242 UserLifecycleEvent event = listener2.waitForEvents().get(0); in testGuestUserResumeToNewGuestUser()
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java566 UserLifecycleEvent event = new UserLifecycleEvent(eventType, from, to); in send()
672 public static final class UserLifecycleEvent { class in CarUserManager
678 public UserLifecycleEvent(@UserLifecycleEventType int eventType, in UserLifecycleEvent() method in CarUserManager.UserLifecycleEvent
686 public UserLifecycleEvent(@UserLifecycleEventType int eventType, @UserIdInt int to) { in UserLifecycleEvent() method in CarUserManager.UserLifecycleEvent
778 void onEvent(@NonNull UserLifecycleEvent event); in onEvent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarOccupantZoneServiceTest.java37 import android.car.user.CarUserManager.UserLifecycleEvent;
414 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testAssignProfileFollowedByUserSwitch()
627 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testActiveUserAfterUserSwitching()
842 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerGetUserForOccupantAfterUserSwitch()
861 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerRegisterUnregister()
874 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerRegisterUnregister()
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DUserSwitchMonitorService.java24 import android.car.user.CarUserManager.UserLifecycleEvent;
48 private final List<UserLifecycleEvent> mEvents = new ArrayList<>();
/packages/services/Car/car-lib/api/
Dtest-current.txt66 public static final class CarUserManager.UserLifecycleEvent {
73 method public void onEvent(@NonNull android.car.user.CarUserManager.UserLifecycleEvent);
Dsystem-current.txt1148 public static final class CarUserManager.UserLifecycleEvent {
1155 method public void onEvent(@NonNull android.car.user.CarUserManager.UserLifecycleEvent);
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java23 import android.car.user.CarUserManager.UserLifecycleEvent;
126 public void onEvent(UserLifecycleEvent event) { in onEvent()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java33 import android.car.user.CarUserManager.UserLifecycleEvent;
1572 UserLifecycleEvent event = new UserLifecycleEvent(eventType, fromUserId, userId); in onUserLifecycleEvent()
1607 private void handleNotifyAppUserLifecycleListeners(UserLifecycleEvent event) { in handleNotifyAppUserLifecycleListeners()
1652 private void handleNotifyServiceUserLifecycleListeners(UserLifecycleEvent event) { in handleNotifyServiceUserLifecycleListeners()