/packages/apps/Settings/src/com/android/settings/utils/ |
ServiceListing.java | 49 private final List<Callback> mCallbacks = new ArrayList<Callback>(); 59 public void addCallback(Callback callback) { 60 mCallbacks.add(callback); 63 public void removeCallback(Callback callback) { 64 mCallbacks.remove(callback); 160 for (Callback callback : mCallbacks) [all...] |
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/ |
TvInputPlayer.java | 104 private final CopyOnWriteArrayList<Callback> mCallbacks; 125 for(Callback callback : mCallbacks) { 126 callback.onDrawnToSurface(surface); 133 for(Callback callback : mCallbacks) { 134 callback.onPlayerError(new ExoPlaybackException(e)); 140 for(Callback callback : mCallbacks) { 141 callback.onPlayerError(new ExoPlaybackException(e)) [all...] |
/external/libmojo/mojo/public/cpp/bindings/tests/ |
sync_method_unittest.cc | 24 using CallbackType = base::Callback<void(Args...)>; 41 using PingHandler = base::Callback<void(const base::Callback<void()>&)>; 42 using PingBinder = LambdaBinder<const base::Callback<void()>&>; 49 base::Callback<void(int32_t, const base::Callback<void(int32_t)>&)>; 51 LambdaBinder<int32_t, const base::Callback<void(int32_t)>&>; 58 base::Callback<void(int32_t, const base::Callback<void(int32_t)>&)>; 60 LambdaBinder<int32_t, const base::Callback<void(int32_t)>&> 125 void Ping(const PingCallback& callback) override { PingImpl(callback); } variable 147 void Ping(const PingCallback& callback) override { PingImpl(callback); } variable 175 void Ping(const PingCallback& callback) override { PingImpl(callback); } variable [all...] |
/external/llvm/include/llvm/ADT/ |
ImmutableMap.h | 164 template <typename Callback> 166 Callback C; 170 template <typename Callback> 172 Callback &C; 173 CBWrapperRef(Callback& c) : C(c) {} 179 template <typename Callback> 180 void foreach(Callback& C) { 182 CBWrapperRef<Callback> CB(C); 187 template <typename Callback> 190 CBWrapper<Callback> CB [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
ImmutableMap.h | 165 template <typename Callback> 167 Callback C; 171 template <typename Callback> 173 Callback &C; 174 CBWrapperRef(Callback& c) : C(c) {} 180 template <typename Callback> 181 void foreach(Callback& C) { 183 CBWrapperRef<Callback> CB(C); 188 template <typename Callback> 191 CBWrapper<Callback> CB [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
SnackbarTest.java | 146 final int length, @Snackbar.Callback.DismissEvent final int expectedEvent) 197 Snackbar.Callback.DISMISS_EVENT_ACTION); 207 Snackbar.Callback.DISMISS_EVENT_SWIPE); 221 Snackbar.Callback.DISMISS_EVENT_SWIPE); 237 Snackbar.Callback.DISMISS_EVENT_MANUAL); 248 Snackbar.Callback.DISMISS_EVENT_TIMEOUT); 284 Snackbar.Callback.DISMISS_EVENT_TIMEOUT); 304 Snackbar.Callback.DISMISS_EVENT_CONSECUTIVE); 330 final Snackbar.Callback mockCallback = spy(new Snackbar.Callback()); [all...] |
/prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/ |
ImmutableMap.h | 166 template <typename Callback> 168 Callback C; 172 template <typename Callback> 174 Callback &C; 175 CBWrapperRef(Callback& c) : C(c) {} 181 template <typename Callback> 182 void foreach(Callback& C) { 184 CBWrapperRef<Callback> CB(C); 189 template <typename Callback> 192 CBWrapper<Callback> CB [all...] |
/frameworks/support/media-compat/api21/android/support/v4/media/session/ |
MediaControllerCompatApi21.java | 44 public static Object createCallback(Callback callback) { 45 return new CallbackProxy<Callback>(callback); 50 (MediaController.Callback)callbackObj, handler); 55 .unregisterCallback((MediaController.Callback) callbackObj); 262 public static interface Callback { 273 static class CallbackProxy<T extends Callback> extends MediaController.Callback { 276 public CallbackProxy(T callback) { [all...] |
/frameworks/support/media-compat/java/android/support/v4/media/session/ |
MediaSessionCompat.java | 80 * To receive commands, media keys, and other events a {@link Callback} must be 81 * set with {@link #setCallback(Callback)}. 125 * control commands through its {@link Callback}. 131 * management commands through its {@link Callback}. 138 * @see Callback#onCustomAction 146 * @see Callback#onCustomAction 162 * @see Callback#onCustomAction 178 * @see Callback#onCustomAction 409 // Set default callback to respond to controllers' extra binder requests. 410 setCallback(new Callback() {}); [all...] |
/external/libbrillo/brillo/streams/ |
stream.cc | 29 const base::Callback<void(size_t)>& success_callback, 39 auto callback = base::Bind(&Stream::IgnoreEOSCallback, success_callback); local 41 // callback from the main loop, so we pass true here for force_async_callback. 42 return ReadAsyncImpl(buffer, size_to_read, callback, error_callback, error, 58 auto callback = base::Bind(&Stream::ReadAllAsyncCallback, local 61 return ReadAsyncImpl(buffer, size_to_read, callback, error_callback, error, 104 const base::Callback<void(size_t)>& success_callback, 114 // callback from the main loop, so we pass true here for force_async_callback. 131 auto callback = base::Bind(&Stream::WriteAllAsyncCallback, local 134 return WriteAsyncImpl(buffer, size_to_write, callback, error_callback, error 180 auto callback = base::Bind(&Stream::FlushAsyncCallback, local 337 auto callback = base::Bind(&Stream::ReadAllAsyncCallback, local 364 auto callback = base::Bind(&Stream::WriteAllAsyncCallback, local [all...] |
/external/libmojo/mojo/message_pump/ |
handle_watcher.cc | 53 base::Callback<void(MojoResult)> callback; member in struct:mojo::common::__anon23723::WatchData 127 data.task_runner->PostTask(FROM_HERE, base::Bind(data.callback, result)); 162 // stop watching the handle. When the handle is ready |callback| is notified 168 const base::Callback<void(MojoResult)>& callback); 230 const base::Callback<void(MojoResult)>& callback) { 235 request_data.start_data.callback = callback; 339 base::Callback<void(MojoResult)> callback = callback_; local [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
desktop_and_cursor_composer_unittest.cc | 77 void Start(Callback* callback) override { callback_ = callback; } 88 Callback* callback_; 108 void Init(Callback* callback, Mode mode) override { callback_ = callback; } 132 Callback* callback_; 162 public DesktopCapturer::Callback { 170 // DesktopCapturer::Callback interfac [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
PhoneWindowActionModeTest.java | 23 import android.view.ActionMode.Callback; 71 // Use custom callback to control the provided ActionMode. 85 // Use custom callback to control the provided ActionMode. 99 // Use custom callback to control the provided ActionMode. 113 // Use custom callback to control the provided ActionMode. 177 private static final class MockWindowCallback implements Window.Callback { 266 public ActionMode onWindowStartingActionMode(Callback callback) { 276 public ActionMode onWindowStartingActionMode(Callback callback, int type) [all...] |
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
Transport.java | 56 private final SparseArray<Callback> mServices = new SparseArray<Callback>(); 174 * Registers a service and provides a callback to receive messages. 177 * @param callback The callback to use. 179 public void registerService(int service, Callback callback) { 181 if (callback == null) { 182 throw new IllegalArgumentException("callback must not be null"); 186 mServices.put(service, callback); 204 final Callback callback; local [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
ContiguousFIFOAggregator.java | 31 * key must have been previously declared with {@link #expect(Object, Callback)}. 72 * will call {@link #expect(Object, Callback)}. This means that the expected 88 * the expected queue and its callback will be replaced with this one. 92 * @param callback the callback to notify when the key becomes the first expected key, or null. 94 public void expect(final T key, final Callback<T> callback) { 107 mTasks.put(hash, new Value(callback, null)); 123 * @param key the key previously declared in {@link #expect(Object, Callback)}. 162 * @param key the key previously declared in {@link #expect(Object, Callback)} 229 final Callback<T> callback = value.callback; local 300 final Callback<T> callback; field in class:ContiguousFIFOAggregator.Value [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
AppCompatDelegateImplV14.java | 53 AppCompatDelegateImplV14(Context context, Window window, AppCompatCallback callback) { 54 super(context, window, callback); 70 Window.Callback wrapWindowCallback(Window.Callback callback) { 71 // Override the window callback so that we can intercept onWindowStartingActionMode() 73 return new AppCompatWindowCallbackV14(callback); 267 AppCompatWindowCallbackV14(Window.Callback callback) { 268 super(callback); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/ |
MediaController.java | 108 public void registerCallback(@NonNull Callback callback) { 109 //TODO(apanicke): Add custom callback struct to be able to analyze and 111 mDelegate.registerCallback(callback); 114 public void registerCallback(@NonNull Callback callback, @Nullable Handler handler) { 115 mDelegate.registerCallback(callback, handler); 118 public void unregisterCallback(@NonNull Callback callback) { 119 mDelegate.unregisterCallback(callback); [all...] |
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/ |
GenericOneCameraImpl.java | 33 import com.android.camera.util.Callback; 102 mAFStateListenable.setCallback(new Callback<Integer>() { 105 // TODO delete frameNumber from FocusStateListener callback. It 122 mFocusStateListenable.setCallback(new Callback<FocusState>() { 139 Callback<Boolean> readyStateCallback = new Callback<Boolean>() {
|