Home
last modified time | relevance | path

Searched refs:UserLifecycleListener (Results 1 – 25 of 44) sorted by relevance

12

/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/tests/src/com/android/car/portraitlauncher/common/test/
DUserEventReceiverTest.java94 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/
DCarRemoteDeviceServiceTest.java64 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/
DInternalLifecycleListener.java20 import android.car.user.CarUserManager.UserLifecycleListener;
29 public final UserLifecycleListener listener;
32 InternalLifecycleListener(UserLifecycleListener listener, in InternalLifecycleListener()
DCarUserNoticeService.java38 import android.car.user.CarUserManager.UserLifecycleListener;
127 private final UserLifecycleListener mUserLifecycleListener = event -> {
DExperimentalCarUserService.java41 import android.car.user.CarUserManager.UserLifecycleListener;
102 private final UserLifecycleListener mUserLifecycleListener = event -> {
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java33 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/
DCarServiceMediator.java43 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()
DUserPickerSharedState.java26 import android.car.user.CarUserManager.UserLifecycleListener;
87 private final UserLifecycleListener mUserStoppedEventListener = event -> {
DUserEventManager.java39 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/
DUserEventReceiver.java42 private CarUserManager.UserLifecycleListener mUserListener =
43 new CarUserManager.UserLifecycleListener() {
/packages/services/Car/car-lib/src/android/car/app/
DCarTaskViewControllerSupervisor.java28 import android.car.user.CarUserManager.UserLifecycleListener;
301 private UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
/packages/services/Car/car-lib/src/android/car/user/
DCarUserManager.java371 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/
DCarUserServiceTest.java80 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()
DCarUserNoticeServiceTest.java43 import android.car.user.CarUserManager.UserLifecycleListener;
98 private ArgumentCaptor<UserLifecycleListener> mUserLifecycleListenerArgumentCaptor;
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DDockViewControllerWrapper.java67 private final CarUserManager.UserLifecycleListener mUserLifecycleListener =
68 new CarUserManager.UserLifecycleListener() {
/packages/services/Car/service/src/com/android/car/
DCarPerUserServiceHelper.java27 import android.car.user.CarUserManager.UserLifecycleListener;
95 private final UserLifecycleListener mUserLifecycleListener = event -> {
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DBlockingUserLifecycleListener.java24 import android.car.user.CarUserManager.UserLifecycleListener;
52 public final class BlockingUserLifecycleListener implements UserLifecycleListener {
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java30 import android.car.user.CarUserManager.UserLifecycleListener;
264 private final UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
/packages/services/Car/service/src/com/android/car/systemui/keyguard/
DExperimentalCarKeyguardService.java36 import android.car.user.CarUserManager.UserLifecycleListener;
86 final UserLifecycleListener mUserLifecycleListener = new UserLifecycleListener() {
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java34 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/
DDisplayInterface.java32 import android.car.user.CarUserManager.UserLifecycleListener;
215 private final UserLifecycleListener mUserLifecycleListener = event -> {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/media/
DCarMediaServiceTest.java56 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/
DCarUserManagerUnitTest.java47 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/
DCarMUPANDUserTrackerImpl.java73 private final CarUserManager.UserLifecycleListener mUserLifecycleListener = event -> {
/packages/apps/Car/Cluster/ClusterHomeSample/src/com/android/car/cluster/home/
DClusterHomeApplication.java48 import android.car.user.CarUserManager.UserLifecycleListener;
406 private final UserLifecycleListener mUserLifecycleListener = (event) -> {

12