Home
last modified time | relevance | path

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

12345678910>>...37

/external/python/apitools/apitools/base/py/
Dtransfer.py203 total_size = kwds.pop('total_size', None)
207 self.__total_size = total_size
232 def FromStream(cls, stream, auto_transfer=True, total_size=None, **kwds): argument
234 return cls(stream, auto_transfer=auto_transfer, total_size=total_size,
264 'total_size': self.total_size,
269 def total_size(self): member in Download
276 self.progress, self.total_size, self.url)
296 if self.total_size is None:
341 elif start >= self.total_size:
344 '[start=%d, total_size=%d]' % (start, self.total_size))
[all …]
Dtransfer_test.py54 total_size = 100
57 six.StringIO(), chunksize=chunksize, total_size=total_size)
67 total_size = 100
69 six.StringIO(), chunksize=10, total_size=total_size)
72 total_size - 1,
90 total_size = 100
92 total_size=total_size)
94 self.assertEqual(total_size - 1,
103 total_size=26)
144 total_size=26,
[all …]
/external/tensorflow/tensorflow/core/data/
Dcompression_utils.cc32 size_t total_size = 0; in CompressElement() local
37 total_size += buffer->size(); in CompressElement()
42 total_size += non_memcpy_components.back().ByteSizeLong(); in CompressElement()
49 uncompressed.resize_uninitialized(total_size); in CompressElement()
71 if (total_size > kuint32max) { in CompressElement()
73 total_size, ", exceeding the 4GB Snappy limit."); in CompressElement()
75 DCHECK_EQ(position, uncompressed.mdata() + total_size); in CompressElement()
77 if (!port::Snappy_Compress(uncompressed.mdata(), total_size, in CompressElement()
81 VLOG(3) << "Compressed element from " << total_size << " bytes to " in CompressElement()
100 int64_t total_size = 0; in UncompressElement() local
[all …]
/external/cronet/base/strings/
Dstrcat_internal.h23 auto Resize(std::basic_string<CharT>& str, size_t total_size, priority_tag<1>)
24 -> decltype(str.__resize_default_init(total_size)) {
25 str.__resize_default_init(total_size);
31 void Resize(std::basic_string<CharT>& str, size_t total_size, priority_tag<0>) { in Resize() argument
32 str.resize(total_size); in Resize()
46 size_t total_size = initial_size; in StrAppendT() local
48 total_size += cur.size(); in StrAppendT()
57 Resize(dest, total_size, priority_tag<1>()); in StrAppendT()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D3-1.c42 long total_size; in main() local
60 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/marisa-trie/lib/marisa/grimoire/vector/
Dvector.h167 std::size_t total_size() const { in total_size() function
171 return sizeof(UInt64) + ((total_size() + 7) & ~(std::size_t)0x07); in io_size()
199 UInt64 total_size; in map_() local
200 mapper.map(&total_size); in map_()
201 MARISA_THROW_IF(total_size > MARISA_SIZE_MAX, MARISA_SIZE_ERROR); in map_()
202 MARISA_THROW_IF((total_size % sizeof(T)) != 0, MARISA_FORMAT_ERROR); in map_()
203 const std::size_t size = (std::size_t)(total_size / sizeof(T)); in map_()
205 mapper.seek((std::size_t)((8 - (total_size % 8)) % 8)); in map_()
210 UInt64 total_size; in read_() local
211 reader.read(&total_size); in read_()
[all …]
/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_t* const ch_org = new uint8_t[total_size]; in ExtractResolutionFromFilename()
94 memset(ch_org, 0, total_size); in ExtractResolutionFromFilename()
95 size_t bytes_org = fread(ch_org, sizeof(uint8_t), 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()
247 const size_t total_size, in UpdateMetrics() argument
279 ComputePSNR(total_err, static_cast<double>(total_size)); in UpdateMetrics()
288 total_size; in UpdateMetrics()
363 const size_t total_size = y_size + 2 * uv_size; // NOLINT in main() local
[all …]
/external/libavc/encoder/
Dih264e_api.c3418 WORD32 total_size = 0; in ih264e_fill_num_mem_rec() local
3421 total_size += sizeof(WORD32); in ih264e_fill_num_mem_rec()
3422 total_size = ALIGN8(total_size); in ih264e_fill_num_mem_rec()
3425 total_size += (max_mb_cols * max_mb_rows); in ih264e_fill_num_mem_rec()
3427 total_size += max_mb_cols; in ih264e_fill_num_mem_rec()
3428 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
3431 total_size += sizeof(bitstrm_t); in ih264e_fill_num_mem_rec()
3432 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
3435 total_size += (max_mb_cols * 4 * sizeof(UWORD8)); in ih264e_fill_num_mem_rec()
3436 total_size = ALIGN128(total_size); in ih264e_fill_num_mem_rec()
[all …]
/external/libavc/encoder/svc/
Disvce_api.c2468 WORD32 total_size = 0; in isvce_fill_num_mem_rec() local
2471 total_size += sizeof(WORD32); in isvce_fill_num_mem_rec()
2472 total_size = ALIGN8(total_size); in isvce_fill_num_mem_rec()
2475 total_size += (max_mb_cols * max_mb_rows); in isvce_fill_num_mem_rec()
2477 total_size += max_mb_cols; in isvce_fill_num_mem_rec()
2478 total_size = ALIGN128(total_size); in isvce_fill_num_mem_rec()
2481 total_size += sizeof(bitstrm_t); in isvce_fill_num_mem_rec()
2482 total_size = ALIGN128(total_size); in isvce_fill_num_mem_rec()
2485 total_size += sizeof(bitstrm_t); in isvce_fill_num_mem_rec()
2486 total_size = ALIGN128(total_size); in isvce_fill_num_mem_rec()
[all …]
/external/webp/src/utils/
Dhuffman_utils.c84 int total_size = 1 << root_bits; // total size root table + 2nd level table in BuildHuffmanTable() local
138 ReplicateValue(table, 1, total_size, code); in BuildHuffmanTable()
140 return total_size; in BuildHuffmanTable()
146 uint32_t mask = total_size - 1; // mask for low bits in BuildHuffmanTable()
186 total_size += table_size; in BuildHuffmanTable()
208 return total_size; in BuildHuffmanTable()
219 const int total_size = in VP8LBuildHuffmanTable() local
222 if (total_size == 0 || root_table == NULL) return total_size; in VP8LBuildHuffmanTable()
224 if (root_table->curr_segment->curr_table + total_size >= in VP8LBuildHuffmanTable()
237 next->size = total_size > segment_size ? total_size : segment_size; in VP8LBuildHuffmanTable()
[all …]
/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/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/mesa3d/src/gallium/drivers/svga/include/
Dsvga3d_surfacedefs.h1026 uint32 slice_size, total_size; in svga3dsurface_get_image_buffer_size() local
1031 total_size = clamped_umul32(image_blocks.width, in svga3dsurface_get_image_buffer_size()
1033 total_size = clamped_umul32(total_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1034 total_size = clamped_umul32(total_size, desc->bytes_per_block); in svga3dsurface_get_image_buffer_size()
1035 return total_size; in svga3dsurface_get_image_buffer_size()
1042 total_size = clamped_umul32(slice_size, image_blocks.depth); in svga3dsurface_get_image_buffer_size()
1044 return total_size; in svga3dsurface_get_image_buffer_size()
1090 uint64_t total_size = 0; in svga3dsurface_get_serialized_size() local
1096 total_size += svga3dsurface_get_image_buffer_size(desc, in svga3dsurface_get_serialized_size()
1100 total_size *= num_layers; in svga3dsurface_get_serialized_size()
[all …]
/external/perfetto/src/profiling/memory/
Dwire_protocol.cc60 int64_t WithBuffer(SharedRingBuffer* shmem, size_t total_size, F fn) { in WithBuffer() argument
61 if (total_size > shmem->size()) { in WithBuffer()
73 buf = shmem->BeginWrite(lock, total_size); in WithBuffer()
94 size_t total_size = sizeof(msg.record_type) + sizeof(*msg.alloc_header) + in SendWireMessage() local
97 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
108 constexpr size_t total_size = in SendWireMessage() local
111 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
118 constexpr size_t total_size = in SendWireMessage() local
121 shmem, total_size, [msg](SharedRingBuffer::Buffer* buf) { in SendWireMessage()
/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/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D4-1.c45 int total_size = 1024; in main() local
49 size_t size = total_size; in main()
66 data = malloc(total_size); in main()
67 memset(data, 'a', total_size); in main()
68 if (write(fd, data, total_size) != total_size) { in main()
/external/minigbm/
Drockchip.c70 const uint32_t total_size = body_plane_offset + body_plane_size; in afbc_bo_from_format() local
73 bo->meta.sizes[0] = total_size; in afbc_bo_from_format()
76 bo->meta.total_size = total_size; in afbc_bo_from_format()
144 bo->meta.total_size += w_mbs * h_mbs * 128; in rockchip_bo_create_with_modifiers()
172 gem_create.size = bo->meta.total_size; in rockchip_bo_create_with_modifiers()
215 addr = mmap(0, bo->meta.total_size, drv_get_prot(map_flags), MAP_SHARED, bo->drv->fd, in rockchip_bo_map()
220 vma->length = bo->meta.total_size; in rockchip_bo_map()
227 priv->cached_addr = calloc(1, bo->meta.total_size); in rockchip_bo_map()
241 munmap(addr, bo->meta.total_size); in rockchip_bo_map()
262 memcpy(priv->cached_addr, priv->gem_addr, bo->meta.total_size); in rockchip_bo_invalidate()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fsync/
D4-1.c35 int total_size = 1024; in main() local
48 data = malloc(total_size); in main()
49 memset(data, 'a', total_size); in main()
50 if (write(fd, data, total_size) != total_size) { in main()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_screen_cache.c47 unsigned bw, bh, bpb, total_size, i; in svga_surface_size() local
62 total_size = 0; in svga_surface_size()
69 total_size += img_size; in svga_surface_size()
72 total_size *= key->numFaces * key->arraySize * MAX2(1, key->sampleCount); in svga_surface_size()
74 return total_size; in svga_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 -= svga_surface_size(&entry->key); in svga_screen_cache_shrink()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dsplit_v_op_test.cc61 std::initializer_list<int64_t> total_size) { in MakeGraph() argument
63 TensorShape in_shape(total_size); in MakeGraph()
78 #define BM_SPLITV_1D(num_split, total_size) \ argument
79 static void BM_SplitV_1d_##num_split##_##total_size( \
82 strings::Printf("1-D %d chunks totaling %d", num_split, total_size); \
85 GenerateRandomIntsWithSum(total_size, num_split), \
86 {total_size}); \
89 total_size); \
91 BENCHMARK(BM_SplitV_1d_##num_split##_##total_size)->UseRealTime();
/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/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()
/external/curl/tests/unit/
Dunit1308.c50 size_t total_size = 0; variable
73 rc = curl_formget(post, &total_size, print_httppost_callback);
77 fail_unless(total_size == 488, "curl_formget got wrong size back");
92 rc = curl_formget(post, &total_size, print_httppost_callback);
94 fail_unless(total_size == 851, "curl_formget got wrong size back");
/external/cronet/third_party/protobuf/src/google/protobuf/
Ddescriptor.pb.cc1387 size_t total_size = 0; in ByteSizeLong() local
1394 total_size += 1UL * this->_internal_file_size(); in ByteSizeLong()
1396 total_size += in ByteSizeLong()
1400 return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); in ByteSizeLong()
1921 size_t total_size = 0; in ByteSizeLong() local
1928 total_size += 1 * in ByteSizeLong()
1931 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( in ByteSizeLong()
1936 total_size += 1UL * this->_internal_message_type_size(); in ByteSizeLong()
1938 total_size += in ByteSizeLong()
1943 total_size += 1UL * this->_internal_enum_type_size(); in ByteSizeLong()
[all …]

12345678910>>...37