Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 102) sorted by relevance

12345

/developtools/profiler/device/services/profiler_service/test/unittest/
Dtrace_file_reader_test.cpp75 long bytes = writer->Write(pluginData); variable
76 EXPECT_EQ(bytes, sizeof(uint32_t) + pluginData.ByteSizeLong());
77 HILOG_INFO(LOG_CORE, "[%d/%d] write %ld bytes to %s.", i, n, bytes, path.c_str());
87 long bytes = reader->Read(data); variable
89 HILOG_INFO(LOG_CORE, "read %ld bytes from %s", bytes, path.c_str());
110 long bytes = writer->Write(pluginData); variable
111 EXPECT_EQ(bytes, sizeof(uint32_t) + pluginData.ByteSizeLong());
112 HILOG_INFO(LOG_CORE, "[%d/%d] write %ld bytes to %s.", i, n, bytes, path.c_str());
120 long bytes = 0; variable
123 bytes = reader->Read(data);
[all …]
/developtools/hiperf/test/unittest/resource/testdata/
Dehdr_from_readelf_3212 程序头起点: 52 (bytes into file)
13 Start of section headers: 17580 (bytes into file)
15 Size of this header: 52 (bytes)
16 Size of program headers: 32 (bytes)
18 Size of section headers: 40 (bytes)
Dehdr_from_readelf_6412 程序头起点: 64 (bytes into file)
13 Start of section headers: 22296 (bytes into file)
15 Size of this header: 64 (bytes)
16 Size of program headers: 56 (bytes)
18 Size of section headers: 64 (bytes)
/developtools/profiler/device/plugins/native_daemon/test/unittest/resource/testdata/
Dehdr_from_readelf_3212 程序头起点: 52 (bytes into file)
13 Start of section headers: 17580 (bytes into file)
15 Size of this header: 52 (bytes)
16 Size of program headers: 32 (bytes)
18 Size of section headers: 40 (bytes)
Dehdr_from_readelf_6412 程序头起点: 64 (bytes into file)
13 Start of section headers: 22296 (bytes into file)
15 Size of this header: 64 (bytes)
16 Size of program headers: 56 (bytes)
18 Size of section headers: 64 (bytes)
/developtools/smartperf_host/ide/src/hdc/common/
DObjectToMemorySize.ts51 let bytes = 0;
57 bytes += this.objectToSize(key);
63 bytes += this.objectToSize(object[key]);
65 return bytes;
/developtools/profiler/host/smartperf/ide/src/hdc/common/
DObjectToMemorySize.ts51 let bytes = 0;
57 bytes += this.objectToSize(key);
63 bytes += this.objectToSize(object[key]);
65 return bytes;
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/
DUnsignedDecimalUtil.java69 byte[] bytes = new byte[] { in setUnsignedInt()
75 bf.put(bytes); in setUnsignedInt()
85 byte[] bytes = new byte[] { in setUnsignedShort()
89 bf.put(bytes); in setUnsignedShort()
DZipEntryHeader.java123 public static ZipEntryHeader getZipEntryHeader(byte[] bytes) throws ZipException { in getZipEntryHeader() argument
125 ByteBuffer bf = ByteBuffer.wrap(bytes); in getZipEntryHeader()
149 public void readFileName(byte[] bytes) { in readFileName() argument
150 ByteBuffer bf = ByteBuffer.wrap(bytes); in readFileName()
164 public void readExtra(byte[] bytes) { in readExtra() argument
165 ByteBuffer bf = ByteBuffer.wrap(bytes); in readExtra()
DEndOfCentralDirectory.java101 public static Optional<EndOfCentralDirectory> getEOCDByBytes(byte[] bytes) { in getEOCDByBytes() argument
102 return getEOCDByBytes(bytes, 0); in getEOCDByBytes()
112 public static Optional<EndOfCentralDirectory> getEOCDByBytes(byte[] bytes, int offset) { in getEOCDByBytes() argument
114 int remainingDataLen = bytes.length - offset; in getEOCDByBytes()
118 ByteBuffer bf = ByteBuffer.wrap(bytes, offset, remainingDataLen); in getEOCDByBytes()
DDataDescriptor.java65 public static DataDescriptor getDataDescriptor(byte[] bytes) throws ZipException { in getDataDescriptor() argument
66 if (bytes.length != DES_LENGTH) { in getDataDescriptor()
69 ByteBuffer bf = ByteBuffer.wrap(bytes); in getDataDescriptor()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/verify/
DVerifyElf.java201 byte[] bytes = FileUtils.readFile(bin); in verifyElf()
202 ElfBlockData elfSignBlockData = getElfSignBlockData(bytes); in verifyElf()
205 Map<Character, SigningBlock> signBlock = getSignBlock(bytes, elfSignBlockData); in verifyElf()
249 private ElfBlockData getElfSignBlockData(byte[] bytes) throws IOException { in getElfSignBlockData() argument
250 int offset = bytes.length - HwSignHead.SIGN_HEAD_LEN; in getElfSignBlockData()
251 byte[] magicByte = readByteArrayOffset(bytes, offset, HwSignHead.ELF_MAGIC.length); in getElfSignBlockData()
253 byte[] versionByte = readByteArrayOffset(bytes, offset, HwSignHead.VERSION.length); in getElfSignBlockData()
266 byte[] blockSizeByte = readByteArrayOffset(bytes, offset, intByteLength); in getElfSignBlockData()
268 byte[] blockNumByte = readByteArrayOffset(bytes, offset, intByteLength); in getElfSignBlockData()
275 int blockStart = bytes.length - HwSignHead.SIGN_HEAD_LEN - blockSize; in getElfSignBlockData()
[all …]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/datastructure/
DHapInfoSegment.java105 public static HapInfoSegment fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
106 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
107 bf.put(bytes); in fromByteArray()
113 if (bytes.length <= MAGIC_NUM_BYTES) { in fromByteArray()
116 byte[] hapSignInfoByteArray = new byte[bytes.length - MAGIC_NUM_BYTES]; in fromByteArray()
DFsVerityInfoSegment.java118 public static FsVerityInfoSegment fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
119 if (bytes.length != FS_VERITY_INFO_SEGMENT_SIZE) { in fromByteArray()
122 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
123 bf.put(bytes); in fromByteArray()
DSignedFilePos.java103 public static SignedFilePos fromByteArray(byte[] bytes) { in fromByteArray() argument
104 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
105 bf.put(bytes); in fromByteArray()
DSegmentHeader.java121 public static SegmentHeader fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
122 if (bytes.length != SEGMENT_HEADER_LENGTH) { in fromByteArray()
126 bf.put(bytes); in fromByteArray()
DElfSignBlock.java167 public static ElfSignBlock fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
168 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
169 bf.put(bytes); in fromByteArray()
184 if (bytes.length != Integer.BYTES * 2 + inTreeLength + Integer.BYTES * 2 + inFsdLength) { in fromByteArray()
DCodeSignBlockHeader.java134 public static CodeSignBlockHeader fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
135 if (bytes.length != size()) { in fromByteArray()
138 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
139 bf.put(bytes); in fromByteArray()
DMerkleTreeExtension.java117 public static MerkleTreeExtension fromByteArray(byte[] bytes) throws VerifyCodeSignException { in fromByteArray() argument
118 ByteBuffer bf = ByteBuffer.allocate(bytes.length).order(ByteOrder.LITTLE_ENDIAN); in fromByteArray()
119 bf.put(bytes); in fromByteArray()
/developtools/profiler/device/plugins/native_hook/test/unittest/
Dstack_writer_test.cpp169 long bytes = BUFFER_SIZE; variable
174 write->DoStats(bytes);
177 EXPECT_EQ((int)write->bytesCount_, bytes);
178 EXPECT_EQ((int)write->bytesPending_, bytes);
183 write->DoStats(bytes);
186 EXPECT_EQ((int)write->bytesCount_, bytes + bytes);
187 EXPECT_EQ((int)write->bytesPending_, bytes);
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/memory_data/
Dmemory_plugin_result.proto92 uint64 size = 6; // bytes
104 uint64 size = 4; // bytes
116 uint64 used_gpu_size = 4; // bytes
121 uint64 all_gpu_size = 2; // bytes
127 uint64 size = 2; // bytes
139 uint64 gpu_purgeable_size = 4; // bytes
151 uint64 gpu_limit_size = 9; // bytes
152 uint64 gpu_used_size = 10; // bytes
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
DProfileUtils.java39 byte[] bytes = FileUtils.readFile(input); in getProvisionContent()
40 String json = JsonParser.parseString(new String(bytes, StandardCharsets.UTF_8)).toString(); in getProvisionContent()
41 …Provision provision = FileUtils.GSON.fromJson(new String(bytes, StandardCharsets.UTF_8), Provision… in getProvisionContent()
/developtools/ace_js2bundle/ace-loader/src/
DgenBin-plugin.js125 const bytes = str.split(',')
126 const b = Buffer.alloc(bytes.length)
127 for (let i = 0; i < bytes.length; i++) {
128 b[i] = bytes[i]
/developtools/profiler/device/plugins/hilog_plugin/src/
Dfile_cache.cpp40 long FileCache::Write(char* bytes, int32_t len) in Write() argument
42 CHECK_TRUE((len >= 0) && (bytes != nullptr), -1, "FileCache:%s param invalid!", __func__); in Write()
49 size_t len = fwrite(bytes, sizeof(char), dataLen - writedLen, fp_); in Write()
/developtools/profiler/device/plugins/native_hook/src/
Dstack_writer.cpp52 void StackWriter::DoStats(long bytes) in DoStats() argument
55 bytesCount_ += bytes; in DoStats()
56 bytesPending_ += bytes; in DoStats()

12345