| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | ftrace_fs_ops_test.cpp | 110 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/ |
| 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() 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/ |
| D | make_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() 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/ |
| 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 | 48 …const mixedInfo: {content: string, sourceMapJson: ts.RawSourceMap} = genContentAndSourceMapInfo(no… 72 …await writeObfuscatedSourceCode(mixedInfo.content, temporaryFile, logger, projectConfig, relativeS… 76 fs.writeFileSync(temporaryFile, mixedInfo.content); 111 let content: string = writer.getText(); 113 content = transformModuleSpecifier(fileName, processSystemApi(content, true), projectConfig); 117 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/cmds/test/unittest/ |
| D | hiprofiler_cmd_test.cpp | 89 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/ |
| 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() 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/ |
| D | test.js | 56 const content = require(filePath); 57 const source = content.source; 65 …transformLog.errors.push(...validateUISyntax(source, afterProcess.content, `${name}.ets`, "?entry"… 67 validateUISyntax(source, afterProcess.content, `${name}.ets`); 74 const result = ts.transpileModule(afterProcess.content, { 82 expect(result.outputText).eql(content.expectResult); 110 let content = source; 112 content = preprocessExtend(content); 113 content = processSystemApi(content); 115 content: content, [all …]
|
| /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/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/ace_ets2bundle/compiler/src/fast_build/system_api/ |
| D | api_check_utils.ts | 69 const content: object = JSON.parse(fs.readFileSync(syscapFilePath, 'utf-8')); constant 71 deviceInfoMap.set(deviceType, deviceInfoMap.get(deviceType).concat(content['SysCaps'])); 73 deviceInfoMap.set(deviceType, content['SysCaps']); 98 const content: object = JSON.parse(fs.readFileSync(syscapFilePath, 'utf-8')); constant 100 … deviceInfoMap.set(deviceType, deviceInfoMap.get(deviceType).concat(content['SysCaps'])); 102 deviceInfoMap.set(deviceType, content['SysCaps']);
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | logger.rs | 57 fn write_log(content: String) { in write_log() 64 meta.current_size += content.len(); in write_log() 66 writeln!(&mut f, "{}", content).unwrap(); in write_log() 69 println!("{}", content); in write_log() 84 let content = format!( in log() localVariable 93 HostLoggerMeta::write_log(content); in log()
|
| /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/profiler/device/cmds/src/ |
| D | parse_plugin_config.cpp | 50 std::string ParsePluginConfig::GetPluginsConfig(std::string& content) in GetPluginsConfig() argument 56 for (int i = 0; content.size() > 0; i++) { in GetPluginsConfig() 59 beginPos = content.find(destStr); in GetPluginsConfig() 63 pluginConfig += content.substr(0, beginPos); in GetPluginsConfig() 64 content = content.substr(beginPos + destStr.size(), content.size()); in GetPluginsConfig() 66 beginPos = content.find(destStr); in GetPluginsConfig() 70 content = content.substr(beginPos + 1, content.size()); in GetPluginsConfig() 72 endPos = content.find(destStr); in GetPluginsConfig() 76 std::string contentStr = content.substr(0, endPos); in GetPluginsConfig() 89 content = content.substr(endPos + 1, content.size()); in GetPluginsConfig() [all …]
|
| D | main.cpp | 111 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/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/rich/pages/index/ |
| D | index.css | 2 justify-content: center; 13 justify-content: center; 18 justify-content: center;
|
| /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/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/hdc/scripts/ |
| D | dev_hdc_test.py | 109 content = filter( 111 json_str = json.dumps(dict(content)) 121 content = json.load(f) 122 cls.hdc_exe = content.get("hdc_exe") 123 cls.local_path = content.get("local_path") 124 cls.remote_path = content.get("remote_path") 125 cls.remote_ip = content.get("remote_ip") 126 cls.hdc_head = content.get("hdc_head") 127 cls.tmode = content.get("tmode") 128 cls.device_name = content.get("device_name") [all …]
|
| /developtools/ace_js2bundle/ace-loader/test/card/testError/pages/amimation/ |
| D | amimation.css | 2 justify-content: center; 13 justify-content: center; 18 justify-content: center;
|