Home
last modified time | relevance | path

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

12345678910>>...222

/test/ostest/wukong/common/include/
Dwukong_util.h46 uint32_t FindElement(std::vector<std::string> &bundleList, std::string key);
54 bool ContainsElement(std::vector<std::string> &bundleList, std::string key);
61 ErrCode SetAllowList(const std::string &optarg);
68 ErrCode SetBlockList(const std::string &optarg);
75 ErrCode SetBlockPageList(const std::string &optarg);
82 ErrCode SetBlockAbilityList(const std::string &optarg);
94 void GetAllowAbilityList(std::vector<std::string> &allowAbilityList);
100 ErrCode CheckAbilityArgumentList(std::vector<std::string> &allowAbilityList);
106 ErrCode SetAllowAbilityList(const std::string &optarg);
112 void GetBlockAbilityList(std::vector<std::string> &blockAbilityList);
[all …]
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_theme/ace_ets_module_theme_hvigor/entry/src/main/ets/MainAbility/themes/customTheme/
DRedCustomThemeColor.ets18 public brand:string = '#FFD53060';
19 public warning:string = '#FFD53034';
20 public alert:string = '#FFD53035';
21 public confirm:string = '#FFD53036';
22 public fontPrimary:string = '#FFD53037';
23 public fontSecondary:string = '#FFD53038';
24 public fontTertiary:string = '#FFD53039';
25 public fontFourth:string = '#FFD5303A';
26 public fontEmphasize:string = '#FFD5303B';
27 public fontOnPrimary:string = '#FFD5303C';
[all …]
DBrownCustomThemeColor.ets18 public brand:string = '#FF8B6B8A';
19 public warning:string = '#FF8B6B5E';
20 public alert:string = '#FF8B6B5F';
21 public confirm:string = '#FF8B6B60';
22 public fontPrimary:string = '#FF8B6B61';
23 public fontSecondary:string = '#FF8B6B62';
24 public fontTertiary:string = '#FF8B6B63';
25 public fontFourth:string = '#FF8B6B64';
26 public fontEmphasize:string = '#FF8B6B65';
27 public fontOnPrimary:string = '#FF8B6B66';
[all …]
DGreenCustomThemeColor.ets18 public brand:string = '#FF30D560';
19 public warning:string = '#FF30D534';
20 public alert:string = '#FF30D535';
21 public confirm:string = '#FF30D536';
22 public fontPrimary:string = '#FF30D537';
23 public fontSecondary:string = '#FF30D538';
24 public fontTertiary:string = '#FF30D539';
25 public fontFourth:string = '#FF30D53A';
26 public fontEmphasize:string = '#FF30D53B';
27 public fontOnPrimary:string = '#FF30D53C';
[all …]
/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/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_theme/ace_ets_module_theme_hvigor/entry/src/main/ets/MainAbility/themes/checkSystemTokens/
DCheckColorTokens.ets16 public readonly brand: string = 'sys.color.brand';
17 public readonly warning: string = 'sys.color.warning' ;
18 public readonly alert: string = 'sys.color.alert';
19 public readonly confirm: string = 'sys.color.confirm';
20 public readonly fontPrimary: string = 'sys.color.font_primary';
21 public readonly fontSecondary: string = 'sys.color.font_secondary';
22 public readonly fontTertiary: string = 'sys.color.font_tertiary';
23 public readonly fontFourth: string = 'sys.color.font_fourth';
24 public readonly fontEmphasize: string = 'sys.color.font_emphasize';
25 public readonly fontOnPrimary: string = 'sys.color.font_on_primary';
[all …]
/test/xts/tools/sample/AppSampleD/entry/src/main/ets/appsampled/data/
DSearchResult.ets21 public audioName: string; // 音频名称
23 public audioAuthorName: string; // 音频作者名称
24 public audioTime: string; // 音频时间
25 public audioNum: string; // 音频使用人数
26 public audio: string; // 播放音频的文件名称
28 …oId: number, audioName: string, audioIcon: Resource, audioAuthorName: string, audioTime: string, a…
44 public videoDetailAuthorName: string; // 视频作者名称
46 public videoDetailTime: string; // 视频发布时间
47 public videoDetailTitle: string; // 视频标题
48 public videoDetailLabel: string; // 视频标签
[all …]
/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);
55 …ode(std::shared_ptr<InputedMsgObject> &inputedMsgObject, std::map<std::string, std::string> &data);
60 … GroupFocusDataAndRecord(std::shared_ptr<InputedMsgObject> &inputedMsgObject, std::map<std::string,
61 std::string> &data);
79 void RecordScreenPath(const std::string &screenPath);
91 std::string GetReportExceptionDir();
98 void ExceptionRecord(const std::string &exceptionFilename);
130 …void ComponmentInfoArrange(const std::string &bundle, std::shared_ptr<ComponmentInputMsg> inputCom…
[all …]
/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_major.h40 explicit DistributeTestEnvironment(std::string cfgFile);
43 …bool RunTestCmd(size_t devNo, const std::string &strCommand, int cmdLen, const std::string &strExp…
44 int expectValueLen, std::function<bool(const std::string &, int)> onProcessReturn);
46 bool SendMessage(size_t devNo, const std::string &strMsg, int msgLen,
47 std::function<bool(const std::string &, int)> onProcessReturnMsg) ;
49 bool Notify(size_t devNo, const std::string &strMsg, int msgLen);
54 void Init(std::string fileName);
64 int AddClient(std::string ipAddr);
68 std::function<bool(const std::string &, int)> onProcessReturn);
79 bool RunCmdOnAgent(AGENT_NO devNo, const std::string &strCommand, int cmdLen,
[all …]
Ddistributed_cfg.cpp35 bool DistributedCfg::OpenCfg(std::string fileName) in OpenCfg()
39 std::string strline; in OpenCfg()
46 std::string key; in OpenCfg()
47 std::string value; in OpenCfg()
53 if (position == std::string::npos) { in OpenCfg()
58 cfgMap_.insert(std::pair<std::string, std::string>(key, value)); in OpenCfg()
65 bool DistributedCfg::GetCfgVal(std::string key, std::string &value) in GetCfgVal()
67 std::string iplist = ""; in GetCfgVal()
68 std::map<std::string, std::string>::iterator cfgIterator; in GetCfgVal()
77 std::string DistributedCfg::GetValueInString(std::string str, size_t devNo) in GetValueInString()
[all …]
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_theme/ace_ets_module_theme_hvigor/entry/src/main/ets/test/themeTokens/
DWithTheme.test.ets36 const SUITE: string = 'WithTheme';
94 const CASE: string = 'ActsWithThemeColors_0100';
96 const checkKeys: string[] = Object.keys(greenThemeColors);
97 const checkValues = (Object.values(greenThemeColors) as string[]);
98 const themeKeys: string[] = themeLocal?.colors === undefined ?
101 [] : (Object.values(themeLocal?.colors) as string[]);
102 const checkMap: Map<string, string> = new Map<string, string>();
103 const themeMap: Map<string, string> = new Map<string, string>();
104 fillMap<string>(checkMap, checkKeys, checkValues);
105 fillMap<string>(themeMap, themeKeys, themeValues);
[all …]
DSetDefaultTheme.test.ets26 const SUITE: string = 'SetDefaultTheme';
74 const CASE: string = 'ActsSetDefaultThemeColors_0100';
75 const checkKeys: string[] = Object.keys(redThemeColors);
76 const checkValues = (Object.values(redThemeColors) as string[]);
77 const themeKeys: string[] = themeLocal?.colors === undefined ?
80 [] : (Object.values(themeLocal?.colors) as string[]);
81 const checkMap: Map<string, string> = new Map<string, string>();
82 const themeMap: Map<string, string> = new Map<string, string>();
83 fillMap<string>(checkMap, checkKeys, checkValues);
84 fillMap<string>(themeMap, themeKeys, themeValues);
[all …]
/test/testfwk/developer_test/examples/distributedb/test/distributedtest/common/
Ddistribute_demo_agent.cpp32 std::string g_appId = "com.ohos.nb.service.user1_test";
33 std::string g_storeId = "student_1";
46 …virtual int OnProcessMsg(const std::string &dtrMsg, int len, std::string &strReturnValue, int retu…
47 …virtual int OnProcessCmd(const std::string &strCommand, int cmdLen, const std::string &strArgs, in…
48 const std::string &strExpectValue, int expectValueLen);
50 int GetKvValue(const std::string &strArgs, int argsLen, const std::string &strExpectValue,
53 int AddTwoValue(const std::string &strArgs, int argsLen, const std::string &strExpectValue,
55 …int ProcessByUseMap(const std::string &strCommand, int cmdLen, const std::string &strArgs, int arg…
56 const std::string &strExpectValue, int expectValueLen);
58 … 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;
77 std::vector<std::string> file;
81 string fileinfo = "";
83 std::vector<std::string> para = {"test_event", "\"type_\":1", "\"bool_key\":false"};
[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/distributedhardware/distributedinputtest/
Ddistributed_input_test.cpp44 const std::string& deviceId, const int32_t& status) in OnResult()
52 const std::string& deviceId, const int32_t& status) in OnResult()
60 const std::string& deviceId, const uint32_t& inputTypes, const int32_t& status) in OnResult()
69 const std::string& deviceId, const uint32_t& inputTypes, const int32_t& status) in OnResult()
78 const std::string &devId, const int32_t &status) in OnResultDhids()
85 void DistributedInputTest::TestInputNodeListener::OnNodeOnLine(const std::string &srcDevId, in OnNodeOnLine()
86 const std::string &sinkDevId, const std::string &sinkNodeId, const std::string &sinkNodeDesc) in OnNodeOnLine()
95 void DistributedInputTest::TestInputNodeListener::OnNodeOffLine(const std::string &srcDevId, in OnNodeOffLine()
96 const std::string &sinkDevId, const std::string &sinkNodeId) in OnNodeOffLine()
163 string deviceId = "PrepareRemoteInput01";
[all …]
/test/xts/acts/arkui/ace_ets_web_scheme_handler_napis/entry/src/main/cpp/
Dtest_request.h45 const std::string rawfilePath() { return rawfilePath_; } in rawfilePath()
46 const std::string url() { return url_; } in url()
47 const std::string method() { return method_; } in method()
48 const std::string referrer() { return referrer_; } in referrer()
59 const std::string rspUrl() { return rspUrl_; } in rspUrl()
62 const std::string rspStatusText() { return rspStatusText_; } in rspStatusText()
63 const std::string rspMimeType() { return rspMimeType_; } in rspMimeType()
64 const std::string rspCharSet() { return rspCharSet_; } in rspCharSet()
65 const std::string rspHost() { return rspHost_; } in rspHost()
76 const std::string rspFrameUrl() { return rspFrameUrl_; } in rspFrameUrl()
[all …]
/test/xts/acts/arkui/ace_ets_module_ui/ace_ets_module_theme/ace_ets_module_theme_hvigor/entry/src/main/ets/test/components/
DSwiper.test.ets24 const SUITE: string = `SwiperThemeTest`
25 const EMPTY_CHECK: string = 'emptyCheck';
26 const EMPTY_ATTR: string = 'emptyAttr';
30 let colorValues: Map<string, string> | undefined = new Map<string, string>();
80 const CASE: string = `ActsSwiperThemeColors_0100`;
84 const indicatorJson: string = JSON.parse(json)?.$attrs?.indicator?.toString();
85 …const indicatorColor: string = JSON.parse(indicatorJson)?.color?.toString().toUpperCase() ?? EMPTY…
86 …const indicatorSelectedColor: string = JSON.parse(indicatorJson)?.selectedColor?.toString().toUppe…
88 …const arrowColor: string = JSON.parse(json)?.$attrs?.arrowColor?.toString().toUpperCase() ?? EMPTY…
89 …const arrowBackgroundColor: string = JSON.parse(json)?.$attrs?.arrowBackgroundColor?.toString().to…
[all …]
/test/xts/acts/ability/ability_runtime/stage/actslifecyclesinglehaptest/entry/src/ohosTest/
Dmodule.json521 "description": "$string:phone_entry_dsc",
37 "description": "$string:phone_entry_main",
39 "label": "$string:entry_label",
58 "description": "$string:MainAbility1_desc",
60 "label": "$string:MainAbility1_label",
67 "description": "$string:MainAbility2_desc",
69 "label": "$string:MainAbility2_label",
76 "description": "$string:MainAbility3_desc",
78 "label": "$string:MainAbility3_label",
85 "description": "$string:MainAbility4_desc",
[all …]
/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/xts/dcts/distributedhardware/distributedaudionewtest/
Ddistributedaudiotest.h118 std::string FindAudioDevice();
119 std::string OpenSpk(std::string devId);
120 std::string StartRender();
121 std::string StopRender();
122 std::string CloseSpk();
123 std::string OpenMic(std::string devId);
124 std::string StartCapture();
125 std::string StopCapture();
126 std::string CloseMic();
127 std::string SetVolume(int vol);
[all …]
/test/xts/acts/ability/ability_runtime/stage/actswindowstagelifecyclesinglehaptest/entry/src/ohosTest/
Dmodule.json521 "description": "$string:phone_entry_dsc",
36 "description": "$string:phone_entry_main",
38 "label": "$string:entry_label",
57 "description": "$string:MainAbility1_desc",
59 "label": "$string:MainAbility1_label",
66 "description": "$string:MainAbility2_desc",
68 "label": "$string:MainAbility2_label",
75 "description": "$string:MainAbility3_desc",
77 "label": "$string:MainAbility3_label",
84 "description": "$string:MainAbility4_desc",
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/timepicker/
Dtimepicker_textstyle_test.cpp23 value_item.string = "#FF182431;14;normal;Arial,HarmonyOS Sans;normal"; in TestTimePickerTextStyle001()
26 ASSERT_STREQ(nodeAPI->getAttribute(timePicker, NODE_TIME_PICKER_TEXT_STYLE)->string, in TestTimePickerTextStyle001()
35 value_item.string = "abnormal"; in TestTimePickerTextStyle002()
38 … ASSERT_STRNE(nodeAPI->getAttribute(timePicker, NODE_TIME_PICKER_TEXT_STYLE)->string, "abnormal"); in TestTimePickerTextStyle002()
46 value_item.string = "#FF182431;14;bold;Arial,HarmonyOS Sans;normal"; in TestTimePickerTextStyle003()
49 ASSERT_STREQ(nodeAPI->getAttribute(timePicker, NODE_TIME_PICKER_TEXT_STYLE)->string, in TestTimePickerTextStyle003()
58 value_item.string = "#FF182431;14;bolder;Arial,HarmonyOS Sans;normal"; in TestTimePickerTextStyle004()
61 ASSERT_STREQ(nodeAPI->getAttribute(timePicker, NODE_TIME_PICKER_TEXT_STYLE)->string, in TestTimePickerTextStyle004()
70 value_item.string = "#FF182431;14;lighter;Arial,HarmonyOS Sans;normal"; in TestTimePickerTextStyle005()
73 ASSERT_STREQ(nodeAPI->getAttribute(timePicker, NODE_TIME_PICKER_TEXT_STYLE)->string, in TestTimePickerTextStyle005()
[all …]
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/datepicker/
Ddatepicker_textstyle_test.cpp23 value_item.string = "#FF182431;14;normal;Arial,HarmonyOS Sans;normal"; in TestDatePickerTextStyle001()
26 ASSERT_STREQ(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_TEXT_STYLE)->string, in TestDatePickerTextStyle001()
35 value_item.string = "abnormal"; in TestDatePickerTextStyle002()
38 … ASSERT_STRNE(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_TEXT_STYLE)->string, "abnormal"); in TestDatePickerTextStyle002()
46 value_item.string = "#FF182431;14;bold;Arial,HarmonyOS Sans;normal"; in TestDatePickerTextStyle003()
49 ASSERT_STREQ(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_TEXT_STYLE)->string, in TestDatePickerTextStyle003()
58 value_item.string = "#FF182431;14;bolder;Arial,HarmonyOS Sans;normal"; in TestDatePickerTextStyle004()
61 ASSERT_STREQ(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_TEXT_STYLE)->string, in TestDatePickerTextStyle004()
70 value_item.string = "#FF182431;14;lighter;Arial,HarmonyOS Sans;normal"; in TestDatePickerTextStyle005()
73 ASSERT_STREQ(nodeAPI->getAttribute(datePicker, NODE_DATE_PICKER_TEXT_STYLE)->string, in TestDatePickerTextStyle005()
[all …]

12345678910>>...222