Home
last modified time | relevance | path

Searched refs:Callback (Results 1 – 25 of 491) sorted by relevance

12345678910>>...20

/frameworks/support/design/src/android/support/design/widget/
DSnackbarManager.java52 mHandler = new Handler(Looper.getMainLooper(), new Handler.Callback() { in SnackbarManager()
65 interface Callback { interface in SnackbarManager
70 public void show(int duration, Callback callback) { in show()
90 Snackbar.Callback.DISMISS_EVENT_CONSECUTIVE)) { in show()
102 public void dismiss(Callback callback, int event) { in dismiss()
116 public void onDismissed(Callback callback) { in onDismissed()
132 public void onShown(Callback callback) { in onShown()
140 public void cancelTimeout(Callback callback) { in cancelTimeout()
148 public void restoreTimeout(Callback callback) { in restoreTimeout()
156 public boolean isCurrent(Callback callback) { in isCurrent()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConference.java47 public abstract static class Callback { class in RemoteConference
137 private final Set<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArraySet<>();
167 for (CallbackRecord<Callback> record : mCallbackRecords) { in setDestroyed()
169 final Callback callback = record.getCallback(); in setDestroyed()
192 for (CallbackRecord<Callback> record : mCallbackRecords) { in setState()
194 final Callback callback = record.getCallback(); in setState()
210 for (CallbackRecord<Callback> record : mCallbackRecords) { in addConnection()
212 final Callback callback = record.getCallback(); in addConnection()
228 for (CallbackRecord<Callback> record : mCallbackRecords) { in removeConnection()
230 final Callback callback = record.getCallback(); in removeConnection()
[all …]
DRemoteConnection.java51 public static abstract class Callback { class in RemoteConnection
249 public abstract static class Callback { class in RemoteConnection.VideoProvider
347 for (Callback l : mCallbacks) {
355 for (Callback l : mCallbacks) {
366 for (Callback l : mCallbacks) {
373 for (Callback l : mCallbacks) {
380 for (Callback l : mCallbacks) {
388 for (Callback l : mCallbacks) {
395 for (Callback l : mCallbacks) {
416 private final Set<Callback> mCallbacks = Collections.newSetFromMap(
[all …]
DCall.java732 public static abstract class Callback { class in Call
839 public static abstract class Listener extends Callback { }
847 private final List<CallbackRecord<Callback>> mCallbackRecords = new CopyOnWriteArrayList<>();
1239 public void registerCallback(Callback callback) { in registerCallback()
1249 public void registerCallback(Callback callback, Handler handler) { in registerCallback()
1253 mCallbackRecords.add(new CallbackRecord<Callback>(callback, handler)); in registerCallback()
1262 public void unregisterCallback(Callback callback) { in unregisterCallback()
1265 for (CallbackRecord<Callback> record : mCallbackRecords) { in unregisterCallback()
1476 for (CallbackRecord<Callback> record : mCallbackRecords) { in fireStateChanged()
1478 final Callback callback = record.getCallback(); in fireStateChanged()
[all …]
/frameworks/base/core/java/android/os/
DRemoteCallbackList.java50 /*package*/ ArrayMap<IBinder, Callback> mCallbacks
51 = new ArrayMap<IBinder, Callback>();
56 private final class Callback implements IBinder.DeathRecipient { class in RemoteCallbackList
60 Callback(E callback, Object cookie) { in Callback() method in RemoteCallbackList.Callback
113 Callback cb = new Callback(callback, cookie); in register()
142 Callback cb = mCallbacks.remove(callback.asBinder()); in unregister()
162 Callback cb = mCallbacks.valueAt(cbi); in kill()
270 return ((Callback)mActiveBroadcast[index]).mCallback; in getBroadcastItem()
280 return ((Callback)mActiveBroadcast[index]).mCookie; in getBroadcastCookie()
/frameworks/base/location/java/android/location/
DGnssNavigationMessageCallbackTransport.java28 extends LocalListenerHelper<GnssNavigationMessage.Callback> {
55 ListenerOperation<GnssNavigationMessage.Callback> operation = in onGnssNavigationMessageReceived()
56 new ListenerOperation<GnssNavigationMessage.Callback>() { in onGnssNavigationMessageReceived()
58 public void execute(GnssNavigationMessage.Callback callback) in onGnssNavigationMessageReceived()
68 ListenerOperation<GnssNavigationMessage.Callback> operation = in onStatusChanged()
69 new ListenerOperation<GnssNavigationMessage.Callback>() { in onStatusChanged()
71 public void execute(GnssNavigationMessage.Callback callback) in onStatusChanged()
DGnssMeasurementCallbackTransport.java28 extends LocalListenerHelper<GnssMeasurementsEvent.Callback> {
53 ListenerOperation<GnssMeasurementsEvent.Callback> operation = in onGnssMeasurementsReceived()
54 new ListenerOperation<GnssMeasurementsEvent.Callback>() { in onGnssMeasurementsReceived()
56 public void execute(GnssMeasurementsEvent.Callback callback) in onGnssMeasurementsReceived()
66 ListenerOperation<GnssMeasurementsEvent.Callback> operation = in onStatusChanged()
67 new ListenerOperation<GnssMeasurementsEvent.Callback>() { in onStatusChanged()
69 public void execute(GnssMeasurementsEvent.Callback callback) in onStatusChanged()
/frameworks/base/media/java/android/media/projection/
DMediaProjection.java51 private final Map<Callback, CallbackRecord> mCallbacks;
55 mCallbacks = new ArrayMap<Callback, CallbackRecord>(); in MediaProjection()
74 public void registerCallback(Callback callback, Handler handler) { in registerCallback()
90 public void unregisterCallback(Callback callback) { in unregisterCallback()
102 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay()
135 @Nullable VirtualDisplay.Callback callback, @Nullable Handler handler) { in createVirtualDisplay()
173 public static abstract class Callback { class in MediaProjection
194 private final Callback mCallback;
197 public CallbackRecord(Callback callback, Handler handler) { in CallbackRecord()
DMediaProjectionManager.java60 private Map<Callback, CallbackDelegate> mCallbacks;
135 public void addCallback(@NonNull Callback callback, @Nullable Handler handler) { in addCallback()
152 public void removeCallback(@NonNull Callback callback) { in removeCallback()
167 public static abstract class Callback { class in MediaProjectionManager
174 private Callback mCallback;
177 public CallbackDelegate(Callback callback, Handler handler) { in CallbackDelegate()
/frameworks/support/media-compat/api23/android/support/v4/media/session/
DMediaSessionCompatApi23.java24 public static Object createCallback(Callback callback) { in createCallback()
25 return new CallbackProxy<Callback>(callback); in createCallback()
28 public interface Callback extends MediaSessionCompatApi21.Callback { interface in MediaSessionCompatApi23
32 … static class CallbackProxy<T extends Callback> extends MediaSessionCompatApi21.CallbackProxy<T> {
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAppCompatDelegateImplV23.java35 Window.Callback wrapWindowCallback(Window.Callback callback) { in wrapWindowCallback()
54 AppCompatWindowCallbackV23(Window.Callback callback) { in AppCompatWindowCallbackV23()
59 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode()
72 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardMonitor.java32 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>();
58 public void addCallback(Callback callback) { in addCallback()
69 public void removeCallback(Callback callback) { in removeCallback()
130 for (Callback callback : mCallbacks) { in notifyKeyguardChanged()
135 public interface Callback { interface in KeyguardMonitor
DZenModeControllerImpl.java53 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>();
99 public void addCallback(Callback callback) { in addCallback()
104 public void removeCallback(Callback 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()
DBluetoothControllerImpl.java39 CachedBluetoothDevice.Callback {
108 public void addStateChangedCallback(Callback cb) { in addStateChangedCallback()
114 public void removeStateChangedCallback(Callback cb) { in removeStateChangedCallback()
246 private final ArrayList<BluetoothController.Callback> mCallbacks = new ArrayList<>();
263 mCallbacks.add((BluetoothController.Callback) msg.obj); in handleMessage()
266 mCallbacks.remove((BluetoothController.Callback) msg.obj); in handleMessage()
272 for (BluetoothController.Callback cb : mCallbacks) { in firePairedDevicesChanged()
278 for (BluetoothController.Callback cb : mCallbacks) { in fireStateChange()
283 private void fireStateChange(BluetoothController.Callback cb) { in fireStateChange()
/frameworks/av/camera/ndk/impl/
DACameraManager.h88 struct Callback { struct
89 Callback(const ACameraManager_AvailabilityCallbacks *callback) : in Callback() function
94 bool operator == (const Callback& other) const {
99 bool operator != (const Callback& other) const {
102 bool operator < (const Callback& other) const {
108 bool operator > (const Callback& other) const {
115 std::set<Callback> mCallbacks; argument
/frameworks/support/media-compat/api24/android/support/v4/media/session/
DMediaSessionCompatApi24.java30 public static Object createCallback(Callback callback) { in createCallback()
31 return new CallbackProxy<Callback>(callback); in createCallback()
45 public interface Callback extends MediaSessionCompatApi23.Callback { interface in MediaSessionCompatApi24
52 static class CallbackProxy<T extends Callback>
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java34 public final ArrayList<SurfaceHolder.Callback> mCallbacks
35 = new ArrayList<SurfaceHolder.Callback>();
36 SurfaceHolder.Callback[] mGottenCallbacks;
74 public void addCallback(Callback callback) { in addCallback()
84 public void removeCallback(Callback callback) { in removeCallback()
90 public SurfaceHolder.Callback[] getCallbacks() { in getCallbacks()
99 mGottenCallbacks = new SurfaceHolder.Callback[N]; in getCallbacks()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseBasicsTestCase.java143 final ActionMode.Callback callback = mock(ActionMode.Callback.class); in testSupportActionModeCallbacks()
167 final ActionMode.Callback callback = mock(ActionMode.Callback.class); in testSupportActionModeCallbacksInvalidate()
191 final ActionMode.Callback callback = mock(ActionMode.Callback.class); in testSupportActionModeCallbacksWithFalseOnCreate()
212 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSupportActionModeAppCompatCallbacks()
219 when(apCallback.onWindowStartingSupportActionMode(any(ActionMode.Callback.class))) in testSupportActionModeAppCompatCallbacks()
228 verify(apCallback).onWindowStartingSupportActionMode(any(ActionMode.Callback.class)); in testSupportActionModeAppCompatCallbacks()
/frameworks/base/core/java/android/view/
DSurfaceHolder.java69 public interface Callback { interface
110 public interface Callback2 extends Callback {
130 public void addCallback(Callback callback); in addCallback()
137 public void removeCallback(Callback callback); in removeCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileController.java33 private final List<Callback> mCallbacks = new ArrayList<>();
47 public void addCallback(Callback callback) { in addCallback()
55 public void removeCallback(Callback callback) { in removeCallback()
89 for (Callback callback : mCallbacks) { in reloadManagedProfiles()
137 for (Callback callback : mCallbacks) {
143 public interface Callback { interface in ManagedProfileController
/frameworks/support/media-compat/kitkat/android/support/v4/media/session/
DMediaSessionCompatApi19.java38 public static Object createMetadataUpdateListener(Callback callback) { in createMetadataUpdateListener()
39 return new OnMetadataUpdateListener<Callback>(callback); in createMetadataUpdateListener()
85 static class OnMetadataUpdateListener<T extends Callback> implements
101 interface Callback extends MediaSessionCompatApi18.Callback { interface in MediaSessionCompatApi19
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
DGuidedStepAttributesTestFragment.java29 static class Callback { class in GuidedStepAttributesTestFragment
34 static HashMap<Long, Callback> sCallbacks = new HashMap();
58 Callback callback = sCallbacks.get(action.getId()); in onGuidedActionClicked()
82 Callback callback = sCallbacks.get(action.getId()); in onGuidedActionEditedAndProceed()
91 public static void setActionClickCallback(long id, Callback callback) { in setActionClickCallback()
/frameworks/support/media-compat/java/android/support/v4/media/session/
DMediaSessionCompat.java247 public void setCallback(Callback callback) { in setCallback()
259 public void setCallback(Callback callback, Handler handler) { in setCallback()
598 public abstract static class Callback { class in MediaSessionCompat
601 public Callback() { in Callback() method in MediaSessionCompat.Callback
779 private class StubApi21 implements MediaSessionCompatApi21.Callback {
786 Callback.this.onCommand(command, extras, cb); in onCommand()
791 return Callback.this.onMediaButtonEvent(mediaButtonIntent); in onMediaButtonEvent()
796 Callback.this.onPlay(); in onPlay()
801 Callback.this.onPlayFromMediaId(mediaId, extras); in onPlayFromMediaId()
806 Callback.this.onPlayFromSearch(search, extras); in onPlayFromSearch()
[all …]
/frameworks/base/core/java/android/hardware/location/
DContextHubManager.java42 private Callback mCallback;
54 public abstract static class Callback { class in ContextHubManager
55 protected Callback() {} in Callback() method in ContextHubManager.Callback
287 public int registerCallback(Callback callback) { in registerCallback()
315 public int registerCallback(Callback callback, Handler handler) { in registerCallback()
336 public int unregisterCallback(Callback callback) { in unregisterCallback()
368 final Callback callback = mCallback;
/frameworks/support/design/tests/src/android/support/design/widget/
DSnackbarTest.java127 final int length, @Snackbar.Callback.DismissEvent final int expectedEvent) { in verifyDismissCallback()
128 final Snackbar.Callback mockCallback = mock(Snackbar.Callback.class); in verifyDismissCallback()
172 Snackbar.Callback.DISMISS_EVENT_ACTION); in testDismissViaActionClick()
183 Snackbar.Callback.DISMISS_EVENT_SWIPE); in testDismissViaSwipe()
198 Snackbar.Callback.DISMISS_EVENT_SWIPE); in testDismissViaSwipeRtl()
215 Snackbar.Callback.DISMISS_EVENT_MANUAL); in testDismissViaApi()
226 Snackbar.Callback.DISMISS_EVENT_TIMEOUT); in testDismissViaTimeout()
247 Snackbar.Callback.DISMISS_EVENT_CONSECUTIVE); in testDismissViaAnotherSnackbar()

12345678910>>...20