Home
last modified time | relevance | path

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

12

/packages/modules/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()
/packages/modules/Virtualization/authfs/src/fsverity/
Dcommon.rs53 pub fn merkle_tree_height(data_size: u64) -> Option<u64> { in merkle_tree_height()
55 let hash_pages = divide_roundup(data_size, hashes_per_node * CHUNK_SIZE); in merkle_tree_height()
60 pub fn merkle_tree_size(mut data_size: u64) -> u64 { in merkle_tree_size()
62 while data_size > CHUNK_SIZE { in merkle_tree_size()
63 let hash_size = divide_roundup(data_size, CHUNK_SIZE) * SHA256_HASH_SIZE as u64; in merkle_tree_size()
66 data_size = hash_storage_size; in merkle_tree_size()
/packages/modules/Virtualization/libs/devicemapper/src/
Dverity.rs56 data_size: u64, field
75 data_size: 0, in default()
88 self.data_size = size; in data_device()
137 let data_size = self.data_size; in build() localVariable
138 let num_data_blocks = data_size / data_block_size; in build()
194 header.length = data_size / 512; // number of 512-byte sectors in build()
/packages/modules/Bluetooth/system/stack/test/common/
Dstack_test_packet_utils.cc35 auto data_size = static_cast<uint16_t>(data.size()); in CreateL2capDataPacket() local
36 result.push_back(static_cast<uint8_t>(data_size)); in CreateL2capDataPacket()
37 result.push_back(static_cast<uint8_t>(data_size >> 8)); in CreateL2capDataPacket()
54 auto data_size = static_cast<uint16_t>(data.size()); in CreateAclPacket() local
55 result.push_back(static_cast<uint8_t>(data_size)); in CreateAclPacket()
56 result.push_back(static_cast<uint8_t>(data_size >> 8)); in CreateAclPacket()
/packages/modules/Bluetooth/system/packet/avrcp/
Dregister_notification_packet.cc159 size_t data_size = 0; in size() local
165 data_size = 1; in size()
168 data_size = 8; in size()
171 data_size = 4; in size()
174 data_size = sizeof(uint8_t) + in size()
179 data_size = 0; in size()
182 data_size = 0; in size()
185 data_size = 4; in size()
188 data_size = 2; in size()
195 return VendorPacket::kMinSize() + 1 + data_size; in size()
/packages/modules/Virtualization/compos/compos_key_helper/
Dcompos_key.cpp37 Result<Signature> sign(const PrivateKey& private_key, const uint8_t* data, size_t data_size) { in sign() argument
39 if (!ED25519_sign(result.data(), data, data_size, private_key.data())) { in sign()
46 size_t data_size) { in verify() argument
47 return ED25519_verify(data, data_size, signature.data(), public_key.data()) == 1; in verify()
Dcompos_key.h40 size_t data_size);
43 size_t data_size);
/packages/modules/StatsD/statsd/tests/e2e/
DPartialBucket_e2e_test.cpp115 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST_F()
133 ASSERT_EQ(0, report.metrics(0).count_metrics().data_size()); in TEST_F()
154 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
187 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
218 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
250 ASSERT_EQ(1, report.metrics(0).count_metrics().data_size()); in TEST_F()
279 ASSERT_EQ(2, report.metrics(0).value_metrics().data_size()); in TEST_F()
310 ASSERT_EQ(2, report.metrics(0).value_metrics().data_size()); in TEST_F()
339 ASSERT_EQ(2, report.metrics(0).value_metrics().data_size()); in TEST_F()
365 ASSERT_EQ(2, report.metrics(0).gauge_metrics().data_size()); in TEST_F()
[all …]
DConfigUpdate_e2e_test.cpp229 ASSERT_EQ(eventRemoveBefore.event_metrics().data_size(), 2); in TEST_F()
241 ASSERT_EQ(eventPersistBefore.event_metrics().data_size(), 3); in TEST_F()
256 ASSERT_EQ(eventChangeBefore.event_metrics().data_size(), 1); in TEST_F()
268 ASSERT_EQ(eventChangeAfter.event_metrics().data_size(), 1); in TEST_F()
277 ASSERT_EQ(eventNewAfter.event_metrics().data_size(), 1); in TEST_F()
286 ASSERT_EQ(eventPersistAfter.event_metrics().data_size(), 3); in TEST_F()
469 ASSERT_EQ(countRemoveBefore.count_metrics().data_size(), 1); in TEST_F()
480 ASSERT_EQ(countMetrics.data_size(), 2); in TEST_F()
499 ASSERT_EQ(countChangeBefore.count_metrics().data_size(), 1); in TEST_F()
511 ASSERT_EQ(countChangeAfter.count_metrics().data_size(), 1); in TEST_F()
[all …]
DWakelockDuration_e2e_test.cpp139 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
174 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
226 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
265 ASSERT_EQ(0, reports.reports(0).metrics(0).duration_metrics().data_size()); in TEST()
289 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
335 ASSERT_EQ(reports.reports(0).metrics(0).duration_metrics().data_size(), 1); in TEST()
DStringReplace_e2e_test.cpp126 ASSERT_EQ(3, countMetrics.data_size()); in TEST()
224 ASSERT_EQ(gaugeMetrics.data_size(), 1); in TEST()
284 ASSERT_EQ(gaugeMetrics.data_size(), 1); in TEST()
351 ASSERT_EQ(gaugeMetrics.data_size(), 1); in TEST()
450 ASSERT_EQ(1, countMetrics.data_size()); in TEST()
592 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
672 ASSERT_EQ(valueMetrics.data_size(), 1); in TEST()
682 ASSERT_EQ(valueMetrics.data_size(), 1); in TEST()
DEventMetric_e2e_test.cpp93 ASSERT_EQ(wakelockEventMetricReport.event_metrics().data_size(), 3); in TEST_F()
163 ASSERT_EQ(testAtomEventMetricReport.event_metrics().data_size(), 3); in TEST_F()
246 ASSERT_EQ(testAtomEventMetricReport.event_metrics().data_size(), 1); in TEST_F()
340 ASSERT_EQ(metricReport.event_metrics().data_size(), 46); in TEST_F()
DKllMetric_e2e_test.cpp97 ASSERT_EQ(metricReport.kll_metrics().data_size(), 1); in TEST_F()
149 ASSERT_EQ(metricReport.kll_metrics().data_size(), 2); in TEST_F()
278 ASSERT_EQ(kllMetrics.data_size(), 2); in TEST_F()
DCountMetric_e2e_test.cpp258 ASSERT_EQ(1, countMetrics.data_size()); in TEST()
388 ASSERT_EQ(3, countMetrics.data_size()); in TEST()
570 ASSERT_EQ(3, countMetrics.data_size()); in TEST()
751 ASSERT_EQ(6, countMetrics.data_size()); in TEST()
995 ASSERT_EQ(7, countMetrics.data_size()); in TEST()
1145 ASSERT_EQ(1, countMetrics.data_size()); in TEST()
1215 ASSERT_EQ(1, countMetrics.data_size()); in TEST()
1280 ASSERT_EQ(1, countMetrics.data_size()); in TEST()
1345 ASSERT_EQ(3, countMetrics.data_size()); in TEST()
1430 ASSERT_EQ(2, countMetrics.data_size()); in TEST()
[all …]
DGaugeMetric_e2e_push_test.cpp202 ASSERT_EQ(2, gaugeMetrics.data_size()); in TEST_F()
374 ASSERT_EQ(1, gaugeMetrics.data_size()); in TEST_F()
486 ASSERT_EQ(2, gaugeMetrics.data_size()); in TEST_F()
561 ASSERT_EQ(5, gaugeMetrics.data_size()); in TEST_F()
657 ASSERT_EQ(2, gaugeMetrics.data_size()); in TEST_F()
DDurationMetric_e2e_test.cpp104 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
186 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
364 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
455 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
555 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
715 ASSERT_EQ(1, durationMetrics.data_size()); in TEST()
838 ASSERT_EQ(3, durationMetrics.data_size()); in TEST()
999 ASSERT_EQ(3, durationMetrics.data_size()); in TEST()
1156 ASSERT_EQ(2, durationMetrics.data_size()); in TEST()
1351 ASSERT_EQ(9, durationMetrics.data_size()); in TEST()
[all …]
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_sbc_decoder.cc69 size_t data_size = p_buf->len; in a2dp_sbc_decoder_decode_packet() local
71 if (data_size == 0) { in a2dp_sbc_decoder_decode_packet()
77 data_size -= 1; in a2dp_sbc_decoder_decode_packet()
80 uint32_t oi_size = data_size; in a2dp_sbc_decoder_decode_packet()
/packages/modules/StatsD/statsd/tests/metrics/
DEventMetricProducer_test.cpp100 ASSERT_EQ(2, report.event_metrics().data_size()); in TEST_F()
143 ASSERT_EQ(1, report.event_metrics().data_size()); in TEST_F()
197 ASSERT_EQ(1, report.event_metrics().data_size()); in TEST_F()
236 ASSERT_EQ(2, report.event_metrics().data_size()); in TEST_F()
289 ASSERT_EQ(2, report.event_metrics().data_size()); in TEST_F()
338 ASSERT_EQ(2, report.event_metrics().data_size()); in TEST_F()
387 EXPECT_EQ(1, report.event_metrics().data_size()); in TEST_F()
417 EXPECT_EQ(1, report.event_metrics().data_size()); in TEST_F()
449 EXPECT_EQ(1, report.event_metrics().data_size()); in TEST_F()
690 ASSERT_EQ(1, report.event_metrics().data_size()); in TEST_F()
[all …]
DKllMetricProducer_test.cpp323 ASSERT_EQ(0, report.kll_metrics().data_size()); in TEST()
361 ASSERT_EQ(0, report.kll_metrics().data_size()); in TEST()
393 ASSERT_EQ(0, report.kll_metrics().data_size()); in TEST()
429 ASSERT_EQ(0, report.kll_metrics().data_size()); in TEST()
/packages/modules/Bluetooth/system/gd/shim/test_data/
Ddumpsys_test_data_bin.h8 extern const size_t data_size;
62 const size_t bluetooth::test::data_size = 884;
/packages/modules/Bluetooth/system/stack/hid/
Dhidh_conn.cc752 uint16_t data_size; in hidh_conn_snd_data() local
808 data_size = 0; in hidh_conn_snd_data()
816 data_size = buf->len; in hidh_conn_snd_data()
822 data_size = buf->len; in hidh_conn_snd_data()
832 data_size = bytes_copied = 1; in hidh_conn_snd_data()
847 data_size -= bytes_copied; in hidh_conn_snd_data()
858 if (data_size) in hidh_conn_snd_data()
865 } while ((data_size != 0) || blank_datc); in hidh_conn_snd_data()
/packages/modules/Bluetooth/system/stack/test/gatt/
Dstack_gatt_test.cc379 const int data_size = 255; in TEST_F() local
380 uint16_t payload_size = data_size + 4; in TEST_F()
382 uint8_t data[data_size]; in TEST_F()
384 for (int i = 0; i < data_size; i++) { in TEST_F()
389 payload_size, op_code, handle, offset_0, data_size, data); in TEST_F()
/packages/modules/Virtualization/authfs/src/fsverity/metadata/
Dmetadata.rs112 header.descriptor.data_size = u64::from_le(header.descriptor.data_size); in parse_fsverity_metadata()
/packages/modules/Bluetooth/system/bta/le_audio/
Ddevices_test.cc908 uint8_t data_size, in TestSingleAseConfiguration() argument
912 bool success_expected = data_size > 0; in TestSingleAseConfiguration()
915 for (int i = 0; i < data_size; i++) { in TestSingleAseConfiguration()
945 for (int i = 0; i < data_size; i++) { in TestSingleAseConfiguration()
960 uint8_t data_size, in TestGroupAseVendorConfiguration() argument
963 for (int i = 0; i < data_size; i++) { in TestGroupAseVendorConfiguration()
995 for (int i = 0; i < data_size; i++) { in TestGroupAseVendorConfiguration()
1006 uint8_t data_size, in TestGroupAseConfiguration() argument
1010 return TestGroupAseVendorConfiguration(context_type, data, data_size, in TestGroupAseConfiguration()
1030 for (int i = 0; i < data_size; i++) { in TestGroupAseConfiguration()
[all …]
/packages/modules/Connectivity/staticlibs/native/bpf_syscall_wrappers/include/
DBpfSyscallWrappers.h251 const uint32_t data_size) { in runProgram() argument
255 .data_size_in = data_size, in runProgram()

12