/test/testfwk/arkxtest/uitest/test/ |
H A D | ui_action_test.cpp | 128 UiOpArgs opt {}; in TEST_F() 129 opt.swipeVelocityPps_ = 50; // specify the swipe velocity in TEST_F() 134 action.Decompose(events, opt); in TEST_F() 140 const uint32_t totalCostMs = distance * 1000 / opt.swipeVelocityPps_; in TEST_F() 171 UiOpArgs opt {}; in TEST_F() 172 opt.swipeVelocityPps_ = 800; // specify the swipe velocity in TEST_F() 180 const uint32_t totalCostMs = distance * 1000 / opt.swipeVelocityPps_; in TEST_F() 181 opt.swipeStepsCounts_ = distance / stepLen; in TEST_F() 185 action.Decompose(events, opt); in TEST_F() 187 const uint32_t steps = opt in TEST_F() [all...] |
/test/xts/device_attest_lite/services/core/network/ |
H A 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 in CheckOptionParameter() 230 CoapAddOption(CoapPacket* pkt, const CoapOption* opt, CoapRWBuffer* buf) CoapAddOption() argument [all...] |
/test/testfwk/arkxtest/uitest/input/ |
H A D | ui_input.cpp | 20 std::string opt; 132 if (opt == "dircFling" && CheckParams(argc, INDEX_FOUR)) { in FlingActionInput() 146 } else if (opt == "fling" && CheckParams(argc, INDEX_SEVEN)) { in FlingActionInput() 171 opt = argv[TWO]; in SwipeActionInput() 173 if (opt == "drag") { in SwipeActionInput() 260 if (opt == "doubleClick") { in ClickActionInput() 262 } else if (opt == "longClick") { in ClickActionInput() 279 opt = argv[TWO]; in UiActionInput() 283 if (opt == "keyEvent") { in UiActionInput() 285 } else if (opt in UiActionInput() [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | ui_action.cpp | 278 void MouseMoveTo::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose() 283 void MouseSwipe::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose() 287 DecomposeComputeSwipe(touchEvents, from_, to_, type_, opt); in Decompose() 295 void MouseClick::Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const in Decompose() 301 DecomposeClick(touchEvents, point_, opt); in Decompose() 304 DecomposeLongClick(touchEvents, point_, opt); in Decompose() 307 DecomposeDoubleClick(touchEvents, point_, opt); in Decompose() 317 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key1_, opt.keyHoldMs_}); in Decompose() 318 keyAction1.push_back(KeyEvent {ActionStage::DOWN, key2_, opt.keyHoldMs_}); in Decompose() 319 auto keyDown = MouseEvent {ActionStage::MOVE, point_, MouseButton::BUTTON_NONE, keyAction1, opt in Decompose() [all...] |
H A D | ui_action.h | 249 void ComputeEvents(vector<KeyEvent> &recv, const UiOpArgs &opt) const override 264 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override 269 recv.push_back(KeyEvent {ActionStage::DOWN, kCode, opt.keyHoldMs_}); 282 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override 284 recv.push_back(KeyEvent {ActionStage::DOWN, code_, opt.keyHoldMs_}); 298 void ComputeEvents(std::vector<KeyEvent> &recv, const UiOpArgs &opt) const override 303 recv.push_back(KeyEvent {ActionStage::DOWN, codeTwo_, opt.keyHoldMs_}); 305 recv.at(INDEX_ONE).holdMs_ = opt.keyHoldMs_; 331 virtual void Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) const = 0; 338 void Decompose(std::vector<MouseEvent> &recv, const UiOpArgs &opt) cons [all...] |
H A D | ui_driver.cpp | 273 void UiDriver::TriggerKey(const KeyAction &key, const UiOpArgs &opt, ApiCallErr &error) in TriggerKey() argument 279 key.ComputeEvents(events, opt); in TriggerKey() 289 UiOpArgs opt; in FindWidgets() local 290 uiController_->WaitForUiSteady(opt.uiSteadyThresholdMs_, opt.waitUiSteadyMaxMs_); in FindWidgets() 332 unique_ptr<Widget> UiDriver::WaitForWidget(const WidgetSelector &selector, const UiOpArgs &opt, ApiCallErr &err) in WaitForWidget() argument 346 } while (GetCurrentMillisecond() - startMs < opt.waitWidgetMaxMs_); in WaitForWidget() 357 void UiDriver::PerformTouch(const TouchAction &touch, const UiOpArgs &opt, ApiCallErr &err) in PerformTouch() argument 363 touch.Decompose(events, opt); in PerformTouch() 370 void UiDriver::PerformMouseAction(const MouseAction &touch, const UiOpArgs &opt, ApiCallEr argument [all...] |
H A D | ui_driver.h | 42 std::unique_ptr<Widget> WaitForWidget(const WidgetSelector &select, const UiOpArgs &opt, ApiCallErr &err); 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);
|
/test/testfwk/arkxtest/uitest/server/ |
H A D | server_main.cpp | 90 int opt; in GetParam() local 91 while ((opt = getopt_long(argc, argv, optstring.data(), g_longoptions, nullptr)) != -1) { in GetParam() 92 switch (opt) { in GetParam() 97 params.insert(pair<char, string>(opt, "true")); in GetParam() 100 params.insert(pair<char, string>(opt, "true")); in GetParam() 103 params.insert(pair<char, string>(opt, optarg)); in GetParam() 265 std::string opt = argv[TWO]; in UiRecord() local 270 if (opt == "record") { in UiRecord() 279 } else if (opt == "read") { in UiRecord() 283 PrintToConsole("Illegal argument: " + opt); in UiRecord() [all...] |
/test/testfwk/arkxtest/uitest/addon/ |
H A D | screen_copy.cpp | 239 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/ |
H A D | pointer_info.h | 107 void SetTouchOpt(TouchOpt opt) in SetTouchOpt() argument 109 touchOpt = opt; in SetTouchOpt()
|
/test/xts/hats/hdf/hdf_lite/display/ |
H A D | display_test.c | 364 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()
|