HomeSort by relevance Sort by last modified time
    Searched refs:Callback (Results 126 - 150 of 2033) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/base/core/java/android/os/
RemoteCallbackList.java 47 * <p>If a registered callback's process goes away, this class will take
55 /*package*/ ArrayMap<IBinder, Callback> mCallbacks
56 = new ArrayMap<IBinder, Callback>();
62 private final class Callback implements IBinder.DeathRecipient {
66 Callback(E callback, Object cookie) {
67 mCallback = callback;
83 public boolean register(E callback) {
84 return register(callback, null);
88 * Add a new callback to the list. This callback will remain in the lis
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/
ForegroundUtils.java 40 private final SparseArray<List<Callback>> mBackgroundCallbacks =
41 new SparseArray<List<Callback>>();
57 public interface Callback {
67 * and if it does, registers a callback for when that UID no longer has any foreground
69 * get a callback if this method returns true.
71 * @param callback Callback to be called
73 * @return true when the UID has an Activity in the foreground and the callback
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid)
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
ListenerCallQueue.java 33 * executor. Each callback task can be enqueued and executed as separate phases.
42 abstract static class Callback<L> {
45 Callback(String methodCall) {
51 /** Helper method to add this callback to all the queues. */
62 @GuardedBy("this") private final Queue<Callback<L>> waitQueue = Queues.newArrayDeque();
71 synchronized void add(Callback<L> callback) {
72 waitQueue.add(callback);
105 Callback<L> nextToRun;
122 "Exception while executing callback: " + listener + "." + nextToRun.methodCall,
    [all...]
  /frameworks/support/media-compat/api24/android/support/v4/media/session/
MediaSessionCompatApi24.java 32 public static Object createCallback(Callback callback) {
33 return new CallbackProxy<Callback>(callback);
47 public interface Callback extends MediaSessionCompatApi23.Callback {
54 static class CallbackProxy<T extends Callback>
56 public CallbackProxy(T callback) {
57 super(callback);
  /frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/wizard/
GuidedStepAttributesTestFragment.java 28 static class Callback {
33 static HashMap<Long, Callback> sCallbacks = new HashMap();
57 Callback callback = sCallbacks.get(action.getId()); local
58 if (callback != null) {
59 callback.onActionClicked(this, action.getId());
81 Callback callback = sCallbacks.get(action.getId()); local
82 if (callback != null) {
83 callback.onActionClicked(this, action.getId())
    [all...]
  /hardware/libhardware/include/hardware/
ble_advertiser.h 48 /** Callback invoked when multi-adv operation has completed */
49 using StatusCallback = base::Callback<void(uint8_t /* status */)>;
51 base::Callback<void(uint8_t /* advertiser_id */, uint8_t /* status */)>;
53 base::Callback<void(uint8_t /* advertiser_id */, int8_t /* tx_power */, uint8_t /* status */)>;
55 base::Callback<void(uint8_t /* status */, int8_t /* tx_power */)>;
60 using GetAddressCallback = base::Callback<void(uint8_t /* address_type*/, RawAddress /*address*/)>;
  /packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DocumentClipper.java 81 * @param callback callback to notify when operation is scheduled or rejected.
86 FileOperations.Callback callback);
93 * @param callback callback to notify when operation is scheduled or rejected.
97 FileOperations.Callback callback);
106 * @param callback callback to notify when operation is scheduled or rejected
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountSetupNoteDialogFragment.java 34 public static interface Callback {
69 final Callback a = (Callback) getActivity();
88 final Callback a = (Callback) getActivity();
SecurityRequiredDialogFragment.java 45 public interface Callback {
48 * Callback for the result of this dialog fragment
84 final Callback callback = (Callback) getActivity();
85 callback.onSecurityRequiredDialogResult(true);
102 final Callback callback = (Callback) getActivity();
103 if (callback != null)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
FormatAsPrivateStepFragment.java 35 public interface Callback {
77 final Callback callback = (Callback) getActivity(); local
78 callback.onCancelFormatDialog();
80 final Callback callback = (Callback) getActivity(); local
81 callback.onRequestFormatAsPrivate(getArguments().getString(DiskInfo.EXTRA_DISK_ID));
  /external/libchrome/base/
bind_unittest.cc 11 #include "base/callback.h"
312 void TakesACallback(const Closure& callback) {
313 callback.Run();
349 // Sanity check that we can instantiate a callback for each arity.
351 Callback<int()> c0 = Bind(&Sum, 32, 16, 8, 4, 2, 1);
354 Callback<int(int)> c1 = Bind(&Sum, 32, 16, 8, 4, 2);
357 Callback<int(int,int)> c2 = Bind(&Sum, 32, 16, 8, 4);
360 Callback<int(int,int,int)> c3 = Bind(&Sum, 32, 16, 8);
363 Callback<int(int,int,int,int)> c4 = Bind(&Sum, 32, 16);
366 Callback<int(int,int,int,int,int)> c5 = Bind(&Sum, 32)
814 Callback<TypeParam()> callback = Bind(&PassThru<TypeParam>, Passed(&ptr)); local
825 Callback<TypeParam()> callback = Bind( local
838 Callback<TypeParam()> callback = local
    [all...]
  /cts/tests/tests/view/jni/
android_view_cts_ChoreographerNativeTest.cpp 45 struct Callback {
52 Callback* cb = static_cast<Callback*>(data);
91 Callback* cb1 = new Callback();
92 Callback* cb2 = new Callback();
100 ASSERT(cb1->count == 1, "Choreographer failed to invoke callback 1");
102 "Callback 1 has incorect frame time on first invokation");
103 ASSERT(cb2->count == 1, "Choreographer failed to invoke callback 2")
    [all...]
  /external/compiler-rt/lib/sanitizer_common/
sanitizer_quarantine.h 38 // The callback interface is:
39 // void Callback::Recycle(Node *ptr);
42 template<typename Callback, typename Node>
45 typedef QuarantineCache<Callback> Cache;
60 void Put(Cache *c, Callback cb, Node *ptr, uptr size) {
66 void NOINLINE Drain(Cache *c, Callback cb) {
87 void NOINLINE Recycle(Callback cb) {
101 void NOINLINE DoRecycle(Cache *c, Callback cb) {
118 template<typename Callback>
133 void Enqueue(Callback cb, void *ptr, uptr size)
    [all...]
  /frameworks/base/media/java/android/media/projection/
MediaProjection.java 51 private final Map<Callback, CallbackRecord> mCallbacks;
55 mCallbacks = new ArrayMap<Callback, CallbackRecord>();
68 * @param callback The callback to call.
69 * @param handler The handler on which the callback should be invoked, or
70 * null if the callback should be invoked on the calling thread's looper.
74 public void registerCallback(Callback callback, Handler handler) {
75 if (callback == null) {
76 throw new IllegalArgumentException("callback should not be null")
    [all...]
  /packages/services/Car/car-lib/src/android/car/cluster/
CarInstrumentClusterManager.java 60 private final Map<String, Set<Callback>> mCallbacksByCategory = new HashMap<>(0);
82 * Caller of this method will receive immediate callback with the most recent state if state
87 * @param callback instance of {@link Callback} class to receive events.
91 public void registerCallback(String category, Callback callback)
93 Log.i(TAG, "registerCallback, category: " + category + ", callback: " + callback);
96 Set<Callback> callbacks = mCallbacksByCategory.get(category);
101 if (!callbacks.add(callback)) {
    [all...]
  /external/libbrillo/brillo/dbus/
dbus_object_internal_impl.h 7 // values from D-Bus message buffer then invoking a native C++ callback with
8 // those parameters passed in. If the callback returns a value, that value is
14 // and calls the provided native C++ callback with those arguments.
15 // However it expects the callback with a simple signature like this:
16 // void callback(Args...);
24 // To make this all work, we craft a simple callback suitable for
47 // This is an abstract base class to allow dispatching a native C++ callback
68 // The signature of the callback handler is expected to be:
77 const base::Callback<R(Args...)>& handler) : handler_(handler) {}
97 // C++ callback to be called when a DBus method is dispatched
    [all...]
  /external/webrtc/webrtc/base/
callback.h.pump 11 // To generate callback.h from callback.h.pump, execute:
12 // /home/build/google3/third_party/gtest/scripts/pump.py callback.h.pump
23 // callback does nothing. A callback can be made empty by assigning it from
24 // a default-constructed callback.
72 class Callback$i {
75 Callback$i() {}
76 template <class T> Callback$i(const T& functor)
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
KeyguardMonitorImpl.java 31 private final ArrayList<Callback> mCallbacks = new ArrayList<Callback>();
62 public void addCallback(Callback callback) {
63 mCallbacks.add(callback);
74 public void removeCallback(Callback callback) {
75 if (mCallbacks.remove(callback) && mCallbacks.size() == 0 && mListening) {
125 // Copy the list to allow removal during callback.
126 new ArrayList<Callback>(mCallbacks).forEach(Callback::onKeyguardShowingChanged)
    [all...]
  /system/bt/stack/include/
ble_advertiser.h 30 using MultiAdvCb = base::Callback<void(uint8_t /* status */)>;
32 base::Callback<void(uint8_t /* status */, int8_t /* tx_power */)>;
78 * callback, with assigned id, if operation succeeds. Instance is freed when
91 * callback, with assigned id, if operation succeeds. Instance is freed when
99 base::Callback<void(uint8_t /* inst_id */, int8_t /* tx_power */,
107 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)>
111 * callback, with assigned id, if operation succeeds. Instance is freed when
115 base::Callback<void(uint8_t /* inst_id */, uint8_t /* status */)>) = 0;
163 base::Callback<void(uint8_t /* address_type*/, RawAddress /*address*/)>;
  /bionic/libc/private/
CachedProperty.h 76 __system_property_read_callback(prop_info_, &CachedProperty::Callback, this);
90 static void Callback(void* data, const char*, const char* value, uint32_t serial) {
  /cts/tests/tests/location/src/android/location/cts/
TestLocationManager.java 59 * (GnssMeasurementsEvent.Callback callback)}
61 * @param callback the listener to add
63 public void registerGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback) {
64 Log.i(TAG, "Add Gnss Measurement Callback.");
66 mLocationManager.registerGnssMeasurementsCallback(callback);
75 * See {@link android.location.LocationManager#registerGnssMeasurementsCallback(GnssMeasurementsEvent.Callback callback)}
77 * @param callback the listener to ad
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
MediaCodecWrapper.java 21 import android.media.MediaCodec.Callback;
71 void setCallback(Callback mCallback);
  /device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk/
PiSmmStatusCodeOnFrameworkSmmStatusCodeThunk.h 38 Register the callback function for ReportStatusCode() notification.
41 ReportStatusCode() will be forwarded to the Callback function.
43 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is called
47 @retval EFI_INVALID_PARAMETER The callback function was NULL.
56 IN EFI_SMM_RSC_HANDLER_CALLBACK Callback
60 Remove a previously registered callback function from the notification list.
62 ReportStatusCode() messages will no longer be forwarded to the Callback function.
64 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is to be
68 @retval EFI_INVALID_PARAMETER The callback function was NULL.
69 @retval EFI_NOT_FOUND The callback function was not found to be unregistered.
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/
ReportStatusCodeRouterPei.h 30 Register the callback function for ReportStatusCode() notification.
33 ReportStatusCode() will be forwarded to the Callback function.
35 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is called
39 @retval EFI_INVALID_PARAMETER The callback function was NULL.
48 IN EFI_PEI_RSC_HANDLER_CALLBACK Callback
52 Remove a previously registered callback function from the notification list.
54 ReportStatusCode() messages will no longer be forwarded to the Callback function.
56 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is to be
60 @retval EFI_INVALID_PARAMETER The callback function was NULL.
61 @retval EFI_NOT_FOUND The callback function was not found to be unregistered.
    [all...]
  /device/linaro/bootloader/edk2/MdeModulePkg/Universal/ReportStatusCodeRouter/Smm/
ReportStatusCodeRouterSmm.h 39 Register the callback function for ReportStatusCode() notification.
42 ReportStatusCode() will be forwarded to the Callback function.
44 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is called
48 @retval EFI_INVALID_PARAMETER The callback function was NULL.
57 IN EFI_SMM_RSC_HANDLER_CALLBACK Callback
61 Remove a previously registered callback function from the notification list.
63 ReportStatusCode() messages will no longer be forwarded to the Callback function.
65 @param[in] Callback A pointer to a function of type EFI_PEI_RSC_HANDLER_CALLBACK that is to be
69 @retval EFI_INVALID_PARAMETER The callback function was NULL.
70 @retval EFI_NOT_FOUND The callback function was not found to be unregistered.
    [all...]

Completed in 1226 milliseconds

1 2 3 4 56 7 8 91011>>