Home
last modified time | relevance | path

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

12345678

/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/testfwk/arkxtest/uitest/input/
Dui_input.cpp20 std::string opt; variable
129 if (opt == "dircFling" && CheckParams(argc, INDEX_FOUR)) { in FlingActionInput()
143 } else if (opt == "fling" && CheckParams(argc, INDEX_SEVEN)) { in FlingActionInput()
168 opt = argv[TWO]; in SwipeActionInput()
170 if (opt == "drag") { in SwipeActionInput()
257 if (opt == "doubleClick") { in ClickActionInput()
259 } else if (opt == "longClick") { in ClickActionInput()
276 opt = argv[TWO]; in UiActionInput()
280 if (opt == "keyEvent") { in UiActionInput()
282 } else if (opt == "fling" || opt == "dircFling") { in UiActionInput()
[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_action.h249 void ComputeEvents(vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
264 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
269 recv.push_back(KeyEvent {ActionStage::DOWN, kCode, opt.keyHoldMs_}); in ComputeEvents()
282 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
284 recv.push_back(KeyEvent {ActionStage::DOWN, code_, opt.keyHoldMs_}); in ComputeEvents()
298 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override in ComputeEvents() argument
303 recv.push_back(KeyEvent {ActionStage::DOWN, codeTwo_, opt.keyHoldMs_}); in ComputeEvents()
305 recv.at(INDEX_ONE).holdMs_ = opt.keyHoldMs_; in ComputeEvents()
331 virtual void Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const = 0;
338 void Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const override;
[all …]
Dui_action.cpp270 void MouseMoveTo::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose()
275 void MouseSwipe::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose()
279 DecomposeComputeSwipe(touchEvents, from_, to_, type_ == TouchOp::DRAG, opt); in Decompose()
287 void MouseClick::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose()
293 DecomposeClick(touchEvents, point_, opt); in Decompose()
296 DecomposeLongClick(touchEvents, point_, opt); in Decompose()
299 DecomposeDoubleClick(touchEvents, point_, opt); in Decompose()
309 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key1_, opt.keyHoldMs_}); in Decompose()
310 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key2_, opt.keyHoldMs_}); in Decompose()
311 …n = MouseEvent {ActionStage::MOVE, point_, MouseButton::BUTTON_NONE, keyAction1, opt.clickHoldMs_}; in Decompose()
[all …]
Dui_driver.h42 …std::unique_ptr<Widget> WaitForWidget(const WidgetSelector &select, const UiOpArgs &opt, ApiCallEr…
55 void TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error);
58 void PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err);
60 void PerformMouseAction(const MouseAction &touch, const UiOpArgs &opt, ApiCallErr &err);
Dui_driver.cpp267 void UiDriver::TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error) in TriggerKey() argument
273 key.ComputeEvents(events, opt); in TriggerKey()
278 uiController_->WaitForUiSteady(opt.uiSteadyThresholdMs_, opt.waitUiSteadyMaxMs_); in TriggerKey()
325 …unique_ptr<Widget> UiDriver::WaitForWidget(const WidgetSelector &selector, const UiOpArgs &opt, Ap… in WaitForWidget() argument
339 } while (GetCurrentMillisecond() - startMs < opt.waitWidgetMaxMs_); in WaitForWidget()
350 void UiDriver::PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err) in PerformTouch() argument
356 touch.Decompose(events, opt); in PerformTouch()
361 uiController_->WaitForUiSteady(opt.uiSteadyThresholdMs_, opt.waitUiSteadyMaxMs_); in PerformTouch()
364 … void UiDriver::PerformMouseAction(const MouseAction &touch, const UiOpArgs &opt, ApiCallErr &err) in PerformMouseAction() argument
370 touch.Decompose(events, opt); in PerformMouseAction()
[all …]
/test/testfwk/arkxtest/uitest/server/
Dserver_main.cpp74 int opt; in GetParam() local
75 while ((opt = getopt_long(argc, argv, optstring.data(), g_longoptions, nullptr)) != -1) { in GetParam()
76 switch (opt) { in GetParam()
81 params.insert(pair<char, string>(opt, "true")); in GetParam()
84 params.insert(pair<char, string>(opt, "true")); in GetParam()
87 params.insert(pair<char, string>(opt, optarg)); in GetParam()
247 std::string opt = argv[TWO]; in UiRecord() local
252 if (opt == "record") { in UiRecord()
260 } else if (opt == "read") { in UiRecord()
/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/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/formsupplyapplicationB/entry/src/main/ets/pages/
DIndex.ets26 @State opt : string = "updateForm";
48 this.opt = want.parameters.opt;
57 if(this.opt == "updateForm") {
81 if(this.opt == "setNextRefreshTime") {
/test/testfwk/arkxtest/uitest/addon/
Dscreen_copy.cpp239 Media::InitializationOptions opt; in ScaleNewsetFrameLocked() local
240 opt.size.width = ceil(origWidth * scale_); in ScaleNewsetFrameLocked()
241 opt.size.height = ceil(origHeight * scale_); in ScaleNewsetFrameLocked()
242 opt.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in ScaleNewsetFrameLocked()
243 opt.editable = false; in ScaleNewsetFrameLocked()
244 return Media::PixelMap::Create(*newestFrame_, rect, opt); in ScaleNewsetFrameLocked()
/test/testfwk/arkxtest/uitest/record/
Dpointer_info.h107 void SetTouchOpt(TouchOpt opt) in SetTouchOpt() argument
109 touchOpt = opt; in SetTouchOpt()
/test/xts/hats/hdf/hdf_lite/display/
Ddisplay_test.c364 GfxOpt opt = {0}; in FillRectTest() local
368 opt.enGlobalAlpha = true; in FillRectTest()
369 opt.globalAlpha = MAX_GLOBLE_ALPHA; in FillRectTest()
375 ret = g_displayTest.gfxFuncs->FillRect(&dstSurface, &rect, HIFB_RED_1555, &opt); in FillRectTest()
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Player/
DPlayAudioList.ets81 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
83 fs.readSync(opt.fd, buff);
89 fs.closeSync(opt);
DPlayVideoList.ets81 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
83 fs.readSync(opt.fd, buff);
89 fs.closeSync(opt);
DPlayNetWorkList.ets91 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
93 fs.readSync(opt.fd, buff);
99 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Camera/
DCamera_index.ets85 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
87 fs.readSync(opt.fd,buff);
93 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Screen/
DScreen_index.ets86 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
88 fs.readSync(opt.fd, buff);
94 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Power/
DPower_index.ets80 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
82 fs.readSync(opt.fd,buff);
88 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Audio/
DAudio_index.ets84 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
86 fs.readSync(opt.fd,buff);
92 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Notification/
DNotification_index.ets85 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
87 fs.readSync(opt.fd, buff);
93 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/MultimodalInput/
DMultimodalInput_index.ets81 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
83 fs.readSync(opt.fd,buff);
89 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Wifi/
DWifi_index.ets84 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
86 fs.readSync(opt.fd, buff);
92 fs.closeSync(opt);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Experience/
DExperience_index.ets100 let opt = fs.openSync(ColorBackPath, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
102 fs.readSync(opt.fd,buff);
108 fs.closeSync(opt);

12345678