/test/testfwk/arkxtest/uitest/test/ |
D | frontend_api_handler_test.cpp | 78 ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_); in TEST_F() 97 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F() 102 …ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_) << "The handler should be unavailable after been r… in TEST_F() 119 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F() 136 ASSERT_EQ(ERR_INTERNAL, reply.exception_.code_); in TEST_F() 144 …auto handler = [](const ApiCallInfo &in, ApiReplyInfo &out) { out.exception_.code_ = USAGE_ERROR; … in TEST_F() 151 ASSERT_EQ(USAGE_ERROR, reply.exception_.code_); in TEST_F() 164 out.exception_.code_ = ERR_OPERATION_UNSUPPORTED; in TEST_F() 174 ASSERT_EQ(NO_ERROR, reply.exception_.code_); in TEST_F() 181 ASSERT_EQ(ERR_OPERATION_UNSUPPORTED, reply.exception_.code_); in TEST_F() [all …]
|
D | widget_selector_test.cpp | 189 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 208 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 228 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 250 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 255 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 274 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 279 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 299 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 304 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() 327 ASSERT_EQ(NO_ERROR, err.code_); in TEST_F() [all …]
|
D | ui_driver_test.cpp | 85 ASSERT_EQ(ERR_INTERNAL, error.code_); in TEST_F() 125 ASSERT_EQ(NO_ERROR, error.code_); in TEST_F() 179 ASSERT_EQ(ERR_COMPONENT_LOST, error.code_); in TEST_F() 219 ASSERT_EQ(NO_ERROR, error.code_); in TEST_F() 235 ASSERT_EQ(ERR_COMPONENT_LOST, error.code_); in TEST_F()
|
D | ipc_transactor_test.cpp | 155 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()
|
D | ui_action_test.cpp | 449 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()
|
D | widget_operator_test.cpp | 150 ASSERT_EQ(ERR_COMPONENT_LOST, error.code_); in TEST_F()
|
/test/testfwk/arkxtest/uitest/core/ |
D | ui_driver.cpp | 73 if (error.code_ != NO_ERROR || widgetTree_ == nullptr) { in DumpUiHierarchy() 91 if (err.code_ != NO_ERROR) { in RetrieveWidget() 129 if (error.code_ != NO_ERROR) { in TriggerKey() 146 if (err.code_ != NO_ERROR) { in FindWidgets() 171 if (err.code_ != NO_ERROR) { // abort on error in WaitForWidget() 192 if (err.code_ != NO_ERROR) { in PerformTouch() 207 if (err.code_ != NO_ERROR) { in TakeScreenCap() 228 if (err.code_ != NO_ERROR) { in FindWindow() 244 if (err.code_ != NO_ERROR) { in RetrieveWindow()
|
D | widget_operator.cpp | 79 if (error.code_ != NO_ERROR) { in GenericClick() 93 if (scrollWidget == nullptr || error.code_ != NO_ERROR) { in ScrollToEnd() 129 if (widgetFrom == nullptr || error.code_ != NO_ERROR) { in DragIntoWidget() 133 if (widgetTo == nullptr || error.code_ != NO_ERROR) { in DragIntoWidget() 147 if (retrieved == nullptr || error.code_ != NO_ERROR) { in PinchWidget() 155 if (error.code_ != NO_ERROR) { in PinchWidget() 179 if (retrieved == nullptr || error.code_ != NO_ERROR) { in InputText() 236 if (scrollWidget == nullptr || error.code_ != NO_ERROR) { in ScrollFindWidget()
|
D | ui_action.h | 50 int32_t code_; member 220 explicit AnonymousSingleKey(int32_t code) : code_(code) {}; in AnonymousSingleKey() 224 recv.push_back(KeyEvent {ActionStage::DOWN, code_, opt.keyHoldMs_}); in ComputeEvents() 225 recv.push_back(KeyEvent {ActionStage::UP, code_, 0}); in ComputeEvents() 229 const int32_t code_;
|
D | frontend_api_defines.h | 72 ErrCode code_; 79 code_ = ec; in ApiCallErr() 85 code_ = ec; in ApiCallErr()
|
D | frontend_api_handler.cpp | 184 ErrCode ec = apiErr.code_; in ErrCodeMapping() 273 if (out.exception_.code_ != NO_ERROR) { in Call() 349 if (error.code_ != NO_ERROR) { in CheckCallArgType() 379 if (out.exception_.code_ != NO_ERROR) { in APiCallInfoChecker() 541 if (out.exception_.code_ != NO_ERROR) { in RegisterUiDriverComponentFinders() 546 out.exception_.code_ = ERR_ASSERTION_FAILED; in RegisterUiDriverComponentFinders() 607 if (out.exception_.code_ == NO_ERROR) { in RegisterUiDriverMiscMethods() 624 out.resultValue_ = (out.exception_.code_ == NO_ERROR); in RegisterUiDriverMiscMethods() 625 out.exception_.code_ = NO_ERROR; in RegisterUiDriverMiscMethods() 763 out.resultValue_ = (out.exception_.code_ == NO_ERROR); in RegisterUiDriverMultiPointerOperators() [all …]
|
D | window_operator.cpp | 256 if (out.exception_.code_ != NO_ERROR) { in BarAction()
|
/test/testfwk/arkxtest/uitest/connection/ |
D | ipc_transactor.cpp | 96 …et = reply.WriteString(result.resultValue_.dump()) && reply.WriteUint32(result.exception_.code_) && in OnRemoteRequest() 158 result.exception_.code_ = static_cast<ErrCode>(reply.ReadUint32()); in Call() 341 reply.exception_.code_ = ERR_API_USAGE; in Transact()
|
/test/testfwk/arkxtest/uitest/server/ |
D | system_ui_controller.cpp | 345 auto iter = std::find(downKeys.begin(), downKeys.end(), event.code_); in InjectKeyEventSequence() 347 LOG_W("Cannot release a not-pressed key: %{public}d", event.code_); in InjectKeyEventSequence() 352 keyEvent->SetKeyCode(event.code_); in InjectKeyEventSequence() 355 keyItem.SetKeyCode(event.code_); in InjectKeyEventSequence() 360 downKeys.push_back(event.code_); in InjectKeyEventSequence()
|
D | server_main.cpp | 125 if (error.code_ != NO_ERROR) { in DumpLayout()
|
/test/testfwk/arkxtest/uitest/napi/ |
D | uitest_napi.cpp | 199 ErrCode code = reply.exception_.code_; in UnmarshalReply() 202 } else if (reply.exception_.code_ != NO_ERROR) { in UnmarshalReply()
|