Home
last modified time | relevance | path

Searched refs:mCallbacks (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/
DCallbackRegistry.java48 private List<C> mCallbacks = new ArrayList<C>(); field in CallbackRegistry
121 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64()
140 final int callbackCount = mCallbacks.size(); in notifyRecurse()
173 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainder()
201 mNotifier.onNotifyCallback(mCallbacks.get(i), sender, arg, arg2); in notifyCallbacks()
213 int index = mCallbacks.lastIndexOf(callback); in add()
215 mCallbacks.add(callback); in add()
262 mCallbacks.remove(i); in removeRemovedCallbacks()
275 mCallbacks.remove(callback); in remove()
277 int index = mCallbacks.lastIndexOf(callback); in remove()
[all …]
/frameworks/data-binding/library/src/main/java/android/databinding/
DBaseObservable.java24 private transient PropertyChangeRegistry mCallbacks; field in BaseObservable
31 if (mCallbacks == null) { in addOnPropertyChangedCallback()
32 mCallbacks = new PropertyChangeRegistry(); in addOnPropertyChangedCallback()
34 mCallbacks.add(callback); in addOnPropertyChangedCallback()
39 if (mCallbacks != null) { in removeOnPropertyChangedCallback()
40 mCallbacks.remove(callback); in removeOnPropertyChangedCallback()
48 if (mCallbacks != null) { in notifyChange()
49 mCallbacks.notifyCallbacks(this, 0, null); in notifyChange()
61 if (mCallbacks != null) { in notifyPropertyChanged()
62 mCallbacks.notifyCallbacks(this, fieldId, null); in notifyPropertyChanged()
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java50 /*package*/ ArrayMap<IBinder, Callback> mCallbacks field in RemoteCallbackList
66 synchronized (mCallbacks) { in binderDied()
67 mCallbacks.remove(mCallback.asBinder()); in binderDied()
107 synchronized (mCallbacks) { in register()
115 mCallbacks.put(binder, cb); in register()
141 synchronized (mCallbacks) { in unregister()
142 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister()
160 synchronized (mCallbacks) { in kill()
161 for (int cbi=mCallbacks.size()-1; cbi>=0; cbi--) { in kill()
162 Callback cb = mCallbacks.valueAt(cbi); in kill()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCallbackRegistry.java46 private List<C> mCallbacks = new ArrayList<C>(); field in CallbackRegistry
123 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64Locked()
143 final int callbackCount = mCallbacks.size(); in notifyRecurseLocked()
176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainderLocked()
204 mNotifier.onNotifyCallback(mCallbacks.get(i), sender, arg, arg2); in notifyCallbacksLocked()
216 int index = mCallbacks.lastIndexOf(callback); in add()
218 mCallbacks.add(callback); in add()
264 mCallbacks.remove(i); in removeRemovedCallbacks()
276 mCallbacks.remove(callback); in remove()
278 int index = mCallbacks.lastIndexOf(callback); in remove()
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java50 final TransportPerformer mCallbacks; field in TransportMediator
65 mCallbacks.onAudioFocusChange(focusChange);
70 return mCallbacks.onGetCurrentPosition();
75 mCallbacks.onSeekTo(newPositionMs);
133 return isMediaKey(keyCode) ? mCallbacks.onMediaButtonDown(keyCode, event) : false;
142 return isMediaKey(keyCode) ? mCallbacks.onMediaButtonUp(keyCode, event) : false;
161 mCallbacks = callbacks; in TransportMediator()
240 mController.refreshState(mCallbacks.onIsPlaying(), in pushControllerState()
241 mCallbacks.onGetCurrentPosition(), in pushControllerState()
242 mCallbacks.onGetTransportControlFlags()); in pushControllerState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DCommandQueue.java78 private Callbacks mCallbacks; field in CommandQueue
115 mCallbacks = callbacks; in CommandQueue()
309 mCallbacks.addIcon(mList.getSlot(index), index, viewIndex, icon); in handleMessage()
312 mCallbacks.updateIcon(mList.getSlot(index), index, viewIndex, in handleMessage()
320 mCallbacks.removeIcon(mList.getSlot(index), index, viewIndex); in handleMessage()
327 mCallbacks.disable(msg.arg1, msg.arg2, true /* animate */); in handleMessage()
330 mCallbacks.animateExpandNotificationsPanel(); in handleMessage()
333 mCallbacks.animateCollapsePanels(0); in handleMessage()
336 mCallbacks.animateExpandSettingsPanel(); in handleMessage()
339 mCallbacks.setSystemUiVisibility(msg.arg1, msg.arg2); in handleMessage()
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardUpdateMonitor.java170 mCallbacks = Lists.newArrayList(); field in KeyguardUpdateMonitor
282 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustChanged()
283 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged()
320 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged()
321 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged()
327 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged()
328 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged()
336 for (int j = 0; j < mCallbacks.size(); j++) { in handleAirplaneModeChanged()
337 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleAirplaneModeChanged()
363 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustManagedChanged()
[all …]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMnsService.java47 static private SparseArray<Handler> mCallbacks = null; field in BluetoothMnsService
68 synchronized (mCallbacks) { in handleMessage()
69 Handler cb = mCallbacks.get(instanceId); in handleMessage()
140 if (mCallbacks == null) { in BluetoothMnsService()
142 mCallbacks = new SparseArray<Handler>(); in BluetoothMnsService()
154 synchronized (mCallbacks) { in registerCallback()
155 mCallbacks.put(instanceId, callback); in registerCallback()
169 synchronized (mCallbacks) { in unregisterCallback()
170 mCallbacks.remove(instanceId); in unregisterCallback()
172 if (mCallbacks.size() == 0) { in unregisterCallback()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothEventManager.java51 private final Collection<BluetoothCallback> mCallbacks = field in BluetoothEventManager
125 synchronized (mCallbacks) { in registerCallback()
126 mCallbacks.add(callback); in registerCallback()
132 synchronized (mCallbacks) { in unregisterCallback()
133 mCallbacks.remove(callback); in unregisterCallback()
159 synchronized (mCallbacks) { in onReceive()
160 for (BluetoothCallback callback : mCallbacks) { in onReceive()
177 synchronized (mCallbacks) { in onReceive()
178 for (BluetoothCallback callback : mCallbacks) { in onReceive()
218 synchronized (mCallbacks) { in dispatchConnectionStateChanged()
[all …]
/frameworks/support/v4/honeycomb_mr2/android/support/v4/os/
DParcelableCompatHoneycombMR2.java29 private final ParcelableCompatCreatorCallbacks<T> mCallbacks; field in ParcelableCompatCreatorHoneycombMR2
32 mCallbacks = callbacks; in ParcelableCompatCreatorHoneycombMR2()
36 return mCallbacks.createFromParcel(in, null); in createFromParcel()
40 return mCallbacks.createFromParcel(in, loader); in createFromParcel()
44 return mCallbacks.newArray(size); in newArray()
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java34 public final ArrayList<SurfaceHolder.Callback> mCallbacks field in BaseSurfaceHolder
75 synchronized (mCallbacks) { in addCallback()
78 if (mCallbacks.contains(callback) == false) { in addCallback()
79 mCallbacks.add(callback); in addCallback()
85 synchronized (mCallbacks) { in removeCallback()
86 mCallbacks.remove(callback); in removeCallback()
95 synchronized (mCallbacks) { in getCallbacks()
96 final int N = mCallbacks.size(); in getCallbacks()
101 mCallbacks.toArray(mGottenCallbacks); in getCallbacks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardMonitor.java30 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in KeyguardMonitor
56 mCallbacks.add(callback); in addCallback()
57 if (mCallbacks.size() != 0 && !mListening) { in addCallback()
67 if (mCallbacks.remove(callback) && mCallbacks.size() == 0 && mListening) { in removeCallback()
104 for (Callback callback : mCallbacks) { in notifyKeyguardChanged()
DAccessPointControllerImpl.java56 private final ArrayList<AccessPointCallback> mCallbacks = new ArrayList<AccessPointCallback>(); field in AccessPointControllerImpl
80 if (callback == null || mCallbacks.contains(callback)) return; in addAccessPointCallback()
82 mCallbacks.add(callback); in addAccessPointCallback()
83 if (mCallbacks.size() == 1) { in addAccessPointCallback()
92 mCallbacks.remove(callback); in removeAccessPointCallback()
93 if (mCallbacks.isEmpty()) { in removeAccessPointCallback()
132 for (AccessPointCallback callback : mCallbacks) { in fireSettingsIntentCallback()
138 for (AccessPointCallback callback : mCallbacks) { in fireAcccessPointsCallback()
DHotspotControllerImpl.java44 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in HotspotControllerImpl
76 if (callback == null || mCallbacks.contains(callback)) return; in addCallback()
78 mCallbacks.add(callback); in addCallback()
79 mReceiver.setListening(!mCallbacks.isEmpty()); in addCallback()
85 mCallbacks.remove(callback); in removeCallback()
86 mReceiver.setListening(!mCallbacks.isEmpty()); in removeCallback()
110 for (Callback callback : mCallbacks) { in fireCallback()
DZenModeControllerImpl.java53 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in ZenModeControllerImpl
100 mCallbacks.add(callback); in addCallback()
105 mCallbacks.remove(callback); in removeCallback()
178 for (Callback cb : mCallbacks) { in fireNextAlarmChanged()
184 for (Callback cb : mCallbacks) { in fireEffectsSuppressorChanged()
190 for (Callback cb : mCallbacks) { in fireZenChanged()
196 for (Callback cb : mCallbacks) { in fireZenAvailableChanged()
202 for (Callback cb : mCallbacks) { in fireConditionsChanged()
208 for (Callback cb : mCallbacks) { in fireManualRuleChanged()
214 for (Callback cb : mCallbacks) { in fireConfigChanged()
DRotationLockControllerImpl.java29 private final CopyOnWriteArrayList<RotationLockControllerCallback> mCallbacks = field in RotationLockControllerImpl
46 mCallbacks.add(callback); in addRotationLockControllerCallback()
51 mCallbacks.remove(callback); in removeRotationLockControllerCallback()
81 for (RotationLockControllerCallback callback : mCallbacks) { in notifyChanged()
DBluetoothControllerImpl.java40 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in BluetoothControllerImpl
68 pw.print(" mCallbacks.size="); pw.println(mCallbacks.size()); in dump()
96 mCallbacks.add(cb); in addStateChangedCallback()
102 mCallbacks.remove(cb); in removeStateChangedCallback()
242 for (BluetoothController.Callback cb : mCallbacks) { in firePairedDevicesChanged()
248 for (BluetoothController.Callback cb : mCallbacks) { in fireStateChange()
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp42 mCallbacks(&callbacks), in CameraFlashlight()
59 mFlashControl = new ModuleFlashControl(*mCameraModule, *mCallbacks); in createFlashlightControl()
84 *mCallbacks); in createFlashlightControl()
93 *mCallbacks); in createFlashlightControl()
236 mCallbacks->torch_mode_status_change(mCallbacks, in prepareDeviceOpen()
280 mCallbacks->torch_mode_status_change(mCallbacks, in deviceClosed()
350 mCallbacks(&callbacks), in CameraDeviceClientFlashControl()
368 if (mCallbacks) { in ~CameraDeviceClientFlashControl()
371 mCallbacks->torch_mode_status_change(mCallbacks, in ~CameraDeviceClientFlashControl()
615 mCallbacks->torch_mode_status_change(mCallbacks, in setTorchMode()
[all …]
/frameworks/support/v4/java/android/support/v4/os/
DParcelableCompat.java43 final ParcelableCompatCreatorCallbacks<T> mCallbacks; field in ParcelableCompat.CompatCreator
46 mCallbacks = callbacks; in CompatCreator()
51 return mCallbacks.createFromParcel(source, null); in createFromParcel()
56 return mCallbacks.newArray(size); in newArray()
/frameworks/base/services/core/java/com/android/server/policy/
DSystemGesturesPointerEventListener.java42 private final Callbacks mCallbacks; field in SystemGesturesPointerEventListener
55 mCallbacks = checkNull("callbacks", callbacks); in SystemGesturesPointerEventListener()
78 mCallbacks.onDown(); in onPointerEvent()
86 mCallbacks.onDebug(); in onPointerEvent()
96 mCallbacks.onSwipeFromTop(); in onPointerEvent()
99 mCallbacks.onSwipeFromBottom(); in onPointerEvent()
102 mCallbacks.onSwipeFromRight(); in onPointerEvent()
110 mCallbacks.onUpOrCancel(); in onPointerEvent()
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java60 private List<CallbackMessageHandler> mCallbacks field in LauncherApps
298 boolean addedFirstCallback = mCallbacks.size() == 0; in registerCallback()
319 if (mCallbacks.size() == 0) { in unregisterCallback()
333 final int size = mCallbacks.size(); in findCallbackLocked()
335 if (mCallbacks.get(i).mCallback == callback) { in findCallbackLocked()
345 mCallbacks.remove(pos); in removeCallbackLocked()
356 mCallbacks.add(toAdd); in addCallbackLocked()
368 for (CallbackMessageHandler callback : mCallbacks) {
380 for (CallbackMessageHandler callback : mCallbacks) {
392 for (CallbackMessageHandler callback : mCallbacks) {
[all …]
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardware.java165 mCallbacks = new HashMap<GeofenceHardwareCallback, GeofenceHardwareCallbackWrapper>(); field in GeofenceHardware
440 synchronized (mCallbacks) { in removeCallback()
441 mCallbacks.remove(callback); in removeCallback()
446 synchronized (mCallbacks) { in getCallbackWrapper()
447 GeofenceHardwareCallbackWrapper wrapper = mCallbacks.get(callback); in getCallbackWrapper()
450 mCallbacks.put(callback, wrapper); in getCallbackWrapper()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java51 private final Map<Callback, CallbackRecord> mCallbacks; field in MediaProjection
55 mCallbacks = new ArrayMap<Callback, CallbackRecord>(); in MediaProjection()
81 mCallbacks.put(callback, new CallbackRecord(callback, handler)); in registerCallback()
94 mCallbacks.remove(callback); in unregisterCallback()
187 for (CallbackRecord cbr : mCallbacks.values()) { in onStop()
/frameworks/base/native/android/
Dstorage_manager.cpp64 Vector<ObbCallback*> mCallbacks; member
77 mCallbacks.push(cb); in registerObbCallback()
109 int N = mCallbacks.size(); in fireCallback()
111 ObbCallback* cb = mCallbacks.editItemAt(i); in fireCallback()
114 mCallbacks.removeAt(i); in fireCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogController.java93 private final C mCallbacks = new C(); field in VolumeDialogController
133 mCallbacks.onDismissRequested(Events.DISMISS_REASON_VOLUME_CONTROLLER); in dismiss()
193 mCallbacks.add(callback, handler); in addCallback()
197 mCallbacks.remove(callback); in removeCallback()
261 mCallbacks.onStateChanged(mState); in onNotifyVisibleW()
271 mCallbacks.onShowSafetyWarning(flags); in onShowSafetyWarningW()
300 mCallbacks.onStateChanged(mState); in onVolumeChangedW()
303 mCallbacks.onShowRequested(Events.SHOW_REASON_VOLUME_CHANGED); in onVolumeChangedW()
306 mCallbacks.onShowVibrateHint(); in onVolumeChangedW()
309 mCallbacks.onShowSilentHint(); in onVolumeChangedW()
[all …]

123