Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 50) sorted by relevance

12

/system/core/fs_mgr/libdm/
Ddm.cpp130 io->data_size = ioctl_buffer.size(); in LoadTableAndActivate()
161 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableTargets() local
162 auto buffer = std::unique_ptr<void, void (*)(void*)>(calloc(1, data_size), free); in GetAvailableTargets()
173 io->data_size = data_size; in GetAvailableTargets()
184 LOG(INFO) << data_size << " is not enough memory to list all dm targets"; in GetAvailableTargets()
189 if (io->data_size == sizeof(*io)) { in GetAvailableTargets()
196 data_size = io->data_size - next; in GetAvailableTargets()
199 while (next && data_size) { in GetAvailableTargets()
205 data_size -= vers->next; in GetAvailableTargets()
224 uint32_t data_size = sizeof(struct dm_ioctl) + payload_size; in GetAvailableDevices() local
[all …]
/system/core/fs_mgr/libfs_avb/
Dsha.h34 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/adb/
Dtransport_benchmark.cpp81 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/
Dstack_test_packet_utils.cc31 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/
Dfec_open.cpp92 return find_offset(f->data_size, 0, offset, get_verity_size, in find_verity_offset()
147 f->data_size = header.inp_size; in parse_ecc_header()
148 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header()
305 debug("size = %" PRIu64 ", flags = %d", f->data_size, f->flags); in load_verity()
307 uint64_t offset = f->data_size - VERITY_METADATA_SIZE; in load_verity()
347 debug("size = %" PRIu64, f->data_size); in load_ecc()
349 uint64_t offset = f->data_size - FEC_BLOCKSIZE; in load_ecc()
398 f->data_size = 0; in reset_handle()
448 check(f->data_size < f->size); in fec_verity_get_metadata()
449 check(f->data_size <= f->verity.hash_start); in fec_verity_get_metadata()
[all …]
Dfec_verity.cpp201 check(v->hash_start + v->hash_size <= f->data_size); in verify_tree()
247 check(v->hash_data_offset < f->data_size); in verify_tree()
249 f->data_size); in verify_tree()
379 if (parse_uint64(token.c_str(), f->data_size / FEC_BLOCKSIZE, in parse_table()
387 if (parse_uint64(token.c_str(), f->data_size / FEC_BLOCKSIZE, in parse_table()
435 check(v->hash_start < f->data_size); in parse_table()
480 check(f->data_size > VERITY_METADATA_SIZE); in rewrite_metadata()
481 check(offset <= f->data_size - VERITY_METADATA_SIZE); in rewrite_metadata()
536 } else if (offset + header->length >= f->data_size) { in validate_header()
549 check(f->data_size > VERITY_METADATA_SIZE); in verity_parse_header()
[all …]
Dfec_read.cpp72 if (unlikely(offset >= f->data_size)) { in is_erasure()
91 if (!v->hash || 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()
534 get_max_count(offset, count, f->data_size), offset, in fec_pread()
539 count = get_max_count(offset, count, f->data_size); in fec_pread()
/system/update_engine/payload_generator/
Dbzip.cc44 uint32_t data_size = buf_size; in BzipCompress() local
47 &data_size, in BzipCompress()
56 out->resize(data_size); in BzipCompress()
Dpayload_generation_config_android.cc83 uint64_t data_size = in VerifyVerityConfig() local
85 uint64_t tree_size = hash_tree_builder.CalculateSize(data_size); in VerifyVerityConfig()
89 hash_tree_builder.Initialize(data_size, part.verity.hash_tree_salt)); in VerifyVerityConfig()
94 data_end = offset + data_size; in VerifyVerityConfig()
/system/bt/stack/a2dp/
Da2dp_sbc_decoder.cc64 size_t data_size = p_buf->len; in a2dp_sbc_decoder_decode_packet() local
66 if (data_size == 0) { in a2dp_sbc_decoder_decode_packet()
72 data_size -= 1; in a2dp_sbc_decoder_decode_packet()
75 uint32_t oi_size = data_size; in a2dp_sbc_decoder_decode_packet()
/system/media/audio/include/system/
Dsound_trigger.h105 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/
Dregister_notification_packet.cc143 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/simpleperf/
Devent_fd.cpp209 size_t data_size = GetAvailableMmapDataSize(data_pos); in GetAvailableMmapData() local
210 std::vector<char> data(data_size); in GetAvailableMmapData()
211 if (data_size > 0) { in GetAvailableMmapData()
212 size_t copy_size = std::min(data_size, mmap_data_buffer_size_ - data_pos); in GetAvailableMmapData()
214 if (copy_size < data_size) { in GetAvailableMmapData()
215 memcpy(&data[copy_size], mmap_data_buffer_, data_size - copy_size); in GetAvailableMmapData()
217 DiscardMmapData(data_size); in GetAvailableMmapData()
DRecordReadThread_test.cpp160 size_t data_size = records.size() * records[0]->size(); in TEST() local
161 std::vector<char> buffer(AlignToPowerOfTwo(data_size)); in TEST()
176 .Times(1).WillOnce(Return(data_size)); in TEST()
177 EXPECT_CALL(event_fd, DiscardMmapData(Eq(data_size))).Times(1); in TEST()
204 size_t data_size = records_per_fd * records_[0]->size(); in CreateFakeEventFds() local
205 size_t buffer_size = AlignToPowerOfTwo(data_size); in CreateFakeEventFds()
215 .WillOnce(Return(data_size)); in CreateFakeEventFds()
216 EXPECT_CALL(*event_fds_[i], DiscardMmapData(Eq(data_size))).Times(1); in CreateFakeEventFds()
/system/extras/verity/
Dbuild_verity_tree_utils.cpp23 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()
Dbuild_verity_tree_utils.h25 size_t verity_tree_blocks(uint64_t data_size, size_t block_size,
/system/nvram/core/
Dcrypto_boringssl.cpp30 size_t data_size, in SHA256() argument
36 ::SHA256(data, data_size, buffer); in SHA256()
Dcrypto.h38 size_t data_size,
/system/media/audio_utils/tests/
Dlogplot_tests.cpp27 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/
Dhci_packet_factory.cc32 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/
Dverity_writer_android.cc121 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()
Dverity_writer_android.h45 uint64_t data_size,
/system/vold/
DDevmapper.h32 static void ioctlInit(struct dm_ioctl* io, size_t data_size, const char* name, unsigned flags);
/system/bt/btif/include/
Dbtif_sock_thread.h52 const unsigned char* cmd_data, int data_size,
/system/extras/libfec/include/fec/
Dio.h59 uint64_t data_size; member
73 uint64_t data_size; member

12