Home
last modified time | relevance | path

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

12345678910>>...36

/frameworks/support/design/src/android/support/design/widget/
DSnackbarManager.java70 public void show(int duration, Callback callback) { in show() argument
72 if (isCurrentSnackbarLocked(callback)) { in show()
81 } else if (isNextSnackbarLocked(callback)) { in show()
86 mNextSnackbar = new SnackbarRecord(duration, callback); in show()
102 public void dismiss(Callback callback, int event) { in dismiss() argument
104 if (isCurrentSnackbarLocked(callback)) { in dismiss()
106 } else if (isNextSnackbarLocked(callback)) { in dismiss()
116 public void onDismissed(Callback callback) { in onDismissed() argument
118 if (isCurrentSnackbarLocked(callback)) { in onDismissed()
132 public void onShown(Callback callback) { in onShown() argument
[all …]
/frameworks/base/core/java/com/android/internal/view/
DInputConnectionWrapper.java64 InputContextCallback callback; in getInstance() local
66 callback = sInstance; in getInstance()
70 callback.mHaveValue = false; in getInstance()
72 callback = new InputContextCallback(); in getInstance()
76 callback.mSeq = sSequenceNumber++; in getInstance()
77 return callback; in getInstance()
207 InputContextCallback callback = InputContextCallback.getInstance(); in getTextAfterCursor() local
208 mIInputContext.getTextAfterCursor(length, flags, callback.mSeq, callback); in getTextAfterCursor()
209 synchronized (callback) { in getTextAfterCursor()
210 callback.waitForResultLocked(); in getTextAfterCursor()
[all …]
DIInputConnectionWrapper.java80 IInputContextCallback callback; field in IInputConnectionWrapper.SomeArgs
142 public void getTextAfterCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextAfterCursor() argument
143 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_AFTER_CURSOR, length, flags, seq, callback)); in getTextAfterCursor()
146 … public void getTextBeforeCursor(int length, int flags, int seq, IInputContextCallback callback) { in getTextBeforeCursor() argument
147 dispatchMessage(obtainMessageIISC(DO_GET_TEXT_BEFORE_CURSOR, length, flags, seq, callback)); in getTextBeforeCursor()
150 public void getSelectedText(int flags, int seq, IInputContextCallback callback) { in getSelectedText() argument
151 dispatchMessage(obtainMessageISC(DO_GET_SELECTED_TEXT, flags, seq, callback)); in getSelectedText()
154 public void getCursorCapsMode(int reqModes, int seq, IInputContextCallback callback) { in getCursorCapsMode() argument
155 dispatchMessage(obtainMessageISC(DO_GET_CURSOR_CAPS_MODE, reqModes, seq, callback)); in getCursorCapsMode()
159 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()
99 NativeEventHandlerDelegate(final RadioTuner.Callback callback, in NativeEventHandlerDelegate() argument
117 if (callback != null) { in NativeEventHandlerDelegate()
118 callback.onError(RadioTuner.ERROR_HARDWARE_FAILURE); in NativeEventHandlerDelegate()
125 if (callback != null) { in NativeEventHandlerDelegate()
126 callback.onConfigurationChanged(config); in NativeEventHandlerDelegate()
130 if (callback != null) { in NativeEventHandlerDelegate()
131 callback.onError(RadioTuner.ERROR_CONFIG); in NativeEventHandlerDelegate()
137 if (callback != null) { in NativeEventHandlerDelegate()
[all …]
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp65 ACameraManager*, const ACameraManager_AvailabilityCallbacks *callback) { in ACameraManager_registerAvailabilityCallback() argument
67 if (callback == nullptr) { in ACameraManager_registerAvailabilityCallback()
71 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_registerAvailabilityCallback()
74 __FUNCTION__, callback, in ACameraManager_registerAvailabilityCallback()
75 callback->onCameraAvailable, callback->onCameraUnavailable); in ACameraManager_registerAvailabilityCallback()
78 CameraManagerGlobal::getInstance().registerAvailabilityCallback(callback); in ACameraManager_registerAvailabilityCallback()
84 ACameraManager*, const ACameraManager_AvailabilityCallbacks *callback) { in ACameraManager_unregisterAvailabilityCallback() argument
86 if (callback == nullptr) { in ACameraManager_unregisterAvailabilityCallback()
90 if (callback->onCameraAvailable == nullptr || callback->onCameraUnavailable == nullptr) { in ACameraManager_unregisterAvailabilityCallback()
93 __FUNCTION__, callback, in ACameraManager_unregisterAvailabilityCallback()
[all …]
/frameworks/base/core/java/android/animation/
DAnimationHandler.java93 public void addAnimationFrameCallback(final AnimationFrameCallback callback, long delay) { in addAnimationFrameCallback() argument
97 if (!mAnimationCallbacks.contains(callback)) { in addAnimationFrameCallback()
98 mAnimationCallbacks.add(callback); in addAnimationFrameCallback()
102 mDelayedCallbackStartTime.put(callback, (SystemClock.uptimeMillis() + delay)); in addAnimationFrameCallback()
117 public void addOneShotCommitCallback(final AnimationFrameCallback callback) { in addOneShotCommitCallback() argument
118 if (!mCommitCallbacks.contains(callback)) { in addOneShotCommitCallback()
119 mCommitCallbacks.add(callback); in addOneShotCommitCallback()
127 public void removeCallback(AnimationFrameCallback callback) { in removeCallback() argument
128 mCommitCallbacks.remove(callback); in removeCallback()
129 mDelayedCallbackStartTime.remove(callback); in removeCallback()
[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/tests/utiltests/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/base/core/java/android/service/carrier/
DCarrierMessagingService.java127 int subId, @NonNull ResultCallback<Boolean> callback) { in onFilterSms() argument
130 callback.onReceiveResult(true); in onFilterSms()
155 int destPort, int subId, @NonNull final ResultCallback<Integer> callback) { in onReceiveTextSms() argument
159 callback.onReceiveResult(result ? RECEIVE_OPTIONS_DEFAULT : RECEIVE_OPTIONS_DROP in onReceiveTextSms()
177 @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument
180 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); in onSendTextSms()
197 int sendSmsFlag, @NonNull ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument
199 onSendTextSms(text, subId, destAddress, callback); in onSendTextSms()
215 @NonNull ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument
218 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_RETRY_ON_CARRIER_NETWORK, 0)); 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/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 …]
DGeofenceHardwareImpl.java257 IGeofenceHardwareCallback callback) { in addCircularFence() argument
276 mGeofences.put(geofenceId, callback); in addCircularFence()
314 Message m = mReaperHandler.obtainMessage(REAPER_GEOFENCE_ADDED, callback); in addCircularFence()
447 IGeofenceHardwareMonitorCallback callback) { in registerForMonitorStateChangeCallback() argument
449 mReaperHandler.obtainMessage(REAPER_MONITOR_CALLBACK_ADDED, callback); in registerForMonitorStateChangeCallback()
453 Message m = mCallbacksHandler.obtainMessage(CALLBACK_ADD, callback); in registerForMonitorStateChangeCallback()
460 IGeofenceHardwareMonitorCallback callback) { in unregisterForMonitorStateChangeCallback() argument
461 Message m = mCallbacksHandler.obtainMessage(CALLBACK_REMOVE, callback); in unregisterForMonitorStateChangeCallback()
577 IGeofenceHardwareCallback callback;
582 callback = mGeofences.get(geofenceId);
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java170 final Callback callback = record.getCallback(); in setDestroyed() local
174 callback.onDestroyed(conference); in setDestroyed()
195 final Callback callback = record.getCallback(); in setState() local
199 callback.onStateChanged(conference, oldState, newState); in setState()
213 final Callback callback = record.getCallback(); in addConnection() local
217 callback.onConnectionAdded(conference, connection); in addConnection()
231 final Callback callback = record.getCallback(); in removeConnection() local
235 callback.onConnectionRemoved(conference, connection); in removeConnection()
248 final Callback callback = record.getCallback(); in setConnectionCapabilities() local
252 callback.onConnectionCapabilitiesChanged( in setConnectionCapabilities()
[all …]
DRemoteConnection.java673 public void registerCallback(Callback callback) { in registerCallback() argument
674 registerCallback(callback, new Handler()); in registerCallback()
683 public void registerCallback(Callback callback, Handler handler) { in registerCallback() argument
684 unregisterCallback(callback); in registerCallback()
685 if (callback != null && handler != null) { in registerCallback()
686 mCallbackRecords.add(new CallbackRecord(callback, handler)); in registerCallback()
695 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
696 if (callback != null) { in unregisterCallback()
698 if (record.getCallback() == callback) { in unregisterCallback()
1073 final Callback callback = record.getCallback(); in setState() local
[all …]
/frameworks/base/core/java/android/view/
DChoreographer.java443 public void postFrameCallback(FrameCallback callback) { in postFrameCallback() argument
444 postFrameCallbackDelayed(callback, 0); in postFrameCallback()
459 public void postFrameCallbackDelayed(FrameCallback callback, long delayMillis) { in postFrameCallbackDelayed() argument
460 if (callback == null) { in postFrameCallbackDelayed()
465 callback, FRAME_CALLBACK_TOKEN, delayMillis); in postFrameCallbackDelayed()
476 public void removeFrameCallback(FrameCallback callback) { in removeFrameCallback() argument
477 if (callback == null) { in removeFrameCallback()
481 removeCallbacksInternal(CALLBACK_ANIMATION, callback, FRAME_CALLBACK_TOKEN); in removeFrameCallback()
726 CallbackRecord callback = mCallbackPool; in obtainCallbackLocked() local
727 if (callback == null) { in obtainCallbackLocked()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDelegateImplV23.java28 AppCompatDelegateImplV23(Context context, Window window, AppCompatCallback callback) { in AppCompatDelegateImplV23() argument
29 super(context, window, callback); in AppCompatDelegateImplV23()
35 Window.Callback wrapWindowCallback(Window.Callback callback) { in wrapWindowCallback() argument
38 return new AppCompatWindowCallbackV23(callback); in wrapWindowCallback()
54 AppCompatWindowCallbackV23(Window.Callback callback) { in AppCompatWindowCallbackV23() argument
55 super(callback); in AppCompatWindowCallbackV23()
59 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode() argument
64 return startAsSupportActionMode(callback); in onWindowStartingActionMode()
68 return super.onWindowStartingActionMode(callback, type); in onWindowStartingActionMode()
72 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode() argument
/frameworks/base/core/java/android/bluetooth/le/
DBluetoothLeScanner.java92 public void startScan(final ScanCallback callback) { in startScan() argument
93 startScan(null, new ScanSettings.Builder().build(), callback); in startScan()
112 final ScanCallback callback) { in startScan() argument
113 startScan(filters, settings, null, callback, null); in startScan()
128 public void startScanFromSource(final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument
129 startScanFromSource(null, new ScanSettings.Builder().build(), workSource, callback); in startScanFromSource()
147 final WorkSource workSource, final ScanCallback callback) { in startScanFromSource() argument
148 startScan(filters, settings, workSource, callback, null); in startScanFromSource()
152 final WorkSource workSource, final ScanCallback callback, in startScan() argument
155 if (callback == null) { in startScan()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRemotePlaybackClient.java242 public void setStatusCallback(StatusCallback callback) { in setStatusCallback() argument
243 mStatusCallback = callback; in setStatusCallback()
288 long positionMillis, Bundle extras, ItemActionCallback callback) { in play() argument
290 extras, callback, MediaControlIntent.ACTION_PLAY); in play()
323 long positionMillis, Bundle extras, ItemActionCallback callback) { in enqueue() argument
325 extras, callback, MediaControlIntent.ACTION_ENQUEUE); in enqueue()
330 final ItemActionCallback callback, String action) { in playOrEnqueue() argument
349 performItemAction(intent, mSessionId, null, extras, callback); in playOrEnqueue()
378 ItemActionCallback callback) { in seek() argument
386 performItemAction(intent, mSessionId, itemId, extras, callback); in seek()
[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/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/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/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseBasicsTestCase.java138 final ActionMode.Callback callback = mock(ActionMode.Callback.class); in testSupportActionModeCallbacks() local
139 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacks()
142 final ActionMode actionMode = activity.startSupportActionMode(callback); in testSupportActionModeCallbacks()
146 verify(callback).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks()
147 verify(callback).onPrepareActionMode(any(ActionMode.class), any(Menu.class)); in testSupportActionModeCallbacks()
152 verify(callback).onDestroyActionMode(any(ActionMode.class)); in testSupportActionModeCallbacks()
153 verifyNoMoreInteractions(callback); in testSupportActionModeCallbacks()
163 final ActionMode.Callback callback = mock(ActionMode.Callback.class); in testSupportActionModeCallbacksInvalidate() local
164 when(callback.onCreateActionMode(any(ActionMode.class), any(Menu.class))).thenReturn(true); in testSupportActionModeCallbacksInvalidate()
167 final ActionMode actionMode = activity.startSupportActionMode(callback); in testSupportActionModeCallbacksInvalidate()
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DMediaBrowserCompat.java100 ConnectionCallback callback, Bundle rootHints) { in MediaBrowserCompat() argument
102 mImpl = new MediaBrowserImplApi24(context, serviceComponent, callback, rootHints); in MediaBrowserCompat()
104 mImpl = new MediaBrowserImplApi23(context, serviceComponent, callback, rootHints); in MediaBrowserCompat()
106 mImpl = new MediaBrowserImplApi21(context, serviceComponent, callback, rootHints); in MediaBrowserCompat()
108 mImpl = new MediaBrowserImplBase(context, serviceComponent, callback, rootHints); in MediaBrowserCompat()
202 public void subscribe(@NonNull String parentId, @NonNull SubscriptionCallback callback) { in subscribe() argument
207 if (callback == null) { in subscribe()
210 mImpl.subscribe(parentId, null, callback); in subscribe()
236 @NonNull SubscriptionCallback callback) { in subscribe() argument
241 if (callback == null) { in subscribe()
[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()
DHotspotControllerImpl.java80 public void addCallback(Callback callback) { in addCallback() argument
82 if (callback == null || mCallbacks.contains(callback)) return; in addCallback()
83 if (DEBUG) Log.d(TAG, "addCallback " + callback); in addCallback()
84 mCallbacks.add(callback); in addCallback()
90 public void removeCallback(Callback callback) { in removeCallback() argument
91 if (callback == null) return; in removeCallback()
92 if (DEBUG) Log.d(TAG, "removeCallback " + callback); in removeCallback()
94 mCallbacks.remove(callback); in removeCallback()
117 OnStartTetheringCallback callback = new OnStartTetheringCallback(); in setHotspotEnabled() local
119 ConnectivityManager.TETHERING_WIFI, false, callback); in setHotspotEnabled()
[all …]

12345678910>>...36