/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/ |
D | BlockingUserLifecycleListenerTest.java | 36 import android.car.user.CarUserManager.UserLifecycleEvent; 88 UserLifecycleEvent event = listener.waitForAnyEvent(); in testForAnyEvent_ok() 111 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedOnlyExpected() 116 List<UserLifecycleEvent> allReceivedEvents = listener.getAllReceivedEvents(); in testForSpecificEvents_receivedOnlyExpected() 133 List<UserLifecycleEvent> events = listener.waitForEvents(); in testForSpecificEvents_receivedExtraEvents() 139 List<UserLifecycleEvent> allReceivedEvents = listener.getAllReceivedEvents(); in testForSpecificEvents_receivedExtraEvents() 154 UserLifecycleEvent wrong1 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPING, 11); in testForSpecificEvents_filterByUser() 155 UserLifecycleEvent wrong2 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPED, 11); in testForSpecificEvents_filterByUser() 156 UserLifecycleEvent right1 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, 10); in testForSpecificEvents_filterByUser() 157 UserLifecycleEvent right2 = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, 10); in testForSpecificEvents_filterByUser() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | UserLifecycleEventTest.java | 20 import android.car.user.CarUserManager.UserLifecycleEvent; 33 UserLifecycleEvent event = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testFullConstructor() 44 UserLifecycleEvent event = new UserLifecycleEvent(EVENT_TYPE, TO_USER_ID); in testAlternativeConstructor() 55 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_true() 56 UserLifecycleEvent event2 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_true() 63 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentEventType_false() 64 UserLifecycleEvent event2 = new UserLifecycleEvent(EVENT_TYPE + 1, in testEquals_differentEventType_false() 72 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentFromUserId_false() 73 UserLifecycleEvent event2 = new UserLifecycleEvent(EVENT_TYPE, in testEquals_differentFromUserId_false() 81 UserLifecycleEvent event1 = new UserLifecycleEvent(EVENT_TYPE, FROM_USER_ID, TO_USER_ID); in testEquals_differentToUserId_false() [all …]
|
D | UserLifecycleEventFilterTest.java | 30 import android.car.user.CarUserManager.UserLifecycleEvent; 41 private static final UserLifecycleEvent USER111_STARTING_EVENT = new UserLifecycleEvent( 43 private static final UserLifecycleEvent USER111_UNLOCKING_EVENT = new UserLifecycleEvent( 45 private static final UserLifecycleEvent USER112_STARTING_EVENT = new UserLifecycleEvent( 47 private static final UserLifecycleEvent USER111_TO_112_SWITCHING_EVENT = new UserLifecycleEvent( 49 private static final UserLifecycleEvent USER112_TO_113_SWITCHING_EVENT = new UserLifecycleEvent(
|
D | AppLifecycleListenerTest.java | 26 import android.car.user.CarUserManager.UserLifecycleEvent; 39 private static final UserLifecycleEvent USER111_STARTING_EVENT = new UserLifecycleEvent( 41 private static final UserLifecycleEvent USER112_UNLOCKING_EVENT = new UserLifecycleEvent( 43 private static final UserLifecycleEvent USER111_TO_112_SWITCHING_EVENT = new UserLifecycleEvent(
|
D | CarUserNoticeServiceTest.java | 42 import android.car.user.CarUserManager.UserLifecycleEvent; 275 mUserLifecycleListenerArgumentCaptor.getValue().onEvent(new UserLifecycleEvent( in sendUserSwitchEvent()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUserManagerUserVisibilityEventTest.java | 30 import android.car.user.CarUserManager.UserLifecycleEvent; 93 List<UserLifecycleEvent> startEvents = startListener.waitForEvents(); in testUserVisibilityEvents() 97 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, newUserId), in testUserVisibilityEvents() 98 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKING, newUserId), in testUserVisibilityEvents() 99 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, newUserId), in testUserVisibilityEvents() 100 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, newUserId)); in testUserVisibilityEvents() 124 List<UserLifecycleEvent> stopEvents = stopListener.waitForEvents(); in testUserVisibilityEvents() 129 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPING, newUserId), in testUserVisibilityEvents() 130 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STOPPED, newUserId), in testUserVisibilityEvents() 131 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_INVISIBLE, newUserId)); in testUserVisibilityEvents() [all …]
|
D | CarUserManagerLifecycleEventFilterTest.java | 31 import android.car.user.CarUserManager.UserLifecycleEvent; 187 UserLifecycleEvent[] events = buildExpectedEvents(initialUserId, newUserId); in testUserLifecycleEventFilter() 203 private UserLifecycleEvent[] buildExpectedEvents(int initialUserId, int newUserId) { in buildExpectedEvents() 204 return new UserLifecycleEvent[] { in buildExpectedEvents() 205 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_CREATED, newUserId), in buildExpectedEvents() 206 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, newUserId), in buildExpectedEvents() 207 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_SWITCHING, in buildExpectedEvents() 209 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_SWITCHING, in buildExpectedEvents()
|
D | CarUserManagerLifeCycleTest.java | 29 import android.car.user.CarUserManager.UserLifecycleEvent; 95 List<UserLifecycleEvent> startEvents = startListener.waitForEvents(); in testLifecycleListener() 102 List<UserLifecycleEvent> expectedEvents = startListener.waitForEvents(); in testLifecycleListener() 104 for (UserLifecycleEvent event : expectedEvents) { in testLifecycleListener() 138 List<UserLifecycleEvent> stopEvents = stopListener.waitForEvents(); in testLifecycleListener() 143 for (UserLifecycleEvent event : stopEvents) { in testLifecycleListener() 154 List<UserLifecycleEvent> allStartEvents = startListener.getAllReceivedEvents(); in testLifecycleListener()
|
D | CarUserManagerTest.java | 36 import android.car.user.CarUserManager.UserLifecycleEvent; 175 List<UserLifecycleEvent> events1 = listener1.waitForEvents(); in testLifecycleMultipleListeners() 177 List<UserLifecycleEvent> events3 = listener3.waitForEvents(); in testLifecycleMultipleListeners() 198 private void assertStartUserEvent(List<UserLifecycleEvent> events, @UserIdInt int userId) { in assertStartUserEvent() 201 UserLifecycleEvent event = events.get(0); in assertStartUserEvent() 258 UserLifecycleEvent event = listener2.waitForEvents().get(0); in testGuestUserResumeToNewGuestUser()
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | BlockingUserLifecycleListener.java | 23 import android.car.user.CarUserManager.UserLifecycleEvent; 65 private final List<UserLifecycleEvent> mAllReceivedEvents = new ArrayList<>(); 67 private final List<UserLifecycleEvent> mExpectedEventsReceived = new ArrayList<>(); 198 public void onEvent(UserLifecycleEvent event) { in onEvent() 241 public UserLifecycleEvent waitForAnyEvent() throws InterruptedException { in waitForAnyEvent() 246 UserLifecycleEvent event; in waitForAnyEvent() 263 public List<UserLifecycleEvent> waitForEvents() throws InterruptedException { in waitForEvents() 267 List<UserLifecycleEvent> events; in waitForEvents() 279 public List<UserLifecycleEvent> getAllReceivedEvents() { in getAllReceivedEvents()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/tests/src/com/android/car/portraitlauncher/common/test/ |
D | UserEventReceiverTest.java | 107 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onUserSwitch_notPreviousUser_noCallback() 120 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onUserSwitch_wasPreviousUser_triggersCallback() 133 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onUserUnlock_otherUser_noCallback() 146 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onUserUnlock_currentUser_triggersCallback()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systemui/keyguard/ |
D | ExperimentalCarKeyguardServiceTest.java | 157 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onSystemUserVisible_doNothing() 169 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onForegroundUserVisible_doNothing() 196 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in onUserInvisible_removeKeyguard() 285 CarUserManager.UserLifecycleEvent event = new CarUserManager.UserLifecycleEvent( in startKeyguardForSecondaryUser()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 63 import android.car.user.CarUserManager.UserLifecycleEvent; 628 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, in testOccupantZoneStateChanged() 639 event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, in testOccupantZoneStateChanged() 682 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, in testUserStarting() 705 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, in testUserBecameVisible() 728 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_SWITCHING, in testUserSwitching() 751 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, in testUserAssigned() 775 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_UNLOCKED, in testUserUnassigned() 802 UserLifecycleEvent event = new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_INVISIBLE, in testUserSwitched()
|
/packages/services/Car/tools/GenericCarApiBuilder/res/ |
D | Test1.txt | 135 public static final class UserLifecycleEvent { 141 public UserLifecycleEvent(@UserLifecycleEventType int eventType, 148 public UserLifecycleEvent(@UserLifecycleEventType int eventType, @UserIdInt int to) { 164 void onEvent(@NonNull UserLifecycleEvent event); 174 void onEvent(@NonNull UserLifecycleEvent event);
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | UserLifecycleEventFilter.java | 25 import android.car.user.CarUserManager.UserLifecycleEvent; 79 public boolean apply(@NonNull UserLifecycleEvent event) { in apply() 85 private boolean matchUserId(UserLifecycleEvent event) { in matchUserId() 101 private boolean matchEventType(UserLifecycleEvent event) { in matchEventType()
|
D | CarUserManager.java | 393 private List<UserLifecycleEvent> mEvents; 1146 UserLifecycleEvent event = new UserLifecycleEvent(eventType, from, to); in send() 1315 public static final class UserLifecycleEvent { class in CarUserManager 1321 public UserLifecycleEvent(@UserLifecycleEventType int eventType, in UserLifecycleEvent() method in CarUserManager.UserLifecycleEvent 1329 public UserLifecycleEvent(@UserLifecycleEventType int eventType, @UserIdInt int to) { in UserLifecycleEvent() method in CarUserManager.UserLifecycleEvent 1417 UserLifecycleEvent that = (UserLifecycleEvent) o; in equals() 1447 void onEvent(@NonNull UserLifecycleEvent event); in onEvent()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/ |
D | UserEventManagerTest.java | 34 import android.car.user.CarUserManager.UserLifecycleEvent; 109 UserLifecycleEvent event = mock(UserLifecycleEvent.class); in onUserLifecycleEvent_sendEvents_updateUsers()
|
/packages/services/Car/service/src/com/android/car/user/ |
D | AppLifecycleListener.java | 25 import android.car.user.CarUserManager.UserLifecycleEvent; 112 boolean applyFilters(UserLifecycleEvent event) { in applyFilters()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/ |
D | CarMediaServiceTest.java | 55 import android.car.user.CarUserManager.UserLifecycleEvent; 319 sendUserLifecycleEvent(new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, in testSetMediaSource_multiUsers() 391 sendUserLifecycleEvent(new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, in testDefaultMediaSource_backgroundUserInitialized() 408 sendUserLifecycleEvent(new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, in testDefaultMediaSource_userDataRemoved() 417 sendUserLifecycleEvent(new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_INVISIBLE, in testDefaultMediaSource_userDataRemoved() 507 sendUserLifecycleEvent(new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_VISIBLE, in testMediaSourceListener_multiUsers() 879 private void sendUserLifecycleEvent(UserLifecycleEvent event) { in sendUserLifecycleEvent()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarOccupantZoneServiceTest.java | 44 import android.car.user.CarUserManager.UserLifecycleEvent; 505 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testAssignProfileFollowedByUserSwitch() 577 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testKeepVisibleUserAfterUserSwitch() 593 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testUnassignAfterUserStop() 897 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testActiveUserAfterUserSwitching() 1151 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerGetUserForOccupantAfterUserSwitch() 1177 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerRegisterUnregister() 1190 mService.mUserLifecycleListener.onEvent(new UserLifecycleEvent( in testManagerRegisterUnregister()
|
D | CarServiceUtilsTest.java | 39 import android.car.user.CarUserManager.UserLifecycleEvent; 73 private static final UserLifecycleEvent USER_STARTING_EVENT = 74 new UserLifecycleEvent(USER_LIFECYCLE_EVENT_TYPE_STARTING, 111);
|
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeTest.java | 32 import android.car.user.CarUserManager.UserLifecycleEvent; 273 mBgHandler.post(() -> listener.onEvent(new UserLifecycleEvent( in mockCarUserServiceStopUserCall()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/common/ |
D | UserEventReceiver.java | 45 public void onEvent(@NonNull CarUserManager.UserLifecycleEvent event) {
|
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/ |
D | UserSwitchMonitorService.java | 25 import android.car.user.CarUserManager.UserLifecycleEvent; 325 public void onEvent(UserLifecycleEvent event) { in onEvent()
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageMode.java | 29 import android.car.user.CarUserManager.UserLifecycleEvent; 266 public void onEvent(UserLifecycleEvent event) {
|