HomeSort by relevance Sort by last modified time
    Searched refs:Callback (Results 51 - 75 of 1790) sorted by null

1 23 4 5 6 7 8 91011>>

  /frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
MainRecognitionService.java 37 protected void onStartListening(Intent recognizerIntent, Callback listener) {
42 protected void onCancel(Callback listener) {
47 protected void onStopListening(Callback listener) {
  /packages/apps/Camera2/src/com/android/camera/async/
ExecutorCallback.java 19 import com.android.camera.util.Callback;
27 * Wraps a not-necessarily-thread-safe callback into a thread-safe callback
33 private final Callback<T> mCallback;
37 * @param callback The callback to wrap.
38 * @param executor The executor on which to invoke the callback.
40 public ExecutorCallback(Callback<T> callback, Executor executor) {
41 mCallback = callback;
    [all...]
  /system/media/brillo/audio/audioservice/
audio_service_callback.h 16 // Callback object to be passed to brilloaudioservice.
23 #include <base/callback.h>
38 // |callback| is an object of type BAudioCallback.
40 AudioServiceCallback(const BAudioCallback* callback, void* user_data);
42 // Callback function triggered when a device is connected.
47 // Callback function triggered when a device is disconnected.
52 // Callback function triggered when volume is changed.
61 // |callback| is a ref counted pointer to a AudioServiceCallback object to be
64 // Returns true if |callback| equals this.
65 bool Equals(const android::sp<AudioServiceCallback>& callback);
    [all...]
  /external/javasqlite/src/main/java/SQLite/
Vm.java 23 * The result row is passed to the given callback interface.<BR><BR>
42 * @param cb the object implementing the callback methods.
47 public native boolean step(Callback cb) throws SQLite.Exception;
  /external/libchrome/base/
callback.h 11 // NOTE: Header files that do not require the full definition of Callback or
18 // The templated Callback class is a generalized function object. Together
28 // A callback with no unbound input parameters (base::Callback<void()>)
35 // The Callback objects themselves should be passed by const-reference, and
50 // base::Callback<int()> func_cb = base::Bind(&Return5);
64 // base::Callback<void()> ref_cb = base::Bind(&Ref::Foo, ref);
72 // RUNNING A CALLBACK
75 // signature as the template argument to the callback.
77 // void DoSomething(const base::Callback<void(int, std::string)>& callback)
    [all...]
task_runner_util.h 20 void ReturnAsParamAdapter(const Callback<ReturnType(void)>& func,
27 void ReplyAdapter(const Callback<void(ReplyArgType)>& callback,
33 if (!callback.is_null())
34 callback.Run(std::move(*result));
42 // void Callback(const R& result);
45 // result of DoWorkAndReturn is passed to the Callback, you can use
52 // Bind(&Callback));
57 const Callback<TaskReturnType(void)>& task,
58 const Callback<void(ReplyArgType)>& reply)
    [all...]
callback_unittest.cc 5 #include "base/callback.h"
19 // White-box testpoints to inject into a Callback<> object for checking
54 Callback<void()> callback_a_;
55 const Callback<void()> callback_b_; // Ensure APIs work with const.
56 Callback<void()> null_callback_;
62 Callback<void()> c0;
63 Callback<void(int)> c1;
64 Callback<void(int,int)> c2;
65 Callback<void(int,int,int)> c3;
66 Callback<void(int,int,int,int)> c4
    [all...]
cancelable_callback.h 5 // CancelableCallback is a wrapper around base::Callback that allows
6 // cancellation of a callback. CancelableCallback takes a reference on the
7 // wrapped callback until this object is destroyed or Reset()/Cancel() are
13 // default-constructed state, i.e., CancelableCallback::callback() will return
14 // a null callback.
25 // Quit()s the message loop within 4 seconds. The cancelable callback is posted
27 // then the callback is cancelled.
35 // MessageLoop::current()->PostDelayedTask(FROM_HERE, timeout.callback(),
39 // timeout.Cancel(); // Hopefully this is hit before the timeout callback runs.
49 #include "base/callback.h
102 const base::Callback<void(A...)>& callback() const { function in class:base::CancelableCallback
    [all...]
  /external/libchrome/base/files/
file_path_watcher.h 11 #include "base/callback.h"
20 // The callback will get called whenever the file or directory referenced by the
30 // Callback type for Watch(). |path| points to the file that was updated,
32 // that case, the callback won't be invoked again.
33 typedef base::Callback<void(const FilePath& path, bool error)> Callback;
43 const Callback& callback) WARN_UNUSED_RESULT = 0;
86 // A callback that always cleans up the PlatformDelegate, either when executed
94 // Invokes |callback| whenever updates to |path| are detected. This should b
    [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
Callback.java 20 public interface Callback {
31 * server. The callback may proceed to read the response body with {@link
33 * closed with {@code response.body().close()}. The recipient of the callback
  /external/webrtc/webrtc/modules/desktop_capture/
desktop_and_cursor_composer.h 23 public DesktopCapturer::Callback,
24 public MouseCursorMonitor::Callback {
35 void Start(DesktopCapturer::Callback* callback) override;
40 // DesktopCapturer::Callback interface.
44 // MouseCursorMonitor::Callback interface.
52 DesktopCapturer::Callback* callback_;
screen_capturer_mock_objects.h 24 MOCK_METHOD1(Start, void(Callback* callback));
33 class MockScreenCapturerCallback : public ScreenCapturer::Callback {
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/media/
PlayerAdapter.java 30 public static class Callback {
101 Callback mCallback;
104 * Sets callback for event of PlayerAdapter.
105 * @param callback Client for event of PlayerAdapter.
107 public final void setCallback(Callback callback) {
108 mCallback = callback;
112 * Gets callback for event of PlayerAdapter.
115 public final Callback getCallback() {
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowRemoteCallbackList.java 15 private HashMap<IBinder, Callback> callbacks = new HashMap<IBinder, Callback>();
20 private final class Callback implements IBinder.DeathRecipient {
21 final E callback; field in class:ShadowRemoteCallbackList.Callback
24 Callback(E callback, Object cookie) {
25 this.callback = callback;
31 callbacks.remove(callback.asBinder());
33 onCallbackDied(callback, cookie)
    [all...]
  /external/compiler-rt/lib/sanitizer_common/tests/
sanitizer_stoptheworld_testlib.cc 34 void Callback(const SuspendedThreadsList &suspended_threads_list,
42 StopTheWorld(Callback, NULL);
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/leaks/
FakeHotspotController.java 20 import com.android.systemui.statusbar.policy.HotspotController.Callback;
22 public class FakeHotspotController extends BaseLeakChecker<Callback> implements HotspotController {
FakeManagedProfileController.java 20 import com.android.systemui.statusbar.phone.ManagedProfileController.Callback;
22 public class FakeManagedProfileController extends BaseLeakChecker<Callback> implements
  /frameworks/opt/bitmap/src/com/android/bitmap/
RequestKey.java 26 * {@link #createFileDescriptorFactoryAsync(RequestKey, Callback)} or {@link #createInputStream()}.
28 * {@link #createFileDescriptorFactoryAsync(RequestKey, Callback)} before falling back to
70 * the given callback. This method will be called in favor of {@link #createInputStream()}},
72 * or {@link Callback#fileDescriptorFactoryCreated(RequestKey, FileDescriptorFactory)} is called
81 * callback so it can check whether the key has changed.
82 * @param callback The callback to notify once the FileDescriptorFactory is created or has failed
84 * Do not invoke the callback directly from this method. Instead, create a handler
89 * return null. The callback must be notified if and only if the client returns a Cancelable
92 public Cancelable createFileDescriptorFactoryAsync(RequestKey key, Callback callback)
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
tmpCallbackHandler.java 27 import javax.security.auth.callback.Callback;
28 import javax.security.auth.callback.CallbackHandler;
29 import javax.security.auth.callback.UnsupportedCallbackException;
37 public void handle(Callback[] callback) throws IOException,
39 if (callback == null) {
40 throw new UnsupportedCallbackException(null, "callback is null");
42 if (callback.length == 0) {
43 throw new UnsupportedCallbackException(null, "callback is empty")
    [all...]
  /libcore/support/src/test/java/tests/util/
ForEachRunner.java 20 * Runner which executes the provided code under test (via a callback) for each provided input
26 * Callback parameterized with a value.
28 public interface Callback<T> {
30 * Invokes the callback for the provided value.
38 * Invokes the provided callback for each of the provided named values.
44 public static <T> void runNamed(Callback<T> callback, Iterable<Pair<String, T>> namesAndValues)
48 callback.run(nameAndValue.getSecond());
  /packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/embedded/
InCallServiceImpl.java 38 private CopyOnWriteArrayList<Callback> mCallbacks = new CopyOnWriteArrayList<>();
58 for (Callback callback : mCallbacks) {
59 callback.onTelecomCallAdded(telecomCall);
68 for (Callback callback : mCallbacks) {
69 callback.onTelecomCallRemoved(telecomCall);
86 private final Call.Callback mCallListener = new Call.Callback() {
118 for (Callback callback : mCallbacks)
    [all...]
  /cts/tests/tests/location/src/android/location/cts/
TestGnssNavigationMessageListener.java 32 class TestGnssNavigationMessageListener extends GnssNavigationMessage.Callback {
62 if (mStatus != GnssNavigationMessage.Callback.STATUS_READY) {
87 case GnssNavigationMessage.Callback.STATUS_NOT_SUPPORTED:
91 case GnssNavigationMessage.Callback.STATUS_READY:
93 case GnssNavigationMessage.Callback.STATUS_LOCATION_DISABLED:
97 Assert.fail("GnssNavigationMessage status callback was not received.");
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
ZenModeControllerImplTest.java 28 import com.android.systemui.statusbar.policy.ZenModeController.Callback;
38 private Callback mCallback;
43 mCallback = new Callback() {
50 Callback mockCallback = mock(Callback.class);
  /frameworks/support/v7/appcompat/src/android/support/v7/app/
AppCompatDelegateImplV23.java 30 AppCompatDelegateImplV23(Context context, Window window, AppCompatCallback callback) {
31 super(context, window, callback);
37 Window.Callback wrapWindowCallback(Window.Callback callback) {
38 // Override the window callback so that we can intercept onWindowStartingActionMode(type)
40 return new AppCompatWindowCallbackV23(callback);
56 AppCompatWindowCallbackV23(Window.Callback callback) {
57 super(callback);
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/voicemail/
CtsVisualVoicemailService.java 29 public abstract static class Callback {
38 private static Callback sCallback;
40 public static void setCallback(Callback callback) {
41 sCallback = callback;

Completed in 639 milliseconds

1 23 4 5 6 7 8 91011>>