/developtools/hiperf/include/ |
H A D | report_json_file.h | 38 void OutputJsonKey(FILE *output, const T &value) in OutputJsonKey() argument 45 fprintf(output, "\"%s\":", value.c_str()); in OutputJsonKey() 51 fprintf(output, "\"%s\":", value.data()); in OutputJsonKey() 57 fprintf(output, "\"%s\":", value); in OutputJsonKey() 59 fprintf(output, "\"%s\":", std::to_string(value).c_str()); in OutputJsonKey() 63 void OutputJsonValue(FILE *output, const T &value, bool first = true) in OutputJsonValue() argument 66 fprintf(output, ","); in OutputJsonValue() 69 fprintf(output, "\"%s\"", value.c_str()); in OutputJsonValue() 71 fprintf(output, "\"%s\"", value.data()); in OutputJsonValue() 73 fprintf(output, " in OutputJsonValue() 92 OutputJsonPair(FILE *output, const K &key, const T &value, bool first = false) OutputJsonPair() argument 109 OutputJsonVectorList(FILE *output, const std::string &key, const std::vector<T> &value, bool first = false) OutputJsonVectorList() argument 133 OutputJsonMapList(FILE *output, const std::string &key, const std::map<K, V> &value, bool first = false) OutputJsonMapList() argument 157 OutputJsonMap(FILE *output, const std::string &key, const std::map<K, V> &value, bool first = false) OutputJsonMap() argument [all...] |
/developtools/hiperf/test/unittest/common/native/ |
H A D | report_json_file_test.cpp | 107 StdoutRecord output; in HWTEST_F() local 110 output.Start(); in HWTEST_F() 112 EXPECT_STREQ(output.Stop().c_str(), ""); in HWTEST_F() 114 output.Start(); in HWTEST_F() 116 EXPECT_STREQ(output.Stop().c_str(), ""); in HWTEST_F() 119 output.Start(); in HWTEST_F() 121 EXPECT_STREQ(output.Stop().c_str(), "\"keyname\":"); in HWTEST_F() 123 output.Start(); in HWTEST_F() 125 EXPECT_STREQ(output.Stop().c_str(), "\"1\":"); in HWTEST_F() 127 output in HWTEST_F() 148 StdoutRecord output; HWTEST_F() local 186 StdoutRecord output; HWTEST_F() local 199 StdoutRecord output; HWTEST_F() local 217 StdoutRecord output; HWTEST_F() local 246 StdoutRecord output; HWTEST_F() local 294 StdoutRecord output; HWTEST_F() local 313 StdoutRecord output; HWTEST_F() local 358 StdoutRecord output; HWTEST_F() local 394 StdoutRecord output; HWTEST_F() local 419 StdoutRecord output; HWTEST_F() local 441 StdoutRecord output; HWTEST_F() local 459 StdoutRecord output; HWTEST_F() local 477 StdoutRecord output; HWTEST_F() local 504 StdoutRecord output; HWTEST_F() local 542 StdoutRecord output; HWTEST_F() local 608 StdoutRecord output; HWTEST_F() local 634 StdoutRecord output; HWTEST_F() local 659 StdoutRecord output; HWTEST_F() local 682 StdoutRecord output; HWTEST_F() local 705 StdoutRecord output; HWTEST_F() local [all...] |
/developtools/global_resource_tool/src/ |
H A D | generic_compiler.cpp | 28 GenericCompiler::GenericCompiler(ResType type, const string &output) in GenericCompiler() argument 29 : IResourceCompiler(type, output) in GenericCompiler() 60 string output = ""; in CompileSingleFile() local 61 if (!CopyMediaFile(fileInfo, output)) { in CompileSingleFile() 65 if (!PostMediaFile(fileInfo, output)) { in CompileSingleFile() 71 bool GenericCompiler::PostMediaFile(const FileInfo &fileInfo, const std::string &output) in PostMediaFile() argument 78 auto index = output.find_last_of(SEPARATOR_FILE); in PostMediaFile() 80 cerr << "Error: invalid output path." << NEW_LINE_PATH << output << endl; in PostMediaFile() 83 string data = output in PostMediaFile() 103 string output = GetOutputFilePath(fileInfo); IsIgnore() local 111 CopyMediaFile(const FileInfo &fileInfo, std::string &output) CopyMediaFile() argument [all...] |
H A D | factory_resource_compiler.cpp | 25 unique_ptr<IResourceCompiler> FactoryResourceCompiler::CreateCompiler(ResType type, const string &output) in CreateCompiler() argument 28 return make_unique<JsonCompiler>(type, output); in CreateCompiler() 30 return make_unique<GenericCompiler>(type, output); in CreateCompiler() 34 unique_ptr<IResourceCompiler> FactoryResourceCompiler::CreateCompilerForAppend(ResType type, const string &output) in CreateCompilerForAppend() argument 37 return make_unique<JsonCompiler>(type, output); in CreateCompilerForAppend() 39 return make_unique<AppendCompiler>(type, output); in CreateCompilerForAppend()
|
H A D | file_manager.cpp | 33 uint32_t FileManager::ScanModules(const vector<string> &inputs, const string &output, const bool isHar) in ScanModules() argument 37 if (ScanModule(input, output) != RESTOOL_SUCCESS) { in ScanModules() 45 return isHar ? RESTOOL_SUCCESS : ParseReference(output); in ScanModules() 54 uint32_t FileManager::ScanModule(const string &input, const string &output) in ScanModule() argument 56 ResourceModule resourceModule(input, output, moduleName_); in ScanModule() 64 uint32_t FileManager::ParseReference(const string &output) in ParseReference() argument 67 if (referenceParser.ParseRefInResources(items_, output) != RESTOOL_SUCCESS) { in ParseReference() 92 bool FileManager::ScaleIcons(const string &output, const std::map<std::string, std::set<uint32_t>> &iconMap) in ScaleIcons() argument 115 if (!ScaleIcon(output, item)) { in ScaleIcons() 123 bool FileManager::ScaleIcon(const string &output, ResourceIte argument [all...] |
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | perf_event_record.h | 80 std::string output; in ToSymbolString() local 82 output = StringPrintf("va: 0x%016llx(%llx) ", vaddrInFile_, ip_); in ToSymbolString() 84 output = StringPrintf("ip: 0x%016llx ", ip_); in ToSymbolString() 86 output.append(": "); in ToSymbolString() 87 output.append(symbolName_); in ToSymbolString() 89 output.append("@"); in ToSymbolString() 90 output.append(filePath_); in ToSymbolString() 92 output.append(":"); in ToSymbolString() 93 output.append(std::to_string(symbolIndex_)); in ToSymbolString() 95 return output; in ToSymbolString() [all...] |
/developtools/ace_ets2bundle/ |
H A D | generateSysResource.py | 51 output = open(js_file, 'w+') 52 output.write("module.exports.sys = {\n") 57 output.write(" %s: {\n" % (item_type)) 59 output.write(",\n %s: {\n" % (item_type)) 64 output.write(" %s: %d" % (res_name, res_id)) 66 output.write(",\n %s: %d" % (res_name, res_id)) 67 output.write("\n }") 68 output.write("\n}\n") 69 output.close() 74 parser.add_argument('--output [all...] |
/developtools/ace_js2bundle/ace-loader/src/ |
H A D | card-loader.js | 38 let output = '//card_start\n' 39 output += 'var card_template =' + getRequireString(this, jsonLoaders('template'), resourcePath) 42 output += 'var card_style =' + 45 output = addJson(this, output, fileName, '') 89 output += `var card_element_template_${elementLastName} =` + getRequireString(this, jsonLoaders('template'), 93 output += `var card_element_style_${elementLastName} =` + 97 output = addJson(this, output, compFileName, `?${customElementName}#${fileName}`, elementLastName) 100 output [all...] |
H A D | genBin-plugin.js | 40 let output 46 output = output_ 59 if (output && webpackPath && path.extname(key) === '.js') { 65 writeFileSync(newContent, path.resolve(output, keyPath), key) 72 function writeFileSync(inputString, output, jsBundleFile) { 73 const parent = path.join(output, '..') 77 fs.writeFileSync(output, inputString) 78 if (fs.existsSync(output)){ 79 qjscFirst(output, output [all...] |
H A D | loader-gen.js | 185 let output = '' 190 output = '//card_start\n' 191 output += `var card_template =` + getRequireString(this, 193 output += `var card_style =` + getRequireString(this, 195 output += `var card_json =` + getRequireString(this, 197 output += '\n//card_end' 200 output = 'var $app_script$ = ' + generateOutput(that, 'script', jsFileName, isElement) 201 output += 'var $app_template$ = ' + generateOutput(that, 'template', jsFileName, isElement) 202 output += 'var $app_style$ = ' + generateOutput(that, 'style', jsFileName, isElement) 203 output [all...] |
H A D | genAbc-plugin.js | 41 let output; 72 output = output_; 100 buildPathInfo = output; 103 if (output && path.extname(key) === '.js') { 112 writeFileSync(newContent, output, keyPath, key, true); 113 } else if (output && path.extname(key) === '.json' && 115 writeFileSync(assets[key].source(), output, key, key, false); 123 buildPathInfo = output; 143 const projectI18nPath = outI18nPath.replace(output, process.env.projectPath); 171 let output [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/utils/ |
H A D | InputStreamUtils.java | 46 try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { in toByteArray() 47 copy(inputStream, inputStreamSize, output); in toByteArray() 48 return output.toByteArray(); in toByteArray() 52 private static int copy(InputStream inputStream, int inputStreamSize, OutputStream output) throws IOException { in copy() argument 57 output.write(buffer, 0, readSize); in copy()
|
/developtools/ace_ets2bundle/compiler/ |
H A D | build_kitConfigs_file.js | 25 function generateKitConfig(kitFilePath, output, apiFilePath, arktsFilePath) { 30 if (fs.existsSync(output)) { 31 removeDir(output); 33 mkDir(output); 36 const outputPath = path.resolve(output, path.basename(item).replace('.d.ts', '.json'));
|
/developtools/global_resource_tool/include/ |
H A D | file_manager.h | 29 uint32_t ScanModules(const std::vector<std::string> &inputs, const std::string &output, const bool isHar); 39 bool ScaleIcons(const std::string &output, const std::map<std::string, std::set<uint32_t>> &iconMap); 42 uint32_t ScanModule(const std::string &input, const std::string &output); 43 uint32_t ParseReference(const std::string &output); 45 bool ScaleIcon(const std::string &output, ResourceItem &item);
|
H A D | generic_compiler.h | 27 GenericCompiler(ResType type, const std::string &output); 32 bool PostMediaFile(const FileInfo &fileInfo, const std::string &output); 36 bool CopyMediaFile(const FileInfo &fileInfo, std::string &output);
|
H A D | factory_resource_compiler.h | 27 static std::unique_ptr<IResourceCompiler> CreateCompiler(ResType type, const std::string &output); 28 static std::unique_ptr<IResourceCompiler> CreateCompilerForAppend(ResType type, const std::string &output);
|
/developtools/syscap_codec/interfaces/inner_api/ |
H A D | syscap_interface.h | 46 bool EncodeOsSyscap(char *output, int len); 47 bool DecodeOsSyscap(const char input[PCID_MAIN_BYTES], char (**output)[SINGLE_SYSCAP_LEN], int *outputCnt); 48 bool EncodePrivateSyscap(char **output, int *outputLen); 49 bool DecodePrivateSyscap(char *input, char (**output)[SINGLE_SYSCAP_LEN], int *outputCnt); 55 * result, output comparison results.
|
/developtools/integration_verification/tools/deps_guard/elf_file_mgr/ |
H A D | utils.py | 35 # return a list of lines of output of the command 39 output = pipe.read().strip() 44 print("With output:", output) 46 return [i for i in output.split('\n') if i]
|
/developtools/hapsigner/hapsigntool_cpp_test/unittest/utils/ |
H A D | file_utils_test.cpp | 88 std::ofstream output(outputFile, std::ios::binary); in Worker() 93 if (!output) { in Worker() 98 int res = FileUtils::WriteInputToOutPut(input, output, length); in Worker() 104 output.close(); in Worker() 120 * @tc.steps: step1. make the output file is not exist in HWTEST_F() 121 * @tc.expected: step1. failed to get output stream object, the return will be true. in HWTEST_F() 124 std::ofstream output("./utilstmp/signed-file.out", std::ios::binary); in HWTEST_F() 125 bool flag = FileUtils::WriteByteToOutFile(bytes, output); in HWTEST_F() 143 std::ofstream output("./utils/unsigned-file.out", std::ios::binary); in HWTEST_F() 144 bool flag = FileUtils::WriteByteToOutFile(bytes, output); in HWTEST_F() [all...] |
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
H A D | FileUtils.java | 135 try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { in read() 139 output.write(buffer, 0, read); in read() 141 return output.toByteArray(); in read() 183 try (ByteArrayOutputStream output = new ByteArrayOutputStream()) { in readInputByLength() 187 writeInputToOutPut(input, output, length); in readInputByLength() 188 return output.toByteArray(); in readInputByLength() 193 * write input to output by length 195 private static void writeInputToOutPut(InputStream input, OutputStream output, long length) throws IOException { in writeInputToOutPut() argument 204 output.write(buffer, 0, len); in writeInputToOutPut() 213 * @param output Fil 216 write(byte[] content, File output) write() argument [all...] |
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | file_utils.cpp | 77 int FileUtils::Write(const std::string& content, const std::string& output) in Write() argument 79 std::ofstream outFile(output, std::ios::binary); in Write() 82 PrintErrorNumberMsg("IO_ERROR", IO_ERROR, "open output file: " + output + " failed"); in Write() 87 PrintErrorNumberMsg("IO_ERROR", IO_ERROR, "Failed to write data to output stream."); in Write() 203 std::ofstream output(outputFile, std::ios::binary | std::ios::app); in AppendWriteFileToFile() 209 flag = (0 != output.rdstate()); in AppendWriteFileToFile() 211 SIGNATURE_TOOLS_LOGE("Failed to get output stream object!"); in AppendWriteFileToFile() 225 output.write(buffer, readLen); in AppendWriteFileToFile() 227 if (!output) { in AppendWriteFileToFile() 248 WriteInputToOutPut(std::ifstream& input, std::ofstream& output, size_t length) WriteInputToOutPut() argument 294 WriteInputToOutPut(const std::string& input, const std::string& output) WriteInputToOutPut() argument [all...] |
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
H A D | gn_common_tool.py | 107 output = BasicTool.execute(cmd, lambda x: x.strip().strip('"')) 109 if not output: 112 var_val_dict[v] = output 113 GnCommonTool.__var_val_mem_dict[v] = output 150 output = os.popen(cmd).readlines() 152 if not output: 154 for line in output:
|
/developtools/hdc/hdc_rust/src/host/ |
H A D | auth.rs | 237 let output = if cfg!(target_os = "windows") { in get_home_dir() 238 Command::new("cmd").args(["/c", "echo %USERPROFILE%"]).output() in get_home_dir() 240 Command::new("sh").args(["-c", "echo ~"]).output() in get_home_dir() 243 if let Ok(result) = output { in get_home_dir() 254 let output = if cfg!(target_os = "windows") { in get_hostname() 255 Command::new("cmd").args(["/c", "hostname"]).output() in get_hostname() 257 Command::new("cmd").args(["-c", "hostname"]).output() in get_hostname() 260 if let Ok(result) = output { in get_hostname()
|
/developtools/hapsigner/hapsigntool_cpp/zip/src/ |
H A D | zip_signer.cpp | 201 bool ZipSigner::ToFile(std::ifstream& input, std::ofstream& output) in ToFile() argument 208 if (!output.good()) { in ToFile() 209 SIGNATURE_TOOLS_LOGE("read zip output file failed"); in ToFile() 216 if (!FileUtils::WriteByteToOutFile(zipEntryHeaderStr, output)) { in ToFile() 222 bool isSuccess = FileUtils::AppendWriteFileByOffsetToFile(input, output, fileOffset, fileSize); in ToFile() 230 if (!FileUtils::WriteByteToOutFile(dataDescriptorStr, output)) { in ToFile() 237 if (!FileUtils::WriteByteToOutFile(m_signingBlock, output)) { in ToFile() 244 if (!FileUtils::WriteByteToOutFile(cd->ToBytes(), output)) { in ToFile() 249 if (!FileUtils::WriteByteToOutFile(m_endOfCentralDirectory->ToBytes(), output)) { in ToFile()
|
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/ |
H A D | basic_tool.py | 99 output = os.popen(cmd).read() 100 output = post_processor(output) 101 return output
|