| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | ftrace_fs_ops_test.cpp | 107 std::string content = FtraceFsOps::GetInstance().GetKernelSymbols(); variable 108 EXPECT_STRNE(content.c_str(), ""); 118 std::string content = FtraceFsOps::GetInstance().GetPrintkFormats(); variable 119 EXPECT_STRNE(content.c_str(), ""); 131 std::string content = ftraceFsOps.GetPrintkFormats(); variable 132 EXPECT_STREQ(content.c_str(), ""); 135 content = ftraceFsOps.GetPrintkFormats(); 136 EXPECT_STREQ(content.c_str(), ""); 147 std::string content = FtraceFsOps::GetInstance().GetProcessComm(pid); variable 148 EXPECT_STRNE(content.c_str(), ""); [all …]
|
| /developtools/hiperf/test/unittest/common/native/ |
| D | hiperf_libreport_test.cpp | 68 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() 124 ASSERT_TRUE(content.size() >= 2); in DefaultJsonContentCheck() 125 ASSERT_EQ(content.front(), '{'); in DefaultJsonContentCheck() 126 ASSERT_EQ(content.back(), '}'); in DefaultJsonContentCheck() [all …]
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | process_visual.ts | 88 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 …]
|
| D | process_module_files.ts | 42 …const mixedInfo: {content: string, sourceMapJson: any} = genContentAndSourceMapInfo(node, projectC… 64 …await writeObfuscatedSourceCode(mixedInfo.content, temporaryFile, logger, projectConfig, relativeS… 67 fs.writeFileSync(temporaryFile, mixedInfo.content); 101 let content: string = writer.getText(); 103 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig); 107 content: content,
|
| D | gen_module_abc.ts | 37 let content: string = ""; 41 content += 44 content += "\n" 47 fs.writeFileSync(filePath, content, "utf-8");
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | file_utils.cpp | 33 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() 45 content.resize(count); in ReadFile() 46 return content; in ReadFile() 62 std::string content = ReadFile(fd); in ReadFile() local 63 CHECK_TRUE(close(fd) != -1, content, "close %s failed, %d", path.c_str(), errno); in ReadFile() 64 return content; in ReadFile() 67 int FileUtils::WriteFile(const std::string& path, const std::string& content) in WriteFile() argument [all …]
|
| /developtools/ace_ets2bundle/compiler/test/ |
| D | test.js | 50 const content = require(filePath); 51 const source = content.source; 55 validateUISyntax(source, afterProcess.content, `${name}.ets`); 61 const result = ts.transpileModule(afterProcess.content, { 73 expect(result.outputText).eql(content.expectResult); 101 let content = source; 103 content = preprocessExtend(content); 104 content = processSystemApi(content); 106 content: content, 111 function processSystemApi(content) { argument
|
| /developtools/profiler/build/ |
| D | make_standard_proto.py | 25 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()
|
| /developtools/profiler/host/smartperf/trace_streamer/build/ |
| D | make_standard_proto.py | 24 with open(target_file_path, 'r+') as content: 25 newcontent = content.read() 29 content.seek(0, 0) 30 content.write(newcontent) 31 content.truncate() 32 content.close()
|
| /developtools/profiler/host/smartperf/trace_streamer/prebuilts/patch_hiperf/ |
| D | file_ex.h | 22 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/smartperf_host/trace_streamer/build/ |
| D | make_standard_proto.py | 24 with open(target_file_path, 'r+') as content: 25 newcontent = content.read() 29 content.seek(0, 0) 30 content.write(newcontent) 31 content.truncate() 32 content.close()
|
| /developtools/smartperf_host/trace_streamer/prebuilts/patch_hiperf/ |
| D | file_ex.h | 22 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/profiler/device/cmds/test/unittest/ |
| D | hiprofiler_cmd_test.cpp | 82 bool RunCommand(const std::string& cmd, std::string& content) in RunCommand() argument 89 content += buffer.data(); in RunCommand() 290 std::string content = ""; variable 291 EXPECT_TRUE(RunCommand(cmd, content)); 293 EXPECT_EQ(strncmp(content.c_str(), destStr.c_str(), strlen(destStr.c_str())), 0); 295 content = ""; 297 EXPECT_TRUE(RunCommand(cmd, content)); 299 EXPECT_EQ(strncmp(content.c_str(), destStr.c_str(), strlen(destStr.c_str())), 0); 303 content = ""; 304 EXPECT_TRUE(RunCommand(cmd, content)); [all …]
|
| /developtools/ace_js2bundle/ace-loader/src/ |
| D | read-json-plugin.js | 22 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/ |
| D | music.hml | 4 <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/profiler/device/cmds/src/ |
| D | parse_plugin_config.cpp | 48 std::string ParsePluginConfig::GetPluginsConfig(std::string& content) in GetPluginsConfig() argument 54 for (int i = 0; content.size() > 0; i++) { in GetPluginsConfig() 57 beginPos = content.find(destStr); in GetPluginsConfig() 61 pluginConfig += content.substr(0, beginPos); in GetPluginsConfig() 62 content = content.substr(beginPos + destStr.size(), content.size()); in GetPluginsConfig() 64 beginPos = content.find(destStr); in GetPluginsConfig() 68 content = content.substr(beginPos + 1, content.size()); in GetPluginsConfig() 70 endPos = content.find(destStr); in GetPluginsConfig() 74 std::string contentStr = content.substr(0, endPos); in GetPluginsConfig() 87 content = content.substr(endPos + 1, content.size()); in GetPluginsConfig() [all …]
|
| /developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/ |
| D | misc.py | 71 def handler(content: Text) -> List[str]: 73 map(lambda x: x.strip(), content.split("\n"))))) 127 def add_prefix(content: str, prefix: str) -> str: 128 if content and (not content.startswith(prefix)): 129 return prefix+content 130 return content 133 def add_postfix(content: str, postfix: str) -> str: 134 if content and (not content.endswith(postfix)): 135 return content+postfix 136 return content
|
| /developtools/ace_ets2bundle/compiler/ |
| D | build_declarations_file.js | 65 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/ace_js2bundle/ace-loader/sample/card/pages/index/ |
| D | index.css | 2 justify-content: center; 13 justify-content: center; 18 justify-content: center;
|
| /developtools/ace_js2bundle/ace-loader/sample/rich/pages/index/ |
| D | index.css | 2 justify-content: center; 13 justify-content: center; 18 justify-content: center;
|
| /developtools/ace_js2bundle/ace-loader/sample/rich/pages/detail/ |
| D | detail.css | 2 justify-content: center; 13 justify-content: center; 18 justify-content: center;
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/ |
| D | VerificationResult.java | 39 private JsonObject content; field in VerificationResult 58 return content; in getContent() 62 this.content = provision; in setContent()
|
| /developtools/profiler/device/plugins/ftrace_plugin/include/ |
| D | file_utils.h | 25 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/host/smartperf/ide/src/trace/component/ |
| D | DisassemblingWindow.ts | 36 private getMap(content: string, hintAttr: string) { 37 let lines = content.split('\n'); 80 public showContent(content: string, hintAddr: string): void { 83 if (content.startsWith('error')) { 84 …ndow!.innerHTML = `<span class="column1" style="width:100%;text-align: center;">${content}</span>`; 87 let lineMap = this.getMap(content, hintAddr);
|
| /developtools/smartperf_host/ide/src/trace/component/ |
| D | DisassemblingWindow.ts | 36 private getMap(content: string, hintAttr: string) { 37 let lines = content.split('\n'); 80 public showContent(content: string, hintAddr: string): void { 83 if (content.startsWith('error')) { 84 …ndow!.innerHTML = `<span class="column1" style="width:100%;text-align: center;">${content}</span>`; 87 let lineMap = this.getMap(content, hintAddr);
|