| /developtools/profiler/device/plugins/native_hook/test/unittest/ |
| D | stack_writer_test.cpp | 119 auto write = std::make_shared<StackWriter>(PLUGIN_NAME, SMB_SIZE, g_smbFd, -1); variable 120 EXPECT_NE(write->shareMemoryBlock_, nullptr); 125 EXPECT_TRUE(write->Write((const void*)buffer1, sizeof(buffer1))); 127 EXPECT_TRUE(write->Write((const void*)buffer2, sizeof(buffer2))); 129 EXPECT_TRUE(write->Write((const void*)buffer3, sizeof(buffer3))); 132 EXPECT_FALSE(write->Write(nullptr, 0)); 142 auto write = std::make_shared<StackWriter>(PLUGIN_NAME, SMB_SIZE, 0, -1); variable 143 EXPECT_EQ(write->shareMemoryBlock_, nullptr); 148 EXPECT_FALSE(write->Write((const void*)buffer1, sizeof(buffer1))); 150 EXPECT_FALSE(write->Write((const void*)buffer2, sizeof(buffer2))); [all …]
|
| /developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/ |
| D | ftrace_cpp_generator.py | 129 f.write(Common.cpp_copyright_header) 130 f.write('#include "sub_event_parser.h"\n') 131 f.write("\n") 132 f.write("FTRACE_NS_BEGIN\n") 133 f.write("namespace {\n") 135 f.write("} // namespace\n") 136 f.write("FTRACE_NS_END\n") 137 f.write("\n") 143 f.write(Common.gn_copyright_header) 144 f.write("\n") [all …]
|
| /developtools/integration_verification/DeployDevice/src/util/ |
| D | find_fail_task.py | 16 fw.write('开始遍历日志'.center(100,'*')) 17 fw.write('\n') 33 fw.write(f'失败任务路径:{dir_path}\n') 40 fw.write('失败日志遍历结束'.center(100,'*')) 41 fw.write('\n') 42 fw.write(f'总共检索日志:{total_count}个\n') 43 fw.write(f'其中存在失败的日志:{fail_count}个\n')
|
| /developtools/bytrace/script/ |
| D | bytrace_multi.py | 97 fp.write("# tracer: nop\n") 98 fp.write("#\n") 99 fp.write("# _-----=> irqs-off\n") 100 fp.write("# / _----=> need-resched\n") 101 fp.write("# | / _---=> hardirq/softirq\n") 102 fp.write("# || / _--=> preempt-depth\n") 103 fp.write("# ||| / delay\n") 104 fp.write("# TASK-PID TGID CPU# |||| TIMESTAMP FUNCTION\n") 105 fp.write("# | | | | |||| | |\n") 107 fp.write(mtuple[1]) [all …]
|
| /developtools/ace_ets2bundle/ |
| D | generateSysResource.py | 51 output.write("module.exports.sys = {\n") 56 output.write(" %s: {\n" % (item_type)) 58 output.write(",\n %s: {\n" % (item_type)) 63 output.write(" %s: %d" % (res_name, res_id)) 65 output.write(",\n %s: %d" % (res_name, res_id)) 66 output.write("\n }") 67 output.write("\n}\n")
|
| /developtools/hdc/scripts/ |
| D | hdc_hash_gen.py | 46 fd_struct.write(i) 47 fd_struct.write('\n') 53 fd_hdc.write("#ifndef HDC_HASH_GEN_H\n") 54 fd_hdc.write("#define HDC_HASH_GEN_H\n") 55 fd_hdc.write('\n') 56 fd_hdc.write("#include <stdio.h>\n") 58 fd_hdc.write(context) 59 fd_hdc.write("\n\n") 60 fd_hdc.write("#endif\n")
|
| /developtools/profiler/hiebpf/scripts/ |
| D | fstrace_code_generator.py | 473 progs_output_file.write(HEAD_BPF_PROG_CODE) 475 args_output_file.write(HIEBPF_TYPES_HEAD) 509 args_output_file.write(type_def_str_reduced) 525 progs_output_file.write(kprobe_sec) 526 progs_output_file.write(krpobe_decl) 527 progs_output_file.write(HEAD_COMMON_KPROBE_CODE) 528 progs_output_file.write(kprobe_code) 529 progs_output_file.write(TAIL_COMMON_KPROBE_CODE) 537 progs_output_file.write(kretprobe_sec) 538 progs_output_file.write(kretprobe_decl) [all …]
|
| D | hiebpf_code_generator.py | 72 progs_ouf.write(LICENSE_HEAD) 73 progs_ouf.write(HEAD_LINE) 76 fstrace_ouf.write(LICENSE_HEAD) 77 fstrace_ouf.write(HEAD_LINE)
|
| D | fstrace_args_converter_generator.py | 112 outf.write(CONVERTER_FILE_HEAD) 119 outf.write(converter) 127 outf.write(converter_table_code)
|
| /developtools/profiler/device/plugins/ftrace_plugin/tools/ |
| D | ftrace_proto_generator.py | 145 f.write(Common.gn_copyright_header) 147 f.write("auto_generated_ftrace_proto_sources = [\n") 149 f.write(' "{}",\n'.format(os.path.basename(proto_path))) 150 f.write("]\n") 154 f.write(Common.proto_common_header) 155 f.write("// category: {}\n".format(category)) 172 f.write("// {}\n".format(device_format_file)) 173 f.write("message {} {{\n".format(message_type)) 178 f.write( 184 f.write("}\n") [all …]
|
| /developtools/profiler/device/plugins/api/test/unittest/ |
| D | buffer_write_test.cpp | 158 …auto write = std::make_shared<BufferWriter>(PLUGIN_NAME, PLUGIN_VERSION, SMB1_SIZE, g_smbFd1, -1, … variable 164 EXPECT_TRUE(write->Write(buffer1, sizeof(buffer1))); 166 EXPECT_TRUE(write->Write(buffer2, sizeof(buffer2))); 168 EXPECT_TRUE(write->Write(buffer3, sizeof(buffer3))); 170 EXPECT_FALSE(write->Write(nullptr, 0)); 181 …auto write = std::make_shared<BufferWriter>(PLUGIN_NAME, PLUGIN_VERSION, SMB2_SIZE, g_smbFd2, -1, … variable 190 EXPECT_TRUE(write->WriteMessage(configData, "111")); 199 EXPECT_TRUE(write->WriteMessage(stateData, "111")); 214 EXPECT_TRUE(write->WriteMessage(pluginData, "111")); 216 EXPECT_TRUE(write->Clear());
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
| D | RandomAccessFileZipDataOutput.java | 50 public void write(byte[] buffer, int offset, int length) throws IOException { in write() method in RandomAccessFileZipDataOutput 62 file.write(buffer, offset, length); in write() 68 public void write(ByteBuffer buffer) throws IOException { in write() method in RandomAccessFileZipDataOutput 76 fileChannel.write(buffer); in write()
|
| D | ZipDataOutput.java | 34 void write(byte[] buffer, int offset, int length) throws IOException; in write() method 42 void write(ByteBuffer buffer) throws IOException; in write() method
|
| D | MessageDigestZipDataOutput.java | 35 public void write(byte[] buffer, int offset, int length) throws IOException { in write() method in MessageDigestZipDataOutput 42 public void write(ByteBuffer buffer) throws IOException { in write() method in MessageDigestZipDataOutput
|
| /developtools/hiperf/etc/ |
| D | hiperf.cfg | 6 …"write /proc/sys/kernel/perf_event_max_sample_rate ${hiviewdfx.hiperf.perf_event_max_sample_rate}", 7 … "write /proc/sys/kernel/perf_cpu_time_max_percent ${hiviewdfx.hiperf.perf_cpu_time_max_percent}", 8 "write /proc/sys/kernel/perf_event_mlock_kb ${hiviewdfx.hiperf.perf_event_mlock_kb}"
|
| /developtools/ace_ets2bundle/compiler/src/ |
| D | create.ts | 93 return console.error('ERROR: Failed to write app.ets.'); 98 return console.error('ERROR: Failed to write manifest.json.'); 103 return console.error('ERROR: Failed to write index.ets.');
|
| /developtools/integration_verification/DeployDevice/resource/L1/ev200/ |
| D | update.txt | 3 mw.b 40000000 ff 500000; tftp 40000000 /ev200/OHOS_Image.bin; sf erase 100000 500000; sf write 4000… 4 mw.b 40000000 ff 900000; tftp 40000000 /ev200/rootfs.img; sf erase 600000 900000; sf write 40000000… 5 mw.b 40000000 ff 100000; tftp 40000000 /ev200/userfs.img; sf erase f00000 100000; sf write 40000000…
|
| /developtools/global_resource_tool/src/ |
| D | resource_table.cpp | 177 writer->write(root, &out); in CreateIdDefined() 296 out.write(reinterpret_cast<const char *>(&recordItem.size), sizeof(uint32_t)); in SaveRecordItem() 297 out.write(reinterpret_cast<const char *>(&recordItem.resType), sizeof(uint32_t)); in SaveRecordItem() 298 out.write(reinterpret_cast<const char *>(&recordItem.id), sizeof(uint32_t)); in SaveRecordItem() 299 out.write(reinterpret_cast<const char *>(data.c_str()), data.length()); in SaveRecordItem() 307 out.write(reinterpret_cast<const char *>(&indexHeader.version), VERSION_MAX_LEN); in SaveHeader() 308 out.write(reinterpret_cast<const char *>(&indexHeader.fileSize), sizeof(uint32_t)); in SaveHeader() 309 out.write(reinterpret_cast<const char *>(&indexHeader.limitKeyConfigSize), sizeof(uint32_t)); in SaveHeader() 315 out.write(reinterpret_cast<const char *>(iter.second.keyTag), TAG_LEN); in SaveLimitKeyConfigs() 316 out.write(reinterpret_cast<const char *>(&iter.second.offset), sizeof(uint32_t)); in SaveLimitKeyConfigs() [all …]
|
| D | resource_append.cpp | 351 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem() 352 out.write(reinterpret_cast<const char *>(resourceItem.GetName().c_str()), size); in WriteResourceItem() 355 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem() 356 out.write(reinterpret_cast<const char *>(resourceItem.GetLimitKey().c_str()), size); in WriteResourceItem() 359 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem() 360 out.write(reinterpret_cast<const char *>(resourceItem.GetFilePath().c_str()), size); in WriteResourceItem() 363 out.write(reinterpret_cast<const char *>(&type), sizeof(int32_t)); in WriteResourceItem() 366 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem() 368 out.write(reinterpret_cast<const char *>(&keyParam.keyType), sizeof(int32_t)); in WriteResourceItem() 369 out.write(reinterpret_cast<const char *>(&keyParam.value), sizeof(int32_t)); in WriteResourceItem() [all …]
|
| /developtools/integration_verification/DeployDevice/resource/L1/dv300_shequ/ |
| D | update.txt | 2 mw.b 0x80000000 0xFF 0x4800;tftp 0x80000000 /dv300/OHOS_Image.bin;mmc erase 0x800 0x4800;mmc write … 3 mw.b 0x80000000 0xFF 0x19000;tftp 0x80000000 /dv300/rootfs.img;mmc erase 0x5000 0x19000;mmc write 0… 4 mw.b 0x80000000 0xFF 0x19000;tftp 0x80000000 /dv300/userfs.img;mmc erase 0x1E000 0x19000;mmc write …
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
| D | FileUtils.java | 132 output.write(buffer, 0, read); in read() 197 output.write(buffer, 0, len); in writeInputToOutPut() 209 public static void write(byte[] content, File output) throws IOException { in write() method in FileUtils 212 out.write(con); in write() 308 dos.write(buf, 0, temp); in writeFileToDos() 331 dos.write(data); in writeByteToDos() 380 outFile.write(bytes, 0, bytes.length); in writeByteToOutFile() 475 writer.write(source); in writeStringToFile()
|
| /developtools/smartperf_host/ide/server/ |
| D | smarperfServer.py | 112 self.wfile.write(bytes(json.dumps(response), "utf-8")) 119 f.write(content) 124 self.wfile.write(bytes(json.dumps(response), "utf-8")) 128 self.wfile.write(bytes(json.dumps(response), "utf-8")) 172 dst.write(f"{formatted_date} {req['fileName']} ({req['fileSize']} M)\n") 176 self.wfile.write(bytes(f"日志写入成功", "utf-8")) 204 self.wfile.write(content)
|
| /developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
| D | liteOsUpgrade_L1_shequ_dv_app.py | 171 fp.write("") 207 fp.write("") 216 fp.write("") 275 fp.write("") 431 ser.write((cmd + '\n').encode()) 452 ser.write(b"reset \r\n") 456 ser.write(b"\r\n") 459 ser.write(b"\r\n") 462 ser.write(b"\r\n") 472 ser.write(b"\r\n") [all …]
|
| /developtools/profiler/device/plugins/stream_plugin/src/ |
| D | stream_plugin.cpp | 77 if (resultWriter_->write != nullptr) { in Loop() 78 resultWriter_->write(resultWriter_, buffer_.data(), buffer_.size()); in Loop()
|
| /developtools/hdc/src/daemon/etc/ |
| D | hdc.para.dac | 20 # hdc control, init, edm and usb_host can write control by selinux 27 # you should setenforce 0 and mount to write /system
|