| /developtools/profiler/device/services/profiler_service/test/unittest/ |
| D | trace_file_reader_test.cpp | 75 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/ |
| D | ehdr_from_readelf_32 | 12 程序头起点: 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)
|
| D | ehdr_from_readelf_64 | 12 程序头起点: 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/ |
| D | ehdr_from_readelf_32 | 12 程序头起点: 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)
|
| D | ehdr_from_readelf_64 | 12 程序头起点: 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/ |
| D | ObjectToMemorySize.ts | 51 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/ |
| D | ObjectToMemorySize.ts | 51 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/ |
| D | UnsignedDecimalUtil.java | 69 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()
|
| D | ZipEntryHeader.java | 123 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()
|
| D | EndOfCentralDirectory.java | 101 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()
|
| D | DataDescriptor.java | 65 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/ |
| D | VerifyElf.java | 201 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/ |
| D | HapInfoSegment.java | 105 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()
|
| D | FsVerityInfoSegment.java | 118 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()
|
| D | SignedFilePos.java | 103 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()
|
| D | SegmentHeader.java | 121 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()
|
| D | ElfSignBlock.java | 167 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()
|
| D | CodeSignBlockHeader.java | 134 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()
|
| D | MerkleTreeExtension.java | 117 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/ |
| D | stack_writer_test.cpp | 169 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/ |
| D | memory_plugin_result.proto | 92 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/ |
| D | ProfileUtils.java | 39 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/ |
| D | genBin-plugin.js | 125 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/ |
| D | file_cache.cpp | 40 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/ |
| D | stack_writer.cpp | 52 void StackWriter::DoStats(long bytes) in DoStats() argument 55 bytesCount_ += bytes; in DoStats() 56 bytesPending_ += bytes; in DoStats()
|