Home
last modified time | relevance | path

Searched refs:handler (Results 1 - 25 of 55) sorted by relevance

123

/test/xts/acts/graphic/graphicnapidrawingtest/
H A DOH_Drawing_TypographyLargeValueTest.cpp59 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, in HWTEST_F() local
61 EXPECT_TRUE(handler != nullptr); in HWTEST_F()
70 OH_Drawing_TypographyHandlerPushTextStyle(handler, txtStyle); in HWTEST_F()
73 OH_Drawing_TypographyHandlerAddText(handler, text); in HWTEST_F()
74 OH_Drawing_TypographyHandlerPopTextStyle(handler); in HWTEST_F()
76 OH_Drawing_Typography* typography = OH_Drawing_CreateTypography(handler); in HWTEST_F()
105 OH_Drawing_DestroyTypographyHandler(handler); in HWTEST_F()
117 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, in HWTEST_F() local
119 EXPECT_TRUE(handler != nullptr); in HWTEST_F()
128 OH_Drawing_TypographyHandlerPushTextStyle(handler, txtStyl in HWTEST_F()
171 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
219 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
272 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
[all...]
H A DOH_Drawing_TypographyTest.cpp492 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, in HWTEST_F() local
494 EXPECT_TRUE(handler != nullptr); in HWTEST_F()
503 OH_Drawing_TypographyHandlerPushTextStyle(handler, txtStyle); in HWTEST_F()
506 OH_Drawing_TypographyHandlerAddText(handler, text); in HWTEST_F()
507 OH_Drawing_TypographyHandlerPopTextStyle(handler); in HWTEST_F()
509 OH_Drawing_Typography* typography = OH_Drawing_CreateTypography(handler); in HWTEST_F()
538 OH_Drawing_DestroyTypographyHandler(handler); in HWTEST_F()
814 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, in HWTEST_F() local
816 EXPECT_TRUE(handler != nullptr); in HWTEST_F()
825 OH_Drawing_TypographyHandlerPushTextStyle(handler, txtStyl in HWTEST_F()
868 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1191 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1287 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1340 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1395 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1447 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1499 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1551 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1712 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
1795 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); HWTEST_F() local
1822 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); HWTEST_F() local
1851 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); HWTEST_F() local
2186 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
2424 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
2450 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
2476 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
2525 OH_Drawing_TypographyCreate* handler = HWTEST_F() local
2568 OH_Drawing_TypographyCreate* handler = HWTEST_F() local
2610 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
2642 OH_Drawing_TypographyCreate* handler = OH_Drawing_CreateTypographyHandler(typoStyle, HWTEST_F() local
[all...]
/test/testfwk/xdevice/src/xdevice/_core/
H A Dlogger.py50 handler = RotatingFileHandler(log_file, mode=mode, maxBytes=MAX_LOG_LENGTH,
52 handler.setFormatter(logging.Formatter(Variables.report_vars.log_format))
53 handler.setLevel(log_level)
54 return handler
138 for handler in self.handlers:
139 log.add_platform_handler(handler)
152 handler = _new_file_handler(log_file, log_level)
153 handler.addFilter(DriverLogFilter(thread_id))
155 self.handlers.append(handler)
158 log.add_task_log(handler)
[all...]
/test/xts/acts/graphic/nativedrawing/entry/src/main/cpp/
H A DnativeDrawingndk.cpp471 OH_Drawing_TypographyCreate *handler = in OHDrawingCreateTypographyHandler() local
473 if (handler != nullptr) { in OHDrawingCreateTypographyHandler()
478 OH_Drawing_DestroyTypographyHandler(handler); in OHDrawingCreateTypographyHandler()
486 OH_Drawing_TypographyCreate *handler = in OHDrawingCreateTypography() local
488 OH_Drawing_Typography *typography = OH_Drawing_CreateTypography(handler); in OHDrawingCreateTypography()
495 OH_Drawing_DestroyTypographyHandler(handler); in OHDrawingCreateTypography()
503 OH_Drawing_TypographyCreate *handler = in OHDrawingTypographyLayout() local
505 OH_Drawing_Typography *typography = OH_Drawing_CreateTypography(handler); in OHDrawingTypographyLayout()
514 OH_Drawing_DestroyTypographyHandler(handler); in OHDrawingTypographyLayout()
541 OH_Drawing_TypographyCreate *handler in OHDrawingTypographyGetMinIntrinsicWidth() local
578 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetMaxIntrinsicWidth() local
694 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetAlphabeticBaseline() local
726 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetAlphabeticBaselineNormal() local
758 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetIdeographicBaseline() local
790 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetIdeographicBaselineNormal() local
822 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetHeight() local
849 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetHeightAbnormal() local
1180 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyLayoutNormal() local
1199 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetMaxWidthNormal() local
1218 OH_Drawing_TypographyCreate *handler = OHDrawingTypographyGetMinIntrinsicWidthNormal() local
1717 OH_Drawing_TypographyCreate *handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); TypographyCreate() local
1721 TypographyGetLongestLine(OH_Drawing_TypographyCreate *handler, int fontSize) TypographyGetLongestLine() argument
1736 TypographyGetLongestLineWithIndent(OH_Drawing_TypographyCreate *handler, int fontSize) TypographyGetLongestLineWithIndent() argument
1776 OH_Drawing_TypographyCreate *handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); OHDrawingTypographyHandlerAddTextAanormal() local
1947 OH_Drawing_TypographyCreate *handler = OH_Drawing_CreateTypographyHandler(typoStyle, fontCollection); OHDrawingCreateTypographyPaint() local
[all...]
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/
H A Dcpp_driver.py264 handler = ShellHandler(parser_instances)
265 handler.add_process_method(_cpp_output_method)
278 command, timeout=self.config.timeout, receiver=handler, retry=0)
282 handler = self._get_shell_handler(listener)
294 command, timeout=self.config.timeout, receiver=handler, retry=0)
301 handler = self._get_shell_handler(listener_copy)
314 command, timeout=self.config.timeout, receiver=handler,
323 handler.parsers[0].mark_test_as_blocked(test)
326 handler = self._get_shell_handler(listener)
327 handler
[all...]
H A Dltp_posix_driver.py39 self.handler = None
160 self.handler = ShellHandler(parser_instances)
161 self.handler.add_process_method(_ltp_output_method)
166 process_command_ret(result_message, self.handler)
172 def _ltp_output_method(handler, output, end_mark="\n"):
174 if handler.unfinished_line:
175 content = "".join((handler.unfinished_line, content))
176 handler.unfinished_line = ""
182 handler.unfinished_line = lines[-1]
H A Dc_driver_lite.py177 handler = ShellHandler(parser_instances)
187 key=ComType.deploy_com, timeout=timeout, receiver=handler)
225 handler = ShellHandler(parser_instances)
253 key=ComType.deploy_com, timeout=timeout, receiver=handler)
291 handler = ShellHandler(parser_instances)
307 handler.__read__(result)
308 handler.__done__()
347 handler = ShellHandler(parser_instances)
359 key=ComType.deploy_com, timeout=90, receiver=handler)
361 handler
[all...]
H A Dconstants.py224 def __init__(self, name, log_path, command, execute_jar_path, handler=None, wait_time=0):
229 self.handler = handler
250 if self.handler:
251 self.handler.__read__(line.replace('\r', ''))
H A Doh_kernel_driver.py160 handler = self._get_shell_handler(listeners)
167 command, timeout=self.config.timeout, receiver=handler, retry=0)
179 handler = ShellHandler(parser_instances)
180 return handler
H A Dcpp_driver_lite.py240 handler = ShellHandler(parser_instances)
246 timeout=15, receiver=handler)
318 handler = ShellHandler(parser_instances)
320 handler = None
323 timeout=timeout, receiver=handler)
335 return error, result, handler
376 _, _, handler = self.run("{} {}=*{} --gtest_output=xml:{}".format(
381 handler = None
387 _, _, handler = self.run("{} {}=*{}".format(
394 handler
[all...]
H A Doh_jsunit_driver.py558 handler = ShellHandler(parser_instances)
559 handler.add_process_method(_ohjs_output_method)
562 command, timeout=self.config.timeout, receiver=handler, retry=0)
567 handler = self._get_shell_handler(listener)
570 command, timeout=self.config.timeout, receiver=handler, retry=0)
592 handler = ShellHandler(parser_instances)
593 return handler
941 handler = self._get_shell_handler(listener)
943 self.execute_jslocal_command(command, timeout=self.config.timeout, receiver=handler)
1016 handler
[all...]
/test/testfwk/arkxtest/uitest/connection/
H A Dipc_transactor.cpp38 explicit CommonEventForwarder(const CommonEventSubscribeInfo &info, CommonEventHandler handler) in CommonEventForwarder() argument
39 : CommonEventSubscriber(info), handler_(handler) in CommonEventForwarder()
45 void UpdateHandler(CommonEventHandler handler) in UpdateHandler() argument
47 handler_ = handler; in UpdateHandler()
64 explicit DeathRecipientForwarder(RemoteDiedHandler handler) : handler_(handler) {}; in DeathRecipientForwarder() argument
124 void ApiCaller::SetCallHandler(ApiCallHandler handler) in SetCallHandler() argument
126 handler_ = handler; in SetCallHandler()
129 void ApiCaller::SetBackCallerHandler(function<void(sptr<IRemoteObject>)> handler) in SetBackCallerHandler() argument
131 backcallerHandler_ = handler; in SetBackCallerHandler()
292 InitAndConnectPeer(string_view token, ApiCallHandler handler) InitAndConnectPeer() argument
405 SetBroadcastCommandHandler(BroadcastCommandHandler handler) SetBroadcastCommandHandler() argument
[all...]
H A Dipc_transactor.h51 void SetCallHandler(ApiCallHandler handler);
52 void SetBackCallerHandler(std::function<void(OHOS::sptr<OHOS::IRemoteObject>)> handler);
80 bool InitAndConnectPeer(std::string_view token, ApiCallHandler handler);
87 static void SetBroadcastCommandHandler(BroadcastCommandHandler handler);
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
H A DSendShareRequestTest.cpp38 Handler handler);
40 uint32 **ref, Handler handler);
63 Handler handler) in SAMGR_SendSharedRequestProxy()
65 return SAMGR_SendSharedRequest(identity, request, token, handler); in SAMGR_SendSharedRequestProxy()
69 uint32 **ref, Handler handler) in SAMGR_SendSharedDirectRequestProxy()
71 return SAMGR_SendSharedDirectRequest(id, req, resp, ref, handler); in SAMGR_SendSharedDirectRequestProxy()
62 SAMGR_SendSharedRequestProxy(const Identity *identity, const Request *request, uint32 *token, Handler handler) SAMGR_SendSharedRequestProxy() argument
68 SAMGR_SendSharedDirectRequestProxy(const Identity *id, const Request *req, const Response *resp, uint32 **ref, Handler handler) SAMGR_SendSharedDirectRequestProxy() argument
H A DTaskpoolSharedTaskTest.cpp42 int32 (*SendRequestProxyF)(const Identity *identity, const Request *request, Handler handler);
56 int32 (*SendRequestProxyDF)(const Identity *identity, const Request *request, Handler handler);
71 static int32 SendRequestProxyDF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyDF() argument
73 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyDF()
81 static int32 SendRequestProxyF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyF() argument
83 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyF()
H A DTaskpoolSpecifiedTaskTest.cpp36 int32 (*SendRequestProxyF)(const Identity *identity, const Request *request, Handler handler);
50 int32 (*SendRequestProxyDF)(const Identity *identity, const Request *request, Handler handler);
65 static int32 SendRequestProxyDF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyDF() argument
67 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyDF()
75 static int32 SendRequestProxyF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyF() argument
77 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyF()
H A DTaskpoolSingleTaskTest.cpp53 int32 (*SendRequestProxyF)(const Identity *identity, const Request *request, Handler handler);
67 int32 (*SendRequestProxyDF)(const Identity *identity, const Request *request, Handler handler);
82 static int32 SendRequestProxyDF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyDF() argument
84 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyDF()
92 static int32 SendRequestProxyF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyF() argument
94 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyF()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_hal/src/
H A Dsendsharerequest_func_test.c41 Handler handler);
43 uint32 **ref, Handler handler);
66 Handler handler) in SAMGR_SendSharedRequestProxy()
68 return SAMGR_SendSharedRequest(identity, request, token, handler); in SAMGR_SendSharedRequestProxy()
72 uint32 **ref, Handler handler) in SAMGR_SendSharedDirectRequestProxy()
74 return SAMGR_SendSharedDirectRequest(id, req, resp, ref, handler); in SAMGR_SendSharedDirectRequestProxy()
65 SAMGR_SendSharedRequestProxy(const Identity *identity, const Request *request, uint32 *token, Handler handler) SAMGR_SendSharedRequestProxy() argument
71 SAMGR_SendSharedDirectRequestProxy(const Identity *id, const Request *req, const Response *resp, uint32 **ref, Handler handler) SAMGR_SendSharedDirectRequestProxy() argument
H A Dtaskpool_sharedtask_func_test.c48 int32 (*SendRequestProxyF)(const Identity *identity, const Request *request, Handler handler);
62 int32 (*SendRequestProxyDF)(const Identity *identity, const Request *request, Handler handler);
78 static int32 SendRequestProxyDF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyDF() argument
80 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyDF()
89 static int32 SendRequestProxyF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyF() argument
91 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyF()
H A Dtaskpool_specifiedtask_func_test.c41 int32 (*SendRequestProxyF)(const Identity *identity, const Request *request, Handler handler);
55 int32 (*SendRequestProxyDF)(const Identity *identity, const Request *request, Handler handler);
71 static int32 SendRequestProxyDF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyDF() argument
73 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyDF()
82 static int32 SendRequestProxyF(const Identity *identity, const Request *request, Handler handler) in SendRequestProxyF() argument
84 return SAMGR_SendRequest(identity, request, handler); in SendRequestProxyF()
/test/testfwk/arkxtest/uitest/test/
H A Dfrontend_api_handler_test.cpp83 ASSERT_TRUE(reply.exception_.message_.find("No handler found") != string::npos); in TEST_F()
91 auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { in TEST_F() local
94 server.AddHandler(apiId, handler); in TEST_F()
106 ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_) << "The handler should be unavailable after been removed"; in TEST_F()
113 auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { in TEST_F() local
116 server.AddHandler(apiId, handler); in TEST_F()
131 auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { in TEST_F() local
134 server.AddHandler(apiId, handler); in TEST_F()
148 auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { out.exception_.code_ = USAGE_ERROR; }; in TEST_F() local
149 server.AddHandler(apiId, handler); in TEST_F()
163 auto handler = [&handlerCalled](const ApiCallInfo &in, ApiReplyInfo &out) { handlerCalled = true; }; TEST_F() local
648 auto handler = [](const ApiCallInfo& in, ApiReplyInfo& out) { TEST_F() local
[all...]
/test/testfwk/arkxtest/uitest/record/
H A Dui_record.h74 void SetAbcCallBack(std::function<void(nlohmann::json)> handler) in SetAbcCallBack() argument
76 abcCallBack = handler; in SetAbcCallBack()
147 int32_t UiDriverRecordStart(std::function<void(nlohmann::json)> handler, std::string modeOpt);
/test/testfwk/arkxtest/uitest/addon/
H A Dscreen_copy.cpp298 bool StartScreenCopy(float scale, ScreenCopyHandler handler) in StartScreenCopy() argument
300 if (scale <= 0 || scale > 1 || handler == nullptr) { in StartScreenCopy()
305 g_screenCopyHandler = handler; in StartScreenCopy()
317 handler(buf, strlen(g_screenCopy->pendingError_)); in StartScreenCopy()
/test/testfwk/arkxtest/uitest/core/
H A Dfrontend_api_handler.h44 * Register api invocation handler.
46 void AddHandler(std::string_view apiId, ApiInvokeHandler handler);
49 * Check if any handler is registered for the target api.
54 * Remove api invocation handler.
75 * Set handler to handle api callback from server.
78 void SetCallbackHandler(ApiInvokeHandler handler);
100 /** Command apiCall pre-processors before it's dispatched to target handler.*/
/test/testfwk/developer_test/src/core/driver/
H A Dopenharmony.py108 handler = ShellHandler(parser_instances)
111 command, timeout=self.config.timeout, receiver=handler, retry=0)
116 handler = self._get_shell_handler(listener)
119 command, timeout=self.config.timeout, receiver=handler, retry=0)
164 handler = ShellHandler(parser_instances)
165 return handler

Completed in 21 milliseconds

123