Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 118) sorted by relevance

12345

/developtools/profiler/device/plugins/native_hook/test/unittest/
Dstack_writer_test.cpp119 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/
Dftrace_cpp_generator.py133 f.write(CPP_COPYRIGHT_HEADER)
134 f.write('#include "sub_event_parser.h"\n')
135 f.write('\n')
136 f.write("FTRACE_NS_BEGIN\n")
137 f.write("namespace {\n")
139 f.write("} // namespace\n")
140 f.write("FTRACE_NS_END\n")
141 f.write('\n')
147 f.write(GN_COPYRIGHT_HEADER)
148 f.write('\n')
[all …]
/developtools/profiler/device/plugins/ftrace_plugin/tools/
Dftrace_cpp_generator.py119 f.write(CPP_COPYRIGHT_HEADER)
120 f.write('#include "sub_event_parser.h"\n')
121 f.write('\n')
122 f.write("FTRACE_NS_BEGIN\n")
123 f.write("namespace {\n")
125 f.write("} // namespace\n")
126 f.write("FTRACE_NS_END\n")
127 f.write('\n')
133 f.write(GN_COPYRIGHT_HEADER)
134 f.write('\n')
[all …]
Dftrace_proto_generator.py145 f.write(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(PROTO_COMMON_HEADER)
155 f.write('// category: {}\n'.format(category))
167 f.write('// {}\n'.format(device_format_file))
168 f.write('message {} {{\n'.format(message_type))
173 f.write(' {} {} = {};\n'.format(type_string, field_name,
176 f.write('}\n')
[all …]
/developtools/integration_verification/DeployDevice/src/util/
Dfind_fail_task.py16 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/
Dbytrace_multi.py97 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/
DgenerateSysResource.py51 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/
Dhdc_hash_gen.py46 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/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DRandomAccessFileZipDataOutput.java50 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()
DZipDataOutput.java34 void write(byte[] buffer, int offset, int length) throws IOException; in write() method
42 void write(ByteBuffer buffer) throws IOException; in write() method
DMessageDigestZipDataOutput.java35 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/
Dhiperf.cfg6 …"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/profiler/device/plugins/api/test/unittest/
Dbuffer_write_test.cpp158 …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"));
/developtools/global_resource_tool/src/xml/
Dsolid_xml.cpp171 out.write(reinterpret_cast<const char *>(&nameSpace_), sizeof(int32_t)); in RawData()
172 out.write(reinterpret_cast<const char *>(&name_), sizeof(int32_t)); in RawData()
173 out.write(reinterpret_cast<const char *>(&value_), sizeof(int32_t)); in RawData()
179 out.write(reinterpret_cast<const char *>(&child_), sizeof(int32_t)); in RawData()
180 out.write(reinterpret_cast<const char *>(&brother_), sizeof(int32_t)); in RawData()
186 out.write(reinterpret_cast<const char *>(&attrStart), sizeof(int32_t)); in RawData()
187 out.write(reinterpret_cast<const char *>(&attrCount), sizeof(int32_t)); in RawData()
261 out.write(reinterpret_cast<const char *>(magic), SOLID_XML_MAGIC_LENGTH); in SaveToFile()
262 out.write(reinterpret_cast<const char *>(&version), sizeof(uint32_t)); in SaveToFile()
263 out.write(reinterpret_cast<const char *>(&numOfNodes), sizeof(uint32_t)); in SaveToFile()
[all …]
Dxml_key_node.cpp66 out.write(reinterpret_cast<const char *>(iter.first.c_str()), iter.first.length()); in SaveToFile()
67 out.write(&null, sizeof(char)); in SaveToFile()
/developtools/ace_ets2bundle/compiler/src/
Dcreate.ts93 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/
Dupdate.txt3 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/
Dresource_table.cpp242 out.write(reinterpret_cast<const char *>(&recordItem.size), sizeof(uint32_t)); in SaveRecordItem()
243 out.write(reinterpret_cast<const char *>(&recordItem.resType), sizeof(uint32_t)); in SaveRecordItem()
244 out.write(reinterpret_cast<const char *>(&recordItem.id), sizeof(uint32_t)); in SaveRecordItem()
245 out.write(reinterpret_cast<const char *>(data.c_str()), data.length()); in SaveRecordItem()
253 out.write(reinterpret_cast<const char *>(&indexHeader.version), VERSION_MAX_LEN); in SaveHeader()
254 out.write(reinterpret_cast<const char *>(&indexHeader.fileSize), sizeof(uint32_t)); in SaveHeader()
255 out.write(reinterpret_cast<const char *>(&indexHeader.limitKeyConfigSize), sizeof(uint32_t)); in SaveHeader()
261 out.write(reinterpret_cast<const char *>(iter.second.keyTag), TAG_LEN); in SaveLimitKeyConfigs()
262 out.write(reinterpret_cast<const char *>(&iter.second.offset), sizeof(uint32_t)); in SaveLimitKeyConfigs()
263 out.write(reinterpret_cast<const char *>(&iter.second.keyCount), sizeof(uint32_t)); in SaveLimitKeyConfigs()
[all …]
Dresource_append.cpp352 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem()
353 out.write(reinterpret_cast<const char *>(resourceItem.GetName().c_str()), size); in WriteResourceItem()
356 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem()
357 out.write(reinterpret_cast<const char *>(resourceItem.GetLimitKey().c_str()), size); in WriteResourceItem()
360 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem()
361 out.write(reinterpret_cast<const char *>(resourceItem.GetFilePath().c_str()), size); in WriteResourceItem()
364 out.write(reinterpret_cast<const char *>(&type), sizeof(int32_t)); in WriteResourceItem()
367 out.write(reinterpret_cast<const char *>(&size), sizeof(int32_t)); in WriteResourceItem()
369 out.write(reinterpret_cast<const char *>(&keyParam.keyType), sizeof(int32_t)); in WriteResourceItem()
370 out.write(reinterpret_cast<const char *>(&keyParam.value), sizeof(int32_t)); in WriteResourceItem()
[all …]
/developtools/integration_verification/DeployDevice/resource/L1/dv300_shequ/
Dupdate.txt2 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/
DFileUtils.java114 output.write(buffer, 0, read); in read()
129 public static void write(byte[] content, File output) throws IOException { in write() method in FileUtils
132 out.write(con); in write()
205 dos.write(buf, 0, temp); in writeFileToDos()
225 dos.write(data); in writeByteToDos()
256 ops.write(signHeadByte, 0, signHeadByte.length); in writeByteToOutFile()
350 writer.write(source); in writeStringToFile()
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/
DliteOsUpgrade_L1_shequ_dv_app.py171 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/
Dstream_plugin.cpp80 if (resultWriter_->write != nullptr) { in Loop()
81 resultWriter_->write(resultWriter_, buffer_.data(), buffer_.size()); in Loop()
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_writer.cpp120 stream_.write(reinterpret_cast<CharPtr>(&header_), sizeof(header_)); in WriteHeader()
133 stream_.write(reinterpret_cast<CharPtr>(&dataLen), sizeof(dataLen)); in Write()
139 stream_.write(reinterpret_cast<ConstCharPtr>(data), size); in Write()
205 stream_.write(reinterpret_cast<CharPtr>(&header_), sizeof(header_)); in Finish()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dresult_transporter.cpp67 if (writer_ == nullptr || writer_->write == nullptr) { in Write()
85 writer_->write(writer_, buffer_.data(), buffer_.size()); in Write()

12345