Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 1017) sorted by relevance

12345678910>>...41

/test/xts/acts/hiviewdfx/utils/native/
Dfile_utils.h31 bool CheckInfo(std::vector<std::string> &para, std::string eventinfo);
32 int ExecCmdWithRet(std::string cmd, std::vector<std::string> &resvec);
33 std::string ReadFile(std::string filename);
34 void RedirecthiLog(std::string &hilogredirect, std::string &timeout);
35 void ExeCmd(std::string cmd);
36 void CmdRun(std::string cmd, std::string &result);
37 std::string ExecuteCmd(std::string cmd);
38 bool CompareString(const std::string& x, const std::string& y);
39 int GetTxtLine(std::string filename);
40 std::string ReadFile(std::string filename);
[all …]
Dfile_utils.cpp36 int ExecCmdWithRet(std::string cmd, std::vector<std::string> &resvec) in ExecCmdWithRet()
43 if ((cmd.find("hilog") == std::string::npos) && (cmd.find("hidumper") == std::string::npos) in ExecCmdWithRet()
44 && (cmd.find("ps") == std::string::npos) && (cmd.find("rm") == std::string::npos) && in ExecCmdWithRet()
45 … (cmd.find("hiperf") == std::string::npos) && (cmd.find("hisysevent") == std::string::npos) && in ExecCmdWithRet()
46 (cmd.find("mkdir") == std::string::npos) && (cmd.find("dd") == std::string::npos)) { in ExecCmdWithRet()
66 void ExeCmd(std::string cmd) in ExeCmd()
68 std::vector<std::string> cmdret; in ExeCmd()
72 void CmdRun(std::string cmd, std::string &result) in CmdRun()
74 std::vector<std::string> cmdret; in CmdRun()
77 std::string rst; in CmdRun()
[all …]
/test/ostest/wukong/common/include/
Dwukong_util.h45 uint32_t FindElement(std::vector<std::string> bundleList, std::string key);
52 ErrCode SetAllowList(const std::string &optarg);
59 ErrCode SetBlockList(const std::string &optarg);
65 void GetAllowList(std::vector<std::string> &Allowlist);
71 void GetBlockList(std::vector<std::string> &blockList);
78 void SetAllAppInfo(std::vector<std::string> &bundleList, std::vector<std::string> &abilityList);
85 void GetBundleList(std::vector<std::string> &bundlelist, std::vector<std::string> &abilitylist);
91 void GetValidBundleList(std::vector<std::string> &validbundlelist);
105 void GetIconPath(std::string &iconpath);
111 std::string GetStartRunTime() in GetStartRunTime()
[all …]
/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_major.h39 explicit DistributeTestEnvironment(std::string cfgFile);
42 …bool RunTestCmd(size_t devNo, const std::string &strCommand, int cmdLen, const std::string &strExp…
43 int expectValueLen, std::function<bool(const std::string &, int)> onProcessReturn);
45 bool SendMessage(size_t devNo, const std::string &strMsg, int msgLen,
46 std::function<bool(const std::string &, int)> onProcessReturnMsg) ;
48 bool Notify(size_t devNo, const std::string &strMsg, int msgLen);
53 void Init(std::string fileName);
61 int AddClient(std::string ipAddr);
65 std::function<bool(const std::string &, int)> onProcessReturn);
76 bool RunCmdOnAgent(AGENT_NO devNo, const std::string &strCommand, int cmdLen,
[all …]
Ddistributed_cfg.cpp36 bool DistributedCfg::OpenCfg(std::string fileName) in OpenCfg()
40 std::string strline; in OpenCfg()
47 std::string key; in OpenCfg()
48 std::string value; in OpenCfg()
54 if (position == std::string::npos) { in OpenCfg()
59 cfgMap_.insert(std::pair<std::string, std::string>(key, value)); in OpenCfg()
66 bool DistributedCfg::GetCfgVal(std::string key, std::string &value) in GetCfgVal()
68 std::string iplist = ""; in GetCfgVal()
69 std::map<std::string, std::string>::iterator cfgIterator; in GetCfgVal()
78 std::string DistributedCfg::GetValueInString(std::string str, size_t devNo) in GetValueInString()
[all …]
Ddistributed_cfg.h42 bool OpenCfg(std::string fileName);
43 bool GetCfgVal(std::string key, std::string &value);
44 std::string GetValueInString(std::string str, size_t devNo);
45 std::string GetDeviceIp(std::string fileName, size_t devNo);
46 std::string GetDeviceUuid(std::string fileName, size_t devNo);
51 std::map<std::string, std::string> cfgMap_; // <cfgkey, cfgvalue> from env.desc file
Ddistributed_agent.h38 …int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strExpectValue, int…
39 int Start(std::string cfgFile);
51 …virtual int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strArgs, in…
52 const std::string &strExpectValue, int expectValueLen);
53 …virtual int OnProcessMsg(const std::string &strMsg, int msgLen, std::string &strReturnValue, int r…
54 virtual int OnNotify(const std::string &notifyType, const std::string &msg, int msgLen);
60 std::string agentIpAddr_;
/test/ostest/wukong/report/include/
Dreport.h35 std::map<std::string, uint32_t> componmentTypeCount;
36 std::map<uint32_t, std::vector<std::string>> pageIdComponments;
45 void SetSeed(std::string seed);
67 void RecordScreenPath(const std::string &screenPath);
73 std::string GetReportExceptionDir();
80 void ExceptionRecord(const std::string &exceptionFilename);
107 …void ComponmentInfoArrange(const std::string &bundle, std::shared_ptr<ComponmentInputMsg> inputCom…
108 std::map<std::string, std::string> &data);
110 std::string reportCsvFileName_ = "";
111 std::string reportJsonFileName_ = "";
[all …]
Dinput_info.h41 void SetBundleName(const std::string &bundleName);
42 void SetAbilityName(const std::string &abilityName);
44 void SetComponmentName(const std::string &componmentName);
48 std::string GetBundleName();
49 std::string GetAbilityName();
50 std::string GetComponmentName();
51 std::string GetComponmentInputedTimes();
52 std::string GetComponmentTotals();
59 std::string InputTypeToString();
61 std::string bundleName_;
[all …]
Dtable.h27 void SetName(std::string name);
28 std::string GetName();
29 void SetDetail(std::string detail);
30 std::string GetDetail();
31 Table(std::vector<std::string> cc, std::vector<std::vector<std::string>> rc);
32 std::vector<std::string> GetHeader();
33 std::vector<std::vector<std::string>> GetRecord();
37 std::string name_;
38 std::string detail_;
39 std::vector<std::string> column_header_;
[all …]
Dstatistics_ability.h31 std::string bundleName_ = "";
34 std::vector<std::string> inputedAbilities_;
42 void StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas,
43 std::map<std::string, std::shared_ptr<Table>> &destTables);
47 std::vector<std::string> &line);
48 void SrcDatasPretreatment(std::vector<std::map<std::string, std::string>> srcDatas);
49 std::map<std::string, std::shared_ptr<AbilityStatisticsRecord>> abilityStatisticsMsg_;
50 std::vector<std::string> bundles_;
51 …std::vector<std::string> headers_ = {"bundleName", "inputedAbilityCount", "abilitiesCount", "cover…
52 std::vector<std::vector<std::string>> record_;
Dstatistics_event.h30 std::string eventType_ = "";
41 uint32_t ElementTypesIndex(const std::string &eventType) in ElementTypesIndex()
45 std::vector<std::string>::iterator eventTypesIter; in ElementTypesIndex()
54 std::vector<std::string> eventTypes_;
63 void StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas,
64 std::map<std::string, std::shared_ptr<Table>> &destTables);
75 std::vector<std::string> &line);
82 void SrcDatasPretreatment(std::vector<std::map<std::string, std::string>> srcDatas);
90 std::map<std::string, std::shared_ptr<EventStatisticsMsg>> eventStatisticsMsg_;
92 std::vector<std::string> globalElementTypes_;
[all …]
Dstatistics_componment.h29 std::string componmentType_ = "";
42 uint32_t ComponmentTypesIndex(const std::string &componmentType) in ComponmentTypesIndex()
54 std::vector<std::string> componmentTypes_;
62 void StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas,
63 std::map<std::string, std::shared_ptr<Table>> &destTables);
74 std::vector<std::string> &line);
81 void SrcDatasPretreatment(std::vector<std::map<std::string, std::string>> srcDatas);
89 std::map<std::string, std::shared_ptr<ComponmentStatisticsMsg>> componmentStatisticsMsg_;
91 std::vector<std::string> globalComponmentTypes_;
92 std::vector<std::string> headers_ = {"type", "execTimes", "proportion",
[all …]
Ddata_set.h35 void FilterData(std::map<std::string, std::string> data);
36 void SetFilterType(std::string filterType);
40 void FormatData(std::string name, std::string &content);
44 std::vector<std::map<std::string, std::string>> dataVector_;
49 std::map<std::string, std::shared_ptr<Table>> tables_;
50 std::string filterType_;
Dstatistics_exception.h31 void StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas,
32 std::map<std::string, std::shared_ptr<Table>> &destTables);
35 std::map<std::string, int> exceptionTypeCount_;
36 std::vector<std::string> crashTypes_;
37 std::vector<std::string> headers_ = {"type", "times", "proportion"};
38 std::vector<std::vector<std::string>> record_;
/test/xts/acts/global_lite/i18n_lite/datetime_posix/src/
DUnitDateTimeTest.h28 using ::std::string;
43 string g_dataTimeFormatPositive[][17] = {
135 string g_dateTimeFormat[][17] = {
229 string g_dateTimeFormatNegative[][17] = {
322 string g_formatAbbrDayNames[][7] = {
351 string g_formatWideDayNames[][7] = {
380 string g_standaloneAbbrDayNames[][7] = {
409 string g_standaloneWideDayNames[][7] = {
438 string g_formatAbbrMonthNames[][12] = {
471 string g_formatWideMonthNames[][12] = {
[all …]
/test/testfwk/developer_test/aw/cxx/hwext/
Dperf.h34 std::string testcasename;
48 std::string date;
49 std::string url;
50 std::list<std::map<std::string, std::string>> items;
57 explicit BaseLineManager(const std::string path);
60 bool LoadConfig(const std::string path);
62 … bool GetExtraValueDouble(const std::string testcaseName, const std::string extra, double &value);
65 bool ReadXmlFile(std::string path);
66 double StrtoDouble(const std::string &str);
80 std::string testClassName = "",
[all …]
/test/xts/dcts/communication/softbus_standard/common/
Dwifi_utils.h26 static int ConnectTo(const std::string& ssid, const std::string& passwd);
27 static int ConnectToNew(const std::string& ssid, const std::string& passwd);
28 static int EnableThenConnect(const std::string& ssid, const std::string& passwd);
29 …int DisableThenEnableAndConnect(int delaySeconds, const std::string& ssid, const std::string& pass…
/test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/
Ddistribute_demo_agent.cpp36 std::string g_appId = "com.ohos.nb.service.user1_test";
37 std::string g_storeId = "student_1";
52 …virtual int OnProcessMsg(const std::string &strMsg, int len, std::string &strReturnValue, int retu…
53 …virtual int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strArgs, in…
54 const std::string &strExpectValue, int expectValueLen);
56 int GetKvValue(const std::string &strArgs, int argsLen, const std::string &strExpectValue,
58 int AddTwoValue(const std::string &strArgs, int argsLen, const std::string &strExpectValue,
60 …int ProcessByUseMap(const std::string &strCommand, int cmdLen, const std::string &strArgs, int arg…
61 const std::string &strExpectValue, int expectValueLen);
64 … typedef int (DistributeDemoAgent::*self_func)(const std::string &, int, const std::string &, int);
[all …]
/test/xts/acts/hiviewdfx/hiappeventtest/hiappeventcpptest/
DHiAppEventCPPTest.cpp40 string g_reDiRectTimeout = "5";
41 string logPath = "/data/test/hiappevent/";
42 string delelogPath = "/data/test/hiappevent/*";
53 std::vector<std::string> cmdret; in TearDown()
54 string cmd = "rm -f " + delelogPath; in TearDown()
69 string getlogFile;
70 string path;
76 std::vector<std::string> file;
80 string fileinfo = "";
82 std::vector<std::string> para = {"test_event", "\"type_\":1", "\"bool_key\":false"};
[all …]
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_cipher_rsa_test_common.h23 static const std::string g_inData_5 = "RSA_5";
24 static const std::string g_inData_12 = "RSA_12_ttttt";
25 static const std::string g_inData_14 = "RSA_14_ttttttt";
26 static const std::string g_inData_20 = "RSA_20_ttttttttttttt";
27 static const std::string g_inData_32 = "RSA_32_ttttttttttttttttttttttttt";
28 static const std::string g_inData_64 = "RSA_64_ttttttttttttttttttttttttttttttttttttttttttttttttttt…
29 static const std::string g_inData_96 = "RSA_96_ttttttttttttttttttttttttttttttttttttttttttttttttttt…
31 static const std::string g_inData_128 = "RSA_128_tttttttttttttttttttttttttttttttttttttttttttttttttt…
33 static const std::string g_inData_256 = "RSA_256_tttttttttttttttttttttttttttttttttttttttttttttttttt…
37 static const std::string g_inData_384 = "RSA_384_tttttttttttttttttttttttttttttttttttttttttttttttttt…
[all …]
/test/xts/hats/distributedhardware/distributedcameratest/
Ddcameratest.h26 …int32_t OnRegisterNotify(const std::string& devId, const std::string& dhId, const std::string& req… in OnRegisterNotify()
27 int32_t status, std::string& data) in OnRegisterNotify()
32 …int32_t OnUnregisterNotify(const std::string& devId, const std::string& dhId, const std::string& r… in OnUnregisterNotify()
33 int32_t status, std::string& data) in OnUnregisterNotify()
/test/testfwk/developer_test/aw/cxx/distributed/utils/
Dcsv_transform_xml.h31 std::vector<std::string> csvFiles_;
32 std::vector<std::string> vecLines_;
33 std::string csvFileName_ = "";
34 std::string xmlFileName_ = "";
35 std::string fileName_ = "";
39 explicit CsvTransformXml(std::string targetFile) in CsvTransformXml()
63 std::string strLine; in FileOperate()
70 for (std::string s : vecLines_) { in FileOperate()
99 void SetFileName(std::string targetFile) in SetFileName()
113 std::string string1 = XML_FILE_PATH; in SetXmlFileName()
[all …]
/test/ostest/wukong/report/src/
Dfilter_category.cpp28 void FilterCategory::FilterDetail(std::string type, std::map<std::string, std::string> data, in FilterDetail() argument
29 std::vector<std::map<std::string, std::string>> &dataVector) in FilterDetail() argument
32 std::map<std::string, std::string>::iterator it = data.find(type); in FilterDetail()
/test/xts/device_attest/interfaces/innerkits/native_cpp/test/unittest/src/
Ddevattest_test.cpp40 string failString; in AttestStatusValid()
42 failString += string(" authResult is ") + to_string(attestResultInfo.authResult_); in AttestStatusValid()
46 failString += string(" softwareResult is ") + to_string(attestResultInfo.softwareResult_); in AttestStatusValid()
51 …failString += string(" versionResult is ") + to_string(softwareResultArray[SOFTWARE_RESULT_VERSION… in AttestStatusValid()
55 …failString += string(" patchResult is ") + to_string(softwareResultArray[SOFTWARE_RESULT_PATCHLEVE… in AttestStatusValid()
59 …failString += string(" roothashResult is ") + to_string(softwareResultArray[SOFTWARE_RESULT_ROOTHA… in AttestStatusValid()
63 … failString += string(" pcidResult is ") + to_string(softwareResultArray[SOFTWARE_RESULT_PCID]); in AttestStatusValid()
67 … failString += string(" reserveResult is ") + to_string(softwareResultArray[SOFTWARE_RESULT_PCID]); in AttestStatusValid()
72 failString += string(" ticketLength is ") + to_string(attestResultInfo.ticketLength_); in AttestStatusValid()
76 failString += string(" ticket is empty"); in AttestStatusValid()

12345678910>>...41