/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/tests/src/com/android/car/portraitlauncher/common/test/ |
D | UserEventReceiverTest.java | 94 CarUserManager.UserLifecycleListener listener = verifyAndGetUserListener(); in onUnregister_removesListeners() 106 CarUserManager.UserLifecycleListener listener = verifyAndGetUserListener(); in onUserSwitch_notPreviousUser_noCallback() 119 CarUserManager.UserLifecycleListener listener = verifyAndGetUserListener(); in onUserSwitch_wasPreviousUser_triggersCallback() 132 CarUserManager.UserLifecycleListener listener = verifyAndGetUserListener(); in onUserUnlock_otherUser_noCallback() 145 CarUserManager.UserLifecycleListener listener = verifyAndGetUserListener(); in onUserUnlock_currentUser_triggersCallback() 154 private CarUserManager.UserLifecycleListener verifyAndGetUserListener() { in verifyAndGetUserListener() 155 ArgumentCaptor<CarUserManager.UserLifecycleListener> captor = ArgumentCaptor.forClass( in verifyAndGetUserListener() 156 CarUserManager.UserLifecycleListener.class); in verifyAndGetUserListener()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/occupantconnection/ |
D | CarRemoteDeviceServiceTest.java | 64 import android.car.user.CarUserManager.UserLifecycleListener; 593 UserLifecycleListener[] userLifecycleListeners = new UserLifecycleListener[1]; in testOccupantZoneStateChanged() 596 userLifecycleListeners[0] = (UserLifecycleListener) args[1]; in testOccupantZoneStateChanged() 668 UserLifecycleListener[] userLifecycleListeners = new UserLifecycleListener[1]; in testUserStarting() 671 userLifecycleListeners[0] = (UserLifecycleListener) args[1]; in testUserStarting() 691 UserLifecycleListener[] userLifecycleListeners = new UserLifecycleListener[1]; in testUserBecameVisible() 694 userLifecycleListeners[0] = (UserLifecycleListener) args[1]; in testUserBecameVisible() 714 UserLifecycleListener[] userLifecycleListeners = new UserLifecycleListener[1]; in testUserSwitching() 717 userLifecycleListeners[0] = (UserLifecycleListener) args[1]; in testUserSwitching() 737 UserLifecycleListener[] userLifecycleListeners = new UserLifecycleListener[1]; in testUserAssigned() [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | InternalLifecycleListener.java | 20 import android.car.user.CarUserManager.UserLifecycleListener; 29 public final UserLifecycleListener listener; 32 InternalLifecycleListener(UserLifecycleListener listener, in InternalLifecycleListener()
|
D | CarUserNoticeService.java | 38 import android.car.user.CarUserManager.UserLifecycleListener; 127 private final UserLifecycleListener mUserLifecycleListener = event -> {
|
D | ExperimentalCarUserService.java | 41 import android.car.user.CarUserManager.UserLifecycleListener; 102 private final UserLifecycleListener mUserLifecycleListener = event -> {
|
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeTest.java | 33 import android.car.user.CarUserManager.UserLifecycleListener; 262 private UserLifecycleListener getEventListener() { in getEventListener() 263 ArgumentCaptor<UserLifecycleListener> listenerCaptor = in getEventListener() 264 ArgumentCaptor.forClass(UserLifecycleListener.class); in getEventListener() 266 UserLifecycleListener listener = listenerCaptor.getValue(); in getEventListener() 270 private void mockCarUserServiceStopUserCall(UserLifecycleListener listener) { in mockCarUserServiceStopUserCall()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userpicker/ |
D | CarServiceMediator.java | 43 import android.car.user.CarUserManager.UserLifecycleListener; 80 private final Map<UserLifecycleListener, Pair<Executor, UserLifecycleEventFilter>> 107 for (UserLifecycleListener listener : mUserLifecycleListeners.keySet()) { in onConnect() 124 UserLifecycleListener listener) { in registerUserChangeEventsListener() 134 for (UserLifecycleListener listener : mUserLifecycleListeners.keySet()) { in onDestroy()
|
D | UserPickerSharedState.java | 26 import android.car.user.CarUserManager.UserLifecycleListener; 87 private final UserLifecycleListener mUserStoppedEventListener = event -> {
|
D | UserEventManager.java | 39 import android.car.user.CarUserManager.UserLifecycleListener; 128 final UserLifecycleListener mUserLifecycleListener = event -> {
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/common/ |
D | UserEventReceiver.java | 42 private CarUserManager.UserLifecycleListener mUserListener = 43 new CarUserManager.UserLifecycleListener() {
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | CarTaskViewControllerSupervisor.java | 28 import android.car.user.CarUserManager.UserLifecycleListener; 301 private UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
|
/packages/services/Car/car-lib/src/android/car/user/ |
D | CarUserManager.java | 371 private ArrayMap<UserLifecycleListener, Pair<UserLifecycleEventFilter, Executor>> mListeners; 843 @NonNull UserLifecycleListener listener) { in addListener() 858 @NonNull UserLifecycleEventFilter filter, @NonNull UserLifecycleListener listener) { in addListener() 865 @Nullable UserLifecycleEventFilter filter, UserLifecycleListener listener) { in addListenerInternal() 921 public void removeListener(@NonNull UserLifecycleListener listener) { in removeListener() 1147 ArrayMap<UserLifecycleListener, Pair<UserLifecycleEventFilter, Executor>> listeners; in send() 1158 UserLifecycleListener listener = listeners.keyAt(i); in send() 1442 public interface UserLifecycleListener { interface in CarUserManager
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 80 import android.car.user.CarUserManager.UserLifecycleListener; 277 UserLifecycleListener mockListener1 = mock(UserLifecycleListener.class); in testRemoveUserLifecycleListener() 278 UserLifecycleListener mockListener2 = mock(UserLifecycleListener.class); in testRemoveUserLifecycleListener() 321 UserLifecycleListener failureListener = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_ensureAllListenersAreNotified() 341 UserLifecycleListener mockListener1 = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_notifyListener_nullFilter() 342 UserLifecycleListener mockListener2 = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_notifyListener_nullFilter() 358 UserLifecycleListener mockListener1 = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_notifyListener_nonNullFilter() 363 UserLifecycleListener mockListener2 = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_notifyListener_nonNullFilter() 367 UserLifecycleListener mockListener3 = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_notifyListener_nonNullFilter() 638 UserLifecycleListener mockServiceListener = mock(UserLifecycleListener.class); in testOnUserLifecycleEvent_postUnlockedEvent_notifiesServiceListenersOnly()
|
D | CarUserNoticeServiceTest.java | 43 import android.car.user.CarUserManager.UserLifecycleListener; 98 private ArgumentCaptor<UserLifecycleListener> mUserLifecycleListenerArgumentCaptor;
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | DockViewControllerWrapper.java | 67 private final CarUserManager.UserLifecycleListener mUserLifecycleListener = 68 new CarUserManager.UserLifecycleListener() {
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPerUserServiceHelper.java | 27 import android.car.user.CarUserManager.UserLifecycleListener; 95 private final UserLifecycleListener mUserLifecycleListener = event -> {
|
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/ |
D | BlockingUserLifecycleListener.java | 24 import android.car.user.CarUserManager.UserLifecycleListener; 52 public final class BlockingUserLifecycleListener implements UserLifecycleListener {
|
/packages/services/Car/service/src/com/android/car/garagemode/ |
D | GarageMode.java | 30 import android.car.user.CarUserManager.UserLifecycleListener; 264 private final UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
|
/packages/services/Car/service/src/com/android/car/systemui/keyguard/ |
D | ExperimentalCarKeyguardService.java | 36 import android.car.user.CarUserManager.UserLifecycleListener; 86 final UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 34 import android.car.user.CarUserManager.UserLifecycleListener; 148 private final List<UserLifecycleListener> mUserLifecycleListeners = new ArrayList<>(); 336 UserLifecycleListener listener = invocation.getArgument(/* index= */ 1); in setUp() 345 UserLifecycleListener listener = invocation.getArgument(/* index= */ 0); in setUp()
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | DisplayInterface.java | 32 import android.car.user.CarUserManager.UserLifecycleListener; 215 private final UserLifecycleListener mUserLifecycleListener = event -> {
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/ |
D | CarMediaServiceTest.java | 56 import android.car.user.CarUserManager.UserLifecycleListener; 138 private UserLifecycleListener mUserLifecycleListener; 871 ArgumentCaptor<UserLifecycleListener> userLifecycleListenerCaptor = in mockUserLifecycleEvents() 872 ArgumentCaptor.forClass(UserLifecycleListener.class); in mockUserLifecycleEvents()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/ |
D | CarUserManagerUnitTest.java | 47 import android.car.user.CarUserManager.UserLifecycleListener; 233 UserLifecycleListener listener = (e) -> { }; in testAddListener_sameListenerAddedTwice() 267 UserLifecycleListener listener = (e) -> { }; in testRemoveListener_notAddedBefore() 274 UserLifecycleListener listener = (e) -> { }; in testRemoveListener_addAndRemove()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/users/ |
D | CarMUPANDUserTrackerImpl.java | 73 private final CarUserManager.UserLifecycleListener mUserLifecycleListener = event -> {
|
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/ |
D | ClusterHomeApplication.java | 48 import android.car.user.CarUserManager.UserLifecycleListener; 406 private final UserLifecycleListener mUserLifecycleListener = (event) -> {
|