Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 19 of 19) sorted by relevance

/test/testfwk/arkxtest/uitest/test/
Dui_action_test.cpp128 UiOpArgs opt {}; in TEST_F() local
129 opt.swipeVelocityPps_ = 50; // specify the swipe velocity in TEST_F()
134 action.Decompose(events, opt); in TEST_F()
142 const uint32_t totalCostMs = distance * 1000 / opt.swipeVelocityPps_; in TEST_F()
169 UiOpArgs opt {}; in TEST_F() local
170 opt.swipeVelocityPps_ = 800; // specify the swipe velocity in TEST_F()
178 const uint32_t totalCostMs = distance * 1000 / opt.swipeVelocityPps_; in TEST_F()
179 opt.swipeStepsCounts_ = distance / stepLen; in TEST_F()
183 action.Decompose(events, opt); in TEST_F()
185 const uint16_t steps = opt.swipeStepsCounts_; in TEST_F()
[all …]
/test/xts/device_attest_lite/services/core/network/
Dattest_coap.c167 static uint32_t CoapGetOptionLength(const CoapOption* opt, uint16_t runningDelta) in CoapGetOptionLength() argument
169 if (opt == NULL) { in CoapGetOptionLength()
177 CoapGetOptionParam((uint16_t)(opt->num - runningDelta), &delta); in CoapGetOptionLength()
178 CoapGetOptionParam((uint16_t)opt->len, &len); in CoapGetOptionLength()
190 return (uint32_t)(optionLen + opt->len); in CoapGetOptionLength()
193 static int32_t CheckOptionParameter(CoapPacket* pkt, const CoapOption* opt, CoapRWBuffer* buf) in CheckOptionParameter() argument
196 if (pkt == NULL || buf == NULL || opt == NULL) { in CheckOptionParameter()
201 if (buf->rwBuffer == NULL || opt->optionBuffer == NULL) { in CheckOptionParameter()
210 if ((opt->len > USHORT_MAX) || (pkt->optsCnt > COAP_MAX_OPTION)) { in CheckOptionParameter()
216 if (pkt->opts[pkt->optsCnt - 1].num > opt->num) { in CheckOptionParameter()
[all …]
/test/testfwk/arkxtest/uitest/core/
Dui_driver.cpp126 void UiDriver::TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error) in TriggerKey() argument
133 key.ComputeEvents(events, opt); in TriggerKey()
138 uiController_->WaitForUiSteady(opt.uiSteadyThresholdMs_, opt.waitUiSteadyMaxMs_); in TriggerKey()
164 …unique_ptr<Widget> UiDriver::WaitForWidget(const WidgetSelector &select, const UiOpArgs &opt, ApiC… in WaitForWidget() argument
178 } while (GetCurrentMillisecond() - startMs < opt.waitWidgetMaxMs_); in WaitForWidget()
189 void UiDriver::PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err) in PerformTouch() argument
196 touch.Decompose(events, opt); in PerformTouch()
201 uiController_->WaitForUiSteady(opt.uiSteadyThresholdMs_, opt.waitUiSteadyMaxMs_); in PerformTouch()
Dui_driver.h37 …std::unique_ptr<Widget> WaitForWidget(const WidgetSelector &select, const UiOpArgs &opt, ApiCallEr…
49 void TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error);
52 void PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err);
Dui_action.h204 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
209 recv.push_back(KeyEvent {ActionStage::DOWN, kCode, opt.keyHoldMs_}); in ComputeEvents()
222 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
224 recv.push_back(KeyEvent {ActionStage::DOWN, code_, opt.keyHoldMs_}); in ComputeEvents()
238 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
243 recv.push_back(KeyEvent {ActionStage::DOWN, codeTwo_, opt.keyHoldMs_}); in ComputeEvents()
245 recv.at(INDEX_ONE).holdMs_ = opt.keyHoldMs_; in ComputeEvents()
Dwidget_operator.cpp26 void ComputeEvents(vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents()
/test/testfwk/arkxtest/uitest/server/
Dserver_main.cpp69 int opt; in GetParam() local
70 while ((opt = getopt_long(argc, argv, optstring.data(), g_longoptions, nullptr)) != -1) { in GetParam()
71 switch (opt) { in GetParam()
76 params.insert(pair<char, string>(opt, "true")); in GetParam()
79 params.insert(pair<char, string>(opt, optarg)); in GetParam()
214 std::string opt = argv[TWO]; in UiRecord() local
219 if (opt == "record") { in UiRecord()
248 } else if (opt == "read") { in UiRecord()
/test/xts/acts/ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationC/entry/src/main/ets/MainAbility/pages/
Dindex.ets25 @State opt : string = "updateForm";
45 this.opt = want.parameters.opt;
54 if(this.opt == "updateForm") {
78 if(this.opt == "setNextRefreshTime") {
/test/xts/acts/ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationD/entry/src/main/ets/MainAbility/pages/
Dindex.ets25 @State opt : string = "updateForm";
45 this.opt = want.parameters.opt;
54 if(this.opt == "updateForm") {
78 if(this.opt == "setNextRefreshTime") {
/test/xts/acts/ability/ability_runtime/formmanager/fa/formproviderst_ets/formsupplyapplicationB/entry/src/main/ets/MainAbility/pages/
Dindex.ets25 @State opt : string = "updateForm";
45 this.opt = want.parameters.opt;
54 if(this.opt == "updateForm") {
78 if(this.opt == "setNextRefreshTime") {
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Player/
DPlayVideoList.ets81 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
83 fileio.readSync(opt, buff);
89 fileio.closeSync(opt);
DPlayAudioList.ets81 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
83 fileio.readSync(opt, buff);
89 fileio.closeSync(opt);
DPlayer_index.ets84 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
86 fileio.readSync(opt, buff);
92 fileio.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Audio/
DAudio_index.ets83 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
85 fileio.readSync(opt,buff);
91 fileio.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Camera/
DCamera_index.ets84 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
86 fileio.readSync(opt,buff);
92 fileio.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/ArkUI/
DArkUI_index.ets100 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
102 fileio.readSync(opt,buff);
108 fileio.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Experience/
DExperience_index.ets97 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664);
99 fileio.readSync(opt,buff);
105 fileio.closeSync(opt);
/test/xts/acts/distributeddatamgr/Pasteboardjsapitest/entry/src/main/ets/test/
DPasteBoardRecord.test.ets21 let opt = {
57 await image.createPixelMap(color, opt).then((pixelMap) => {
280 await image.createPixelMap(color, opt).then((pixelMap) => {
528 await image.createPixelMap(color, opt).then((pixelMap) => {
DPasteBoard.test.ets20 let opt = {
236 await image.createPixelMap(color, opt).then((pixelMap) => {