Home
last modified time | relevance | path

Searched refs:code_ (Results 1 – 18 of 18) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
Dfrontend_api_handler_test.cpp82 ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_); in TEST_F()
101 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F()
106 …ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_) << "The handler should be unavailable after been r… in TEST_F()
123 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F()
140 ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_); in TEST_F()
148 …auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { out.exception_.code_ = USAGE_ERROR; … in TEST_F()
155 ASSERT_EQ(USAGE_ERROR, reply.exception_.code_); in TEST_F()
168 out.exception_.code_ = ERR_OPERATION_UNSUPPORTED; in TEST_F()
178 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F()
185 ASSERT_EQ(ERR_OPERATION_UNSUPPORTED, reply.exception_.code_); in TEST_F()
[all …]
Dwidget_selector_test.cpp238 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
257 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
278 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
301 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
306 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
325 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
330 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
350 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
355 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
381 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F()
[all …]
Dipc_transactor_test.cpp155 ASSERT_EQ(result.exception_.code_, ERR_API_USAGE); in TEST()
162 ASSERT_EQ(result.exception_.code_, ERR_INTERNAL); in TEST()
215 ASSERT_EQ(result.exception_.code_, NO_ERROR); in TEST()
262 ASSERT_EQ(result0.exception_.code_, NO_ERROR); in TEST()
263 ASSERT_EQ(result1.exception_.code_, ERR_API_USAGE); in TEST()
Dui_action_test.cpp449 ASSERT_EQ(KEYCODE_BACK, event1.code_); in TEST_F()
452 ASSERT_EQ(KEYCODE_BACK, event2.code_); in TEST_F()
467 ASSERT_EQ(KEYCODE_CTRL, event1.code_); in TEST_F()
469 ASSERT_EQ(KEYCODE_V, event2.code_); in TEST_F()
472 ASSERT_EQ(KEYCODE_V, event3.code_); in TEST_F()
474 ASSERT_EQ(KEYCODE_CTRL, event4.code_); in TEST_F()
488 ASSERT_EQ(keyCode, event1.code_); in TEST_F()
491 ASSERT_EQ(keyCode, event2.code_); in TEST_F()
Dui_driver_test.cpp97 ASSERT_EQ(NO_ERROR, error.code_); in TEST_F()
156 ASSERT_EQ(NO_ERROR, error.code_); in TEST_F()
243 ASSERT_EQ(ERR_COMPONENT_LOST, error.code_); in TEST_F()
/test/testfwk/arkxtest/uitest/core/
Dwidget_operator.cpp92 if (error.code_ != NO_ERROR) { in GenericClick()
111 if (error.code_ != NO_ERROR) { in ScrollToEnd()
143 if (widgetFrom == nullptr || error.code_ != NO_ERROR) { in DragIntoWidget()
148 if (widgetTo == nullptr || error.code_ != NO_ERROR) { in DragIntoWidget()
161 if (retrieved == nullptr || error.code_ != NO_ERROR) { in PinchWidget()
183 if (retrieved == nullptr || error.code_ != NO_ERROR) { in InputText()
228 if (error.code_ != NO_ERROR) { in ScrollFindWidget()
Dwindow_operator.cpp194 if (out.exception_.code_ == ERR_OPERATION_UNSUPPORTED) { in Split()
206 if (out.exception_.code_ != NO_ERROR) { in Split()
244 if (out.exception_.code_ == ERR_OPERATION_UNSUPPORTED) { in Maximize()
257 if (out.exception_.code_ == ERR_OPERATION_UNSUPPORTED) { in Resume()
270 if (out.exception_.code_ == ERR_OPERATION_UNSUPPORTED) { in Minimize()
283 if (out.exception_.code_ == ERR_OPERATION_UNSUPPORTED) { in Close()
301 if (out.exception_.code_ != NO_ERROR) { in BarAction()
Dfrontend_api_defines.h72 ErrCode code_;
79 code_ = ec; in ApiCallErr()
85 code_ = ec; in ApiCallErr()
Dui_action.h86 int32_t code_; member
280 explicit AnonymousSingleKey(int32_t code) : code_(code) {}; in AnonymousSingleKey()
284 recv.push_back(KeyEvent {ActionStage::DOWN, code_, opt.keyHoldMs_}); in ComputeEvents()
285 recv.push_back(KeyEvent {ActionStage::UP, code_, 0}); in ComputeEvents()
289 const int32_t code_;
Dui_driver.cpp138 if (error.code_ != NO_ERROR) { in DumpUiHierarchy()
219 if (err.code_ != NO_ERROR) { in RetrieveWidget()
286 if (err.code_ != NO_ERROR) { in FindWidgets()
332 if (err.code_ != NO_ERROR) { // abort on error in WaitForWidget()
401 if (err.code_ != NO_ERROR) { in FindWindow()
417 if (err.code_ != NO_ERROR) { in RetrieveWindow()
Dfrontend_api_handler.cpp281 ErrCode ec = apiErr.code_; in ErrCodeMapping()
385 if (out.exception_.code_ != NO_ERROR) { in Call()
464 if (error.code_ != NO_ERROR) { in CheckCallArgType()
507 if (out.exception_.code_ != NO_ERROR) { in APiCallInfoChecker()
691 if (out.exception_.code_ != NO_ERROR) { in RegisterUiDriverComponentFinders()
697 out.exception_.code_ = ERR_ASSERTION_FAILED; in RegisterUiDriverComponentFinders()
789 out.resultValue_ = (out.exception_.code_ == NO_ERROR); in RegisterUiDriverMiscMethods1()
1007 out.resultValue_ = (out.exception_.code_ == NO_ERROR); in RegisterUiDriverMultiPointerOperators()
1140 if (out.exception_.code_ != NO_ERROR) { in GenericComponentAttrGetter()
1253 if (out.exception_.code_ != NO_ERROR) { in RegisterUiWindowAttrGetters()
/test/testfwk/arkxtest/uitest/server/
Dserver_main.cpp109 if (err.code_ != NO_ERROR) { in DumpLayoutImpl()
135 if (err.code_ == NO_ERROR) { in DumpLayout()
138 } else if (err.code_ != ERR_INITIALIZE_FAILED) { in DumpLayout()
148 if (err.code_ == NO_ERROR) { in DumpLayout()
Dsystem_ui_controller.cpp489 if (event.code_ == KEYCODE_NONE) { in InjectKeyEventSequence()
493 auto iter = std::find(downKeys.begin(), downKeys.end(), event.code_); in InjectKeyEventSequence()
495 LOG_W("Cannot release a not-pressed key: %{public}d", event.code_); in InjectKeyEventSequence()
500 keyEvent->SetKeyCode(event.code_); in InjectKeyEventSequence()
503 keyItem.SetKeyCode(event.code_); in InjectKeyEventSequence()
508 downKeys.push_back(event.code_); in InjectKeyEventSequence()
/test/testfwk/arkxtest/uitest/addon/
Dextension_executor.cpp187 const auto errCode = reply.exception_.code_; in CallThroughMessage()
217 EXTENSION_API_CHECK(err.code_ == NO_ERROR, err.message_, err.code_); in AtomicTouch()
260 EXTENSION_API_CHECK(err.code_ == NO_ERROR, err.message_, err.code_); in StartCapture()
/test/testfwk/arkxtest/uitest/record/
Dfind_widget.cpp25 if (err.code_ != NO_ERROR) { in FindWidget()
/test/testfwk/arkxtest/uitest/connection/
Dipc_transactor.cpp96 …et = reply.WriteString(result.resultValue_.dump()) && reply.WriteUint32(result.exception_.code_) && in OnRemoteRequest()
159 result.exception_.code_ = static_cast<ErrCode>(reply.ReadUint32()); in Call()
352 reply.exception_.code_ = ERR_API_USAGE; in Transact()
428 replyWant.SetParam("code", (int)(err.code_)); in SetBroadcastCommandHandler()
/test/testfwk/arkxtest/uitest/napi/
Duitest_napi.cpp211 ErrCode code = reply.exception_.code_; in UnmarshalReply()
214 } else if (reply.exception_.code_ != NO_ERROR) { in UnmarshalReply()
374 if (err.code_ != NO_ERROR) { in PreprocessTransaction()
375 error = CreateJsException(env, err.code_, err.message_); in PreprocessTransaction()
Dui_event_observer_napi.cpp135 if (out.exception_.code_ != NO_ERROR) { in HandleEventCallback()