Home
last modified time | relevance | path

Searched refs:Handler (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dbind_handler.hpp25 template <typename Handler, typename Arg1>
29 binder1(const Handler& handler, const Arg1& arg1) in binder1()
35 binder1(Handler& handler, const Arg1& arg1) in binder1()
36 : handler_(ASIO_MOVE_CAST(Handler)(handler)), in binder1()
52 Handler handler_;
56 template <typename Handler, typename Arg1>
58 binder1<Handler, Arg1>* this_handler) in asio_handler_allocate() argument
64 template <typename Handler, typename Arg1>
66 binder1<Handler, Arg1>* this_handler) in asio_handler_deallocate() argument
72 template <typename Handler, typename Arg1>
[all …]
Dwrapped_handler.hpp27 template <typename Dispatcher, typename Handler>
28 bool operator()(Dispatcher&, Handler& handler) const in operator ()()
36 template <typename Dispatcher, typename Handler>
37 bool operator()(Dispatcher& dispatcher, Handler&) const in operator ()()
43 template <typename Dispatcher, typename Handler,
50 wrapped_handler(Dispatcher dispatcher, Handler& handler) in wrapped_handler()
52 handler_(ASIO_MOVE_CAST(Handler)(handler)) in wrapped_handler()
64 handler_(ASIO_MOVE_CAST(Handler)(other.handler_)) in wrapped_handler()
70 dispatcher_.dispatch(ASIO_MOVE_CAST(Handler)(handler_)); in operator ()()
150 Handler handler_;
[all …]
Dhandler_type_requirements.hpp63 template <typename Handler>
64 auto zero_arg_handler_test(Handler h, void*)
66 sizeof(Handler(static_cast<const Handler&>(h))),
70 template <typename Handler>
71 char (&zero_arg_handler_test(Handler, ...))[2];
73 template <typename Handler, typename Arg1>
74 auto one_arg_handler_test(Handler h, Arg1* a1)
76 sizeof(Handler(static_cast<const Handler&>(h))),
80 template <typename Handler>
81 char (&one_arg_handler_test(Handler h, ...))[2];
[all …]
Dcompletion_handler.hpp27 template <typename Handler>
33 completion_handler(Handler& h) in completion_handler()
35 handler_(ASIO_MOVE_CAST(Handler)(h)) in completion_handler()
55 Handler handler(ASIO_MOVE_CAST(Handler)(h->handler_)); in do_complete()
70 Handler handler_;
Dreactive_socket_service_base.hpp193 template <typename ConstBufferSequence, typename Handler>
196 socket_base::message_flags flags, Handler& handler) in async_send()
202 typedef reactive_socket_send_op<ConstBufferSequence, Handler> op; in async_send()
218 template <typename Handler>
220 socket_base::message_flags, Handler& handler) in async_send()
226 typedef reactive_null_buffers_op<Handler> op; in async_send()
264 template <typename MutableBufferSequence, typename Handler>
267 socket_base::message_flags flags, Handler& handler) in async_receive()
273 typedef reactive_socket_recv_op<MutableBufferSequence, Handler> op; in async_receive()
293 template <typename Handler>
[all …]
Dreactive_socket_service.hpp221 template <typename ConstBufferSequence, typename Handler>
225 Handler& handler) in async_send_to()
232 endpoint_type, Handler> op; in async_send_to()
245 template <typename Handler>
247 const endpoint_type&, socket_base::message_flags, Handler& handler) in async_send_to()
253 typedef reactive_null_buffers_op<Handler> op; in async_send_to()
305 template <typename MutableBufferSequence, typename Handler>
308 socket_base::message_flags flags, Handler& handler) in async_receive_from()
315 endpoint_type, Handler> op; in async_receive_from()
334 template <typename Handler>
[all …]
Dhandler_alloc_helpers.hpp27 template <typename Handler>
28 inline void* allocate(std::size_t s, Handler& h) in allocate()
38 template <typename Handler>
39 inline void deallocate(void* p, std::size_t s, Handler& h) in deallocate()
51 #define ASIO_DEFINE_HANDLER_PTR(op) struct ptr { Handler* h; void* v; op* p; …
/external/parameter-framework/asio-1.10.6/include/asio/
Dhandler_type.hpp30 template <typename Handler, typename Signature>
34 typedef Handler type;
38 template <typename Handler, typename Signature>
39 struct handler_type<const Handler, Signature>
40 : handler_type<Handler, Signature> {};
42 template <typename Handler, typename Signature>
43 struct handler_type<volatile Handler, Signature>
44 : handler_type<Handler, Signature> {};
46 template <typename Handler, typename Signature>
47 struct handler_type<const volatile Handler, Signature>
[all …]
Dasync_result.hpp26 template <typename Handler>
39 explicit async_result(Handler&) in async_result() argument
53 template <typename Handler, typename Signature>
56 explicit async_result_init(ASIO_MOVE_ARG(Handler) orig_handler) in async_result_init()
57 : handler(ASIO_MOVE_CAST(Handler)(orig_handler)), in async_result_init()
62 typename handler_type<Handler, Signature>::type handler;
63 async_result<typename handler_type<Handler, Signature>::type> result;
66 template <typename Handler, typename Signature>
70 typename handler_type<Handler, Signature>::type
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerTest.java9 import android.os.Handler;
28 private Handler.Callback callback = new Handler.Callback() {
47 Handler handler1 = new Handler(looper); in testInsertsRunnablesBasedOnLooper()
50 Handler handler2 = new Handler(looper); in testInsertsRunnablesBasedOnLooper()
60 Handler handler1 = new Handler(); in testDefaultConstructorUsesDefaultLooper()
63 Handler handler2 = new Handler(Looper.myLooper()); in testDefaultConstructorUsesDefaultLooper()
85 Handler handler1 = new Handler(looper1); in testDifferentLoopersGetDifferentQueues()
88 Handler handler2 = new Handler(looper2); in testDifferentLoopersGetDifferentQueues()
98 Handler handler = new Handler(callback); in shouldCallProvidedHandlerCallback()
105 new Handler().post(scratchRunnable); in testPostAndIdleMainLooper()
[all …]
DShadowMessageTest.java9 import android.os.Handler;
49 Handler h = new Handler(); in testGetTarget()
63 m.setTarget(new Handler()); in testCopyFrom()
84 Handler h = new Handler(); in testObtainWithHandler()
91 Handler h = new Handler(); in testObtainWithHandlerAndWhat()
102 Handler h = new Handler(); in testObtainWithHandlerWhatAndObject()
115 Handler h = new Handler(); in testObtainWithHandlerWhatAndTwoArgs()
129 Handler h = new Handler(); in testObtainWithHandlerWhatTwoArgsAndObj()
152 m.setTarget(new Handler()); in testObtainWithMessage()
167 Handler h = new Handler(); in testSendToTarget()
[all …]
DShadowMessengerTest.java6 import android.os.Handler;
19 Handler handler = new Handler(); in testMessengerSend()
34 Handler handler = new Handler(); in getLastMessageSentShouldWork()
45 Handler handler = new Handler(); in createMessengerWithBinder_getLastMessageSentShouldWork()
/external/libbrillo/brillo/dbus/
Ddbus_signal_handler_unittest.cc59 base::Bind(&SignalHandlerSink::Handler, base::Unretained(sink)), in CallSignal()
83 MOCK_METHOD3(Handler, void(int, int, double)); in TEST_F()
86 EXPECT_CALL(sink, Handler(10, 20, 30.5)).Times(1); in TEST_F()
94 MOCK_METHOD2(Handler, void(const std::string&, std::string)); in TEST_F()
97 EXPECT_CALL(sink, Handler(std::string{"foo"}, std::string{"bar"})).Times(1); in TEST_F()
104 MOCK_METHOD0(Handler, void()); in TEST_F()
107 EXPECT_CALL(sink, Handler()).Times(1); in TEST_F()
114 MOCK_METHOD0(Handler, void()); in TEST_F()
118 EXPECT_CALL(sink, Handler()).Times(0); in TEST_F()
125 MOCK_METHOD2(Handler, void(std::string, bool)); in TEST_F()
[all …]
Ddbus_object.h126 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler()
135 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler()
145 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler()
154 Handler<SimpleDBusInterfaceMethodHandler<R, Args...>>::Add( in AddSimpleMethodHandler()
163 Handler<SimpleDBusInterfaceMethodHandlerWithError<Args...>>::Add( in AddSimpleMethodHandlerWithError()
173 Handler<SimpleDBusInterfaceMethodHandlerWithError<Args...>>::Add( in AddSimpleMethodHandlerWithError()
184 Handler<SimpleDBusInterfaceMethodHandlerWithError<Args...>>::Add( in AddSimpleMethodHandlerWithError()
194 Handler<SimpleDBusInterfaceMethodHandlerWithError<Args...>>::Add( in AddSimpleMethodHandlerWithError()
205 Handler<SimpleDBusInterfaceMethodHandlerWithErrorAndMessage<Args...>>::Add( in AddSimpleMethodHandlerWithErrorAndMessage()
216 Handler<SimpleDBusInterfaceMethodHandlerWithErrorAndMessage<Args...>>::Add( in AddSimpleMethodHandlerWithErrorAndMessage()
[all …]
/external/google-fruit/include/fruit/impl/meta/
Deval.h122 template <typename ExprResult, typename ErrorTag, typename Handler>
127 template <typename CaughtErrorTag, typename... ErrorArgs, typename Handler>
128 struct EvalCatch<Error<CaughtErrorTag, ErrorArgs...>, CaughtErrorTag, Handler> {
130 …typename DoEval<typename DoEval<Handler>::type::template apply<Error<CaughtErrorTag, ErrorArgs...>…
133 template <typename ExprResult, typename Handler>
138 template <typename CaughtErrorTag, typename... ErrorArgs, typename Handler>
139 struct EvalCatchAll<Error<CaughtErrorTag, ErrorArgs...>, Handler> {
141 …typename DoEval<typename DoEval<Handler>::type::template apply<Error<CaughtErrorTag, ErrorArgs...>…
144 template <typename Expr, typename ErrorTag, typename Handler>
145 struct DoEval<Catch(Expr, ErrorTag, Handler)> {
[all …]
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DHandlerDispatcher.kt69 public fun Handler.asCoroutineDispatcher(name: String? = null): HandlerDispatcher = in createDispatcher()
75 internal fun Looper.asHandler(async: Boolean): Handler { in createDispatcher()
78 return Handler(this) in createDispatcher()
83 val factoryMethod = Handler::class.java.getDeclaredMethod("createAsync", Looper::class.java) in createDispatcher()
84 return factoryMethod.invoke(null, this) as Handler in createDispatcher()
87 val constructor: Constructor<Handler> in createDispatcher()
89 constructor = Handler::class.java.getDeclaredConstructor(Looper::class.java, in createDispatcher()
90 Handler.Callback::class.java, Boolean::class.javaPrimitiveType) in createDispatcher()
93 return Handler(this) in createDispatcher()
106 private val handler: Handler,
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/test/flow/terminal/
DLaunchFlow.kt11 public typealias Handler<T> = suspend CoroutineScope.(T) -> Unit in <lambda>() typealias
24 internal var onEach: Handler<T>? = null in <lambda>()
26 internal var finally: Handler<Throwable?>? = null in <lambda>()
28 internal var exceptionHandlers = LinkedHashMap<KClass<*>, Handler<Throwable>>() in <lambda>()
41 exceptionHandlers[T::class] = action as Handler<Throwable> in <lambda>()
56 internal var onEach: Handler<T>,
58 internal var exceptionHandlers: Map<KClass<*>, Handler<Throwable>>,
60 internal var finally: Handler<Throwable?>?
/external/vogar/src/vogar/
DOptionParser.java144 private static final HashMap<Class<?>, Handler> handlers = new HashMap<Class<?>, Handler>();
166 Handler getHandler(Type type) { in getHandler()
299 final Handler handler = getHandler(field.getGenericType()); in parseLongOption()
319 final Handler handler = getHandler(field.getGenericType()); in parseGroupedShortOptions()
337 private void setValue(Field field, String arg, Handler handler, String valueText) { in setValue()
407 static abstract class Handler { class in OptionParser
420 static class BooleanHandler extends Handler {
435 static class ByteHandler extends Handler {
445 static class ShortHandler extends Handler {
455 static class IntegerHandler extends Handler {
[all …]
/external/owasp/sanitizer/src/main/org/owasp/html/
DHandler.java38 public interface Handler<T> { interface
43 public static final Handler<Object> DO_NOTHING = new Handler<Object>() {
53 public static final Handler<Throwable> PROPAGATE = new Handler<Throwable>() {
DHtmlStreamRenderer.java54 private final Handler<? super IOException> ioExHandler;
55 private final Handler<? super String> badHtmlHandler;
71 Handler<? super IOException> ioExHandler, in create()
72 Handler<? super String> badHtmlHandler) { in create()
90 StringBuilder output, Handler<? super String> badHtmlHandler) { in create()
92 return create(output, Handler.PROPAGATE, badHtmlHandler); in create()
96 Appendable output, Handler<? super IOException> ioExHandler, in HtmlStreamRenderer()
97 Handler<? super String> badHtmlHandler) { in HtmlStreamRenderer()
112 if (badHtmlHandler != Handler.DO_NOTHING) { // Avoid string append. in error()
396 Appendable output, Handler<? super IOException> errorHandler, in CloseableHtmlStreamRenderer()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ExecutionEngine/Orc/
DRPCUtils.h578 unpackAndRun(HandlerT &Handler, std::tuple<TArgTs...> &Args) { in unpackAndRun() argument
579 return unpackAndRunHelper(Handler, Args, in unpackAndRun()
585 static Error unpackAndRunAsync(HandlerT &Handler, ResponderT &Responder, in unpackAndRunAsync() argument
587 return unpackAndRunAsyncHelper(Handler, Responder, Args, in unpackAndRunAsync()
596 run(HandlerT &Handler, ArgTs &&... Args) { in run() argument
597 Handler(std::move(Args)...); in run()
605 run(HandlerT &Handler, TArgTs... Args) { in run() argument
606 return Handler(std::move(Args)...); in run()
633 unpackAndRunHelper(HandlerT &Handler, ArgTuple &Args, in unpackAndRunHelper() argument
635 return run(Handler, std::move(std::get<Indexes>(Args))...); in unpackAndRunHelper()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dtask_io_service.hpp27 template <typename Handler>
28 void task_io_service::dispatch(Handler& handler) in dispatch()
38 typedef completion_handler<Handler> op; in dispatch()
51 template <typename Handler>
52 void task_io_service::post(Handler& handler) in post()
58 typedef completion_handler<Handler> op; in post()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.def23 // Handler for all types of metadata.
28 // Handler for leaf nodes in the class hierarchy.
33 // Handler for non-leaf nodes in the class hierarchy.
38 // Handler for specialized and uniquable leaf nodes under MDNode. Defers to
51 // Handler for leaf nodes under MDNode.
56 // Handler for leaf nodes under MDNode.
61 // Handler for non-leaf nodes under MDNode.
66 // Handler for specialized leaf nodes under MDNode.
71 // Handler for specialized non-leaf nodes under MDNode.
/external/llvm/include/llvm/IR/
DMetadata.def23 // Handler for all types of metadata.
28 // Handler for leaf nodes in the class hierarchy.
33 // Handler for non-leaf nodes in the class hierarchy.
38 // Handler for specialized and uniquable leaf nodes under MDNode. Defers to
51 // Handler for leaf nodes under MDNode.
56 // Handler for leaf nodes under MDNode.
61 // Handler for non-leaf nodes under MDNode.
66 // Handler for specialized leaf nodes under MDNode.
71 // Handler for specialized non-leaf nodes under MDNode.
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMetadata.def23 // Handler for all types of metadata.
28 // Handler for leaf nodes in the class hierarchy.
33 // Handler for non-leaf nodes in the class hierarchy.
38 // Handler for specialized and uniquable leaf nodes under MDNode. Defers to
51 // Handler for leaf nodes under MDNode.
56 // Handler for leaf nodes under MDNode.
61 // Handler for non-leaf nodes under MDNode.
66 // Handler for specialized leaf nodes under MDNode.
71 // Handler for specialized non-leaf nodes under MDNode.

12345678910>>...26