Searched refs:UserListener (Results 1 – 7 of 7) sorted by relevance
33 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 …]
22 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 UserInfoHelper61 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 …]
42 import com.android.server.location.injector.UserInfoHelper.UserListener;187 private final UserListener mUserChangedListener = this::onUserChanged;375 if (change == UserListener.CURRENT_USER_CHANGED) { in onUserChanged()
51 import com.android.server.location.injector.UserInfoHelper.UserListener;235 private final UserListener mUserChangedListener = this::onUserChanged;484 if (change == UserListener.CURRENT_USER_CHANGED) { in onUserChanged()
113 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:
284 if (change == UserInfoHelper.UserListener.USER_STARTED) { in LocationManagerService()
22803 …r/UserInfoHelper;->addListener(Lcom/android/server/location/injector/UserInfoHelper$UserListener;)V22807 …serInfoHelper;->removeListener(Lcom/android/server/location/injector/UserInfoHelper$UserListener;)V54061 Lcom/android/server/location/injector/UserInfoHelper$UserListener;