/external/python/cpython3/Lib/ |
D | chunk.py | 65 self.chunksize = struct.unpack_from(strflag+'L', file.read(4))[0] 69 self.chunksize = self.chunksize - 8 # subtract header 84 return self.chunksize 111 pos = pos + self.chunksize 112 if pos < 0 or pos > self.chunksize: 130 if self.size_read >= self.chunksize: 133 size = self.chunksize - self.size_read 134 if size > self.chunksize - self.size_read: 135 size = self.chunksize - self.size_read 138 if self.size_read == self.chunksize and \ [all …]
|
/external/python/cpython2/Lib/ |
D | chunk.py | 65 self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] 69 self.chunksize = self.chunksize - 8 # subtract header 84 return self.chunksize 111 pos = pos + self.chunksize 112 if pos < 0 or pos > self.chunksize: 130 if self.size_read >= self.chunksize: 133 size = self.chunksize - self.size_read 134 if size > self.chunksize - self.size_read: 135 size = self.chunksize - self.size_read 138 if self.size_read == self.chunksize and \ [all …]
|
/external/python/cpython3/Lib/multiprocessing/ |
D | pool.py | 263 def map(self, func, iterable, chunksize=None): argument 268 return self._map_async(func, iterable, mapstar, chunksize).get() 270 def starmap(self, func, iterable, chunksize=None): argument 276 return self._map_async(func, iterable, starmapstar, chunksize).get() 278 def starmap_async(self, func, iterable, chunksize=None, callback=None, argument 283 return self._map_async(func, iterable, starmapstar, chunksize, 297 def imap(self, func, iterable, chunksize=1): argument 303 if chunksize == 1: 312 if chunksize < 1: 315 chunksize)) [all …]
|
/external/python/apitools/apitools/base/py/ |
D | transfer_test.py | 52 chunksize = 10 54 six.StringIO(), chunksize=chunksize, total_size=total_size) 55 self.assertEqual(chunksize - 1, 66 six.StringIO(), chunksize=10, total_size=total_size) 76 default_chunksize = download.chunksize 77 for chunksize in (100, default_chunksize): 78 download.chunksize = chunksize 81 download.chunksize + start - 1, 84 start, chunksize)) 159 download_stream, chunksize=26, total_size=52)
|
D | transfer.py | 81 def __init__(self, stream, close_stream=False, chunksize=None, argument 96 self.chunksize = chunksize or 1048576 283 http_request.headers['Range'] = 'bytes=0-%d' % (self.chunksize - 1,) 386 alternate = start + self.chunksize - 1 549 close_stream=False, chunksize=None, auto_transfer=True, argument 553 stream, close_stream=close_stream, chunksize=chunksize, 858 def __ValidateChunksize(self, chunksize=None): argument 861 chunksize = chunksize or self.chunksize 862 if chunksize % self.__server_chunk_granularity: 879 self.__ValidateChunksize(self.chunksize) [all …]
|
/external/python/cpython2/Lib/multiprocessing/ |
D | pool.py | 248 def map(self, func, iterable, chunksize=None): argument 253 return self.map_async(func, iterable, chunksize).get() 255 def imap(self, func, iterable, chunksize=1): argument 260 if chunksize == 1: 266 assert chunksize > 1 267 task_batches = Pool._get_tasks(func, iterable, chunksize) 273 def imap_unordered(self, func, iterable, chunksize=1): argument 278 if chunksize == 1: 284 assert chunksize > 1 285 task_batches = Pool._get_tasks(func, iterable, chunksize) [all …]
|
/external/ltp/testcases/kernel/mem/mtest01/ |
D | mtest01.c | 86 int chunksize = 1024 * 1024; /* one meg at a time by default */ in main() local 101 chunksize = atoi(optarg); in main() 257 bytecount = chunksize; in main() 259 if ((mem = malloc(chunksize)) == NULL) { in main() 266 for (j = 0; j < chunksize; j++) in main() 271 bytecount, chunksize); in main() 272 bytecount += chunksize; in main()
|
/external/jemalloc/test/unit/ |
D | prof_gdump.c | 38 p = mallocx(chunksize, 0); in TEST_BEGIN() 43 q = mallocx(chunksize, 0); in TEST_BEGIN() 54 r = mallocx(chunksize, 0); in TEST_BEGIN() 65 s = mallocx(chunksize, 0); in TEST_BEGIN()
|
/external/python/google-api-python-client/tests/ |
D | test_http.py | 221 datafile('small.png'), chunksize=500, resumable=True) 225 self.assertEqual(500, upload.chunksize()) 234 self.assertEqual(500, new_upload.chunksize()) 239 datafile('small.png'), mimetype='image/png', chunksize=-2, 243 media = MediaInMemoryUpload(b'abcdef', mimetype='text/plain', chunksize=10, 246 self.assertEqual(10, media.chunksize()) 254 datafile('small.png'), chunksize=500, resumable=True) 285 fd=fd, mimetype='image/png', chunksize=500, resumable=True) 289 self.assertEqual(500, upload.chunksize()) 295 fd=f, mimetype='image/png', chunksize=500, resumable=True) [all …]
|
/external/python/google-api-python-client/googleapiclient/ |
D | http.py | 273 def chunksize(self): member in MediaUpload 413 def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE, argument 434 if not (chunksize == -1 or chunksize > 0): 436 self._chunksize = chunksize 442 def chunksize(self): member in MediaIoBaseUpload 537 def __init__(self, filename, mimetype=None, chunksize=DEFAULT_CHUNK_SIZE, argument 561 super(MediaFileUpload, self).__init__(fd, mimetype, chunksize=chunksize, 577 chunksize=d['_chunksize'], resumable=d['_resumable']) 589 chunksize=DEFAULT_CHUNK_SIZE, resumable=False): argument 605 super(MediaInMemoryUpload, self).__init__(fd, mimetype, chunksize=chunksize, [all …]
|
/external/u-boot/common/ |
D | dlmalloc.c | 459 #define chunksize(p) ((p)->size & ~(SIZE_BITS)) macro 807 assert(chunksize(next) >= MINSIZE); 890 while (FD != BK && S < chunksize(FD)) FD = FD->fd; \ 992 INTERNAL_SIZE_T size = chunksize(p); 1019 INTERNAL_SIZE_T size = chunksize(p); 1075 INTERNAL_SIZE_T old_top_size = chunksize(old_top); 1291 victim_size = chunksize(victim); 1308 victim_size = chunksize(victim); 1334 victim_size = chunksize(victim); 1397 victim_size = chunksize(victim); [all …]
|
/external/python/apitools/samples/storage_sample/ |
D | downloads_test.py | 132 for chunksize in (2, 3, 15, 100): 134 self.__download.chunksize = chunksize 142 for chunksize in (1048576, 40 * 1048576): 144 self.__download.chunksize = chunksize
|
/external/dtc/ |
D | data.c | 98 size_t chunksize, ret; in data_copy_file() local 101 chunksize = 4096; in data_copy_file() 103 chunksize = maxlen - d.len; in data_copy_file() 105 d = data_grow_for(d, chunksize); in data_copy_file() 106 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
|
/external/u-boot/scripts/dtc/ |
D | data.c | 98 size_t chunksize, ret; in data_copy_file() local 101 chunksize = 4096; in data_copy_file() 103 chunksize = maxlen - d.len; in data_copy_file() 105 d = data_grow_for(d, chunksize); in data_copy_file() 106 ret = fread(d.val + d.len, 1, chunksize, f); in data_copy_file()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | dlmalloc.c | 1731 #define chunksize(p) ((p)->head & ~(INUSE_BITS)) macro 2493 (chunksize(p))))->prev_foot ^ mparams.magic)) 2629 size_t sz = chunksize(p); in do_check_top_chunk() 2642 size_t sz = chunksize(p); in do_check_mmapped_chunk() 2707 size_t tsize = chunksize(t); in do_check_tree() 2718 assert(chunksize(u) == tsize); in do_check_tree() 2745 assert(chunksize(u->child[0]) < chunksize(u->child[1])); in do_check_tree() 2773 size_t size = chunksize(p); in do_check_smallbin() 2779 assert(p->bk == b || chunksize(p->bk) == chunksize(p)); in do_check_smallbin() 2790 size_t size = chunksize(x); in bin_find() [all …]
|
/external/libffi/src/ |
D | dlmalloc.c | 1726 #define chunksize(p) ((p)->head & ~(INUSE_BITS)) macro 2488 (chunksize(p))))->prev_foot ^ mparams.magic)) 2624 size_t sz = chunksize(p); in do_check_top_chunk() 2637 size_t sz = chunksize(p); in do_check_mmapped_chunk() 2702 size_t tsize = chunksize(t); in do_check_tree() 2713 assert(chunksize(u) == tsize); in do_check_tree() 2740 assert(chunksize(u->child[0]) < chunksize(u->child[1])); in do_check_tree() 2768 size_t size = chunksize(p); in do_check_smallbin() 2774 assert(p->bk == b || chunksize(p->bk) == chunksize(p)); in do_check_smallbin() 2785 size_t size = chunksize(x); in bin_find() [all …]
|
/external/dlmalloc/ |
D | malloc.c | 2262 #define chunksize(p) ((p)->head & ~(FLAG_BITS)) macro 3074 (chunksize(p))))->prev_foot ^ mparams.magic)) 3254 size_t sz = chunksize(p); in do_check_mmapped_chunk() 3279 size_t sz = chunksize(p); in do_check_free_chunk() 3319 size_t tsize = chunksize(t); in do_check_tree() 3330 assert(chunksize(u) == tsize); in do_check_tree() 3357 assert(chunksize(u->child[0]) < chunksize(u->child[1])); in do_check_tree() 3385 size_t size = chunksize(p); in do_check_smallbin() 3391 assert(p->bk == b || chunksize(p->bk) == chunksize(p)); in do_check_smallbin() 3402 size_t size = chunksize(x); in bin_find() [all …]
|
/external/jemalloc/src/ |
D | chunk.c | 17 size_t chunksize; variable 153 size_t nadd = (size == 0) ? 1 : size / chunksize; in chunk_register() 179 size_t nsub = (size == 0) ? 1 : size / chunksize; in chunk_deregister() 213 assert(new_addr == NULL || alignment == chunksize); in chunk_recycle() 222 alloc_size = size + CHUNK_CEILING(alignment) - chunksize; in chunk_recycle() 379 ret = chunk_alloc_mmap(NULL, size, chunksize, &zero, &commit); in chunk_alloc_base() 504 JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ret, chunksize); in chunk_alloc_wrapper() 783 chunksize = (ZU(1) << opt_lg_chunk); in chunk_boot() 784 assert(chunksize >= PAGE); in chunk_boot() 785 chunksize_mask = chunksize - 1; in chunk_boot() [all …]
|
D | huge.c | 48 return (huge_palloc(tsdn, arena, usize, chunksize, zero)); in huge_malloc() 69 assert(ausize >= chunksize); in huge_palloc() 326 if (oldsize < chunksize || usize_max < chunksize) in huge_ralloc_no_move() 373 if (alignment <= chunksize) in huge_ralloc_move_helper()
|
/external/libpcap/ |
D | dlpisubs.c | 305 bpf_u_int32 ss, chunksize; in pcap_conf_bufmod() local 340 chunksize = CHUNKSIZE; in pcap_conf_bufmod() 341 if (strioctl(p->fd, SBIOCSCHUNK, sizeof(chunksize), (char *)&chunksize) in pcap_conf_bufmod()
|
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
D | IOHandler.java | 110 int chunksize = 8 * 1024; in writeChunks() local 111 for (int p = 0; p < length; p += chunksize) { in writeChunks() 112 int chunk = p + chunksize < length ? chunksize : length - p; in writeChunks()
|
/external/python/cpython3/Lib/concurrent/futures/ |
D | process.py | 173 def _get_chunks(*iterables, chunksize): argument 177 chunk = tuple(itertools.islice(it, chunksize)) 619 def map(self, fn, *iterables, timeout=None, chunksize=1): argument 640 if chunksize < 1: 644 _get_chunks(*iterables, chunksize=chunksize),
|
/external/skia/tools/ |
D | embed_resources.py | 13 def bytes_from_file(f, chunksize=8192): argument 15 chunk = f.read(chunksize)
|
/external/skqp/tools/ |
D | embed_resources.py | 13 def bytes_from_file(f, chunksize=8192): argument 15 chunk = f.read(chunksize)
|
/external/python/cpython2/Modules/ |
D | bz2module.c | 413 int chunksize; in Util_ReadAhead() local 432 chunksize = Util_UnivNewlineRead(&bzerror, f->fp, f->f_buf, in Util_ReadAhead() local 435 f->pos += chunksize; in Util_ReadAhead() 445 f->f_bufend = f->f_buf + chunksize; in Util_ReadAhead() 510 size_t bytesread, buffersize, chunksize; in BZ2File_read() local 555 chunksize = Util_UnivNewlineRead(&bzerror, self->fp, in BZ2File_read() local 559 self->pos += chunksize; in BZ2File_read() 561 bytesread += chunksize; in BZ2File_read() 1022 int chunksize; in BZ2File_seek() local 1060 chunksize = Util_UnivNewlineRead( in BZ2File_seek() local [all …]
|