Home
last modified time | relevance | path

Searched refs:str (Results 1 - 24 of 24) sorted by relevance

/ide/tools/previewer/test/unittest/mock_lite/
H A DHalSysParamTest.cpp35 const char* str = HalGetDeviceType(); in TEST_F() local
36 EXPECT_EQ(std::string(str), "liteWearable"); in TEST_F()
41 const char* str = HalGetManufacture(); in TEST_F() local
42 EXPECT_EQ(std::string(str), "***"); in TEST_F()
47 const char* str = HalGetBrand(); in TEST_F() local
48 EXPECT_EQ(std::string(str), "***"); in TEST_F()
53 const char* str = HalGetMarketName(); in TEST_F() local
54 EXPECT_EQ(std::string(str), ""); in TEST_F()
59 const char* str = HalGetProductSeries(); in TEST_F() local
60 EXPECT_EQ(std::string(str), ""); in TEST_F()
65 const char* str = HalGetProductModel(); TEST_F() local
71 const char* str = HalGetSoftwareModel(); TEST_F() local
77 const char* str = HalGetHardwareModel(); TEST_F() local
83 const char* str = HalGetHardwareProfile(); TEST_F() local
89 const char* str = HalGetSerial(); TEST_F() local
95 const char* str = HalGetBootloaderVersion(); TEST_F() local
101 const char* str = HalGetAbiList(); TEST_F() local
107 const char* str = HalGetDisplayVersion(); TEST_F() local
113 const char* str = HalGetIncrementalVersion(); TEST_F() local
119 const char* str = HalGetBuildType(); TEST_F() local
125 const char* str = HalGetBuildUser(); TEST_F() local
131 const char* str = HalGetBuildHost(); TEST_F() local
137 const char* str = HalGetBuildTime(); TEST_F() local
[all...]
/ide/tools/previewer/util/windows/
H A DStringHelper.cpp21 std::string StringHelper::StringToUtf8(const std::string& str) in StringToUtf8() argument
24 int nwLen = ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), -1, NULL, 0); in StringToUtf8()
27 return str; in StringToUtf8()
32 return str; in StringToUtf8()
35 ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), str.length(), pwBuf, nwLen); in StringToUtf8()
40 return str; in StringToUtf8()
45 return str; in StringToUtf8()
57 std::string StringHelper::Utf8ToString(const std::string& str) in Utf8ToString() argument
60 int nwLen = MultiByteToWideChar(CP_UTF8, 0, str in Utf8ToString()
[all...]
H A DClipboardHelper.cpp43 std::string str(p); in GetClipboardData()
44 data = str; in GetClipboardData()
47 StringHelper::Encode encode = StringHelper::DetectEncode((uint8_t*)str.c_str(), str.size()); in GetClipboardData()
/ide/tools/previewer/test/fuzztest/paramsparse_fuzzer/
H A DParamsParseFuzzer.cpp59 std::string str = std::string(value); in SetTestArgs() local
60 args.push_back(DT_SetGetString(&g_Element[index], str.size() + 1, DEFAULT_LENGTH, (char*)str.c_str())); in SetTestArgs()
/ide/tools/previewer/mock/lite/
H A DVirtualMessageImpl.cpp40 std::vector<char> VirtualMessageImpl::StringToCharVector(std::string str) const in StringToCharVector()
42 std::vector<char> vec(str.begin(), str.end()); in StringToCharVector()
H A DVirtualMessageImpl.h42 std::vector<char> StringToCharVector(std::string str) const;
/ide/tools/previewer/util/linux/
H A DClipboardX11.cpp21 void ClipboardX11::SetClipboardData(const std::string& str) in SetClipboardData() argument
32 SetCopyData(selection, str, strlen(str.c_str())); in SetClipboardData()
106 std::string str(data); in GetPasteType()
107 retStr = str; in GetPasteType()
H A DClipboardX11.h24 void SetClipboardData(const std::string& str);
/ide/tools/previewer/test/fuzztest/
H A DChangeJsonUtil.h31 static void WriteFile(std::string filePath, std::string str);
H A DChangeJsonUtil.cpp158 void ChangeJsonUtil::WriteFile(std::string filePath, std::string str) in WriteFile() argument
165 outFile << str << std::endl; in WriteFile()
/ide/tools/previewer/util/
H A DStringHelper.h88 static std::string StringToUtf8(const std::string& str);
89 static std::string Utf8ToString(const std::string& str);
H A DModelManager.cpp41 return allNames.str(); in GetAllModelName()
H A DTimeTool.cpp62 return now.str(); in FormateTimeNow()
H A DCommandParser.h89 bool IsMainArgLengthInvalid(const char* str) const;
H A DCommandParser.cpp897 bool CommandParser::IsMainArgLengthInvalid(const char* str) const in IsMainArgLengthInvalid()
899 size_t argLength = strlen(str); in IsMainArgLengthInvalid()
/ide/tools/previewer/test/unittest/util/
H A DJsonReaderTest.cpp42 std::string str = "{\"name\":\"jin\", \"age\":20}"; in TEST() local
43 Json2::Value val = JsonReader::ParseJsonData2(str); in TEST()
269 std::string str = name2.ToString(); in TEST() local
270 EXPECT_TRUE(str.empty()); in TEST()
406 std::string str = height.GetKey(); in TEST() local
407 EXPECT_EQ(str, "height"); in TEST()
445 std::string str = "{\"name\":\"jin\", \"age\":20}"; in TEST() local
446 Json2::Value val = JsonReader::ParseJsonData2(str); in TEST()
478 std::string str = "{\"name\":\"jin\", \"age\":20}"; in TEST() local
479 Json2::Value val = JsonReader::ParseJsonData2(str); in TEST()
497 std::string str = "{\\"name\\":\\"jin\\", \\"age\\":20}"; TEST() local
[all...]
H A DCommandParserTest.cpp186 std::string str(257, 'a'); in TEST_F()
187 *std::next(it) = str; in TEST_F()
994 std::string str = "138968279"; in TEST_F() local
995 EXPECT_EQ(CommandParser::GetInstance().GetProjectID(), str); in TEST_F()
1000 std::string str = "static"; in TEST_F() local
1016 std::string str = "rect"; in TEST_F() local
1017 EXPECT_EQ(CommandParser::GetInstance().GetScreenShape(), str); in TEST_F()
1022 std::string str = "Stage"; in TEST_F() local
1023 EXPECT_EQ(CommandParser::GetInstance().GetProjectModel(), str); in TEST_F()
1046 std::string str in TEST_F() local
1084 std::string str = "ets/entryability/EntryAbility.abc"; TEST_F() local
1090 std::string str = "EntryAbility"; TEST_F() local
1116 std::string str = "half_fold"; TEST_F() local
[all...]
/ide/tools/previewer/util/unix/
H A DLocalSocket.cpp106 std::string str((const char*)data); in WriteData()
107 ssize_t writeSize = send(socketHandle, str.c_str(), length, 0); in WriteData()
/ide/tools/previewer/jsapp/rich/external/
H A DStageContext.h54 std::string ReplaceLastStr(const std::string& str, const std::string& find, const std::string& replace);
H A DStageContext.cpp468 std::string StageContext::ReplaceLastStr(const std::string& str, const std::string& find, const std::string& replace) in ReplaceLastStr() argument
470 std::string ret = str; in ReplaceLastStr()
/ide/tools/previewer/mock/rich/
H A DMouseInputImpl.cpp74 pointerEvent->sourceTool, pointerEvent->pressedButtons_.size(), ss.str().c_str()); in DispatchOsTouchEvent()
/ide/tools/previewer/cli/
H A DCommandLine.cpp99 uint8_t CommandLine::ToUint8(std::string str) const in ToUint8()
101 int value = atoi(str.data()); in ToUint8()
187 ss.str().c_str()); in SetEventParams()
889 std::vector<char> DistributedCommunicationsCommand::StringToCharVector(std::string str) const in StringToCharVector()
891 std::vector<char> vec(str.begin(), str.end()); in StringToCharVector()
1174 std::string str = JsAppImpl::GetInstance().GetJSONTree(); in RunAction() local
1175 if (str == "null") { in RunAction()
1176 str = "{\"children\":\"empty json tree\"}"; in RunAction()
1178 SetCommandResult("result", JsonReader::CreateString(str)); in RunAction()
1190 std::string str = JsAppImpl::GetInstance().GetDefaultJSONTree(); RunAction() local
[all...]
H A DCommandLine.h38 uint8_t ToUint8(std::string str) const;
328 std::vector<char> StringToCharVector(std::string str) const;
/ide/tools/previewer/test/unittest/jsapp/
H A DStageContextTest.cpp122 std::string str(buf2->begin(), buf2->end()); in TEST_F()
123 EXPECT_EQ(str, testLoadJsonContent); in TEST_F()

Completed in 13 milliseconds