Lines Matching refs:mListeners
75 private final PackageCallbackList<IOnAppsChangedListener> mListeners
92 synchronized (mListeners) {
96 if (mListeners.getRegisteredCallbackCount() == 0) {
102 mListeners.unregister(listener);
103 mListeners.register(listener, Binder.getCallingUserHandle());
114 synchronized (mListeners) {
118 mListeners.unregister(listener);
119 if (mListeners.getRegisteredCallbackCount() == 0) {
143 synchronized (mListeners) {
145 Log.d(TAG, "Callback count = " + mListeners.getRegisteredCallbackCount());
147 if (mListeners.getRegisteredCallbackCount() == 0) {
372 final int n = mListeners.beginBroadcast();
374 IOnAppsChangedListener listener = mListeners.getBroadcastItem(i);
375 UserHandle listeningUser = (UserHandle) mListeners.getBroadcastCookie(i);
383 mListeners.finishBroadcast();
391 final int n = mListeners.beginBroadcast();
393 IOnAppsChangedListener listener = mListeners.getBroadcastItem(i);
394 mListeners.getBroadcastCookie(i);
402 mListeners.finishBroadcast();
410 final int n = mListeners.beginBroadcast();
412 IOnAppsChangedListener listener = mListeners.getBroadcastItem(i);
413 UserHandle listeningUser = (UserHandle) mListeners.getBroadcastCookie(i);
421 mListeners.finishBroadcast();
429 final int n = mListeners.beginBroadcast();
431 IOnAppsChangedListener listener = mListeners.getBroadcastItem(i);
432 UserHandle listeningUser = (UserHandle) mListeners.getBroadcastCookie(i);
440 mListeners.finishBroadcast();
448 final int n = mListeners.beginBroadcast();
450 IOnAppsChangedListener listener = mListeners.getBroadcastItem(i);
451 UserHandle listeningUser = (UserHandle) mListeners.getBroadcastCookie(i);
459 mListeners.finishBroadcast();