Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/external/python/apitools/apitools/base/py/
Dtransfer.py202 total_size = kwds.pop('total_size', None)
206 self.__total_size = total_size
231 def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds): argument
233 return cls(stream, auto_transfer=auto_transfer, total_size=total_size,
263 'total_size': self.total_size,
268 def total_size(self): member in Download
275 self.progress, self.total_size, self.url)
294 if self.total_size is None:
337 elif start >= self.total_size:
340 end = min(end, self.total_size - 1)
[all …]
Dtransfer_test.py51 total_size = 100
54 six.StringIO(), chunksize=chunksize, total_size=total_size)
64 total_size = 100
66 six.StringIO(), chunksize=10, total_size=total_size)
69 total_size - 1,
87 total_size = 100
89 total_size=total_size)
91 self.assertEqual(total_size - 1,
101 total_size=26,
129 download = transfer.Download.FromStream(download_stream, total_size=52)
[all …]
/external/libavc/encoder/
Dih264e_api.c2841 WORD32 total_size = 0; in ih264e_fill_num_mem_rec() local
2844 total_size += sizeof(WORD32); in ih264e_fill_num_mem_rec()
2845 total_size = ALIGN8(total_size); in ih264e_fill_num_mem_rec()
2848 total_size += (max_mb_cols * max_mb_rows); in ih264e_fill_num_mem_rec()
2850 total_size += max_mb_cols; in ih264e_fill_num_mem_rec()
2851 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
2854 total_size += sizeof(bitstrm_t); in ih264e_fill_num_mem_rec()
2855 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
2858 total_size += (max_mb_cols * 4 * sizeof(UWORD8)); in ih264e_fill_num_mem_rec()
2859 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D3-1.c40 long total_size; in main() local
58 total_size = 2 * page_size; in main()
78 data = malloc(total_size); in main()
80 memset(data, 'a', total_size); in main()
81 if (write(fd, data, total_size) != total_size) { in main()
86 memset(data, 'b', total_size); in main()
87 if (write(fd2, data, total_size) != total_size) { in main()
/external/vboot_reference/tests/
Dvb21_common_tests.c62 c->total_size = sizeof(cbuf); in test_common_header_functions()
69 c2->total_size = c->total_size - desc_end; in test_common_header_functions()
82 c->total_size += 4; in test_common_header_functions()
88 c->fixed_size = c->total_size + 4; in test_common_header_functions()
94 c->desc_size = c->total_size - c->fixed_size + 4; in test_common_header_functions()
100 c->total_size--; in test_common_header_functions()
132 TEST_SUCC(vb2_verify_common_member(cbuf, &m, c->total_size - 8, 4), in test_common_header_functions()
134 TEST_EQ(m, c->total_size - 4, " new minimum"); in test_common_header_functions()
142 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 8, -4), in test_common_header_functions()
147 TEST_EQ(vb2_verify_common_member(cbuf, &m, c->total_size - 7, 4), in test_common_header_functions()
[all …]
/external/libyuv/files/util/
Dpsnr_main.cc91 size_t total_size = ftell(file_org); in ExtractResolutionFromFilename() local
93 uint8* const ch_org = new uint8[total_size]; in ExtractResolutionFromFilename()
94 memset(ch_org, 0, total_size); in ExtractResolutionFromFilename()
95 size_t bytes_org = fread(ch_org, sizeof(uint8), total_size, file_org); in ExtractResolutionFromFilename()
97 if (bytes_org == total_size) { in ExtractResolutionFromFilename()
98 if (0 == libyuv::MJPGSize(ch_org, total_size, width_ptr, height_ptr)) { in ExtractResolutionFromFilename()
244 const size_t total_size, in UpdateMetrics() argument
276 ComputePSNR(total_err, static_cast<double>(total_size)); in UpdateMetrics()
285 total_size; in UpdateMetrics()
357 const size_t total_size = y_size + 2 * uv_size; // NOLINT in main() local
[all …]
/external/tensorflow/tensorflow/contrib/slim/python/slim/
Dmodel_analyzer.py67 total_size = 0
79 total_size += op_size
80 return total_size
97 total_size = 0
103 total_size += var_size
109 print('Total size of variables: %d' % total_size)
111 return total_size, total_bytes
/external/vboot_reference/firmware/lib21/
Dmisc.c49 buf = vb2_workbuf_alloc(wb, c.total_size); in vb2_read_resource_object()
54 rv = vb2ex_read_resource(ctx, index, offset, buf, c.total_size); in vb2_read_resource_object()
56 vb2_workbuf_free(wb, c.total_size); in vb2_read_resource_object()
106 rv = vb2_verify_keyblock(kb, kb->c.total_size, &root_key, &wb); in vb2_load_fw_keyblock()
113 sd->vblock_preamble_offset = kb->c.total_size; in vb2_load_fw_keyblock()
139 memmove(key_data, packed_key, packed_key->c.total_size); in vb2_load_fw_keyblock()
144 sd->workbuf_data_key_size = packed_key->c.total_size; in vb2_load_fw_keyblock()
187 rv = vb2_verify_fw_preamble(pre, pre->c.total_size, &data_key, &wb); in vb2_load_fw_preamble()
194 memmove(key_data, pre, pre->c.total_size); in vb2_load_fw_preamble()
232 sd->workbuf_preamble_size = pre->c.total_size; in vb2_load_fw_preamble()
/external/webp/src/utils/
Dhuffman_utils.c84 int total_size = 1 << root_bits; // total size root table + 2nd level table in BuildHuffmanTable() local
132 ReplicateValue(table, 1, total_size, code); in BuildHuffmanTable()
133 return total_size; in BuildHuffmanTable()
139 uint32_t mask = total_size - 1; // mask for low bits in BuildHuffmanTable()
178 total_size += table_size; in BuildHuffmanTable()
196 return total_size; in BuildHuffmanTable()
207 int total_size; in VP8LBuildHuffmanTable() local
212 total_size = BuildHuffmanTable(root_table, root_bits, in VP8LBuildHuffmanTable()
218 total_size = BuildHuffmanTable(root_table, root_bits, in VP8LBuildHuffmanTable()
222 return total_size; in VP8LBuildHuffmanTable()
/external/compiler-rt/lib/asan/
Dasan_memory_profile.cc28 uptr total_size; member
41 allocations_[i].total_size += size; in Insert()
52 return a.total_size > b.total_size; in Print()
60 Printf("%zd byte(s) (%zd%%) in %zd allocation(s)\n", a.total_size, in Print()
61 a.total_size * 100 / total_allocated_, a.count); in Print()
63 total_shown += a.total_size; in Print()
/external/tensorflow/tensorflow/core/kernels/
Dsplit_v_op_test.cc58 std::initializer_list<int64> total_size) { in MakeGraph() argument
60 TensorShape in_shape(total_size); in MakeGraph()
75 #define BM_SPLITV_1D(num_split, total_size) \ argument
76 static void BM_SplitV_1d_##num_split##_##total_size(int iters) { \
78 testing::ItemsProcessed(static_cast<int64>(iters) * total_size); \
80 strings::Printf("1-D %d chunks totaling %d", num_split, total_size); \
84 GenerateRandomIntsWithSum(total_size, num_split), \
85 {total_size}); \
89 BENCHMARK(BM_SplitV_1d_##num_split##_##total_size);
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen_cache.c47 unsigned bw, bh, bpb, total_size, i; in surface_size() local
62 total_size = 0; in surface_size()
69 total_size += img_size; in surface_size()
72 total_size *= key->numFaces * key->arraySize * MAX2(1, key->sampleCount); in surface_size()
74 return total_size; in surface_size()
146 assert(surf_size <= cache->total_size); in svga_screen_cache_lookup()
147 if (surf_size > cache->total_size) in svga_screen_cache_lookup()
148 cache->total_size = 0; /* should never happen, but be safe */ in svga_screen_cache_lookup()
150 cache->total_size -= surf_size; in svga_screen_cache_lookup()
190 cache->total_size -= surface_size(&entry->key); in svga_screen_cache_shrink()
[all …]
/external/grpc-grpc/test/cpp/codegen/
Dproto_utils_test.cc81 void BufferWriterTest(int block_size, int total_size, int backup_size) { in BufferWriterTest() argument
83 ProtoBufferWriter writer(&bb, block_size, total_size); in BufferWriterTest()
90 while (written_size < total_size) { in BufferWriterTest()
106 if (write_size + written_size > total_size) { in BufferWriterTest()
107 write_size = total_size - written_size; in BufferWriterTest()
120 EXPECT_EQ(bb.Length(), (size_t)total_size); in BufferWriterTest()
126 while (read_bytes < total_size) { in BufferWriterTest()
135 EXPECT_EQ(read_bytes, total_size); in BufferWriterTest()
/external/libaom/libaom/aom_mem/
Daom_mem.c22 const uint64_t total_size = nmemb * size; in check_size_argument_overflow() local
25 if (total_size != (size_t)total_size) return 0; in check_size_argument_overflow()
66 const size_t total_size = num * size; in aom_calloc() local
67 void *const x = aom_malloc(total_size); in aom_calloc()
68 if (x) memset(x, 0, total_size); in aom_calloc()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D4-1.c43 int total_size = 1024; in main() local
47 size_t size = total_size; in main()
65 data = malloc(total_size); in main()
66 memset(data, 'a', total_size); in main()
67 if (write(fd, data, total_size) != total_size) { in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
D4-1.c33 int total_size = 1024; in main() local
46 data = malloc(total_size); in main()
47 memset(data, 'a', total_size); in main()
48 if (write(fd, data, total_size) != total_size) { in main()
/external/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h1023 uint32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local
1028 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
1030 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1031 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size()
1032 return total_size; in svga3dsurface_get_image_buffer_size()
1039 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1041 return total_size; in svga3dsurface_get_image_buffer_size()
1087 uint64_t total_size = 0; in svga3dsurface_get_serialized_size() local
1093 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size()
1097 total_size *= num_layers; in svga3dsurface_get_serialized_size()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorIO.h23 const Index total_size = internal::array_prod(tensor.dimensions()); in run() local
24 if (total_size > 0) { in run()
27 …ic, Dynamic, layout> > matrix(const_cast<Scalar*>(tensor.data()), first_dim, total_size/first_dim); in run()
40 const Index total_size = internal::array_prod(tensor.dimensions());
41 if (total_size > 0) {
42 Map<const Array<Scalar, Dynamic, 1> > array(const_cast<Scalar*>(tensor.data()), total_size);
/external/linux-kselftest/tools/testing/selftests/zram/
Dzram01.sh62 local total_size=0
65 total_size=$(($total_size + $s))
68 echo "zram used ${used_mem}M, zram disk sizes ${total_size}M"
70 local v=$((100 * $total_size / $used_mem))
/external/vboot_reference/host/lib21/
Dhost_signature.c117 s.c.total_size = s.sig_offset + s.sig_size; in vb2_sign_data()
155 buf = calloc(1, s.c.total_size); in vb2_sign_data()
232 if (sig_offset + sig->c.total_size > c->total_size) { in vb2_sign_object()
237 memcpy(buf + sig_offset, sig, sig->c.total_size); in vb2_sign_object()
259 if (sig_next + sig->c.total_size > c->total_size) { in vb2_sign_object_multiple()
264 memcpy(buf + sig_next, sig, sig->c.total_size); in vb2_sign_object_multiple()
265 sig_next += sig->c.total_size; in vb2_sign_object_multiple()
Dhost_fw_preamble.c49 hash_next += hash_list[i]->c.total_size; in vb2_fw_preamble_create()
56 fp.c.total_size = fp.sig_offset + sig_size; in vb2_fw_preamble_create()
59 buf = calloc(fp.c.total_size, 1); in vb2_fw_preamble_create()
70 hash_list[i]->c.total_size); in vb2_fw_preamble_create()
71 hash_next += hash_list[i]->c.total_size; in vb2_fw_preamble_create()
/external/ImageMagick/coders/
Dclipboard.c136 total_size; in ReadCLIPBOARDImage() local
170 total_size=clip_size+BMP_HEADER_SIZE; in ReadCLIPBOARDImage()
171 clip_data=AcquireMagickMemory(total_size); in ReadCLIPBOARDImage()
193 p[2]=(unsigned char) total_size; in ReadCLIPBOARDImage()
194 p[3]=(unsigned char) (total_size >> 8); in ReadCLIPBOARDImage()
195 p[4]=(unsigned char) (total_size >> 16); in ReadCLIPBOARDImage()
196 p[5]=(unsigned char) (total_size >> 24); in ReadCLIPBOARDImage()
200 image=BlobToImage(read_info,clip_data,total_size,exception); in ReadCLIPBOARDImage()
/external/minigbm/
Drockchip.c64 const uint32_t total_size = body_plane_offset + body_plane_size; in afbc_bo_from_format() local
67 bo->sizes[0] = total_size; in afbc_bo_from_format()
70 bo->total_size = total_size; in afbc_bo_from_format()
180 bo->total_size = bo->strides[0] * aligned_height + w_mbs * h_mbs * 128; in rockchip_bo_create_with_modifiers()
210 gem_create.size = bo->total_size; in rockchip_bo_create_with_modifiers()
254 void *addr = mmap(0, bo->total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in rockchip_bo_map()
257 vma->length = bo->total_size; in rockchip_bo_map()
261 priv->cached_addr = calloc(1, bo->total_size); in rockchip_bo_map()
287 memcpy(priv->cached_addr, priv->gem_addr, bo->total_size); in rockchip_bo_invalidate()
297 memcpy(priv->gem_addr, priv->cached_addr, bo->total_size); in rockchip_bo_flush()
/external/curl/tests/unit/
Dunit1308.c47 size_t total_size = 0; variable
70 rc = curl_formget(post, &total_size, print_httppost_callback);
74 fail_unless(total_size == 488, "curl_formget got wrong size back");
89 rc = curl_formget(post, &total_size, print_httppost_callback);
91 fail_unless(total_size == 851, "curl_formget got wrong size back");
/external/ltp/testcases/kernel/device-drivers/zram/
Dzram01.sh79 local total_size=0
82 total_size=$(($total_size + $s))
85 tst_resm TINFO "zram used ${used_mem}M, zram disk sizes ${total_size}M"
87 local v=$((100 * $total_size / $used_mem))

12345678910>>...14