Home
last modified time | relevance | path

Searched refs:ApiCallErr (Results 1 - 25 of 29) sorted by relevance

12

/test/testfwk/arkxtest/uitest/core/
H A Dui_driver.h39 ApiCallErr &err, bool updateUi = true);
42 std::unique_ptr<Widget> WaitForWidget(const WidgetSelector &select, const UiOpArgs &opt, ApiCallErr &err);
44 std::unique_ptr<Window> FindWindow(std::function<bool(const Window &)> matcher, ApiCallErr &err,
48 const Widget *RetrieveWidget(const Widget &widget, ApiCallErr &err, bool updateUi = true);
51 const Window *RetrieveWindow(const Window &window, ApiCallErr &err, bool updateTitle = false);
56 void TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error);
59 void PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err);
61 void PerformMouseAction(const MouseAction &touch, const UiOpArgs &opt, ApiCallErr &err);
67 void TakeScreenCap(int32_t fd, ApiCallErr &err, Rect rect);
69 void DumpUiHierarchy(nlohmann::json &out, bool listWindows, bool addExternAttr, ApiCallErr
[all...]
H A Dui_driver.cpp56 bool UiDriver::CheckStatus(bool isConnected, ApiCallErr &error) in CheckStatus()
69 void UiDriver::UpdateUIWindows(ApiCallErr &error, bool updateTitle) in UpdateUIWindows()
81 error = ApiCallErr(ERR_INTERNAL, "Get window nodes failed"); in UpdateUIWindows()
141 void UiDriver::DumpUiHierarchy(nlohmann::json &out, bool listWindows, bool addExternAttr, ApiCallErr &error) in DumpUiHierarchy()
221 const Widget *UiDriver::RetrieveWidget(const Widget &widget, ApiCallErr &err, bool updateUi) in RetrieveWidget()
258 err = ApiCallErr(ERR_COMPONENT_LOST, msg.str()); in RetrieveWidget()
266 err = ApiCallErr(ERR_COMPONENT_LOST, msg.str()); in RetrieveWidget()
273 void UiDriver::TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error) in TriggerKey()
287 ApiCallErr &err, bool updateUi) in FindWidgets()
332 unique_ptr<Widget> UiDriver::WaitForWidget(const WidgetSelector &selector, const UiOpArgs &opt, ApiCallErr
[all...]
H A Dwidget_operator.h27 void GenericClick(TouchOp op, ApiCallErr &error) const;
30 void InputText(std::string_view text, ApiCallErr &error) const;
33 void ScrollToEnd(bool toTop, ApiCallErr &error) const;
36 void DragIntoWidget(const Widget &another, ApiCallErr &error) const;
39 void PinchWidget(float_t scale, ApiCallErr &error) const;
42 std::unique_ptr<Widget> ScrollFindWidget(const WidgetSelector &selector, ApiCallErr &error) const;
45 void TurnPage(bool toTop, int &oriDistance, ApiCallErr &error) const;
H A Dwidget_selector.cpp39 void WidgetSelector::AddFrontLocator(const WidgetSelector &selector, ApiCallErr &error) in AddFrontLocator()
42 error = ApiCallErr(ERR_INVALID_INPUT, NEST_USAGE_ERROR); in AddFrontLocator()
48 void WidgetSelector::AddRearLocator(const WidgetSelector &selector, ApiCallErr &error) in AddRearLocator()
51 error = ApiCallErr(ERR_INVALID_INPUT, NEST_USAGE_ERROR); in AddRearLocator()
57 void WidgetSelector::AddParentLocator(const WidgetSelector &selector, ApiCallErr &error) in AddParentLocator()
60 error = ApiCallErr(ERR_INVALID_INPUT, NEST_USAGE_ERROR); in AddParentLocator()
H A Dwidget_operator.cpp50 auto error = ApiCallErr(NO_ERROR); in ConstructNoFilterInWidgetSelector()
71 const string &appName, ApiCallErr &error) in ConstructScrollFindSelector()
88 void WidgetOperator::GenericClick(TouchOp op, ApiCallErr &error) const in GenericClick()
100 void WidgetOperator::ScrollToEnd(bool toTop, ApiCallErr &error) const in ScrollToEnd()
140 void WidgetOperator::DragIntoWidget(const Widget &another, ApiCallErr &error) const in DragIntoWidget()
158 void WidgetOperator::PinchWidget(float_t scale, ApiCallErr &error) const in PinchWidget()
166 error = ApiCallErr(ERR_INVALID_INPUT, "Please input the correct scale"); in PinchWidget()
173 void WidgetOperator::InputText(string_view text, ApiCallErr &error) const in InputText()
204 unique_ptr<Widget> WidgetOperator::ScrollFindWidget(const WidgetSelector &selector, ApiCallErr &error) const in ScrollFindWidget()
251 void WidgetOperator::TurnPage(bool toTop, int &oriDistance, ApiCallErr
[all...]
H A Dwindow_operator.cpp81 out.exception_ = ApiCallErr(ERR_OPERATION_UNSUPPORTED, OPERATIONS[index].message); in CheckOperational()
86 out.exception_ = ApiCallErr(ERR_INTERNAL, "No such window mode-action combination registered"); in CheckOperational()
195 out.exception_ = ApiCallErr(NO_ERROR, ""); in Split()
210 out.exception_ = ApiCallErr(ERR_OPERATION_UNSUPPORTED, "this device can not support this action"); in Split()
227 out.exception_ = ApiCallErr(ERR_OPERATION_UNSUPPORTED, "this device can not support this action"); in Split()
245 out.exception_ = ApiCallErr(NO_ERROR, ""); in Maximize()
258 out.exception_ = ApiCallErr(NO_ERROR, ""); in Resume()
271 out.exception_ = ApiCallErr(NO_ERROR, ""); in Minimize()
284 out.exception_ = ApiCallErr(NO_ERROR, ""); in Close()
305 out.exception_ = ApiCallErr(ERR_OPERATION_UNSUPPORTE in BarAction()
[all...]
H A Dfrontend_api_defines.h70 struct ApiCallErr { struct
75 ApiCallErr() = delete;
77 explicit ApiCallErr(ErrCode ec) in ApiCallErr() function
83 ApiCallErr(ErrCode ec, std::string_view msg) in ApiCallErr() function
101 ApiCallErr exception_ = ApiCallErr(NO_ERROR);
H A Dwidget_selector.h37 void AddFrontLocator(const WidgetSelector &selector, ApiCallErr &error);
40 void AddRearLocator(const WidgetSelector &selector, ApiCallErr &error);
42 void AddParentLocator(const WidgetSelector &selector, ApiCallErr &error);
H A Dfrontend_api_handler.cpp287 static void ErrCodeMapping(ApiCallErr &apiErr) in ErrCodeMapping()
293 apiErr = ApiCallErr(findCode->second.at(0), msg); in ErrCodeMapping()
346 out.exception_ = ApiCallErr(ERR_INTERNAL, "No callback handler set!"); in Callback()
388 out.exception_ = ApiCallErr(ERR_INTERNAL, "No handler found for api '" + call.apiId_ + "'"); in Call()
403 out.exception_ = ApiCallErr(ERR_INTERNAL, "Preprocessor failed: " + string(ex.what())); in Call()
409 out.exception_ = ApiCallErr(ERR_INTERNAL, "Handler failed: " + string(ex.what())); in Call()
430 error = ApiCallErr((code), (message)); \
435 static void CheckCallArgType(string_view expect, const json &value, bool isDefAgc, ApiCallErr &error) in CheckCallArgType()
451 error = ApiCallErr(ERR_INVALID_INPUT, "Expect integer which cannot be less than 0"); in CheckCallArgType()
511 out.exception_ = ApiCallErr(ERR_INVALID_INPU in APiCallInfoChecker()
[all...]
H A Dui_controller.h49 virtual bool Initialize(ApiCallErr &error) in Initialize()
/test/testfwk/arkxtest/uitest/test/
H A Dwidget_selector_test.cpp229 ApiCallErr err(NO_ERROR); in TEST_F()
248 ApiCallErr err(NO_ERROR); in TEST_F()
268 ApiCallErr err(NO_ERROR); in TEST_F()
292 ApiCallErr err(NO_ERROR); in TEST_F()
316 ApiCallErr err(NO_ERROR); in TEST_F()
341 ApiCallErr err(NO_ERROR); in TEST_F()
372 ApiCallErr err(NO_ERROR); in TEST_F()
392 ApiCallErr err(NO_ERROR); in TEST_F()
413 ApiCallErr err(NO_ERROR); in TEST_F()
435 ApiCallErr er in TEST_F()
[all...]
H A Dui_driver_test.cpp85 auto error = ApiCallErr(NO_ERROR); in TEST_F()
137 auto error = ApiCallErr(NO_ERROR); in TEST_F()
152 error = ApiCallErr(NO_ERROR); in TEST_F()
197 auto error = ApiCallErr(NO_ERROR); in TEST_F()
239 error = ApiCallErr(NO_ERROR); in TEST_F()
295 auto error = ApiCallErr(NO_ERROR); in TEST_F()
369 auto error = ApiCallErr(NO_ERROR); in TEST_F()
455 auto error = ApiCallErr(NO_ERROR); in TEST_F()
548 auto error = ApiCallErr(NO_ERROR); in TEST_F()
H A Dwidget_operator_test.cpp187 auto error = ApiCallErr(NO_ERROR); in TEST_F()
209 auto error = ApiCallErr(NO_ERROR); in TEST_F()
230 auto error = ApiCallErr(NO_ERROR); in TEST_F()
279 auto error = ApiCallErr(NO_ERROR);
289 error = ApiCallErr(NO_ERROR);
H A Dipc_transactor_test.cpp132 result.exception_ = ApiCallErr(ERR_API_USAGE, "MockedError"); in TEST()
186 result.exception_ = ApiCallErr(ERR_INVALID_INPUT, "Bad fd"); in TEST()
/test/testfwk/arkxtest/uitest/cj/
H A Dui_event_observer_impl.cpp38 void UiEventObserverImpl::PreprocessCallOnce(ApiCallInfo &call, int64_t callbackId, ApiCallErr &err) in PreprocessCallOnce()
43 err = ApiCallErr(ERR_INVALID_INPUT, "Missing event type argument"); in PreprocessCallOnce()
49 err = ApiCallErr(ERR_INVALID_INPUT, "Invalid callback function argument"); in PreprocessCallOnce()
55 err = ApiCallErr(INTERNAL_ERROR, "UIEventObserver memory error."); in PreprocessCallOnce()
77 out.exception_ = ApiCallErr(ERR_INTERNAL, "Api dose not support callback: " + in.apiId_); in InitCallbackContext()
92 out.exception_ = ApiCallErr(INTERNAL_ERROR, "JsCallbackFunction is not referenced: " + callbackId); in InitCallbackContext()
156 out.exception_ = ApiCallErr(INTERNAL_ERROR, "UIEventObserver memory error."); in HandleEventCallback()
169 out.exception_ = ApiCallErr(INTERNAL_ERROR, "UIEventObserver memory error."); in HandleEventCallback()
H A Duitest_ffi.cpp79 void PreprocessTransaction(ApiCallInfo &callInfo, ApiCallErr &error) in PreprocessTransaction()
94 error = ApiCallErr{ERR_INVALID_INPUT, "Missing file path argument"}; in PreprocessTransaction()
101 error = ApiCallErr{ERR_INVALID_INPUT, "Invalid file path:" + path}; in PreprocessTransaction()
185 ApiCallErr err{uitest::ErrCode::NO_ERROR}; in CJ_ApiCall()
H A Dui_event_observer_impl.h26 void PreprocessCallOnce(ApiCallInfo &call, int64_t callbackId, ApiCallErr &err);
/test/testfwk/arkxtest/uitest/connection/
H A Dipc_transactor.cpp155 result.exception_ = ApiCallErr(ERR_INTERNAL, "IPC SendRequest failed"); in Call()
349 reply.exception_ = ApiCallErr(ERR_INTERNAL, "ipc connection is dead"); in Transact()
369 void ApiTransactor::SendBroadcastCommand(const OHOS::AAFwk::Want &cmd, ApiCallErr &err) in SendBroadcastCommand()
377 err = ApiCallErr(ERR_INTERNAL, "Failed to publish uitest.broadcast.command"); in SendBroadcastCommand()
390 err = ApiCallErr(code, reply.GetStringParam("message")); in SendBroadcastCommand()
395 err = ApiCallErr(INTERNAL_ERROR, "Fail to subscribe uitest.broadcast.command.reply"); in SendBroadcastCommand()
399 err = ApiCallErr(INTERNAL_ERROR, "Wait for subscribe uitest.broadcast.command.reply timeout"); in SendBroadcastCommand()
424 ApiCallErr err = ApiCallErr(NO_ERROR); in SetBroadcastCommandHandler()
426 err = ApiCallErr(INTERNAL_ERRO in SetBroadcastCommandHandler()
[all...]
H A Dipc_transactor.h74 using BroadcastCommandHandler = std::function<void(const OHOS::AAFwk::Want &cmd, ApiCallErr &err)>;
86 static void SendBroadcastCommand(const OHOS::AAFwk::Want &cmd, ApiCallErr &err);
/test/testfwk/arkxtest/uitest/server/
H A Dserver_main.cpp111 ApiCallErr &err) in DumpLayoutImpl()
116 err = ApiCallErr(ERR_INVALID_INPUT, "Error path:" + string(path) + strerror(errno)); in DumpLayoutImpl()
149 auto err = ApiCallErr(NO_ERROR); in DumpLayout()
159 err = ApiCallErr(NO_ERROR); in DumpLayout()
220 ApiTransactor::SetBroadcastCommandHandler([] (const OHOS::AAFwk::Want &cmd, ApiCallErr &err) { in StartDaemon()
272 ApiCallErr error = ApiCallErr(NO_ERROR); in UiRecord()
H A Dsystem_ui_controller.h29 bool Initialize(ApiCallErr &error) override;
52 bool ConnectToSysAbility(ApiCallErr &error);
/test/testfwk/arkxtest/uitest/napi/
H A Dui_event_observer_napi.cpp39 napi_value* argv, ApiCallErr &err) in PreprocessCallOnce()
47 err = ApiCallErr(ERR_INVALID_INPUT, "Missing event type argument"); in PreprocessCallOnce()
57 err = ApiCallErr(ERR_INVALID_INPUT, "Invalid callback function argument"); in PreprocessCallOnce()
94 out.exception_ = ApiCallErr(ERR_INTERNAL, "Api dose not support callback: " + in.apiId_); in InitCallbackContext()
111 out.exception_ = ApiCallErr(INTERNAL_ERROR, "UIEventObserver is not referenced: " + observerId); in InitCallbackContext()
116 out.exception_ = ApiCallErr(INTERNAL_ERROR, "JsCallbackFunction is not referenced: " + callbackId); in InitCallbackContext()
H A Dui_event_observer_napi.h26 void PreprocessCallOnce(napi_env env, ApiCallInfo &call, napi_value jsThis, napi_value* argv, ApiCallErr &err);
/test/testfwk/arkxtest/uitest/record/
H A Dfind_widget.cpp21 ApiCallErr err(NO_ERROR); in FindWidget()
H A Dui_record.cpp242 ApiCallErr err(NO_ERROR); in FindWidgetsandWriteData()
356 ApiCallErr err(NO_ERROR); in RecordInitEnv()

Completed in 18 milliseconds

12