Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 706) sorted by relevance

12345678910>>...29

/frameworks/support/design/src/android/support/design/widget/
DSnackbarManager.java70 public void show(int duration, Callback callback) { in show() argument
72 if (isCurrentSnackbar(callback)) { in show()
81 } else if (isNextSnackbar(callback)) { in show()
86 mNextSnackbar = new SnackbarRecord(duration, callback); in show()
102 public void dismiss(Callback callback, int event) { in dismiss() argument
104 if (isCurrentSnackbar(callback)) { in dismiss()
106 } else if (isNextSnackbar(callback)) { in dismiss()
116 public void onDismissed(Callback callback) { in onDismissed() argument
118 if (isCurrentSnackbar(callback)) { in onDismissed()
132 public void onShown(Callback callback) { in onShown() argument
[all …]
/frameworks/base/core/java/com/android/internal/view/
DInputConnectionWrapper.java59 InputContextCallback callback; in getInstance() local
61 callback = sInstance; in getInstance()
65 callback.mHaveValue = false; in getInstance()
67 callback = new InputContextCallback(); in getInstance()
71 callback.mSeq = sSequenceNumber++; in getInstance()
72 return callback; in getInstance()
200 InputContextCallback callback = InputContextCallback.getInstance(); in getTextAfterCursor() local
201 mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback); in getTextAfterCursor()
202 synchronized (callback) { in getTextAfterCursor()
203 callback.waitForResultLocked(); in getTextAfterCursor()
[all …]
DIInputConnectionWrapper.java67 IInputContextCallback callback; field in IInputConnectionWrapper.SomeArgs
92 public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextAfterCursor() argument
93 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_AFTER_CURSOR, length, flags, seq, callback)); in getTextAfterCursor()
96 … public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextBeforeCursor() argument
97 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_BEFORE_CURSOR, length, flags, seq, callback)); in getTextBeforeCursor()
100 public void getSelectedText(int flags, int seq, IInputContextCallback callback) { in getSelectedText() argument
101 dispatchMessage(obtainMessageISC(DO_GET_SELECTED_TEXT, flags, seq, callback)); in getSelectedText()
104 public void getCursorCapsMode(int reqModes, int seq, IInputContextCallback callback) { in getCursorCapsMode() argument
105 dispatchMessage(obtainMessageISC(DO_GET_CURSOR_CAPS_MODE, reqModes, seq, callback)); in getCursorCapsMode()
109 int flags, int seq, IInputContextCallback callback) { in getExtractedText() argument
[all …]
/frameworks/base/core/java/android/hardware/radio/
DRadioModule.java40 RadioTuner.Callback callback, Handler handler) { in RadioModule() argument
42 mEventHandlerDelegate = new NativeEventHandlerDelegate(callback, handler); in RadioModule()
98 NativeEventHandlerDelegate(final RadioTuner.Callback callback, in NativeEventHandlerDelegate() argument
116 if (callback != null) { in NativeEventHandlerDelegate()
117 callback.onError(RadioTuner.ERROR_HARDWARE_FAILURE); in NativeEventHandlerDelegate()
124 if (callback != null) { in NativeEventHandlerDelegate()
125 callback.onConfigurationChanged(config); in NativeEventHandlerDelegate()
129 if (callback != null) { in NativeEventHandlerDelegate()
130 callback.onError(RadioTuner.ERROR_CONFIG); in NativeEventHandlerDelegate()
136 if (callback != null) { in NativeEventHandlerDelegate()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DCallbackRegistryTest.java41 private void addNotifyCount(Integer callback) { in addNotifyCount() argument
42 if (callback == callback1) { in addNotifyCount()
44 } else if (callback == callback2) { in addNotifyCount()
46 } else if (callback == callback3) { in addNotifyCount()
49 deepNotifyCount[callback]++; in addNotifyCount()
56 public void onNotifyCallback(Integer callback, CallbackRegistryTest sender, in testAddListener()
61 Integer callback = 0; in testAddListener() local
66 registry.add(callback); in testAddListener()
69 assertEquals(callback, callbacks.get(0)); in testAddListener()
71 registry.add(callback); in testAddListener()
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/
DCallbackRegistryTest.java39 private void addNotifyCount(Integer callback) { in addNotifyCount() argument
40 if (callback == callback1) { in addNotifyCount()
42 } else if (callback == callback2) { in addNotifyCount()
44 } else if (callback == callback3) { in addNotifyCount()
47 deepNotifyCount[callback]++; in addNotifyCount()
55 public void onNotifyCallback(Integer callback, CallbackRegistryTest sender, in testAddListener()
60 Integer callback = 0; in testAddListener() local
65 registry.add(callback); in testAddListener()
68 assertEquals(callback, callbacks.get(0)); in testAddListener()
70 registry.add(callback); in testAddListener()
[all …]
/frameworks/base/core/java/android/service/carrier/
DCarrierMessagingService.java101 int subId, @NonNull ResultCallback<Boolean> callback) { in onFilterSms() argument
104 callback.onReceiveResult(true); in onFilterSms()
121 @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument
124 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendTextSms()
141 int sendSmsFlag, @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument
143 onSendTextSms(text, subId, destAddress, callback); in onSendTextSms()
159 @NonNull ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument
162 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendDataSms()
180 @NonNull ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument
182 onSendDataSms(data, subId, destAddress, destPort, callback); in onSendDataSms()
[all …]
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java126 private void addCallback(final IMediaProjectionWatcherCallback callback) { in addCallback() argument
130 removeCallback(callback); in addCallback()
134 mCallbackDelegate.add(callback); in addCallback()
135 linkDeathRecipientLocked(callback, deathRecipient); in addCallback()
139 private void removeCallback(IMediaProjectionWatcherCallback callback) { in removeCallback() argument
141 unlinkDeathRecipientLocked(callback); in removeCallback()
142 mCallbackDelegate.remove(callback); in removeCallback()
146 private void linkDeathRecipientLocked(IMediaProjectionWatcherCallback callback, in linkDeathRecipientLocked() argument
149 final IBinder token = callback.asBinder(); in linkDeathRecipientLocked()
157 private void unlinkDeathRecipientLocked(IMediaProjectionWatcherCallback callback) { in unlinkDeathRecipientLocked() argument
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDelegateImplV14.java28 AppCompatDelegateImplV14(Context context, Window window, AppCompatCallback callback) { in AppCompatDelegateImplV14() argument
29 super(context, window, callback); in AppCompatDelegateImplV14()
33 Window.Callback wrapWindowCallback(Window.Callback callback) { in wrapWindowCallback() argument
36 return new AppCompatWindowCallbackV14(callback); in wrapWindowCallback()
50 AppCompatWindowCallbackV14(Window.Callback callback) { in AppCompatWindowCallbackV14() argument
51 super(callback); in AppCompatWindowCallbackV14()
55 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode() argument
58 return startAsSupportActionMode(callback); in onWindowStartingActionMode()
61 return super.onWindowStartingActionMode(callback); in onWindowStartingActionMode()
68 final ActionMode startAsSupportActionMode(ActionMode.Callback callback) { in startAsSupportActionMode() argument
[all …]
DAppCompatDelegateImplV23.java25 AppCompatDelegateImplV23(Context context, Window window, AppCompatCallback callback) { in AppCompatDelegateImplV23() argument
26 super(context, window, callback); in AppCompatDelegateImplV23()
30 Window.Callback wrapWindowCallback(Window.Callback callback) { in wrapWindowCallback() argument
33 return new AppCompatWindowCallbackV23(callback); in wrapWindowCallback()
37 AppCompatWindowCallbackV23(Window.Callback callback) { in AppCompatWindowCallbackV23() argument
38 super(callback); in AppCompatWindowCallbackV23()
42 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode() argument
47 return startAsSupportActionMode(callback); in onWindowStartingActionMode()
51 return super.onWindowStartingActionMode(callback, type); in onWindowStartingActionMode()
55 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode() argument
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardware.java268 geofenceRequest, GeofenceHardwareCallback callback) { in addGeofence() argument
274 getCallbackWrapper(callback)); in addGeofence()
398 GeofenceHardwareMonitorCallback callback) { in registerForMonitorStateChangeCallback() argument
401 getMonitorCallbackWrapper(callback)); in registerForMonitorStateChangeCallback()
426 GeofenceHardwareMonitorCallback callback) { in unregisterForMonitorStateChangeCallback() argument
430 getMonitorCallbackWrapper(callback)); in unregisterForMonitorStateChangeCallback()
431 if (result) removeMonitorCallback(callback); in unregisterForMonitorStateChangeCallback()
439 private void removeCallback(GeofenceHardwareCallback callback) { in removeCallback() argument
441 mCallbacks.remove(callback); in removeCallback()
445 private GeofenceHardwareCallbackWrapper getCallbackWrapper(GeofenceHardwareCallback callback) { in getCallbackWrapper() argument
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java156 final Callback callback = record.getCallback(); in setDestroyed() local
160 callback.onDestroyed(conference); in setDestroyed()
181 final Callback callback = record.getCallback(); in setState() local
185 callback.onStateChanged(conference, oldState, newState); in setState()
199 final Callback callback = record.getCallback(); in addConnection() local
203 callback.onConnectionAdded(conference, connection); in addConnection()
217 final Callback callback = record.getCallback(); in removeConnection() local
221 callback.onConnectionRemoved(conference, connection); in removeConnection()
234 final Callback callback = record.getCallback(); in setConnectionCapabilities() local
238 callback.onConnectionCapabilitiesChanged( in setConnectionCapabilities()
[all …]
DRemoteConnection.java647 public void registerCallback(Callback callback) { in registerCallback() argument
648 registerCallback(callback, new Handler()); in registerCallback()
657 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
658 unregisterCallback(callback); in registerCallback()
659 if (callback != null && handler != null) { in registerCallback()
660 mCallbackRecords.add(new CallbackRecord(callback, handler)); in registerCallback()
669 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
670 if (callback != null) { in unregisterCallback()
672 if (record.getCallback() == callback) { in unregisterCallback()
1021 final Callback callback = record.getCallback(); in setState() local
[all …]
/frameworks/base/core/java/android/view/
DChoreographer.java430 public void postFrameCallback(FrameCallback callback) { in postFrameCallback() argument
431 postFrameCallbackDelayed(callback, 0); in postFrameCallback()
446 public void postFrameCallbackDelayed(FrameCallback callback, long delayMillis) { in postFrameCallbackDelayed() argument
447 if (callback == null) { in postFrameCallbackDelayed()
452 callback, FRAME_CALLBACK_TOKEN, delayMillis); in postFrameCallbackDelayed()
463 public void removeFrameCallback(FrameCallback callback) { in removeFrameCallback() argument
464 if (callback == null) { in removeFrameCallback()
468 removeCallbacksInternal(CALLBACK_ANIMATION, callback, FRAME_CALLBACK_TOKEN); in removeFrameCallback()
713 CallbackRecord callback = mCallbackPool; in obtainCallbackLocked() local
714 if (callback == null) { in obtainCallbackLocked()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRemotePlaybackClient.java213 public void setStatusCallback(StatusCallback callback) { in setStatusCallback() argument
214 mStatusCallback = callback; in setStatusCallback()
246 long positionMillis, Bundle extras, ItemActionCallback callback) { in play() argument
248 extras, callback, MediaControlIntent.ACTION_PLAY); in play()
281 long positionMillis, Bundle extras, ItemActionCallback callback) { in enqueue() argument
283 extras, callback, MediaControlIntent.ACTION_ENQUEUE); in enqueue()
288 final ItemActionCallback callback, String action) { in playOrEnqueue() argument
307 performItemAction(intent, mSessionId, null, extras, callback); in playOrEnqueue()
336 ItemActionCallback callback) { in seek() argument
344 performItemAction(intent, mSessionId, itemId, extras, callback); in seek()
[all …]
/frameworks/base/core/java/android/content/pm/
DLauncherApps.java285 public void registerCallback(Callback callback) { in registerCallback() argument
286 registerCallback(callback, null); in registerCallback()
295 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
297 if (callback != null && findCallbackLocked(callback) < 0) { in registerCallback()
299 addCallbackLocked(callback, handler); in registerCallback()
316 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
318 removeCallbackLocked(callback); in unregisterCallback()
329 private int findCallbackLocked(Callback callback) { in findCallbackLocked() argument
330 if (callback == null) { in findCallbackLocked()
335 if (mCallbacks.get(i).mCallback == callback) { in findCallbackLocked()
[all …]
/frameworks/base/core/java/android/inputmethodservice/
DAbstractInputMethodService.java62 public void createSession(SessionCallback callback) { in createSession() argument
63 callback.sessionCreated(onCreateInputMethodSessionInterface()); in createSession()
135 public void dispatchKeyEvent(int seq, KeyEvent event, EventCallback callback) { in dispatchKeyEvent() argument
138 if (callback != null) { in dispatchKeyEvent()
139 callback.finishedEvent(seq, handled); in dispatchKeyEvent()
148 public void dispatchTrackballEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchTrackballEvent() argument
150 if (callback != null) { in dispatchTrackballEvent()
151 callback.finishedEvent(seq, handled); in dispatchTrackballEvent()
160 public void dispatchGenericMotionEvent(int seq, MotionEvent event, EventCallback callback) { in dispatchGenericMotionEvent() argument
162 if (callback != null) { in dispatchGenericMotionEvent()
[all …]
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java60 Callback(E callback, Object cookie) { in Callback() argument
61 mCallback = callback; in Callback()
77 public boolean register(E callback) { in register() argument
78 return register(callback, null); in register()
106 public boolean register(E callback, Object cookie) { in register() argument
111 IBinder binder = callback.asBinder(); in register()
113 Callback cb = new Callback(callback, cookie); in register()
140 public boolean unregister(E callback) { in unregister() argument
142 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister()
174 public void onCallbackDied(E callback) { in onCallbackDied() argument
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java91 public void startScan(final ScanCallback callback) { in startScan() argument
92 if (callback == null) { in startScan()
95 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
114 final ScanCallback callback) { in startScan() argument
115 startScan(filters, settings, callback, null); in startScan()
119 final ScanCallback callback, List<List<ResultStorageDescriptor>> resultStorages) { in startScan() argument
121 if (settings == null || callback == null) { in startScan()
125 if (mLeScanClients.containsKey(callback)) { in startScan()
126 postCallbackError(callback, ScanCallback.SCAN_FAILED_ALREADY_STARTED); in startScan()
136 postCallbackError(callback, ScanCallback.SCAN_FAILED_INTERNAL_ERROR); in startScan()
[all …]
/frameworks/support/v4/java/android/support/v4/print/
DPrintHelper.java105 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback); in printBitmap() argument
107 public void printBitmap(String jobName, Uri imageFile, OnPrintFinishCallback callback) in printBitmap() argument
145 public void printBitmap(String jobName, Bitmap bitmap, OnPrintFinishCallback callback) { in printBitmap() argument
149 public void printBitmap(String jobName, Uri imageFile, OnPrintFinishCallback callback) { in printBitmap() argument
195 final OnPrintFinishCallback callback) { in printBitmap() argument
197 if (callback != null) { in printBitmap()
201 callback.onFinish(); in printBitmap()
210 final OnPrintFinishCallback callback) throws FileNotFoundException { in printBitmap() argument
212 if (callback != null) { in printBitmap()
216 callback.onFinish(); in printBitmap()
[all …]
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java74 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
75 if (callback == null) { in registerCallback()
81 mCallbacks.put(callback, new CallbackRecord(callback, handler)); in registerCallback()
90 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
91 if (callback == null) { in unregisterCallback()
94 mCallbacks.remove(callback); in unregisterCallback()
102 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
107 DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION, callback, handler); in createVirtualDisplay()
135 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay() argument
138 this, name, width, height, dpi, surface, flags, callback, handler); in createVirtualDisplay()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRotationLockControllerImpl.java45 public void addRotationLockControllerCallback(RotationLockControllerCallback callback) { in addRotationLockControllerCallback() argument
46 mCallbacks.add(callback); in addRotationLockControllerCallback()
47 notifyChanged(callback); in addRotationLockControllerCallback()
50 public void removeRotationLockControllerCallback(RotationLockControllerCallback callback) { in removeRotationLockControllerCallback() argument
51 mCallbacks.remove(callback); in removeRotationLockControllerCallback()
81 for (RotationLockControllerCallback callback : mCallbacks) { in notifyChanged()
82 notifyChanged(callback); in notifyChanged()
86 private void notifyChanged(RotationLockControllerCallback callback) { in notifyChanged() argument
87 callback.onRotationLockStateChanged(RotationPolicy.isRotationLocked(mContext), in notifyChanged()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java130 public void registerAvailabilityCallback(@NonNull AvailabilityCallback callback, in registerAvailabilityCallback() argument
141 CameraManagerGlobal.get().registerAvailabilityCallback(callback, handler); in registerAvailabilityCallback()
152 public void unregisterAvailabilityCallback(@NonNull AvailabilityCallback callback) { in unregisterAvailabilityCallback() argument
153 CameraManagerGlobal.get().unregisterAvailabilityCallback(callback); in unregisterAvailabilityCallback()
178 public void registerTorchCallback(@NonNull TorchCallback callback, @Nullable Handler handler) { in registerTorchCallback() argument
187 CameraManagerGlobal.get().registerTorchCallback(callback, handler); in registerTorchCallback()
198 public void unregisterTorchCallback(@NonNull TorchCallback callback) { in unregisterTorchCallback() argument
199 CameraManagerGlobal.get().unregisterTorchCallback(callback); in unregisterTorchCallback()
291 CameraDevice.StateCallback callback, Handler handler) in openCameraDeviceUserAsync() argument
304 callback, in openCameraDeviceUserAsync()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DDefaultPhotoManager.java64 public void populatePhotoBytesAsync(RecipientEntry entry, PhotoManagerCallback callback) { in populatePhotoBytesAsync() argument
70 if (callback != null) { in populatePhotoBytesAsync()
71 callback.onPhotoBytesPopulated(); in populatePhotoBytesAsync()
78 fetchPhotoAsync(entry, photoThumbnailUri, callback); in populatePhotoBytesAsync()
80 } else if (callback != null) { in populatePhotoBytesAsync()
81 callback.onPhotoBytesAsyncLoadFailed(); in populatePhotoBytesAsync()
86 final PhotoManagerCallback callback) { in fetchPhotoAsync() argument
135 if (callback != null) { in fetchPhotoAsync()
136 callback.onPhotoBytesAsynchronouslyPopulated(); in fetchPhotoAsync()
138 } else if (callback != null) { in fetchPhotoAsync()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiPlaybackClient.java81 public void oneTouchPlay(OneTouchPlayCallback callback) { in oneTouchPlay() argument
84 mService.oneTouchPlay(getCallbackWrapper(callback)); in oneTouchPlay()
101 public void queryDisplayStatus(DisplayStatusCallback callback) { in queryDisplayStatus() argument
103 mService.queryDisplayStatus(getCallbackWrapper(callback)); in queryDisplayStatus()
120 private IHdmiControlCallback getCallbackWrapper(final OneTouchPlayCallback callback) { in getCallbackWrapper() argument
124 callback.onComplete(result); in getCallbackWrapper()
129 private IHdmiControlCallback getCallbackWrapper(final DisplayStatusCallback callback) {
133 callback.onComplete(status);

12345678910>>...29