/frameworks/base/core/java/android/animation/ |
D | Animator.java | 31 ArrayList<AnimatorListener> mListeners = null; field in Animator 143 if (mListeners == null) { in addListener() 144 mListeners = new ArrayList<AnimatorListener>(); in addListener() 146 mListeners.add(listener); in addListener() 156 if (mListeners == null) { in removeListener() 159 mListeners.remove(listener); in removeListener() 160 if (mListeners.size() == 0) { in removeListener() 161 mListeners = null; in removeListener() 172 return mListeners; in getListeners() 181 if (mListeners != null) { in removeAllListeners() [all …]
|
D | LayoutTransition.java | 218 private ArrayList<TransitionListener> mListeners; field in LayoutTransition 756 if (mListeners != null) { in setupChangeAnimation() 757 for (TransitionListener listener : mListeners) { in setupChangeAnimation() 774 if (mListeners != null) { in setupChangeAnimation() 775 for (TransitionListener listener : mListeners) { in setupChangeAnimation() 940 if (mListeners != null) { in runAppearingTransition() 941 for (TransitionListener listener : mListeners) { in runAppearingTransition() 954 if (mListeners != null) { in runAppearingTransition() 959 for (TransitionListener listener : mListeners) { in runAppearingTransition() 981 if (mListeners != null) { in runDisappearingTransition() [all …]
|
D | AnimatorSet.java | 285 if (mListeners != null) { in cancel() 286 tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); in cancel() 337 if (mListeners != null) { in end() 339 (ArrayList<AnimatorListener>) mListeners.clone(); in end() 524 if (mListeners != null) { in start() 526 (ArrayList<AnimatorListener>) mListeners.clone(); in start() 536 if (mListeners != null) { in start() 538 (ArrayList<AnimatorListener>) mListeners.clone(); in start() 718 if (mListeners != null) { in onAnimationCancel() 719 int numListeners = mListeners.size(); in onAnimationCancel() [all …]
|
D | ValueAnimator.java | 931 if (mListeners != null) { in start() 933 (ArrayList<AnimatorListener>) mListeners.clone(); in start() 960 if (mRunning && mListeners != null) { in cancel() 962 (ArrayList<AnimatorListener>) mListeners.clone(); in cancel() 1028 if (mRunning && mListeners != null) { in endAnimation() 1030 (ArrayList<AnimatorListener>) mListeners.clone(); in endAnimation() 1047 if (mStartDelay > 0 && mListeners != null) { in startAnimation() 1051 (ArrayList<AnimatorListener>) mListeners.clone(); in startAnimation() 1118 if (mListeners != null) { in animationFrame() 1119 int numListeners = mListeners.size(); in animationFrame() [all …]
|
/frameworks/base/location/java/android/location/ |
D | CountryDetector.java | 85 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()
|
D | LocationManager.java | 157 private HashMap<LocationListener,ListenerTransport> mListeners = field in LocationManager 576 synchronized (mListeners) { in _requestLocationUpdates() 577 ListenerTransport transport = mListeners.get(listener); in _requestLocationUpdates() 581 mListeners.put(listener, transport); in _requestLocationUpdates() 874 ListenerTransport transport = mListeners.remove(listener); in removeUpdates()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 73 private List<ListenerDelegate> mListeners = new ArrayList<ListenerDelegate>(); field in StorageManager 82 final int size = mListeners.size(); in onUsbMassStorageConnectionChanged() 84 mListeners.get(i).sendShareAvailabilityChanged(available); in onUsbMassStorageConnectionChanged() 89 final int size = mListeners.size(); in onStorageStateChanged() 91 mListeners.get(i).sendStorageStateChanged(path, oldState, newState); in onStorageStateChanged() 103 … private SparseArray<ObbListenerDelegate> mListeners = new SparseArray<ObbListenerDelegate>(); field in StorageManager.ObbActionListener 108 synchronized (mListeners) { in onObbResult() 109 delegate = mListeners.get(nonce); in onObbResult() 111 mListeners.remove(nonce); in onObbResult() 123 synchronized (mListeners) { in addListener() [all …]
|
/frameworks/base/core/java/android/webkit/ |
D | SearchBoxImpl.java | 114 private final List<SearchBoxListener> mListeners; field in SearchBoxImpl 122 mListeners = new ArrayList<SearchBoxListener>(); in SearchBoxImpl() 196 synchronized (mListeners) { in addSearchBoxListener() 197 mListeners.add(l); in addSearchBoxListener() 203 synchronized (mListeners) { in removeSearchBoxListener() 204 mListeners.remove(l); in removeSearchBoxListener() 298 synchronized (mListeners) { in handleSuggestions() 299 for (int i = mListeners.size() - 1; i >= 0; i--) { in handleSuggestions() 300 mListeners.get(i).onSuggestionsReceived(query, suggestions); in handleSuggestions()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/ |
D | HeightReceiver.java | 41 ArrayList<OnBarHeightChangedListener> mListeners = new ArrayList<OnBarHeightChangedListener>(); field in HeightReceiver 52 mListeners.add(l); in addOnBarHeightChangedListener() 57 mListeners.remove(l); in removeOnBarHeightChangedListener() 104 final int N = mListeners.size(); in updateHeight() 106 mListeners.get(i).onBarHeightChanged(height); in updateHeight()
|
/frameworks/base/services/java/com/android/server/location/ |
D | GpsLocationProvider.java | 251 private ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in GpsLocationProvider 299 synchronized(mListeners) { 301 int size = mListeners.size(); 303 Listener test = mListeners.get(i); 312 mListeners.add(l); 321 synchronized(mListeners) { 324 int size = mListeners.size(); 326 Listener test = mListeners.get(i); 333 mListeners.remove(l); 855 synchronized(mListeners) { in binderDied() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
D | LocationBasedCountryDetectorTest.java | 44 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/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 55 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/test-runner/src/android/test/ |
D | TestRunner.java | 56 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/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 59 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/ |
D | TextServicesManagerService.java | 289 + "Listeners count = " + bindGroup.mListeners.size()); in getSpellCheckerService() 528 int NL = grp.mListeners.size(); in dump() 530 InternalDeathRecipient listener = grp.mListeners.get(i); in dump() 552 private final ArrayList<InternalDeathRecipient> mListeners = field in TextServicesManagerService.SpellCheckerBindGroup 572 for (InternalDeathRecipient listener : mListeners) { in onServiceConnected() 597 final int size = mListeners.size(); in addListener() 599 if (mListeners.get(i).hasSpellCheckerListener(scListener)) { in addListener() 607 mListeners.add(recipient); in addListener() 621 final int size = mListeners.size(); in removeListener() 625 final InternalDeathRecipient tempRecipient = mListeners.get(i); in removeListener() [all …]
|
D | MountService.java | 176 final private ArrayList<MountServiceBinderListener> mListeners = field in MountService 553 synchronized (mListeners) { in binderDied() 554 mListeners.remove(this); in binderDied() 605 synchronized (mListeners) { in updatePublicVolumeState() 606 for (int i = mListeners.size() -1; i >= 0; i--) { in updatePublicVolumeState() 607 MountServiceBinderListener bl = mListeners.get(i); in updatePublicVolumeState() 612 mListeners.remove(i); in updatePublicVolumeState() 989 synchronized (mListeners) { in notifyShareAvailabilityChange() 991 for (int i = mListeners.size() -1; i >= 0; i--) { in notifyShareAvailabilityChange() 992 MountServiceBinderListener bl = mListeners.get(i); in notifyShareAvailabilityChange() [all …]
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 68 private final WeakHashMap<OnSharedPreferenceChangeListener, Object> mListeners = field in SharedPreferencesImpl 169 mListeners.put(listener, mContent); in registerOnSharedPreferenceChangeListener() 175 mListeners.remove(listener); in unregisterOnSharedPreferenceChangeListener() 385 boolean hasListeners = mListeners.size() > 0; in commitToMemory() 389 new HashSet<OnSharedPreferenceChangeListener>(mListeners.keySet()); in commitToMemory()
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 236 private final RemoteCallbackList<INetworkPolicyListener> mListeners = new RemoteCallbackList< field in NetworkPolicyManagerService 1090 mListeners.register(listener); in registerListener() 1100 mListeners.unregister(listener); in unregisterListener() 1422 final int length = mListeners.beginBroadcast(); 1424 final INetworkPolicyListener listener = mListeners.getBroadcastItem(i); 1432 mListeners.finishBroadcast(); 1437 final int length = mListeners.beginBroadcast(); 1439 final INetworkPolicyListener listener = mListeners.getBroadcastItem(i); 1447 mListeners.finishBroadcast();
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 3163 if (mListeners != null && mListeners.size() != 0) { in setText() 7515 if (mListeners == null) { in addTextChangedListener() 7516 mListeners = new ArrayList<TextWatcher>(); in addTextChangedListener() 7519 mListeners.add(watcher); in addTextChangedListener() 7528 if (mListeners != null) { in removeTextChangedListener() 7529 int i = mListeners.indexOf(watcher); in removeTextChangedListener() 7532 mListeners.remove(i); in removeTextChangedListener() 7538 if (mListeners != null) { in sendBeforeTextChanged() 7539 final ArrayList<TextWatcher> list = mListeners; in sendBeforeTextChanged() 7573 if (mListeners != null) { in sendOnTextChanged() [all …]
|