Home
last modified time | relevance | path

Searched refs:UserListener (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DSystemUserInfoHelperTest.java33 import com.android.server.location.injector.UserInfoHelper.UserListener;
76 UserListener listener = mock(UserListener.class); in testListener_SwitchUser()
80 verify(listener, times(1)).onUserChanged(USER1_ID, UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
82 UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
83 verify(listener, times(1)).onUserChanged(USER2_ID, UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
85 UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
88 verify(listener, times(2)).onUserChanged(USER2_ID, UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
90 UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
91 verify(listener, times(2)).onUserChanged(USER1_ID, UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
93 UserListener.CURRENT_USER_CHANGED); in testListener_SwitchUser()
[all …]
/frameworks/base/services/core/java/com/android/server/location/injector/
DUserInfoHelper.java22 import static com.android.server.location.injector.UserInfoHelper.UserListener.CURRENT_USER_CHANGED;
23 import static com.android.server.location.injector.UserInfoHelper.UserListener.USER_STARTED;
24 import static com.android.server.location.injector.UserInfoHelper.UserListener.USER_STOPPED;
45 public interface UserListener { interface in UserInfoHelper
61 private final CopyOnWriteArrayList<UserListener> mListeners;
70 public final void addListener(UserListener listener) { in addListener()
77 public final void removeListener(UserListener listener) { in removeListener()
86 for (UserListener listener : mListeners) { in dispatchOnUserStarted()
96 for (UserListener listener : mListeners) { in dispatchOnUserStopped()
111 for (UserListener listener : mListeners) { in dispatchOnCurrentUserChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssListenerMultiplexer.java42 import com.android.server.location.injector.UserInfoHelper.UserListener;
187 private final UserListener mUserChangedListener = this::onUserChanged;
375 if (change == UserListener.CURRENT_USER_CHANGED) { in onUserChanged()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceManager.java51 import com.android.server.location.injector.UserInfoHelper.UserListener;
235 private final UserListener mUserChangedListener = this::onUserChanged;
484 if (change == UserListener.CURRENT_USER_CHANGED) { in onUserChanged()
/frameworks/base/services/core/java/com/android/server/location/provider/
DLocationProviderManager.java113 import com.android.server.location.injector.UserInfoHelper.UserListener;
1321 private final UserListener mUserChangedListener = this::onUserChanged;
2231 case UserListener.CURRENT_USER_CHANGED:
2235 case UserListener.USER_STARTED:
2238 case UserListener.USER_STOPPED:
/frameworks/base/services/core/java/com/android/server/location/
DLocationManagerService.java284 if (change == UserInfoHelper.UserListener.USER_STARTED) { in LocationManagerService()
/frameworks/base/services/
Dart-profile22803 …r/UserInfoHelper;->addListener(Lcom/android/server/location/injector/UserInfoHelper$UserListener;)V
22807 …serInfoHelper;->removeListener(Lcom/android/server/location/injector/UserInfoHelper$UserListener;)V
54061 Lcom/android/server/location/injector/UserInfoHelper$UserListener;