Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 169) sorted by relevance

1234567

/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dftrace_fs_ops_test.cpp110 std::string content = FtraceFsOps::GetInstance().GetKernelSymbols(); variable
111 EXPECT_STRNE(content.c_str(), "");
121 std::string content = FtraceFsOps::GetInstance().GetPrintkFormats(); variable
122 EXPECT_STRNE(content.c_str(), "");
134 std::string content = ftraceFsOps.GetPrintkFormats(); variable
135 EXPECT_STREQ(content.c_str(), "");
138 content = ftraceFsOps.GetPrintkFormats();
139 EXPECT_STREQ(content.c_str(), "");
150 std::string content = FtraceFsOps::GetInstance().GetProcessComm(pid); variable
151 EXPECT_STRNE(content.c_str(), "");
[all …]
/developtools/hiperf/test/unittest/common/native/
Dhiperf_libreport_test.cpp68 void HiperfLibReportTest::DefaultSymbolsBuildIdContentCheck(const std::string &content) const in DefaultSymbolsBuildIdContentCheck()
107 ASSERT_TRUE(content.size() >= 2u); in DefaultSymbolsBuildIdContentCheck()
108 ASSERT_EQ(content.front(), '['); in DefaultSymbolsBuildIdContentCheck()
109 ASSERT_EQ(content.back(), ']'); in DefaultSymbolsBuildIdContentCheck()
110 std::vector<std::string> fileBuildPairs = StringSplit(content, "["); in DefaultSymbolsBuildIdContentCheck()
115 EXPECT_STREQ(content.c_str(), buildIdList); in DefaultSymbolsBuildIdContentCheck()
118 void HiperfLibReportTest::DefaultJsonContentCheck(const std::string &content) const in DefaultJsonContentCheck()
123 ASSERT_TRUE(content.size() >= 2); // 2: args size in DefaultJsonContentCheck()
124 ASSERT_EQ(content.front(), '{'); in DefaultJsonContentCheck()
125 ASSERT_EQ(content.back(), '}'); in DefaultJsonContentCheck()
[all …]
/developtools/profiler/build/
Dmake_proto.py25 with open(target_file_path, 'r+') as content:
26 newcontent = content.read()
30 content.seek(0, 0)
31 content.write(newcontent)
32 content.truncate()
33 content.close()
41 with open(target_file_path, 'r+') as content:
42 newcontent = content.read()
48 content.seek(0, 0)
49 content.write(newcontent)
[all …]
/developtools/ace_ets2bundle/compiler/src/
Dprocess_visual.ts88 const content: string | null = getParsedContent(code, path.normalize(id), log); constant
89 if (!content) {
96 return content;
99 export function parseVisual(resourcePath: string, resourceQuery: string, content: string,
101 let code: string | null = getParsedContent(content, resourcePath, log);
103 return content;
106 code = result.content;
116 function parseStatement(statement: ts.Statement, content: string, log: LogInfo[],
122 content = parseMember(statement, member, content, log, visualContent);
127 return content;
[all …]
Dprocess_module_files.ts47 …const mixedInfo: { content: string, sourceMapJson: ts.RawSourceMap } = genContentAndSourceMapInfo(…
72 content: mixedInfo.content,
82 fs.writeFileSync(temporaryFile, mixedInfo.content);
117 let content: string = writer.getText();
119 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig);
123 content: content,
Dgen_module_abc.ts37 let content: string = "";
41 content +=
44 content += "\n"
47 fs.writeFileSync(filePath, content, "utf-8");
/developtools/profiler/device/cmds/test/unittest/
Dhiprofiler_cmd_test.cpp89 bool RunCommand(const std::string& cmd, std::string& content) in RunCommand() argument
95 content += buffer.data(); in RunCommand()
508 std::string content = ""; variable
509 EXPECT_TRUE(RunCommand(cmd, content));
511 EXPECT_EQ(strncmp(content.c_str(), destStr.c_str(), strlen(destStr.c_str())), 0);
513 content = "";
515 EXPECT_TRUE(RunCommand(cmd, content));
517 EXPECT_EQ(strncmp(content.c_str(), destStr.c_str(), strlen(destStr.c_str())), 0);
521 content = "";
522 EXPECT_TRUE(RunCommand(cmd, content));
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dfile_utils.cpp33 std::string content; in ReadFile() local
36 if (content.size() - count < DEFAULT_READ_SIZE) { in ReadFile()
37 content.resize(content.size() + DEFAULT_READ_SIZE); in ReadFile()
39 ssize_t nBytes = TEMP_FAILURE_RETRY(read(fd, &content[count], content.size() - count)); in ReadFile()
48 content.resize(count); in ReadFile()
49 return content; in ReadFile()
65 std::string content = ReadFile(fd); in ReadFile() local
66 CHECK_TRUE(close(fd) != -1, content, "close %s failed, %d", path.c_str(), errno); in ReadFile()
67 return content; in ReadFile()
70 int FileUtils::WriteFile(const std::string& path, const std::string& content) in WriteFile() argument
[all …]
/developtools/ace_ets2bundle/compiler/test/
Dtest.js57 const content = require(filePath);
58 const source = content.source;
67 …transformLog.errors.push(...validateUISyntax(source, afterProcess.content, `${name}.ets`, "?entry"…
69 validateUISyntax(source, afterProcess.content, `${name}.ets`);
76 const result = ts.transpileModule(afterProcess.content, {
84 expect(result.outputText).eql(content.expectResult);
112 let content = source;
114 content = preprocessExtend(content);
115 content = processSystemApi(content);
117 content: content,
[all …]
Dtest.ts39 const content: any = require(filePath); constant
40 const source: string = content.source;
54 expect(result.outputText).eql(content.expectResult);
/developtools/smartperf_host/trace_streamer/prebuilts/patch_hiperf/
Dfile_ex.h22 bool LoadStringFromFile(const std::string &filePath, std::string &content);
23 bool SaveStringToFile(const std::string &filePath, const std::string &content, bool truncated = tru…
24 bool LoadStringFromFd(int fd, std::string &content);
25 bool SaveStringToFd(int fd, const std::string &content);
26 bool LoadBufferFromFile(const std::string &filePath, std::vector<char> &content);
27 bool SaveBufferToFile(const std::string &filePath, const std::vector<char> &content, bool truncated…
/developtools/ace_js2bundle/ace-loader/src/
Dread-json-plugin.js22 resolver.fileSystem.readFile(filepath, (error, content) => {
26 if (!content || content.length === 0) {
32 data = JSON5.parse(content.toString("utf-8"));
34 data = JSON.parse(content.toString("utf-8"));
/developtools/ace_js2bundle/ace-loader/test/lite/testcase/pages/music/
Dmusic.hml4 <text class="content">{{$t('value.name')}}
6 <text class="content">{{value.name}}
8 <text class="content">{{$t('strings.dizziness')}}
10 <text class="content">{{value.singer}}
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/
Dmisc.py62 def handler(content: Text) -> List[str]:
64 map(lambda x: x.strip(), content.split("\n")))))
109 def add_prefix(content: str, prefix: str) -> str:
110 if content and (not content.startswith(prefix)):
111 return prefix+content
112 return content
115 def add_postfix(content: str, postfix: str) -> str:
116 if content and (not content.endswith(postfix)):
117 return content+postfix
118 return content
/developtools/ace_js2bundle/ace-loader/sample/rich/pages/detail/
Ddetail.css2 justify-content: center;
13 justify-content: center;
18 justify-content: center;
/developtools/ace_js2bundle/ace-loader/sample/card/pages/index/
Dindex.css2 justify-content: center;
13 justify-content: center;
18 justify-content: center;
/developtools/ace_js2bundle/ace-loader/sample/rich/pages/index/
Dindex.css2 justify-content: center;
13 justify-content: center;
18 justify-content: center;
/developtools/ace_ets2bundle/compiler/
Dbuild_declarations_file.js65 let content = fs.readFileSync(item, 'utf8');
68 content = processsFile(content, fileName, true);
70 content = license + '\n\n' + processsFile(content, fileName, true);
72 content = processImportType(content);
74 fs.writeFile(fileName, content, err => {
83 function processImportType(content) { argument
84 …return content.replace(/(import\s*\(("|'))(\.\.\/api\/[^("|')]*("|')\)\.)/g, (item, item1, item2, …
110 function processsFile(content, fileName, isGlobal) { argument
111 …let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.Latest, true, ts.ScriptKin…
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/
DVerificationResult.java39 private JsonObject content; field in VerificationResult
58 return content; in getContent()
62 this.content = provision; in setContent()
/developtools/profiler/device/plugins/ftrace_plugin/include/
Dfile_utils.h25 static int WriteFile(const std::string& path, const std::string& content);
26 static int WriteFile(const std::string& path, const std::string& content, int flags);
27 static int WriteFile(const std::string& path, const std::string& content, int flags, int mode);
/developtools/profiler/device/cmds/src/
Dparse_plugin_config.cpp52 std::string ParsePluginConfig::GetPluginsConfig(std::string& content) in GetPluginsConfig() argument
58 for (int i = 0; content.size() > 0; i++) { in GetPluginsConfig()
61 beginPos = content.find(destStr); in GetPluginsConfig()
65 pluginConfig += content.substr(0, beginPos); in GetPluginsConfig()
66 content = content.substr(beginPos + destStr.size(), content.size()); in GetPluginsConfig()
68 beginPos = content.find(destStr); in GetPluginsConfig()
72 content = content.substr(beginPos + 1, content.size()); in GetPluginsConfig()
74 endPos = content.find(destStr); in GetPluginsConfig()
78 std::string contentStr = content.substr(0, endPos); in GetPluginsConfig()
91 content = content.substr(endPos + 1, content.size()); in GetPluginsConfig()
[all …]
Dmain.cpp111 std::string content = config; in MakeCreateRequest() local
112 if (content.empty()) { in MakeCreateRequest()
117 if (!ParsePluginConfig::GetInstance().GetParser().ParseFromString(content, request.get())) { in MakeCreateRequest()
118 printf("config [%s] parse FAILED!\n", content.c_str()); in MakeCreateRequest()
153 content.clear(); in MakeCreateRequest()
154 if (!TextFormat::PrintToString(*request.get(), &content)) { in MakeCreateRequest()
173 bool GetCapabilities(std::string& content, bool isCheck) in GetCapabilities() argument
191 if (!TextFormat::PrintToString(capResponse, &content)) { in GetCapabilities()
197 printf("support plugin list:\n%s\n", content.c_str()); in GetCapabilities()
437 std::string content = ""; in StartDependentProcess() local
[all …]
/developtools/hdc/hdc_rust/src/host/
Dlogger.rs61 fn write_log(content: String) { in write_log()
69 meta.current_size += content.len(); in write_log()
71 writeln!(&mut f, "{}", content).unwrap(); in write_log()
74 println!("{}", content); in write_log()
120 let content = format!( in log() localVariable
130 HostLoggerMeta::write_log(content); in log()
/developtools/ace_js2bundle/ace-loader/test/card/testError/pages/amimation/
Damimation.css2 justify-content: center;
13 justify-content: center;
18 justify-content: center;
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/
Dgn_common_tool.py163 def _find_gn_variable_list(cls, content: str) -> List:
172 splited = content.split(os.sep)
185 def string_parser(cls, var: str, content: str) -> str:
193 content, r"{} *= *[\n]?(\".*?\")".format(var), flags=re.S | re.M)
197 def list_parser(cls, var: str, content: str) -> List[str]:
205 content, r"{} *= *(\[.*?\])".format(var), flags=re.S | re.M)

1234567