Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 25 of 72) sorted by relevance

123

/external/vixl/test/
Dtest-code-buffer.cc106 size_t expected_size = 0; in TEST() local
110 expected_size += 7; in TEST()
113 expected_size += strlen(test_string) + 1; // EmitString() emits the '\0'. in TEST()
117 expected_size += 16; in TEST()
121 expected_size += 8; in TEST()
125 expected_size += 4; in TEST()
129 expected_size += 2; in TEST()
131 VIXL_CHECK(buffer.GetSizeInBytes() == expected_size); in TEST()
160 VIXL_ASSERT(expected_size == sizeof(expected)); in TEST()
163 expected_size) == 0); in TEST()
/external/u-boot/lib/libavb/
Davb_hash_descriptor.c11 uint64_t expected_size; in avb_hash_descriptor_validate_and_byteswap() local
31 expected_size = sizeof(AvbHashDescriptor) - sizeof(AvbDescriptor); in avb_hash_descriptor_validate_and_byteswap()
32 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
33 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
34 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
38 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hash_descriptor_validate_and_byteswap()
Davb_hashtree_descriptor.c11 uint64_t expected_size; in avb_hashtree_descriptor_validate_and_byteswap() local
39 expected_size = sizeof(AvbHashtreeDescriptor) - sizeof(AvbDescriptor); in avb_hashtree_descriptor_validate_and_byteswap()
40 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
41 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
42 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { in avb_hashtree_descriptor_validate_and_byteswap()
46 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hashtree_descriptor_validate_and_byteswap()
Davb_chain_partition_descriptor.c11 uint64_t expected_size; in avb_chain_partition_descriptor_validate_and_byteswap() local
34 expected_size = sizeof(AvbChainPartitionDescriptor) - sizeof(AvbDescriptor); in avb_chain_partition_descriptor_validate_and_byteswap()
35 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
36 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
40 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_chain_partition_descriptor_validate_and_byteswap()
Davb_kernel_cmdline_descriptor.c11 uint64_t expected_size; in avb_kernel_cmdline_descriptor_validate_and_byteswap() local
28 expected_size = sizeof(AvbKernelCmdlineDescriptor) - sizeof(AvbDescriptor); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
33 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
Davb_property_descriptor.c11 uint64_t expected_size; in avb_property_descriptor_validate_and_byteswap() local
28 expected_size = sizeof(AvbPropertyDescriptor) - sizeof(AvbDescriptor) + 2; in avb_property_descriptor_validate_and_byteswap()
29 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
30 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
34 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
/external/avb/libavb/
Davb_hash_descriptor.c30 uint64_t expected_size; in avb_hash_descriptor_validate_and_byteswap() local
50 expected_size = sizeof(AvbHashDescriptor) - sizeof(AvbDescriptor); in avb_hash_descriptor_validate_and_byteswap()
51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hash_descriptor_validate_and_byteswap()
52 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hash_descriptor_validate_and_byteswap()
53 !avb_safe_add_to(&expected_size, dest->digest_len)) { in avb_hash_descriptor_validate_and_byteswap()
57 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hash_descriptor_validate_and_byteswap()
Davb_hashtree_descriptor.c30 uint64_t expected_size; in avb_hashtree_descriptor_validate_and_byteswap() local
58 expected_size = sizeof(AvbHashtreeDescriptor) - sizeof(AvbDescriptor); in avb_hashtree_descriptor_validate_and_byteswap()
59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_hashtree_descriptor_validate_and_byteswap()
60 !avb_safe_add_to(&expected_size, dest->salt_len) || in avb_hashtree_descriptor_validate_and_byteswap()
61 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { in avb_hashtree_descriptor_validate_and_byteswap()
65 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_hashtree_descriptor_validate_and_byteswap()
Davb_chain_partition_descriptor.c30 uint64_t expected_size; in avb_chain_partition_descriptor_validate_and_byteswap() local
53 expected_size = sizeof(AvbChainPartitionDescriptor) - sizeof(AvbDescriptor); in avb_chain_partition_descriptor_validate_and_byteswap()
54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || in avb_chain_partition_descriptor_validate_and_byteswap()
55 !avb_safe_add_to(&expected_size, dest->public_key_len)) { in avb_chain_partition_descriptor_validate_and_byteswap()
59 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_chain_partition_descriptor_validate_and_byteswap()
Davb_kernel_cmdline_descriptor.c30 uint64_t expected_size; in avb_kernel_cmdline_descriptor_validate_and_byteswap() local
47 expected_size = sizeof(AvbKernelCmdlineDescriptor) - sizeof(AvbDescriptor); in avb_kernel_cmdline_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
52 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_kernel_cmdline_descriptor_validate_and_byteswap()
Davb_property_descriptor.c30 uint64_t expected_size; in avb_property_descriptor_validate_and_byteswap() local
47 expected_size = sizeof(AvbPropertyDescriptor) - sizeof(AvbDescriptor) + 2; in avb_property_descriptor_validate_and_byteswap()
48 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || in avb_property_descriptor_validate_and_byteswap()
49 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { in avb_property_descriptor_validate_and_byteswap()
53 if (expected_size > dest->parent_descriptor.num_bytes_following) { in avb_property_descriptor_validate_and_byteswap()
/external/perfetto/src/protozero/
Dproto_utils_unittest.cc127 size_t expected_size = 10; in TEST() local
132 ASSERT_EQ(expected_size, static_cast<size_t>(res - buf)); in TEST()
133 ASSERT_EQ(0, memcmp(buf, expected, expected_size)); in TEST()
138 ASSERT_EQ(expected_size, static_cast<size_t>(res - buf)); in TEST()
139 ASSERT_EQ(0, memcmp(buf, expected, expected_size)); in TEST()
144 ASSERT_EQ(expected_size, static_cast<size_t>(res - buf)); in TEST()
145 ASSERT_EQ(0, memcmp(buf, expected, expected_size)); in TEST()
150 ASSERT_EQ(expected_size, static_cast<size_t>(res - buf)); in TEST()
151 ASSERT_EQ(0, memcmp(buf, expected, expected_size)); in TEST()
/external/curl/lib/
Dfile.c378 curl_off_t expected_size = 0; in file_do() local
402 expected_size = statbuf.st_size; in file_do()
422 expected_size); in file_do()
452 Curl_pgrsSetDownloadSize(data, expected_size); in file_do()
472 if(data->state.resume_from <= expected_size) in file_do()
473 expected_size -= data->state.resume_from; in file_do()
481 expected_size = data->req.maxdownload; in file_do()
483 if(!fstated || (expected_size == 0)) in file_do()
493 Curl_pgrsSetDownloadSize(data, expected_size); in file_do()
509 bytestoread = (expected_size < data->set.buffer_size) ? in file_do()
[all …]
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate01.c195 loff_t expected_size; in main() local
205 expected_size = BLOCKS_WRITTEN * block_size + block_size; in main()
206 runtest(0, fd_mode1, expected_size); in main()
208 expected_size = BLOCKS_WRITTEN * block_size; in main()
209 runtest(FALLOC_FL_KEEP_SIZE, fd_mode2, expected_size); in main()
219 void runtest(int mode, int fd, loff_t expected_size) in runtest() argument
249 if (file_stat.st_size != expected_size) in runtest()
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_decode_embeddertest.cpp43 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; in TEST_F()
44 if (data.expected_size != buf_size) in TEST_F()
46 EXPECT_EQ(0, memcmp(data.expected, buf, data.expected_size)) in TEST_F()
82 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; in TEST_F()
83 if (data.expected_size != buf_size) in TEST_F()
85 EXPECT_EQ(0, memcmp(data.expected, buf, data.expected_size)) in TEST_F()
Dcpdf_simple_parser_unittest.cpp54 EXPECT_EQ(data.expected_size, word.GetLength()) << " for case " << i; in TEST()
55 if (data.expected_size != word.GetLength()) in TEST()
58 0, memcmp(data.expected, word.unterminated_c_str(), data.expected_size)) in TEST()
/external/u-boot/board/AndesTech/adp-ae3xx/
Dadp-ae3xx.c36 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
38 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
40 if (expected_size != actual_size) { in dram_init()
42 actual_size >> 20, expected_size >> 20); in dram_init()
/external/u-boot/board/AndesTech/adp-ag101p/
Dadp-ag101p.c40 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
43 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
47 if (expected_size != actual_size) { in dram_init()
49 actual_size >> 20, expected_size >> 20); in dram_init()
/external/dtc/tests/
Dutilfdt_test.c66 static void check_sizes(char *modifier, int expected_size) in check_sizes() argument
79 check(fmt, 'i', expected_size); in check_sizes()
82 check(fmt, 'u', expected_size); in check_sizes()
85 check(fmt, 'x', expected_size); in check_sizes()
/external/u-boot/board/AndesTech/ax25-ae350/
Dax25-ae350.c33 unsigned long expected_size = PHYS_SDRAM_0_SIZE + PHYS_SDRAM_1_SIZE; in dram_init() local
36 actual_size = get_ram_size((void *)sdram_base, expected_size); in dram_init()
39 if (expected_size != actual_size) { in dram_init()
41 actual_size >> 20, expected_size >> 20); in dram_init()
/external/webrtc/talk/media/base/
Dvideoframe.cc305 size_t expected_size = (w * expected_bpp + 7) / 8 * h; in Validate() local
309 expected_size = ((w + 15) / 16) * ((h + 15) / 16) * 4 / 8; in Validate()
316 << " expected: " << expected_size in Validate()
325 if (sample_size < expected_size) { in Validate()
331 << " expected: " << expected_size in Validate()
344 << " expected: " << 2 * expected_size in Validate()
354 size_t large_expected_size = expected_size * 2; in Validate()
381 << " expected: " << expected_size in Validate()
/external/google-breakpad/src/processor/
Dminidump.cc422 bool MinidumpContext::Read(uint32_t expected_size) { in Read() argument
447 if (expected_size == sizeof(MDRawContextAMD64)) { in Read()
549 } else if (expected_size == sizeof(MDRawContextPPC64)) { in Read()
643 } else if (expected_size == sizeof(MDRawContextARM64)) { in Read()
765 if (expected_size != sizeof(MDRawContextX86)) { in Read()
767 expected_size << " != " << sizeof(MDRawContextX86); in Read()
838 if (expected_size != sizeof(MDRawContextPPC)) { in Read()
840 expected_size << " != " << sizeof(MDRawContextPPC); in Read()
914 if (expected_size != sizeof(MDRawContextSPARC)) { in Read()
916 expected_size << " != " << sizeof(MDRawContextSPARC); in Read()
[all …]
/external/minijail/test/
Dlibminijail_test.cpp67 bool check_groups(size_t expected_size, gid_t* expected_list) { in check_groups() argument
73 if (expected_size != actual_size) { in check_groups()
75 << expected_size << ", actual " << actual_size; in check_groups()
79 for (size_t i = 0; i < expected_size; i++) { in check_groups()
/external/tensorflow/tensorflow/compiler/jit/
Dxla_launch_util.h200 XlaTensorBuffer(const void* ptr, size_t expected_size, size_t actual_size, in XlaTensorBuffer() argument
203 expected_size_(expected_size), in XlaTensorBuffer()
223 size_t expected_size = shape.num_elements() * DataTypeSize(dtype); in MakeTensor() local
224 auto* tensor_buffer = new XlaTensorBuffer(buffer.opaque(), expected_size, in MakeTensor()
/external/google-breakpad/src/google_breakpad/processor/
Dminidump.h149 virtual bool Read(uint32_t expected_size) = 0;
174 bool Read(uint32_t expected_size);
513 bool Read(uint32_t expected_size);
568 bool Read(uint32_t expected_size);
621 bool Read(uint32_t expected_size);
659 bool Read(uint32_t expected_size);
714 bool Read(uint32_t expected_size);
846 bool Read(uint32_t expected_size);

123