/external/avb/libavb/ |
avb_hash_descriptor.c | 30 uint64_t expected_size; local 50 expected_size = sizeof(AvbHashDescriptor) - sizeof(AvbDescriptor); 51 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || 52 !avb_safe_add_to(&expected_size, dest->salt_len) || 53 !avb_safe_add_to(&expected_size, dest->digest_len)) { 57 if (expected_size > dest->parent_descriptor.num_bytes_following) {
|
avb_chain_partition_descriptor.c | 30 uint64_t expected_size; local 53 expected_size = sizeof(AvbChainPartitionDescriptor) - sizeof(AvbDescriptor); 54 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || 55 !avb_safe_add_to(&expected_size, dest->public_key_len)) { 59 if (expected_size > dest->parent_descriptor.num_bytes_following) {
|
avb_hashtree_descriptor.c | 30 uint64_t expected_size; local 58 expected_size = sizeof(AvbHashtreeDescriptor) - sizeof(AvbDescriptor); 59 if (!avb_safe_add_to(&expected_size, dest->partition_name_len) || 60 !avb_safe_add_to(&expected_size, dest->salt_len) || 61 !avb_safe_add_to(&expected_size, dest->root_digest_len)) { 65 if (expected_size > dest->parent_descriptor.num_bytes_following) {
|
avb_kernel_cmdline_descriptor.c | 30 uint64_t expected_size; local 47 expected_size = sizeof(AvbKernelCmdlineDescriptor) - sizeof(AvbDescriptor); 48 if (!avb_safe_add_to(&expected_size, dest->kernel_cmdline_length)) { 52 if (expected_size > dest->parent_descriptor.num_bytes_following) {
|
avb_property_descriptor.c | 30 uint64_t expected_size; local 47 expected_size = sizeof(AvbPropertyDescriptor) - sizeof(AvbDescriptor) + 2; 48 if (!avb_safe_add_to(&expected_size, dest->key_num_bytes) || 49 !avb_safe_add_to(&expected_size, dest->value_num_bytes)) { 53 if (expected_size > dest->parent_descriptor.num_bytes_following) {
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
array_internal.cc | 25 size_t expected_size) { 28 << expected_size; local
|
/external/dtc/tests/ |
utilfdt_test.c | 63 * \param expected_size The size (in bytes) that we expect (ignored for 66 static void check_sizes(char *modifier, int expected_size) 79 check(fmt, 'i', expected_size); 82 check(fmt, 'u', expected_size); 85 check(fmt, 'x', expected_size);
|
/device/google/cuttlefish_common/common/vsoc/shm/ |
base.h | 32 template <typename Type, size_t expected_size = Type::layout_size> 34 static_assert(sizeof(Type) == expected_size, member in struct:ShmTypeValidator 38 sizeof(Type) == expected_size && std::is_trivial<Type>();
|
/external/minijail/test/ |
libminijail_test.cpp | 67 bool check_groups(size_t expected_size, gid_t* expected_list) { 73 if (expected_size != actual_size) { 75 << expected_size << ", actual " << actual_size; 79 for (size_t i = 0; i < expected_size; i++) {
|
/external/pdfium/core/fpdfapi/parser/ |
fpdf_parser_decode_embeddertest.cpp | 43 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; 44 if (data.expected_size != buf_size) 46 EXPECT_EQ(0, memcmp(data.expected, buf, data.expected_size)) 82 EXPECT_EQ(data.expected_size, buf_size) << " for case " << i; 83 if (data.expected_size != buf_size) 85 EXPECT_EQ(0, memcmp(data.expected, buf, data.expected_size))
|
cpdf_simple_parser_unittest.cpp | 54 EXPECT_EQ(data.expected_size, word.GetLength()) << " for case " << i; 55 if (data.expected_size != word.GetLength()) 58 0, memcmp(data.expected, word.unterminated_c_str(), data.expected_size))
|
fpdf_parser_decode_unittest.cpp | 36 ASSERT_EQ(ptr->expected_size, result_size); 71 ASSERT_EQ(ptr->expected_size, result_size);
|
/external/ltp/testcases/kernel/syscalls/fallocate/ |
fallocate01.c | 195 loff_t expected_size; local 205 expected_size = BLOCKS_WRITTEN * block_size + block_size; 206 runtest(0, fd_mode1, expected_size); 208 expected_size = BLOCKS_WRITTEN * block_size; 209 runtest(FALLOC_FL_KEEP_SIZE, fd_mode2, expected_size); 219 void runtest(int mode, int fd, loff_t expected_size) 249 if (file_stat.st_size != expected_size)
|
/external/curl/lib/ |
file.c | 436 curl_off_t expected_size = 0; local 462 expected_size = statbuf.st_size; 484 "Content-Length: %" CURL_FORMAT_CURL_OFF_T "\r\n", expected_size); 512 Curl_pgrsSetDownloadSize(data, expected_size); 529 if(data->state.resume_from <= expected_size) 530 expected_size -= data->state.resume_from; 538 expected_size = data->req.maxdownload; 540 if(!fstated || (expected_size == 0)) 550 Curl_pgrsSetDownloadSize(data, expected_size); 565 bytestoread = (expected_size < data->set.buffer_size) [all...] |
/external/libmojo/mojo/public/c/system/ |
thunks.h | 26 // size_t expected_size = mojo_set_system_thunks_fn(&system_thunks); 27 // if (expected_size > sizeof(MojoSystemThunks)) { 30 // << expected_size;
|
/external/pdfium/testing/ |
test_support.h | 40 uint32_t expected_size; member in struct:pdfium::StrFuncTestData 47 uint32_t expected_size; member in struct:pdfium::DecodeTestData
|
/external/webrtc/talk/media/base/ |
videoframe.cc | 305 size_t expected_size = (w * expected_bpp + 7) / 8 * h; local 309 expected_size = ((w + 15) / 16) * ((h + 15) / 16) * 4 / 8; 316 << " expected: " << expected_size 325 if (sample_size < expected_size) { 331 << " expected: " << expected_size 344 << " expected: " << 2 * expected_size 354 size_t large_expected_size = expected_size * 2; 381 << " expected: " << expected_size
|
/external/libchrome/base/trace_event/ |
memory_usage_estimator_unittest.cc | 140 size_t expected_size = capacity * sizeof(Data); local 141 EXPECT_EQ(expected_size, EstimateMemoryUsage(vector)); 147 expected_size += EstimateMemoryUsage(vector.back()); 149 EXPECT_EQ(expected_size, EstimateMemoryUsage(vector));
|
/external/libmojo/mojo/edk/embedder/ |
embedder.cc | 75 size_t expected_size = MojoEmbedderSetSystemThunks(&thunks); local 76 DCHECK_EQ(expected_size, sizeof(thunks));
|
/external/tensorflow/tensorflow/core/kernels/ |
mfcc_test.cc | 64 int expected_size = 13; local 65 ASSERT_EQ(expected_size, output.size());
|
/system/bt/vendor_libs/test_vendor_lib/test/ |
packet_stream_unittest.cc | 90 auto expected_size = event->GetPacketSize(); local 108 EXPECT_EQ(expected_size, sizeof(event_header) + return_parameters_size + 1);
|
/external/python/cpython3/Lib/test/ |
test_urllibnet.py | 196 expected_size = int(fileheaders['Content-Length']) 204 self.assertEqual(records[0][2], expected_size) 205 self.assertEqual(records[-1][2], expected_size) 210 self.assertGreaterEqual(records[-1][0]*records[0][1], expected_size,
|
/system/update_engine/ |
p2p_manager.h | 113 // |expected_size| parameter. Otherwise pass zero. If non-zero, the 117 // and |expected_size| is written to the user.cros-p2p-filesize 123 size_t expected_size) = 0; 145 // value of the |expected_size| parameter passed to that method.
|
p2p_manager.cc | 138 size_t expected_size) override; 505 size_t expected_size) { 512 static_cast<size_t>(file_expected_size) != expected_size) { 514 << " with expected_size=" << file_expected_size 516 << " expected_size=" << expected_size; local 532 if (free_bytes < 2 * expected_size) { 534 LOG(INFO) << "Refusing to allocate p2p file of " << expected_size 553 if (expected_size != 0) { 557 expected_size) != 0) [all...] |
/external/google-breakpad/src/processor/ |
minidump.cc | 422 bool MinidumpContext::Read(uint32_t expected_size) { 447 if (expected_size == sizeof(MDRawContextAMD64)) { 549 } else if (expected_size == sizeof(MDRawContextPPC64)) { 643 } else if (expected_size == sizeof(MDRawContextARM64)) { 765 if (expected_size != sizeof(MDRawContextX86)) { 767 expected_size << " != " << sizeof(MDRawContextX86); 838 if (expected_size != sizeof(MDRawContextPPC)) { 840 expected_size << " != " << sizeof(MDRawContextPPC); 914 if (expected_size != sizeof(MDRawContextSPARC)) { 916 expected_size << " != " << sizeof(MDRawContextSPARC) [all...] |