Home
last modified time | relevance | path

Searched refs:pressedCodes (Results 1 - 6 of 6) sorted by relevance

/ide/tools/previewer/mock/rich/
H A DKeyInputImpl.cpp26 KeyInputImpl::KeyInputImpl() : KeyInput(), pressedCodes(0) in KeyInputImpl()
46 keyEvent->pressedCodes = pressedCodes; in DispatchOsKeyEvent()
59 pressedCodes.clear(); in SetKeyEvent()
61 pressedCodes.push_back(KeyCode(num)); in SetKeyEvent()
H A DKeyInputImpl.h34 std::vector<OHOS::MMI::KeyCode> pressedCodes; member in KeyInputImpl
/ide/tools/previewer/test/mock/mock/
H A DMockKeyInputImpl.cpp43 pressedCodes.clear(); in SetKeyEvent()
45 pressedCodes.push_back(OHOS::MMI::KeyCode(num)); in SetKeyEvent()
/ide/tools/previewer/test/fuzztest/commandparse_fuzzer/
H A DRichCommandParseFuzzer.cpp48 {"KeyPress", R"({"isInputMethod":false,"keyCode":2033,"keyAction":0,"pressedCodes":[2033]})"},
/ide/tools/previewer/cli/
H A DCommandLine.cpp1323 !args.IsMember("pressedCodes") || !args["pressedCodes"].IsArray() || in IsKeyArgsValid()
1324 args["pressedCodes"].GetArraySize() < 1 || (args.IsMember("keyString") && !args["keyString"].IsString())) { in IsKeyArgsValid()
1340 Json2::Value arrayNum = args["pressedCodes"]; in IsKeyArgsValid()
1343 ELOG("Param pressedCodes's value is invalid."); in IsKeyArgsValid()
1376 Json2::Value pressedCodes = args["pressedCodes"]; in RunAction() local
1378 for (unsigned int i = 0; i < pressedCodes.GetArraySize(); i++) { in RunAction()
1379 pressedCodesVec.push_back(pressedCodes.GetArrayItem(i).AsInt()); in RunAction()
1457 Json2::Value pressedCodes in RunAction() local
[all...]
/ide/tools/previewer/test/unittest/cli/
H A DCommandLineTest.cpp531 "pressedCodes":[2033]})"; in TEST_F()
542 std::string msg = R"({"isInputMethod":false,"keyCode":2033,"keyAction":0,"pressedCodes":["aaa"]})"; in TEST_F()
555 "pressedCodes" : [2033]})"; in TEST_F()
568 // pressedCodes error in TEST_F()
570 "pressedCodes" : [1900]})"; in TEST_F()
582 "keyString":"ctrl","pressedCodes":[2033]})"; in TEST_F()
591 EXPECT_EQ(KeyInputImpl::GetInstance().pressedCodes[0], OHOS::MMI::KeyCode(2033)); in TEST_F()
593 std::string msg2 = R"({"isInputMethod":false,"keyCode":2033,"keyAction":0,"pressedCodes":[2033]})"; in TEST_F()

Completed in 8 milliseconds