/system/core/healthd/ |
BatteryPropertiesRegistrar.cpp | 38 for (size_t i = 0; i < mListeners.size(); i++) { 39 mListeners[i]->batteryPropertiesChanged(props); 47 for (size_t i = 0; i < mListeners.size(); i++) { 48 if (mListeners[i]->asBinder() == listener->asBinder()) { 53 mListeners.add(listener); 61 for (size_t i = 0; i < mListeners.size(); i++) { 62 if (mListeners[i]->asBinder() == listener->asBinder()) { 63 mListeners[i]->asBinder()->unlinkToDeath(this); 64 mListeners.removeAt(i); 73 for (size_t i = 0; i < mListeners.size(); i++) [all...] |
BatteryPropertiesRegistrar.h | 43 Vector<sp<IBatteryPropertiesListener> > mListeners;
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ViewPositionObserver.java | 20 private final ArrayList<Listener> mListeners; 28 mListeners = new ArrayList<Listener>(); 64 if (mListeners.contains(listener)) return; 66 if (mListeners.isEmpty()) { 71 mListeners.add(listener); 79 if (!mListeners.contains(listener)) return; 81 mListeners.remove(listener); 83 if (mListeners.isEmpty()) { 89 for (int i = 0; i < mListeners.size(); i++) { 90 mListeners.get(i).onPositionChanged(mPosition[0], mPosition[1]) [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
PointerEventDispatcher.java | 31 ArrayList<PointerEventListener> mListeners = new ArrayList<PointerEventListener>(); 45 synchronized (mListeners) { 47 mListenersArray = new PointerEventListener[mListeners.size()]; 48 mListeners.toArray(mListenersArray); 66 synchronized (mListeners) { 67 if (mListeners.contains(listener)) { 71 mListeners.add(listener); 81 synchronized (mListeners) { 82 if (!mListeners.contains(listener)) { 86 mListeners.remove(listener) [all...] |
/frameworks/base/location/java/android/location/ |
CountryDetector.java | 85 private final HashMap<CountryListener, ListenerTransport> mListeners; 95 mListeners = new HashMap<CountryListener, ListenerTransport>(); 123 synchronized (mListeners) { 124 if (!mListeners.containsKey(listener)) { 128 mListeners.put(listener, transport); 140 synchronized (mListeners) { 141 ListenerTransport transport = mListeners.get(listener); 144 mListeners.remove(listener);
|
/packages/apps/Gallery/src/com/android/camera/ |
MonitoredActivity.java | 26 private final ArrayList<LifeCycleListener> mListeners = 51 if (mListeners.contains(listener)) return; 52 mListeners.add(listener); 56 mListeners.remove(listener); 62 for (LifeCycleListener listener : mListeners) { 70 for (LifeCycleListener listener : mListeners) { 78 for (LifeCycleListener listener : mListeners) { 86 for (LifeCycleListener listener : mListeners) {
|
/packages/apps/InCallUI/src/com/android/incallui/ |
AudioModeProvider.java | 35 private final List<AudioModeListener> mListeners = Lists.newArrayList(); 44 for (AudioModeListener l : mListeners) { 51 for (AudioModeListener l : mListeners) { 60 for (AudioModeListener l : mListeners) { 66 if (!mListeners.contains(listener)) { 67 mListeners.add(listener); 75 if (mListeners.contains(listener)) { 76 mListeners.remove(listener);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
CheckBroker.java | 23 private Collection<OnCheckedChangedListener> mListeners = 35 for (OnCheckedChangedListener l : mListeners) { 42 for (OnCheckedChangedListener l : mListeners) { 50 mListeners.add(l); 54 mListeners.remove(l);
|
/frameworks/base/core/java/android/animation/ |
Animator.java | 30 ArrayList<AnimatorListener> mListeners = null; 221 if (mListeners == null) { 222 mListeners = new ArrayList<AnimatorListener>(); 224 mListeners.add(listener); 234 if (mListeners == null) { 237 mListeners.remove(listener); 238 if (mListeners.size() == 0) { 239 mListeners = null; 250 return mListeners; 288 if (mListeners != null) [all...] |
/frameworks/base/services/common_time/ |
common_clock_service.cpp | 38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size()); 101 for (size_t i = 0; i < mListeners.size(); i++) { 102 if (mListeners[i]->asBinder() == listener->asBinder()) 107 mListeners.add(listener); 108 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()); 119 for (size_t i = 0; i < mListeners.size(); i++) { 120 if (mListeners[i]->asBinder() == listener->asBinder()) { 121 mListeners[i]->asBinder()->unlinkToDeath(this); 122 mListeners.removeAt(i); 129 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()) [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
PopupManager.java | 39 private ArrayList<OnOtherPopupShowedListener> mListeners = new ArrayList<OnOtherPopupShowedListener>(); 42 for (OnOtherPopupShowedListener listener : mListeners) { 50 mListeners.add(listener);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
PopupManager.java | 39 private ArrayList<OnOtherPopupShowedListener> mListeners = new ArrayList(); 42 for (OnOtherPopupShowedListener listener : mListeners) { 50 mListeners.add(listener);
|
/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/service/ |
ControllerService.java | 81 private List<ControllerListener> mListeners = new ArrayList<ControllerListener>(); 122 synchronized (mListeners) { 123 if (!mListeners.contains(listener)) { 124 mListeners.add(listener); 137 synchronized (mListeners) { 138 mListeners.remove(listener); 248 synchronized (mListeners) { 249 for (ControllerListener listener : mListeners) { 256 synchronized (mListeners) { 257 for (ControllerListener listener : mListeners) { [all...] |
/packages/services/Telephony/src/com/android/phone/ |
WiredHeadsetManager.java | 46 private final List<WiredHeadsetListener> mListeners = Lists.newArrayList(); 67 if (!mListeners.contains(listener)) { 68 mListeners.add(listener); 85 for (int i = 0; i < mListeners.size(); i++) { 86 mListeners.get(i).onWiredHeadsetConnection(mIsHeadsetPlugged);
|
AudioRouter.java | 51 private final List<AudioModeListener> mListeners = Lists.newArrayList(); 91 if (!mListeners.contains(listener)) { 92 mListeners.add(listener); 104 if (mListeners.contains(listener)) { 105 mListeners.remove(listener); 379 for (int i = 0; i < mListeners.size(); i++) { 380 mListeners.get(i).onAudioModeChange(mAudioMode, getMute()); 381 mListeners.get(i).onSupportedAudioModeChange(mSupportedModes);
|
/frameworks/base/core/java/android/view/accessibility/ |
CaptioningManager.java | 54 mListeners = new ArrayList<CaptioningChangeListener>(); 144 synchronized (mListeners) { 145 if (mListeners.isEmpty()) { 156 mListeners.add(listener); 171 synchronized (mListeners) { 172 mListeners.remove(listener); 174 if (mListeners.isEmpty()) { 182 synchronized (mListeners) { 183 for (CaptioningChangeListener listener : mListeners) { 191 synchronized (mListeners) { [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
XmlEditorMultiOutline.java | 56 private List<ISelectionChangedListener> mListeners; 75 mListeners = null; 112 if (mListeners == null) { 113 mListeners = new ArrayList<ISelectionChangedListener>(2); 115 mListeners.add(listener); 120 mListeners.remove(listener); 168 if (mListeners != null) { 170 for (int i = 0; i < mListeners.size(); i++) { 171 mListeners.get(i).selectionChanged(e);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherViewPropertyAnimator.java | 53 ArrayList<Animator.AnimatorListener> mListeners; 59 mListeners = new ArrayList<Animator.AnimatorListener>(); 64 mListeners.add(listener); 91 return mListeners; 101 for (int i = 0; i < mListeners.size(); i++) { 102 Animator.AnimatorListener listener = mListeners.get(i); 110 for (int i = 0; i < mListeners.size(); i++) { 111 Animator.AnimatorListener listener = mListeners.get(i); 119 for (int i = 0; i < mListeners.size(); i++) { 120 Animator.AnimatorListener listener = mListeners.get(i) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherViewPropertyAnimator.java | 54 ArrayList<Animator.AnimatorListener> mListeners; 60 mListeners = new ArrayList<Animator.AnimatorListener>(); 65 mListeners.add(listener); 92 return mListeners; 102 for (int i = 0; i < mListeners.size(); i++) { 103 Animator.AnimatorListener listener = mListeners.get(i); 111 for (int i = 0; i < mListeners.size(); i++) { 112 Animator.AnimatorListener listener = mListeners.get(i); 120 for (int i = 0; i < mListeners.size(); i++) { 121 Animator.AnimatorListener listener = mListeners.get(i) [all...] |
/development/samples/ControllerSample/src/com/example/inputmanagercompat/ |
InputManagerV9.java | 43 private final Map<InputDeviceListener, Handler> mListeners; 90 mListeners = new HashMap<InputDeviceListener, Handler>(); 120 mListeners.remove(listener); 124 mListeners.put(listener, handler); 129 mListeners.remove(listener); 134 if (!mListeners.isEmpty()) { 137 for (InputDeviceListener listener : mListeners.keySet()) { 138 Handler handler = mListeners.get(listener);
|
InputManagerV16.java | 34 private final Map<InputManagerCompat.InputDeviceListener, V16InputDeviceListener> mListeners; 38 mListeners = new HashMap<InputManagerCompat.InputDeviceListener, V16InputDeviceListener>(); 79 mListeners.put(listener, v16Listener); 84 V16InputDeviceListener curListener = mListeners.remove(listener);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListFilterController.java | 83 private final List<ContactListFilterListener> mListeners = 95 mListeners.add(listener); 100 mListeners.remove(listener); 124 if (notifyListeners && !mListeners.isEmpty()) { 137 for (ContactListFilterListener listener : mListeners) {
|
/frameworks/base/core/java/android/os/storage/ |
StorageManager.java | 83 private List<ListenerDelegate> mListeners = new ArrayList<ListenerDelegate>(); 92 final int size = mListeners.size(); 94 mListeners.get(i).sendShareAvailabilityChanged(available); 99 final int size = mListeners.size(); 101 mListeners.get(i).sendStorageStateChanged(path, oldState, newState); 113 private SparseArray<ObbListenerDelegate> mListeners = new SparseArray<ObbListenerDelegate>(); 118 synchronized (mListeners) { 119 delegate = mListeners.get(nonce); 121 mListeners.remove(nonce); 133 synchronized (mListeners) { [all...] |
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/ |
ChromeSigninController.java | 37 private final ObserverList<Listener> mListeners = new ObserverList<Listener>(); 82 for (Listener listener : mListeners) { 97 mListeners.addObserver(listener); 105 mListeners.removeObserver(listener);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ViewMode.java | 77 private final ArrayList<ModeChangeListener> mListeners = Lists.newArrayList(); 115 mListeners.add(listener); 123 ArrayList<ModeChangeListener> list = new ArrayList<ModeChangeListener>(mListeners); 257 mListeners.remove(listener);
|