/test/testfwk/arkxtest/uitest/test/ |
D | ui_action_test.cpp | 128 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/ |
D | attest_coap.c | 167 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/ |
D | ui_driver.cpp | 126 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()
|
D | ui_driver.h | 37 …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);
|
D | ui_action.h | 204 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()
|
D | widget_operator.cpp | 26 void ComputeEvents(vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents()
|
/test/testfwk/arkxtest/uitest/server/ |
D | server_main.cpp | 69 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/ |
D | index.ets | 25 @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/ |
D | index.ets | 25 @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/ |
D | index.ets | 25 @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/ |
D | PlayVideoList.ets | 81 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664); 83 fileio.readSync(opt, buff); 89 fileio.closeSync(opt);
|
D | PlayAudioList.ets | 81 let opt = fileio.openSync(ColorBackPath, 0o100 | 0o2002, 0o664); 83 fileio.readSync(opt, buff); 89 fileio.closeSync(opt);
|
D | Player_index.ets | 84 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/ |
D | Audio_index.ets | 83 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/ |
D | Camera_index.ets | 84 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/ |
D | ArkUI_index.ets | 100 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/ |
D | Experience_index.ets | 97 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/ |
D | PasteBoardRecord.test.ets | 21 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) => {
|
D | PasteBoard.test.ets | 20 let opt = { 236 await image.createPixelMap(color, opt).then((pixelMap) => {
|