Home
last modified time | relevance | path

Searched refs:mListeners (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/animation/
DAnimator.java30 ArrayList<AnimatorListener> mListeners = null; field in Animator
150 if (mListeners == null) { in addListener()
151 mListeners = new ArrayList<AnimatorListener>(); in addListener()
153 mListeners.add(listener); in addListener()
163 if (mListeners == null) { in removeListener()
166 mListeners.remove(listener); in removeListener()
167 if (mListeners.size() == 0) { in removeListener()
168 mListeners = null; in removeListener()
179 return mListeners; in getListeners()
188 if (mListeners != null) { in removeAllListeners()
[all …]
DLayoutTransition.java249 private ArrayList<TransitionListener> mListeners; field in LayoutTransition
947 (ArrayList<TransitionListener>) mListeners.clone(); in setupChangeAnimation()
968 (ArrayList<TransitionListener>) mListeners.clone(); in setupChangeAnimation()
1140 (ArrayList<TransitionListener>) mListeners.clone(); in runAppearingTransition()
1160 (ArrayList<TransitionListener>) mListeners.clone(); in runAppearingTransition()
1185 (ArrayList<TransitionListener>) mListeners.clone(); in runDisappearingTransition()
1204 (ArrayList<TransitionListener>) mListeners.clone(); in runDisappearingTransition()
1245 (ArrayList<TransitionListener>) mListeners.clone(); in addChild()
1259 return mListeners != null && mListeners.size() > 0; in hasListeners()
1350 ArrayList<TransitionListener> listeners = (ArrayList<TransitionListener>) mListeners in removeChild()
[all …]
DAnimatorSet.java308 if (mListeners != null) { in cancel()
309 tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); in cancel()
360 if (mListeners != null) { in end()
362 (ArrayList<AnimatorListener>) mListeners.clone(); in end()
556 if (mListeners != null) { in start()
558 (ArrayList<AnimatorListener>) mListeners.clone(); in start()
568 if (mListeners != null) { in start()
570 (ArrayList<AnimatorListener>) mListeners.clone(); in start()
750 if (mListeners != null) { in onAnimationCancel()
751 int numListeners = mListeners.size(); in onAnimationCancel()
[all …]
DValueAnimator.java884 if (mListeners != null && !mStartListenersCalled) { in notifyStartListeners()
886 (ArrayList<AnimatorListener>) mListeners.clone(); in notifyStartListeners()
943 if ((mStarted || mRunning) && mListeners != null) { in cancel()
949 (ArrayList<AnimatorListener>) mListeners.clone(); in cancel()
1011 if ((mStarted || mRunning) && mListeners != null) { in endAnimation()
1017 (ArrayList<AnimatorListener>) mListeners.clone(); in endAnimation()
1040 if (mStartDelay > 0 && mListeners != null) { in startAnimation()
1095 if (mListeners != null) { in animationFrame()
1096 int numListeners = mListeners.size(); in animationFrame()
1098 mListeners.get(i).onAnimationRepeat(this); in animationFrame()
/frameworks/base/services/common_time/
Dcommon_clock_service.cpp38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size()); in dump()
101 for (size_t i = 0; i < mListeners.size(); i++) { in registerListener()
102 if (mListeners[i]->asBinder() == listener->asBinder()) in registerListener()
107 mListeners.add(listener); in registerListener()
108 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()); in registerListener()
119 for (size_t i = 0; i < mListeners.size(); i++) { in unregisterListener()
120 if (mListeners[i]->asBinder() == listener->asBinder()) { in unregisterListener()
121 mListeners[i]->asBinder()->unlinkToDeath(this); in unregisterListener()
122 mListeners.removeAt(i); in unregisterListener()
129 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()); in unregisterListener()
[all …]
Dcommon_clock_service.h86 Vector<sp<ICommonClockListener> > mListeners; variable
/frameworks/base/location/java/android/location/
DCountryDetector.java85 private final HashMap<CountryListener, ListenerTransport> mListeners; field in CountryDetector
95 mListeners = new HashMap<CountryListener, ListenerTransport>(); in CountryDetector()
123 synchronized (mListeners) { in addCountryListener()
124 if (!mListeners.containsKey(listener)) { in addCountryListener()
128 mListeners.put(listener, transport); in addCountryListener()
140 synchronized (mListeners) { in removeCountryListener()
141 ListenerTransport transport = mListeners.get(listener); in removeCountryListener()
144 mListeners.remove(listener); in removeCountryListener()
DLocationManager.java181 private HashMap<LocationListener,ListenerTransport> mListeners = field in LocationManager
817 synchronized (mListeners) { in wrapListener()
818 ListenerTransport transport = mListeners.get(listener); in wrapListener()
822 mListeners.put(listener, transport); in wrapListener()
856 synchronized (mListeners) { in removeUpdates()
857 transport = mListeners.remove(listener); in removeUpdates()
/frameworks/base/core/java/android/os/storage/
DStorageManager.java83 private List<ListenerDelegate> mListeners = new ArrayList<ListenerDelegate>(); field in StorageManager
92 final int size = mListeners.size(); in onUsbMassStorageConnectionChanged()
94 mListeners.get(i).sendShareAvailabilityChanged(available); in onUsbMassStorageConnectionChanged()
99 final int size = mListeners.size(); in onStorageStateChanged()
101 mListeners.get(i).sendStorageStateChanged(path, oldState, newState); in onStorageStateChanged()
113 … private SparseArray<ObbListenerDelegate> mListeners = new SparseArray<ObbListenerDelegate>(); field in StorageManager.ObbActionListener
118 synchronized (mListeners) { in onObbResult()
119 delegate = mListeners.get(nonce); in onObbResult()
121 mListeners.remove(nonce); in onObbResult()
133 synchronized (mListeners) { in addListener()
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java55 final ArrayList<TransportStateListener> mListeners field in TransportMediator
204 mListeners.add(listener); in registerStateListener()
208 mListeners.remove(listener); in unregisterStateListener()
212 if (mListeners.size() <= 0) { in getListeners()
215 TransportStateListener listeners[] = new TransportStateListener[mListeners.size()]; in getListeners()
216 mListeners.toArray(listeners); in getListeners()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java55 private final ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in MtpClient
78 for (Listener listener : mListeners) {
85 for (Listener listener : mListeners) {
98 for (Listener listener : mListeners) {
204 if (!mListeners.contains(listener)) { in addListener()
205 mListeners.add(listener); in addListener()
217 mListeners.remove(listener); in removeListener()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java44 private Map<String, LocationListener> mListeners; field in LocationBasedCountryDetectorTest.TestCountryDetector
55 mListeners = new HashMap<String, LocationListener>(); in TestCountryDetector()
98 mListeners.put(provider, listener); in registerListener()
103 for (Entry<String, LocationListener> entry : mListeners.entrySet()) { in unregisterListener()
105 mListeners.remove(entry.getKey()); in unregisterListener()
113 return mListeners; in getListeners()
128 LocationListener[] listeners = new LocationListener[mListeners.size()]; in notifyLocationFound()
136 return mListeners.size(); in getListenersCount()
/frameworks/base/test-runner/src/android/test/
DTestRunner.java56 private List<Listener> mListeners = Lists.newArrayList(); field in TestRunner
166 mListeners.add(listener); in addListener()
182 int count = mListeners.size(); in started()
184 mListeners.get(i).started(className); in started()
189 int count = mListeners.size(); in finished()
191 mListeners.get(i).finished(className); in finished()
199 int count = mListeners.size(); in performance()
201 mListeners.get(i).performance(className, in performance()
210 int count = mListeners.size(); in passed()
212 mListeners.get(i).passed(className); in passed()
[all …]
/frameworks/base/services/java/com/android/server/location/
DGpsLocationProvider.java296 private ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in GpsLocationProvider
333 synchronized (mListeners) {
335 int size = mListeners.size();
337 Listener test = mListeners.get(i);
346 mListeners.add(l);
356 synchronized (mListeners) {
359 int size = mListeners.size();
361 Listener test = mListeners.get(i);
368 mListeners.remove(l);
869 synchronized (mListeners) { in binderDied()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java59 private List<LocationTrackingListener> mListeners; field in TrackerService
121 mListeners = new ArrayList<LocationTrackingListener>( in initLocationListeners()
140 mListeners.add(listener); in initLocationListeners()
242 if (mListeners != null) { in stopListeners()
243 for (LocationTrackingListener listener : mListeners) { in stopListeners()
246 mListeners.clear(); in stopListeners()
248 mListeners = null; in stopListeners()
/frameworks/base/services/java/com/android/server/
DTextServicesManagerService.java425 + "Listeners count = " + bindGroup.mListeners.size()); in getSpellCheckerService()
686 int NL = grp.mListeners.size(); in dump()
688 InternalDeathRecipient listener = grp.mListeners.get(i); in dump()
710 private final CopyOnWriteArrayList<InternalDeathRecipient> mListeners = field in TextServicesManagerService.SpellCheckerBindGroup
730 for (InternalDeathRecipient listener : mListeners) { in onServiceConnected()
735 if (mListeners.contains(listener)) { in onServiceConnected()
760 final int size = mListeners.size(); in addListener()
762 if (mListeners.get(i).hasSpellCheckerListener(scListener)) { in addListener()
770 mListeners.add(recipient); in addListener()
784 final int size = mListeners.size(); in removeListener()
[all …]
DTwilightService.java65 private final ArrayList<TwilightListenerRecord> mListeners = field in TwilightService
90 if (!mListeners.isEmpty()) { in systemReady()
115 mListeners.add(new TwilightListenerRecord(listener, handler)); in registerListener()
117 if (mSystemReady && mListeners.size() == 1) { in registerListener()
131 int count = mListeners.size(); in setTwilightState()
133 mListeners.get(i).post(); in setTwilightState()
DNotificationManagerService.java178 private ArrayList<NotificationListenerInfo> mListeners field in NotificationManagerService
605 NotificationListenerInfo[] toRemove = new NotificationListenerInfo[mListeners.size()]; in rebindListenerServices()
610 toRemove = mListeners.toArray(toRemove); in rebindListenerServices()
666 mListeners.add(info); in registerListener()
692 final int N = mListeners.size(); in registerListenerService()
694 final NotificationListenerInfo info = mListeners.get(i); in registerListenerService()
699 mListeners.remove(i); in registerListenerService()
728 mListeners.add(info); in registerListenerService()
763 final int N = mListeners.size(); in unregisterListener()
765 final NotificationListenerInfo info = mListeners.get(i); in unregisterListener()
[all …]
DMountService.java208 final private ArrayList<MountServiceBinderListener> mListeners = field in MountService
637 synchronized (mListeners) { in binderDied()
638 mListeners.remove(this); in binderDied()
690 synchronized (mListeners) { in updatePublicVolumeState()
691 for (int i = mListeners.size() -1; i >= 0; i--) { in updatePublicVolumeState()
692 MountServiceBinderListener bl = mListeners.get(i); in updatePublicVolumeState()
697 mListeners.remove(i); in updatePublicVolumeState()
1090 synchronized (mListeners) { in notifyShareAvailabilityChange()
1092 for (int i = mListeners.size() -1; i >= 0; i--) { in notifyShareAvailabilityChange()
1093 MountServiceBinderListener bl = mListeners.get(i); in notifyShareAvailabilityChange()
[all …]
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java72 private final WeakHashMap<OnSharedPreferenceChangeListener, Object> mListeners = field in SharedPreferencesImpl
188 mListeners.put(listener, mContent); in registerOnSharedPreferenceChangeListener()
194 mListeners.remove(listener); in unregisterOnSharedPreferenceChangeListener()
405 boolean hasListeners = mListeners.size() > 0; in commitToMemory()
409 new HashSet<OnSharedPreferenceChangeListener>(mListeners.keySet()); in commitToMemory()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDatePickerDialog.java89 private HashSet<OnDateChangedListener> mListeners = new HashSet<OnDateChangedListener>(); field in DatePickerDialog
419 Iterator<OnDateChangedListener> iterator = mListeners.iterator(); in updatePickers()
448 mListeners.add(listener); in registerOnDateChangedListener()
453 mListeners.remove(listener); in unregisterOnDateChangedListener()
/frameworks/base/services/java/com/android/server/net/
DNetworkPolicyManagerService.java274 private final RemoteCallbackList<INetworkPolicyListener> mListeners = new RemoteCallbackList< field in NetworkPolicyManagerService
1422 mListeners.register(listener); in registerListener()
1432 mListeners.unregister(listener); in unregisterListener()
1836 final int length = mListeners.beginBroadcast();
1838 final INetworkPolicyListener listener = mListeners.getBroadcastItem(i);
1846 mListeners.finishBroadcast();
1851 final int length = mListeners.beginBroadcast();
1853 final INetworkPolicyListener listener = mListeners.getBroadcastItem(i);
1861 mListeners.finishBroadcast();
1920 final int length = mListeners.beginBroadcast();
[all …]
/frameworks/base/core/java/android/widget/
DTextView.java496 private ArrayList<TextWatcher> mListeners; field in TextView
3673 if (mListeners != null && mListeners.size() != 0) { in setText()
7242 if (mListeners == null) { in addTextChangedListener()
7243 mListeners = new ArrayList<TextWatcher>(); in addTextChangedListener()
7246 mListeners.add(watcher); in addTextChangedListener()
7255 if (mListeners != null) { in removeTextChangedListener()
7256 int i = mListeners.indexOf(watcher); in removeTextChangedListener()
7259 mListeners.remove(i); in removeTextChangedListener()
7265 if (mListeners != null) { in sendBeforeTextChanged()
7266 final ArrayList<TextWatcher> list = mListeners; in sendBeforeTextChanged()
[all …]