/frameworks/base/core/tests/coretests/src/android/print/mockservice/ |
D | StubbablePrinterDiscoverySession.java | 29 private final PrinterDiscoverySessionCallbacks mCallbacks; field in StubbablePrinterDiscoverySession 34 mCallbacks = callbacks; in StubbablePrinterDiscoverySession() 35 if (mCallbacks != null) { in StubbablePrinterDiscoverySession() 36 mCallbacks.setSession(this); in StubbablePrinterDiscoverySession() 46 if (mCallbacks != null) { in onStartPrinterDiscovery() 47 mCallbacks.onStartPrinterDiscovery(priorityList); in onStartPrinterDiscovery() 53 if (mCallbacks != null) { in onStopPrinterDiscovery() 54 mCallbacks.onStopPrinterDiscovery(); in onStopPrinterDiscovery() 60 if (mCallbacks != null) { in onValidatePrinters() 61 mCallbacks.onValidatePrinters(printerIds); in onValidatePrinters() [all …]
|
/frameworks/data-binding/baseLibrary/src/main/java/android/databinding/ |
D | CallbackRegistry.java | 48 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/base/core/java/android/os/ |
D | RemoteCallbackList.java | 50 /*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/data-binding/extensions/library/src/main/java/android/databinding/ |
D | BaseObservable.java | 24 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/com/android/internal/util/ |
D | CallbackRegistry.java | 46 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/ |
D | TransportMediator.java | 50 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/ |
D | CommandQueue.java | 89 private Callbacks mCallbacks; field in CommandQueue 135 mCallbacks = callbacks; in CommandQueue() 399 mCallbacks.setIcon(p.first, p.second); in handleMessage() 403 mCallbacks.removeIcon((String) msg.obj); in handleMessage() 409 mCallbacks.disable(msg.arg1, msg.arg2, true /* animate */); in handleMessage() 412 mCallbacks.animateExpandNotificationsPanel(); in handleMessage() 415 mCallbacks.animateCollapsePanels(0); in handleMessage() 418 mCallbacks.animateExpandSettingsPanel((String) msg.obj); in handleMessage() 422 mCallbacks.setSystemUiVisibility(args.argi1, args.argi2, args.argi3, in handleMessage() 427 mCallbacks.topAppWindowChanged(msg.arg1 != 0); in handleMessage() [all …]
|
D | RemoteInputController.java | 36 private final ArrayList<Callback> mCallbacks = new ArrayList<>(3); field in RemoteInputController 79 int N = mCallbacks.size(); in apply() 81 mCallbacks.get(i).onRemoteInputActive(remoteInputActive); in apply() 123 mCallbacks.add(callback); in addCallback() 127 int N = mCallbacks.size(); in remoteInputSent() 129 mCallbacks.get(i).onRemoteInputSent(entry); in remoteInputSent()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardUpdateMonitor.java | 194 mCallbacks = Lists.newArrayList(); field in KeyguardUpdateMonitor 310 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustChanged() 311 KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get(); in onTrustChanged() 348 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged() 349 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() 355 for (int j = 0; j < mCallbacks.size(); j++) { in handleSimSubscriptionInfoChanged() 356 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleSimSubscriptionInfoChanged() 364 for (int j = 0; j < mCallbacks.size(); j++) { in handleAirplaneModeChanged() 365 KeyguardUpdateMonitorCallback cb = mCallbacks.get(j).get(); in handleAirplaneModeChanged() 391 for (int i = 0; i < mCallbacks.size(); i++) { in onTrustManagedChanged() [all …]
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMnsService.java | 47 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/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | HotspotControllerImpl.java | 38 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in HotspotControllerImpl 81 synchronized (mCallbacks) { in addCallback() 82 if (callback == null || mCallbacks.contains(callback)) return; in addCallback() 84 mCallbacks.add(callback); in addCallback() 85 mReceiver.setListening(!mCallbacks.isEmpty()); in addCallback() 93 synchronized (mCallbacks) { in removeCallback() 94 mCallbacks.remove(callback); in removeCallback() 95 mReceiver.setListening(!mCallbacks.isEmpty()); in removeCallback() 126 synchronized (mCallbacks) { in fireCallback() 127 for (Callback callback : mCallbacks) { in fireCallback()
|
D | KeyguardMonitor.java | 32 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in KeyguardMonitor 58 mCallbacks.add(callback); in addCallback() 59 if (mCallbacks.size() != 0 && !mListening) { in addCallback() 69 if (mCallbacks.remove(callback) && mCallbacks.size() == 0 && mListening) { in removeCallback() 120 for (Callback callback : mCallbacks) { in notifyKeyguardChanged()
|
D | AccessPointControllerImpl.java | 56 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()
|
D | ZenModeControllerImpl.java | 53 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>(); field in ZenModeControllerImpl 100 mCallbacks.add(callback); in addCallback() 105 mCallbacks.remove(callback); in removeCallback() 169 for (Callback cb : mCallbacks) { in fireNextAlarmChanged() 175 for (Callback cb : mCallbacks) { in fireEffectsSuppressorChanged() 181 for (Callback cb : mCallbacks) { in fireZenChanged() 187 for (Callback cb : mCallbacks) { in fireZenAvailableChanged() 193 for (Callback cb : mCallbacks) { in fireConditionsChanged() 199 for (Callback cb : mCallbacks) { in fireManualRuleChanged() 205 for (Callback cb : mCallbacks) { in fireConfigChanged()
|
D | RotationLockControllerImpl.java | 29 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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | BluetoothEventManager.java | 51 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/base/services/core/java/com/android/server/policy/ |
D | SystemGesturesPointerEventListener.java | 50 private final Callbacks mCallbacks; field in SystemGesturesPointerEventListener 69 mCallbacks = checkNull("callbacks", callbacks); in SystemGesturesPointerEventListener() 103 mCallbacks.onMouseLeaveFromEdge(); in onPointerEvent() 105 mCallbacks.onDown(); in onPointerEvent() 113 mCallbacks.onDebug(); in onPointerEvent() 123 mCallbacks.onSwipeFromTop(); in onPointerEvent() 126 mCallbacks.onSwipeFromBottom(); in onPointerEvent() 129 mCallbacks.onSwipeFromRight(); in onPointerEvent() 136 mCallbacks.onMouseHoverAtTop(); in onPointerEvent() 139 mCallbacks.onMouseHoverAtBottom(); in onPointerEvent() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseSurfaceHolder.java | 34 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/support/v4/honeycomb_mr2/android/support/v4/os/ |
D | ParcelableCompatHoneycombMR2.java | 29 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/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 42 mCallbacks(&callbacks), in CameraFlashlight() 59 mFlashControl = new ModuleFlashControl(*mCameraModule, *mCallbacks); in createFlashlightControl() 84 *mCallbacks); in createFlashlightControl() 93 *mCallbacks); in createFlashlightControl() 237 mCallbacks->torch_mode_status_change(mCallbacks, in prepareDeviceOpen() 282 mCallbacks->torch_mode_status_change(mCallbacks, in deviceClosed() 353 mCallbacks(&callbacks), in CameraDeviceClientFlashControl() 371 if (mCallbacks) { in ~CameraDeviceClientFlashControl() 374 mCallbacks->torch_mode_status_change(mCallbacks, in ~CameraDeviceClientFlashControl() 618 mCallbacks->torch_mode_status_change(mCallbacks, in setTorchMode() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileController.java | 33 private final List<Callback> mCallbacks = new ArrayList<>(); field in ManagedProfileController 48 mCallbacks.add(callback); in addCallback() 49 if (mCallbacks.size() == 1) { in addCallback() 56 if (mCallbacks.remove(callback) && mCallbacks.size() == 0) { in removeCallback() 89 for (Callback callback : mCallbacks) { in reloadManagedProfiles() 137 for (Callback callback : mCallbacks) {
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileLifecycleManagerTests.java | 50 private final ArraySet<String> mCallbacks = new ArraySet<>(); field in TileLifecycleManagerTests 64 mCallbacks.clear(); in setUp() 151 assertFalse(mCallbacks.contains("onStartListening")); in testListeningNotListeningBeforeBind() 164 assertFalse(mCallbacks.contains("onClick")); in testNoClickOfNotListeningAnymore() 207 if (mCallbacks.contains(callback)) { in waitForCallback() 208 mCallbacks.remove(callback); in waitForCallback() 218 if (mCallbacks.contains(callback)) { in waitForCallback() 219 mCallbacks.remove(callback); in waitForCallback() 246 mCallbacks.add(intent.getStringExtra(EXTRA_CALLBACK));
|
/frameworks/support/v4/java/android/support/v4/os/ |
D | ParcelableCompat.java | 43 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/native/android/ |
D | choreographer.cpp | 76 std::priority_queue<FrameCallback> mCallbacks; member in android::Choreographer 117 mCallbacks.push(callback); in postFrameCallbackDelayed() 135 if (mCallbacks.top().dueTime <= now) { in scheduleCallbacks() 153 while (!mCallbacks.empty() && mCallbacks.top().dueTime < now) { in dispatchVsync() 154 callbacks.push_back(mCallbacks.top()); in dispatchVsync() 155 mCallbacks.pop(); in dispatchVsync()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | Task.java | 192 private ArrayList<TaskCallbacks> mCallbacks = new ArrayList<>(); field in Task 260 if (!mCallbacks.contains(cb)) { in addCallback() 261 mCallbacks.add(cb); in addCallback() 269 mCallbacks.remove(cb); in removeCallback() 282 int callbackCount = mCallbacks.size(); in setStackId() 284 mCallbacks.get(i).onTaskStackIdChanged(); in setStackId() 301 int callbackCount = mCallbacks.size(); in notifyTaskDataLoaded() 303 mCallbacks.get(i).onTaskDataLoaded(this, thumbnailInfo); in notifyTaskDataLoaded() 311 for (int i = mCallbacks.size() - 1; i >= 0; i--) { in notifyTaskDataUnloaded() 312 mCallbacks.get(i).onTaskDataUnloaded(); in notifyTaskDataUnloaded()
|