Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/external/syzkaller/vendor/golang.org/x/net/http2/
Ddatabuffer.go66 chunks [][]byte member
90 if b.r == len(b.chunks[0]) {
91 putDataBufferChunk(b.chunks[0])
92 end := len(b.chunks) - 1
93 copy(b.chunks[:end], b.chunks[1:])
94 b.chunks[end] = nil
95 b.chunks = b.chunks[:end]
103 if len(b.chunks) == 1 {
104 return b.chunks[0][b.r:b.w]
106 return b.chunks[0][b.r:]
[all …]
/external/python/cpython3/Lib/
Dtextwrap.py176 chunks = self.wordsep_re.split(text)
178 chunks = self.wordsep_simple_re.split(text)
179 chunks = [c for c in chunks if c]
180 return chunks
182 def _fix_sentence_endings(self, chunks): argument
193 while i < len(chunks)-1:
194 if chunks[i+1] == " " and patsearch(chunks[i]):
195 chunks[i+1] = " "
233 def _wrap_chunks(self, chunks): argument
259 chunks.reverse()
[all …]
/external/python/cpython2/Lib/
Dtextwrap.py188 chunks = pat.split(text)
189 chunks = filter(None, chunks) # remove empty chunks
190 return chunks
192 def _fix_sentence_endings(self, chunks): argument
203 while i < len(chunks)-1:
204 if chunks[i+1] == " " and patsearch(chunks[i]):
205 chunks[i+1] = " "
243 def _wrap_chunks(self, chunks): argument
262 chunks.reverse()
264 while chunks:
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DChunkedIntArray.java49 ChunksVector chunks=new ChunksVector(); field in ChunkedIntArray
63 chunks.addElement(fastArray); in ChunkedIntArray()
92 if (chunkpos > chunks.size() - 1) in appendSlot()
93 chunks.addElement(new int[chunkalloc]); in appendSlot()
94 int[] chunk = chunks.elementAt(chunkpos); in appendSlot()
126 int[] chunk = chunks.elementAt(chunkpos); in readEntry()
148 int[] chunk = chunks.elementAt(chunkpos); in specialFind()
207 int[] chunk = chunks.elementAt(chunkpos); in writeEntry()
228 if (chunkpos > chunks.size() - 1) in writeSlot()
229 chunks.addElement(new int[chunkalloc]); in writeSlot()
[all …]
/external/mesa3d/src/intel/common/
Dgen_urb_config.c129 unsigned chunks[4]; in gen_get_urb_config() local
136 chunks[i] = DIV_ROUND_UP(min_entries[i] * entry_size_bytes[i], in gen_get_urb_config()
141 chunk_size_bytes) - chunks[i]; in gen_get_urb_config()
143 chunks[i] = 0; in gen_get_urb_config()
147 total_needs += chunks[i]; in gen_get_urb_config()
161 chunks[i] += additional; in gen_get_urb_config()
166 chunks[MESA_SHADER_GEOMETRY] += remaining_space; in gen_get_urb_config()
172 total_chunks += chunks[i]; in gen_get_urb_config()
180 entries[i] = chunks[i] * chunk_size_bytes / entry_size_bytes[i]; in gen_get_urb_config()
199 start[i] = start[i - 1] + chunks[i - 1]; in gen_get_urb_config()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DHttpChunkedResponseTest.java48 String[] chunks; field in HttpChunkedResponseTest.ChunkedInputStream
50 private ChunkedInputStream(String[] chunks) { in ChunkedInputStream() argument
51 this.chunks = chunks; in ChunkedInputStream()
57 for (int i = 0; i < this.chunks[this.chunk].length(); ++i) { in read()
58 buffer[i] = (byte) this.chunks[this.chunk].charAt(i); in read()
60 return this.chunks[this.chunk++].length(); in read()
/external/v8/tools/
Dmap-processor.js252 chunkIndex(chunks) { argument
254 for (let i = 0; i < chunks.length; i++) {
255 let chunk = chunks[i];
263 position(chunks) { argument
264 let index = this.chunkIndex(chunks);
266 let yFrom = kChunkHeight - chunks[index].yOffset(this);
339 chunkIndex(chunks) { argument
341 for (let i = 0; i < chunks.length; i++) {
342 let chunk = chunks[i];
518 let chunks = [];
[all …]
/external/testng/doc/
Dprettify.js227 var chunks = new Array();
252 chunks.push(new PR_Token(s.substring(start, pos), PR_PLAIN));
254 chunks.push(new PR_Token(s.substring(pos, i + 1), null));
263 chunks.push(new PR_Token(s.substring(start, s.length), PR_PLAIN));
265 return chunks;
271 function PR_splitEntities(chunks) { argument
274 for (var ci = 0, nc = chunks.length; ci < nc; ++ci) {
275 var chunk = chunks[ci];
323 function PR_splitChunks(chunks, tokenEnds) { argument
349 if (ci < chunks.length) { chunk = chunks[ci++]; }
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/
Drx-buffer_count.hpp79 mutable std::deque<value_type> chunks; member
89 chunks.emplace_back(); in on_next()
91 for(auto& chunk : chunks) { in on_next()
94 while (!chunks.empty() && int(chunks.front().size()) == this->count) { in on_next()
95 dest.on_next(std::move(chunks.front())); in on_next()
96 chunks.pop_front(); in on_next()
105 while (!chunks.empty()) { in on_completed()
106 dest.on_next(std::move(chunks.front())); in on_completed()
107 chunks.pop_front(); in on_completed()
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/scanner/
DScannerImpl.java1568 StringBuilder chunks = new StringBuilder(); in scanBlockScalar() local
1602 chunks.append(breaks); in scanBlockScalar()
1608 chunks.append(reader.prefixForward(length)); in scanBlockScalar()
1621 chunks.append(" "); in scanBlockScalar()
1624 chunks.append(lineBreak); in scanBlockScalar()
1634 chunks.append(lineBreak); in scanBlockScalar()
1637 chunks.append(breaks); in scanBlockScalar()
1640 return new ScalarToken(chunks.toString(), false, startMark, endMark, style); in scanBlockScalar()
1751 StringBuilder chunks = new StringBuilder(); in scanBlockScalarIndentation() local
1761 chunks.append(scanLineBreak()); in scanBlockScalarIndentation()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DWriterToUTF8Buffered.java203 final int chunks; in write() local
205 chunks = split + 1; in write()
207 chunks = split; in write()
209 for (int chunk = 1; chunk <= chunks; chunk++) in write()
212 end_chunk = start + (int) ((((long) length) * chunk) / chunks); in write()
338 final int chunks; in write() local
340 chunks = split + 1; in write()
342 chunks = split; in write()
344 for (int chunk = 1; chunk <= chunks; chunk++) in write()
347 end_chunk = start + (int) ((((long) length) * chunk) / chunks); in write()
[all …]
/external/python/cpython2/Lib/distutils/
Dfancy_getopt.py424 chunks = re.split(r'( +|-+)', text)
425 chunks = filter(None, chunks) # ' - ' results in empty strings
428 while chunks:
433 while chunks:
434 l = len(chunks[0])
436 cur_line.append(chunks[0])
437 del chunks[0]
445 if chunks: # any chunks left to process?
451 cur_line.append(chunks[0][0:width])
452 chunks[0] = chunks[0][width:]
[all …]
/external/python/cpython3/Lib/distutils/
Dfancy_getopt.py388 chunks = re.split(r'( +|-+)', text)
389 chunks = [ch for ch in chunks if ch] # ' - ' results in empty strings
392 while chunks:
396 while chunks:
397 l = len(chunks[0])
399 cur_line.append(chunks[0])
400 del chunks[0]
408 if chunks: # any chunks left to process?
413 cur_line.append(chunks[0][0:width])
414 chunks[0] = chunks[0][width:]
[all …]
/external/fonttools/Lib/fontTools/t1Lib/
D__init__.py208 chunks = findEncryptedChunks(data)
210 for isEncrypted, chunk in chunks:
226 chunks = findEncryptedChunks(data)
227 for isEncrypted, chunk in chunks:
243 chunks = findEncryptedChunks(data)
245 for isEncrypted, chunk in chunks:
256 chunks = findEncryptedChunks(data)
259 for isEncrypted, chunk in chunks:
288 chunks = findEncryptedChunks(data)
290 for isEncrypted, chunk in chunks:
[all …]
/external/python/cpython3/Lib/json/
Dencoder.py199 chunks = self.iterencode(o, _one_shot=True)
200 if not isinstance(chunks, (list, tuple)):
201 chunks = list(chunks)
202 return ''.join(chunks)
320 chunks = _iterencode_list(value, _current_indent_level)
322 chunks = _iterencode_dict(value, _current_indent_level)
324 chunks = _iterencode(value, _current_indent_level)
325 yield from chunks
400 chunks = _iterencode_list(value, _current_indent_level)
402 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
/external/ltp/utils/benchmark/ebizzy-0.3/
Debizzy.c62 static unsigned int chunks; variable
126 chunks = 10; in read_options()
147 chunks = atoi(optarg); in read_options()
148 if (chunks == 0) in read_options()
197 printf("chunks %u\n", chunks); in read_options()
258 size, chunks, chunk_size); in alloc_mem()
293 mem = alloc_mem(chunks * sizeof(record_t *)); in allocate()
296 hole_mem = alloc_mem(chunks * sizeof(record_t *)); in allocate()
298 for (i = 0; i < chunks; i++) { in allocate()
307 for (i = 0; i < chunks; i++) in allocate()
[all …]
/external/ltp/runtest/
Dipc5 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
8 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
12 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
15 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
18 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
21 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
24 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
28 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
/external/perfetto/src/protozero/
Dscattered_stream_writer_unittest.cc48 EXPECT_EQ(1u, delegate.chunks().size()); in TEST()
53 EXPECT_EQ(2u, delegate.chunks().size()); in TEST()
59 EXPECT_EQ(2u, delegate.chunks().size()); in TEST()
64 EXPECT_EQ(3u, delegate.chunks().size()); in TEST()
69 EXPECT_EQ(6u, delegate.chunks().size()); in TEST()
75 EXPECT_EQ(6u, delegate.chunks().size()); in TEST()
88 EXPECT_EQ(8u, delegate.chunks().size()); in TEST()
/external/python/cpython2/Lib/json/
Dencoder.py207 chunks = self.iterencode(o, _one_shot=True)
208 if not isinstance(chunks, (list, tuple)):
209 chunks = list(chunks)
210 return ''.join(chunks)
327 chunks = _iterencode_list(value, _current_indent_level)
329 chunks = _iterencode_dict(value, _current_indent_level)
331 chunks = _iterencode(value, _current_indent_level)
332 for chunk in chunks:
403 chunks = _iterencode_list(value, _current_indent_level)
405 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
/external/libdrm/amdgpu/
Damdgpu_cs.c180 struct drm_amdgpu_cs_chunk *chunks; in amdgpu_cs_submit_one() local
203 chunks = alloca(sizeof(struct drm_amdgpu_cs_chunk) * size); in amdgpu_cs_submit_one()
210 cs.in.chunks = (uint64_t)(uintptr_t)chunk_array; in amdgpu_cs_submit_one()
218 chunk_array[i] = (uint64_t)(uintptr_t)&chunks[i]; in amdgpu_cs_submit_one()
219 chunks[i].chunk_id = AMDGPU_CHUNK_ID_IB; in amdgpu_cs_submit_one()
220 chunks[i].length_dw = sizeof(struct drm_amdgpu_cs_chunk_ib) / 4; in amdgpu_cs_submit_one()
221 chunks[i].chunk_data = (uint64_t)(uintptr_t)&chunk_data[i]; in amdgpu_cs_submit_one()
240 chunk_array[i] = (uint64_t)(uintptr_t)&chunks[i]; in amdgpu_cs_submit_one()
241 chunks[i].chunk_id = AMDGPU_CHUNK_ID_FENCE; in amdgpu_cs_submit_one()
242 chunks[i].length_dw = sizeof(struct drm_amdgpu_cs_chunk_fence) / 4; in amdgpu_cs_submit_one()
[all …]
/external/testng/src/main/java/org/testng/mustache/
DMustache.java18 List<BaseChunk> chunks = Lists.newArrayList(); in run() local
57 chunks.add(new StringChunk(model, r)); in run()
66 chunks.add(new StringChunk(model, r)); in run()
71 chunks.add(new VariableChunk(model, variable)); in run()
78 chunks.add(new StringChunk(model, "" + template.charAt(ti))); in run()
86 for (BaseChunk bc : chunks) { in run()
90 for (BaseChunk bc : chunks) { in run()
/external/modp_b64/
Dmodp_b64.cc140 size_t chunks = (leftover == 0) ? len / 4 - 1 : len /4; in modp_b64_decode() local
147 for (i = 0; i < chunks; ++i) { in modp_b64_decode()
166 return (chunks+1)*3; in modp_b64_decode()
184 return 3*chunks + (6*leftover)/8; in modp_b64_decode()
210 size_t chunks = (leftover == 0) ? len / 4 - 1 : len /4; in modp_b64_decode() local
217 for (i = 0; i < chunks; ++i) { in modp_b64_decode()
241 return (chunks+1)*3; in modp_b64_decode()
262 return 3*chunks + (6*leftover)/8; in modp_b64_decode()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c641 fprintf(stderr, " %u..%u\n", backing->chunks[i].begin, backing->chunks[i].end); in sparse_dump()
665 uint32_t cur_num_pages = backing->chunks[idx].end - backing->chunks[idx].begin; in sparse_backing_alloc()
686 best_backing->chunks = CALLOC(best_backing->max_chunks, in sparse_backing_alloc()
687 sizeof(*best_backing->chunks)); in sparse_backing_alloc()
688 if (!best_backing->chunks) { in sparse_backing_alloc()
704 FREE(best_backing->chunks); in sparse_backing_alloc()
714 best_backing->chunks[0].begin = 0; in sparse_backing_alloc()
715 best_backing->chunks[0].end = pages; in sparse_backing_alloc()
725 *pstart_page = best_backing->chunks[best_idx].begin; in sparse_backing_alloc()
726 best_backing->chunks[best_idx].begin += *pnum_pages; in sparse_backing_alloc()
[all …]
/external/libdrm/radeon/
Dradeon_cs_gem.c75 struct drm_radeon_cs_chunk chunks[2]; member
163 csg->chunks[0].chunk_id = RADEON_CHUNK_ID_IB; in cs_gem_create()
164 csg->chunks[0].length_dw = 0; in cs_gem_create()
165 csg->chunks[0].chunk_data = (uint64_t)(uintptr_t)csg->base.packets; in cs_gem_create()
166 csg->chunks[1].chunk_id = RADEON_CHUNK_ID_RELOCS; in cs_gem_create()
167 csg->chunks[1].length_dw = 0; in cs_gem_create()
168 csg->chunks[1].chunk_data = (uint64_t)(uintptr_t)csg->relocs; in cs_gem_create()
257 csg->chunks[1].chunk_data = (uint64_t)(uintptr_t)csg->relocs; in cs_gem_write_reloc()
266 csg->chunks[1].length_dw += RELOC_SIZE; in cs_gem_write_reloc()
437 csg->chunks[0].length_dw = cs->cdw; in cs_gem_emit()
[all …]
/external/python/cpython2/Lib/distutils/command/
Dregister.py262 chunks = []
268 chunks.append(sep_boundary)
269 chunks.append('\nContent-Disposition: form-data; name="%s"'%key)
270 chunks.append("\n\n")
271 chunks.append(value)
273 chunks.append('\n') # write an extra newline (lurve Macs)
274 chunks.append(end_boundary)
275 chunks.append("\n")
279 for chunk in chunks:

12345678910>>...15