Home
last modified time | relevance | path

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

12345678910>>...37

/external/libwebm/webm_parser/tests/
Dcallback_test.cc20 using webm::Callback;
27 void TestCompletedOk(Status (Callback::*function)(const ElementMetadata&)) { in TestCompletedOk()
28 Callback callback; in TestCompletedOk()
36 void TestCompletedOk(Status (Callback::*function)(const ElementMetadata&, in TestCompletedOk()
38 Callback callback; in TestCompletedOk()
46 void TestAction(Status (Callback::*function)(const ElementMetadata&, Action*), in TestAction()
48 Callback callback; in TestAction()
58 void TestAction(Status (Callback::*function)(const ElementMetadata&, const T&, in TestAction()
61 Callback callback; in TestAction()
72 void TestRead(Status (Callback::*function)(const T&, Reader*, std::uint64_t*)) { in TestRead()
[all …]
/external/llvm-project/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp22 const T &AMatcher, RefactoringCallback &Callback) { in expectRewritten() argument
25 Finder.addMatcher(traverse(ast_type_traits::TK_AsIs, AMatcher), &Callback); in expectRewritten()
40 ReplaceStmtWithText Callback("id", ";"); in TEST() local
41 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
47 ReplaceStmtWithText Callback("id", ";"); in TEST() local
48 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
54 ReplaceStmtWithText Callback("id", ";"); in TEST() local
55 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST()
61 ReplaceStmtWithText Callback("id", "2"); in TEST() local
62 expectRewritten(Code, Expected, expr(integerLiteral()).bind("id"), Callback); in TEST()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DClangdLSPServer.h88 void onInitialize(const InitializeParams &, Callback<llvm::json::Value>);
90 void onShutdown(const ShutdownParams &, Callback<std::nullptr_t>);
91 void onSync(const NoParams &, Callback<std::nullptr_t>);
96 void onAST(const ASTParams &, Callback<llvm::Optional<ASTNode>>);
98 Callback<std::vector<TextEdit>>);
100 Callback<std::vector<TextEdit>>);
102 Callback<std::vector<TextEdit>>);
107 Callback<llvm::json::Value>);
109 Callback<std::vector<FoldingRange>>);
110 void onCodeAction(const CodeActionParams &, Callback<llvm::json::Value>);
[all …]
DClangdServer.h202 Callback<CodeCompleteResult> CB);
206 void signatureHelp(PathRef File, Position Pos, Callback<SignatureHelp> CB);
210 Callback<std::vector<LocatedSymbol>> CB);
215 Callback<llvm::Optional<clangd::Path>> CB);
219 Callback<std::vector<DocumentHighlight>> CB);
223 Callback<llvm::Optional<HoverInfo>> CB);
228 Callback<llvm::Optional<TypeHierarchyItem>> CB);
233 Callback<llvm::Optional<TypeHierarchyItem>> CB);
237 Callback<std::vector<CallHierarchyItem>> CB);
241 Callback<std::vector<CallHierarchyIncomingCall>>);
[all …]
/external/libwebm/webm_parser/src/
Dcallback.cc14 Status Callback::OnElementBegin(const ElementMetadata& /* metadata */, in OnElementBegin()
21 Status Callback::OnUnknownElement(const ElementMetadata& /* metadata */, in OnUnknownElement()
29 Status Callback::OnEbml(const ElementMetadata& /* metadata */, in OnEbml()
34 Status Callback::OnVoid(const ElementMetadata& /* metadata */, Reader* reader, in OnVoid()
41 Status Callback::OnSegmentBegin(const ElementMetadata& /* metadata */, in OnSegmentBegin()
48 Status Callback::OnSeek(const ElementMetadata& /* metadata */, in OnSeek()
53 Status Callback::OnInfo(const ElementMetadata& /* metadata */, in OnInfo()
58 Status Callback::OnClusterBegin(const ElementMetadata& /* metadata */, in OnClusterBegin()
65 Status Callback::OnSimpleBlockBegin(const ElementMetadata& /* metadata */, in OnSimpleBlockBegin()
73 Status Callback::OnSimpleBlockEnd(const ElementMetadata& /* metadata */, in OnSimpleBlockEnd()
[all …]
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp25 RefactoringCallback &Callback) { in expectRewritten() argument
27 Finder.addMatcher(AMatcher, &Callback); in expectRewritten()
34 EXPECT_TRUE(tooling::applyAllReplacements(Callback.getReplacements(), in expectRewritten()
42 ReplaceStmtWithText Callback("id", ";"); in TEST() local
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
49 ReplaceStmtWithText Callback("id", ";"); in TEST() local
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
56 ReplaceStmtWithText Callback("id", ";"); in TEST() local
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
63 ReplaceStmtWithText Callback("id", "2"); in TEST() local
[all …]
/external/angle/third_party/abseil-cpp/absl/cleanup/
Dcleanup.h80 template <typename Arg, typename Callback = void()>
85 static_assert(cleanup_internal::ReturnsVoid<Callback>(),
89 Cleanup(Callback callback) // NOLINT in Cleanup()
112 cleanup_internal::Storage<Callback> storage_;
119 template <typename Callback>
120 Cleanup(Callback callback) -> Cleanup<cleanup_internal::Tag, Callback>;
126 template <typename... Args, typename Callback>
127 absl::Cleanup<cleanup_internal::Tag, Callback> MakeCleanup(Callback callback) { in MakeCleanup()
131 static_assert(cleanup_internal::ReturnsVoid<Callback>(), in MakeCleanup()
Dcleanup_test.cc35 template <typename Callback>
36 static Callback AsCallback(Callback callback) { in AsCallback()
37 return Callback(std::move(callback)); in AsCallback()
45 using Callback = std::function<void()>; typedef in __anon5915afb90111::FunctorClass
48 explicit FunctorClass(Callback callback) : callback_(std::move(callback)) {} in FunctorClass()
51 : callback_(absl::exchange(other.callback_, Callback())) {} in FunctorClass()
68 Callback callback_;
72 template <typename Callback>
73 static FunctorClass AsCallback(Callback callback) { in AsCallback()
79 template <typename Callback>
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/
DProjectAware.cpp40 llvm::function_ref<void(const Symbol &)> Callback) const override;
44 llvm::function_ref<void(const Ref &)> Callback) const override;
50 llvm::function_ref<void(const Symbol &)> Callback) const override;
55 Callback) const override;
83 llvm::function_ref<void(const Symbol &)> Callback) const { in lookup()
86 Idx->lookup(Req, Callback); in lookup()
91 llvm::function_ref<void(const Ref &)> Callback) const { in refs()
94 return Idx->refs(Req, Callback); in refs()
100 llvm::function_ref<void(const Symbol &)> Callback) const { in fuzzyFind()
103 return Idx->fuzzyFind(Req, Callback); in fuzzyFind()
[all …]
DMerge.cpp32 llvm::function_ref<void(const Symbol &)> Callback) const { in fuzzyFind()
56 return Callback(S); in fuzzyFind()
59 Callback(mergeSymbol(*DynS, S)); in fuzzyFind()
66 Callback(S); in fuzzyFind()
72 llvm::function_ref<void(const Symbol &)> Callback) const { in lookup()
83 Callback(S); in lookup()
85 Callback(mergeSymbol(*Sym, S)); in lookup()
89 Callback(*Sym); in lookup()
93 llvm::function_ref<void(const Ref &)> Callback) const { in refs()
109 Callback(O); in refs()
[all …]
/external/libwebm/webm_parser/
DREADME.md15 and then call corresponding `Callback` event methods as the data structures are
36 There are 3 basic components in the parser that are used: `Reader`, `Callback`,
74 (unless, of course, you request the parser to stop via `Callback`... see the
77 ## `Callback`
81 notifies the `Callback` implementation as objects complete parsing. For some
83 `Callback` and requests it to consume the data directly from the `Reader` (this
91 that the `Callback` can be quickly and frequently notified as soon as the object
92 is ready, but large enough that the objects received by the `Callback` are still
93 useful. Having `Callback` events for every tiny integer/float/string/etc.
101 - `Callback::OnElementBegin()`: This is called for every element that the
[all …]
/external/libwebm/webm_parser/test_utils/
Dmock_callback.h24 class MockCallback : public Callback {
144 return Callback::OnElementBegin(metadata, action); in OnElementBeginConcrete()
150 return Callback::OnUnknownElement(metadata, reader, bytes_remaining); in OnUnknownElementConcrete()
154 return Callback::OnEbml(metadata, ebml); in OnEbmlConcrete()
159 return Callback::OnVoid(metadata, reader, bytes_remaining); in OnVoidConcrete()
164 return Callback::OnSegmentBegin(metadata, action); in OnSegmentBeginConcrete()
168 return Callback::OnSeek(metadata, seek); in OnSeekConcrete()
172 return Callback::OnInfo(metadata, info); in OnInfoConcrete()
177 return Callback::OnClusterBegin(metadata, cluster, action); in OnClusterBeginConcrete()
183 return Callback::OnSimpleBlockBegin(metadata, simple_block, action); in OnSimpleBlockBeginConcrete()
[all …]
/external/libchrome/base/
Dcallback_unittest.cc47 Callback<void()> callback_a_;
48 const Callback<void()> callback_b_; // Ensure APIs work with const.
49 Callback<void()> null_callback_;
55 Callback<void()> c0; in TEST_F()
56 Callback<void(int)> c1; in TEST_F()
57 Callback<void(int,int)> c2; in TEST_F()
58 Callback<void(int,int,int)> c3; in TEST_F()
59 Callback<void(int,int,int,int)> c4; in TEST_F()
60 Callback<void(int,int,int,int,int)> c5; in TEST_F()
61 Callback<void(int,int,int,int,int,int)> c6; in TEST_F()
[all …]
Dcallback_unittest.nc26 Callback<int()> c2;
30 …SUBTYPE) // [r"fatal error: no viable conversion from 'Callback<base::Parent \(\)>' to 'Callback<…
32 // Construction of Callback<A> from Callback<B> if A is supertype of B.
37 Callback<Parent()> cb_a;
38 Callback<Child()> cb_b = cb_a;
43 // Assignment of Callback<A> from Callback<B> if A is supertype of B.
46 Callback<Parent()> cb_a;
47 Callback<Child()> cb_b;
/external/javassist/src/main/javassist/tools/
DCallback.java51 public abstract class Callback { class
53 public static Map<String,Callback> callbacks = new HashMap<String,Callback>();
64 public Callback(String src){ in Callback() method in Callback
93 public static void insertBefore(CtBehavior behavior, Callback callback) in insertBefore()
109 public static void insertAfter(CtBehavior behavior,Callback callback) in insertAfter()
130 public static void insertAfter(CtBehavior behavior, Callback callback, boolean asFinally) in insertAfter()
149 public static int insertAt(CtBehavior behavior, Callback callback, int lineNum) in insertAt()
/external/libchrome/base/android/java/src/org/chromium/base/
DPromise.java35 private final List<Callback<T>> mFulfillCallbacks = new LinkedList<>();
38 private final List<Callback<Exception>> mRejectCallbacks = new LinkedList<>();
78 public void then(Callback<T> onFulfill) { in then()
91 Callback<Exception> onReject = reason -> { in then()
109 public void then(Callback<T> onFulfill, Callback<Exception> onReject) { in then()
121 public void except(Callback<Exception> onReject) { in except()
126 private void thenInner(Callback<T> onFulfill) { in thenInner()
134 private void exceptInner(Callback<Exception> onReject) { in exceptInner()
215 for (final Callback<T> callback : mFulfillCallbacks) { in fulfill()
236 for (final Callback<Exception> callback : mRejectCallbacks) { in reject()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowRemoteCallbackList.java13 private final HashMap<IBinder, Callback> callbacks = new HashMap<>();
18 private final class Callback implements IBinder.DeathRecipient { class in ShadowRemoteCallbackList
22 Callback(E callback, Object cookie) { in Callback() method in ShadowRemoteCallbackList.Callback
48 Callback cb = new Callback(callback, cookie); in register()
61 Callback cb = callbacks.remove(callback.asBinder()); in unregister()
73 for (Callback cb : callbacks.values()) { in kill()
104 for (Callback cb : callbacks.values()) { in beginBroadcast()
113 return ((Callback) activeBroadcast[index]).callback; in getBroadcastItem()
118 return ((Callback) activeBroadcast[index]).cookie; in getBroadcastCookie()
/external/libbrillo/brillo/streams/
Dstream.h92 using ErrorCallback = base::Callback<void(const Error*)>;
206 const base::Callback<void(size_t)>& success_callback,
292 const base::Callback<void(size_t)>& success_callback,
374 const base::Callback<void(AccessMode)>& callback,
400 const base::Callback<void(size_t)>& success_callback,
415 const base::Callback<void(size_t, bool)>& success_callback,
425 const base::Callback<void(size_t, bool)>& success_callback,
434 const base::Callback<void(size_t, bool)>& success_callback,
449 const base::Callback<void(size_t)>& success_callback,
459 const base::Callback<void(size_t)>& success_callback,
[all …]
/external/grpc-grpc-java/cronet/src/test/java/io/grpc/cronet/
DCronetClientStreamTest.java125 any(String.class), any(BidirectionalStream.Callback.class), any(Executor.class))) in setUp()
136 isA(BidirectionalStream.Callback.class), in startStream()
150 ArgumentCaptor<BidirectionalStream.Callback> callbackCaptor = in write()
151 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in write()
155 BidirectionalStream.Callback callback = callbackCaptor.getValue(); in write()
230 ArgumentCaptor<BidirectionalStream.Callback> callbackCaptor = in read()
231 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in read()
235 BidirectionalStream.Callback callback = callbackCaptor.getValue(); in read()
276 ArgumentCaptor<BidirectionalStream.Callback> callbackCaptor = in streamSucceeded()
277 ArgumentCaptor.forClass(BidirectionalStream.Callback.class); in streamSucceeded()
[all …]
/external/llvm-project/clang-tools-extra/clangd/index/remote/
DClient.cpp38 CallbackT Callback) const { in streamRPC()
65 Callback(*Response); in streamRPC()
86 llvm::function_ref<void(const clangd::Symbol &)> Callback) in lookup()
88 streamRPC(Request, &remote::v1::SymbolIndex::Stub::Lookup, Callback); in lookup()
92 llvm::function_ref<void(const clangd::Symbol &)> Callback) in fuzzyFind()
95 Callback); in fuzzyFind()
100 llvm::function_ref<void(const clangd::Ref &)> Callback) const override { in refs()
101 return streamRPC(Request, &remote::v1::SymbolIndex::Stub::Refs, Callback); in refs()
107 Callback) const override { in relations()
111 Callback(SubjectAndObject.first, SubjectAndObject.second); in relations()
/external/libbrillo/brillo/dbus/
Ddbus_object_internal_impl.h78 const base::Callback<R(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler()
99 base::Callback<R(Args...)> handler_;
112 const base::Callback<void(Args...)>& handler) : handler_(handler) {} in SimpleDBusInterfaceMethodHandler()
136 base::Callback<void(Args...)> handler_;
157 const base::Callback<bool(ErrorPtr*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithError()
186 base::Callback<bool(ErrorPtr*, Args...)> handler_;
208 const base::Callback<bool(ErrorPtr*, ::dbus::Message*, Args...)>& handler) in SimpleDBusInterfaceMethodHandlerWithErrorAndMessage()
238 base::Callback<bool(ErrorPtr*, ::dbus::Message*, Args...)> handler_;
255 const base::Callback<void(std::unique_ptr<Response>, Args...)>& handler) in DBusInterfaceMethodHandler()
280 base::Callback<void(std::unique_ptr<Response>, Args...)> handler_;
[all …]
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchFinder.h290 internal::CollectMatchesCallback Callback; in match() local
292 Finder.addMatcher(Matcher, &Callback); in match()
294 return std::move(Callback.Nodes); in match()
306 internal::CollectMatchesCallback Callback; in match() local
308 Finder.addMatcher(Matcher, &Callback); in match()
310 return std::move(Callback.Nodes); in match()
316 internal::CollectMatchesCallback Callback; in matchDynamic() local
318 Finder.addDynamicMatcher(Matcher, &Callback); in matchDynamic()
320 return std::move(Callback.Nodes); in matchDynamic()
332 internal::CollectMatchesCallback Callback; in matchDynamic() local
[all …]
/external/lzma/CPP/7zip/UI/Common/
DArchiveOpenCallback.cpp21 if (!Callback) in SetTotal()
23 return Callback->Open_SetTotal(files, bytes); in SetTotal()
32 if (!Callback) in SetCompleted()
34 return Callback->Open_SetCompleted(files, bytes); in SetCompleted()
88 if (Callback) in GetStream()
90 RINOK(Callback->Open_CheckBreak()); in GetStream()
148 if (!Callback) in CryptoGetTextPassword()
151 return Callback->Open_CryptoGetTextPassword(password); in CryptoGetTextPassword()
/external/llvm-project/clang-tools-extra/docs/
Dpp-trace.rst97 - Callback: Name
106 - Callback: FileChanged
112 - Callback: FileChanged
117 - Callback: EndOfMainFile
123 Callback Details
153 …clang.llvm.org/doxygen/classclang_1_1PPCallbacks.html#a7cc8cfaf34114fc65e92af621cd6464e>`_ Callback
174 - Callback: FileChanged
180 …clang.llvm.org/doxygen/classclang_1_1PPCallbacks.html#ab5b338a0670188eb05fa7685bbfb5128>`_ Callback
198 - Callback: FileSkipped
203 …clang.llvm.org/doxygen/classclang_1_1PPCallbacks.html#a3045151545f987256bfa8d978916ef00>`_ Callback
[all …]
/external/webrtc/modules/desktop_capture/
Dcapture_result_desktop_capturer_wrapper.h26 public DesktopCapturer::Callback {
28 using Callback = DesktopCapturer::Callback;
51 void Start(Callback* callback) final;
59 Callback* callback_ = nullptr;

12345678910>>...37