/system/core/fs_mgr/libfs_avb/ |
D | sha.h | 34 void update(const uint8_t* data, size_t data_size) { in update() argument 35 SHA256_Update(&sha256_ctx, data, data_size); in update() 54 void update(const uint8_t* data, size_t data_size) { in update() argument 55 SHA512_Update(&sha512_ctx, data, data_size); in update()
|
/system/core/fs_mgr/libdm/ |
D | dm.cpp | 255 io->data_size = ioctl_buffer.size(); in LoadTableAndActivate() 286 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableTargets() local 287 auto buffer = std::unique_ptr<void, void (*)(void*)>(calloc(1, data_size), free); in GetAvailableTargets() 298 io->data_size = data_size; in GetAvailableTargets() 309 LOG(INFO) << data_size << " is not enough memory to list all dm targets"; in GetAvailableTargets() 314 if (io->data_size == sizeof(*io)) { in GetAvailableTargets() 321 data_size = io->data_size - next; in GetAvailableTargets() 324 while (next && data_size) { in GetAvailableTargets() 330 data_size -= vers->next; in GetAvailableTargets() 363 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableDevices() local [all …]
|
/system/core/adb/ |
D | transport_benchmark.cpp | 81 size_t data_size = state.range(0); in BM_Connection_Unidirectional() local 85 packet->msg.data_length = data_size; in BM_Connection_Unidirectional() 86 packet->payload.resize(data_size); in BM_Connection_Unidirectional() 88 memset(&packet->payload[0], 0xff, data_size); in BM_Connection_Unidirectional() 92 while (received_bytes < data_size) { in BM_Connection_Unidirectional() 155 size_t data_size = state.range(0); in BM_Connection_Echo() local 159 packet->msg.data_length = data_size; in BM_Connection_Echo() 160 packet->payload.resize(data_size); in BM_Connection_Echo() 162 memset(&packet->payload[0], 0xff, data_size); in BM_Connection_Echo() 166 while (received_bytes < data_size) { in BM_Connection_Echo()
|
/system/bt/stack/test/common/ |
D | stack_test_packet_utils.cc | 31 auto data_size = static_cast<uint16_t>(data.size()); in CreateL2capDataPacket() local 32 result.push_back(static_cast<uint8_t>(data_size)); in CreateL2capDataPacket() 33 result.push_back(static_cast<uint8_t>(data_size >> 8)); in CreateL2capDataPacket() 50 auto data_size = static_cast<uint16_t>(data.size()); in CreateAclPacket() local 51 result.push_back(static_cast<uint8_t>(data_size)); in CreateAclPacket() 52 result.push_back(static_cast<uint8_t>(data_size >> 8)); in CreateAclPacket()
|
/system/extras/libfec/ |
D | fec_open.cpp | 94 return find_offset(f->data_size, 0, offset, get_verity_size, in find_verity_offset() 149 f->data_size = header.inp_size; in parse_ecc_header() 150 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header() 307 debug("size = %" PRIu64 ", flags = %d", f->data_size, f->flags); in load_verity() 309 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; in load_verity() 349 debug("size = %" PRIu64, f->data_size); in load_ecc() 351 uint64_t offset = f->data_size - FEC_BLOCKSIZE; in load_ecc() 400 f->data_size = 0; in reset_handle() 440 check(f->data_size < f->size); in fec_verity_get_metadata() 441 check(f->data_size <= f->verity.hashtree.hash_start); in fec_verity_get_metadata() [all …]
|
D | fec_verity.cpp | 217 check(hash_start + hash_size <= f->data_size); in verify_tree() 264 check(hash_data_offset < f->data_size); in verify_tree() 265 check(hash_data_offset + hash_data_blocks * FEC_BLOCKSIZE <= f->data_size); in verify_tree() 390 if (parse_uint64(token.c_str(), f->data_size / FEC_BLOCKSIZE, in parse_table() 398 if (parse_uint64(token.c_str(), f->data_size / FEC_BLOCKSIZE, in parse_table() 443 check(hash_start < f->data_size); in parse_table() 471 check(f->data_size > VERITY_METADATA_SIZE); in rewrite_metadata() 472 check(offset <= f->data_size - VERITY_METADATA_SIZE); in rewrite_metadata() 527 } else if (offset + header->length >= f->data_size) { in validate_header() 540 check(f->data_size > VERITY_METADATA_SIZE); in verity_parse_header() [all …]
|
D | fec_read.cpp | 72 if (unlikely(offset >= f->data_size)) { in is_erasure() 90 if (hashtree.hash_data.empty() || unlikely(offset >= f->data_size)) { in is_zero() 239 check(offset < f->data_size); in ecc_read() 240 check(offset + count <= f->data_size); in ecc_read() 290 check(offset < f->data_size); in verity_read() 291 check(offset + count <= f->data_size); in verity_read() 529 get_max_count(offset, count, f->data_size), offset, in fec_pread() 534 count = get_max_count(offset, count, f->data_size); in fec_pread()
|
D | avb_utils.cpp | 126 f->data_size = hashtree_descriptor.fec_offset; in parse_avb_image() 128 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_avb_image() 156 f->data_size = hashtree.hash_start; in parse_avb_image()
|
/system/update_engine/payload_generator/ |
D | bzip.cc | 44 uint32_t data_size = buf_size; in BzipCompress() local 47 &data_size, in BzipCompress() 56 out->resize(data_size); in BzipCompress()
|
D | payload_generation_config_android.cc | 85 uint64_t data_size = in VerifyVerityConfig() local 87 uint64_t tree_size = hash_tree_builder.CalculateSize(data_size); in VerifyVerityConfig() 91 hash_tree_builder.Initialize(data_size, part.verity.hash_tree_salt)); in VerifyVerityConfig() 96 data_end = offset + data_size; in VerifyVerityConfig()
|
/system/extras/simpleperf/ |
D | event_fd.cpp | 216 size_t data_size = GetAvailableMmapDataSize(data_pos); in GetAvailableMmapData() local 217 std::vector<char> data(data_size); in GetAvailableMmapData() 218 if (data_size > 0) { in GetAvailableMmapData() 219 size_t copy_size = std::min(data_size, mmap_data_buffer_size_ - data_pos); in GetAvailableMmapData() 221 if (copy_size < data_size) { in GetAvailableMmapData() 222 memcpy(&data[copy_size], mmap_data_buffer_, data_size - copy_size); in GetAvailableMmapData() 224 DiscardMmapData(data_size); in GetAvailableMmapData() 304 size_t data_size = write_head - read_head; in GetAvailableAuxData() local 306 if (data_size <= aux_buffer_size_ - data_pos) { in GetAvailableAuxData() 307 *size1 = data_size; in GetAvailableAuxData() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_sbc_decoder.cc | 63 size_t data_size = p_buf->len; in a2dp_sbc_decoder_decode_packet() local 65 if (data_size == 0) { in a2dp_sbc_decoder_decode_packet() 71 data_size -= 1; in a2dp_sbc_decoder_decode_packet() 74 uint32_t oi_size = data_size; in a2dp_sbc_decoder_decode_packet()
|
/system/media/audio/include/system/ |
D | sound_trigger.h | 105 unsigned int data_size; /* size of opaque model data */ member 169 unsigned int data_size; /* size of opaque event data */ member 218 unsigned int data_size; /* size of opaque capture configuration data */ member 229 unsigned int data_size; /* size of event data if any. Size of updated sound model if member
|
/system/bt/packet/avrcp/ |
D | register_notification_packet.cc | 143 size_t data_size = 0; in size() local 149 data_size = 1; in size() 152 data_size = 8; in size() 155 data_size = 4; in size() 161 data_size = 0; in size() 164 data_size = 0; in size() 167 data_size = 4; in size() 170 data_size = 2; in size() 177 return VendorPacket::kMinSize() + 1 + data_size; in size()
|
/system/extras/verity/ |
D | build_verity_tree_utils.cpp | 23 size_t verity_tree_blocks(uint64_t data_size, size_t block_size, in verity_tree_blocks() argument 25 uint64_t level_blocks = div_round_up(data_size, block_size); in verity_tree_blocks()
|
D | build_verity_tree_utils.h | 25 size_t verity_tree_blocks(uint64_t data_size, size_t block_size,
|
/system/nvram/core/ |
D | crypto_boringssl.cpp | 30 size_t data_size, in SHA256() argument 36 ::SHA256(data, data_size, buffer); in SHA256()
|
D | crypto.h | 38 size_t data_size,
|
/system/bt/gd/shim/test_data/ |
D | dumpsys_test_data_bin.h | 8 extern const size_t data_size; 64 const size_t bluetooth::test::data_size = 884;
|
/system/media/audio_utils/tests/ |
D | logplot_tests.cpp | 27 size_t data_size = sizeof(data) / sizeof(*data); in main() local 29 for (size_t i = 0; i < data_size; i++) { in main()
|
/system/bt/hci/src/ |
D | hci_packet_factory.cc | 32 static BT_HDR* make_packet(size_t data_size); 191 static BT_HDR* make_packet(size_t data_size) { in make_packet() argument 192 BT_HDR* ret = (BT_HDR*)buffer_allocator->alloc(sizeof(BT_HDR) + data_size); in make_packet() 197 ret->len = data_size; in make_packet()
|
/system/update_engine/payload_consumer/ |
D | verity_writer_android.cc | 121 uint64_t data_size, in EncodeFEC() argument 127 TEST_AND_RETURN_FALSE(data_size % block_size == 0); in EncodeFEC() 131 uint64_t rounds = utils::DivRoundUp(data_size / block_size, rs_n); in EncodeFEC() 155 if (offset < data_size) { in EncodeFEC()
|
D | verity_writer_android.h | 45 uint64_t data_size,
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 470 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_verity_table) == 0) { in fs_mgr_setup_verity() 479 … if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_verity_table) == 0) { in fs_mgr_setup_verity() 485 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, format_legacy_verity_table) == in fs_mgr_setup_verity() 495 if (load_verity_table(dm, mount_point, verity.data_size, ¶ms, in fs_mgr_setup_verity() 517 int err = read_partition(verity_blk_name.c_str(), verity.data_size); in fs_mgr_setup_verity()
|
/system/bt/btif/include/ |
D | btif_sock_thread.h | 52 const unsigned char* cmd_data, int data_size,
|