Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/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/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/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/valgrind/memcheck/
Dmc_malloc_wrappers.c261 if ( in_block_list (mp->chunks, mc) ) in live_block()
762 mp->chunks = VG_(HT_construct)( "MC_(create_mempool)" ); in MC_()
798 VG_(HT_ResetIter)(mp->chunks); in MC_()
799 while ( (mc = VG_(HT_Next)(mp->chunks)) ) { in MC_()
805 VG_(HT_destruct)(mp->chunks, (void (*)(void *))delete_MC_Chunk); in MC_()
826 MC_Chunk **chunks = (MC_Chunk**) VG_(HT_to_array)( mp->chunks, &n_chunks ); in check_mempool_sane() local
827 if (!chunks) in check_mempool_sane()
839 VG_(HT_ResetIter)(mp2->chunks); in check_mempool_sane()
840 while (VG_(HT_Next)(mp2->chunks)) { in check_mempool_sane()
853 VG_(ssort)((void*)chunks, n_chunks, sizeof(VgHashNode*), mp_compar); in check_mempool_sane()
[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/
Dt1Lib.py207 chunks = findEncryptedChunks(data)
209 for isEncrypted, chunk in chunks:
224 chunks = findEncryptedChunks(data)
225 for isEncrypted, chunk in chunks:
241 chunks = findEncryptedChunks(data)
244 for isEncrypted, chunk in chunks:
257 chunks = findEncryptedChunks(data)
261 for isEncrypted, chunk in chunks:
292 chunks = findEncryptedChunks(data)
294 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
399 chunks = _iterencode_list(value, _current_indent_level)
401 chunks = _iterencode_dict(value, _current_indent_level)
[all …]
/external/libdrm/amdgpu/
Damdgpu_cs.c177 struct drm_amdgpu_cs_chunk *chunks; in amdgpu_cs_submit_one() local
202 chunks = alloca(sizeof(struct drm_amdgpu_cs_chunk) * size); in amdgpu_cs_submit_one()
209 cs.in.chunks = (uint64_t)(uintptr_t)chunk_array; in amdgpu_cs_submit_one()
217 chunk_array[i] = (uint64_t)(uintptr_t)&chunks[i]; in amdgpu_cs_submit_one()
218 chunks[i].chunk_id = AMDGPU_CHUNK_ID_IB; in amdgpu_cs_submit_one()
219 chunks[i].length_dw = sizeof(struct drm_amdgpu_cs_chunk_ib) / 4; in amdgpu_cs_submit_one()
220 chunks[i].chunk_data = (uint64_t)(uintptr_t)&chunk_data[i]; in amdgpu_cs_submit_one()
239 chunk_array[i] = (uint64_t)(uintptr_t)&chunks[i]; in amdgpu_cs_submit_one()
240 chunks[i].chunk_id = AMDGPU_CHUNK_ID_FENCE; in amdgpu_cs_submit_one()
241 chunks[i].length_dw = sizeof(struct drm_amdgpu_cs_chunk_fence) / 4; in amdgpu_cs_submit_one()
[all …]
/external/ltp/runtest/
Dpipes5 # 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
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
Dstress.part224 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
27 # spawns 5 children to write 100 chunks of 4090 bytes to a named pipe
31 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
34 # spawns 5 children to write 100 chunks of 4090 bytes to an unnamed pipe
37 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
40 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
43 # spawns 5 children to write 10 chunks of 5000 bytes to a named pipe
47 # spawns 5 children to write 10 chunks of 5000 bytes to an unnamed pipe
/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/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/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/libdrm/radeon/
Dradeon_cs_gem.c78 struct drm_radeon_cs_chunk chunks[2]; member
166 csg->chunks[0].chunk_id = RADEON_CHUNK_ID_IB; in cs_gem_create()
167 csg->chunks[0].length_dw = 0; in cs_gem_create()
168 csg->chunks[0].chunk_data = (uint64_t)(uintptr_t)csg->base.packets; in cs_gem_create()
169 csg->chunks[1].chunk_id = RADEON_CHUNK_ID_RELOCS; in cs_gem_create()
170 csg->chunks[1].length_dw = 0; in cs_gem_create()
171 csg->chunks[1].chunk_data = (uint64_t)(uintptr_t)csg->relocs; in cs_gem_create()
260 csg->chunks[1].chunk_data = (uint64_t)(uintptr_t)csg->relocs; in cs_gem_write_reloc()
269 csg->chunks[1].length_dw += RELOC_SIZE; in cs_gem_write_reloc()
440 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:
/external/v8/src/parsing/
Dscanner-character-streams.cc467 void DeleteChunks(Chunks& chunks) { in DeleteChunks() argument
468 for (size_t i = 0; i < chunks.size(); i++) delete[] chunks[i].data; in DeleteChunks()
474 size_t FindChunk(Chunks& chunks, ScriptCompiler::ExternalSourceStream* source, in FindChunk() argument
477 chunks.empty() ? 0 : (chunks.back().byte_pos + chunks.back().byte_length); in FindChunk()
480 bool out_of_data = !chunks.empty() && chunks.back().byte_length == 0; in FindChunk()
487 chunks.push_back({chunk, len, end_pos}); in FindChunk()
497 DCHECK(!chunks.empty()); in FindChunk()
498 DCHECK_EQ(end_pos, chunks.back().byte_pos + chunks.back().byte_length); in FindChunk()
499 DCHECK_EQ(out_of_data, chunks.back().byte_length == 0); in FindChunk()
506 return chunks.size() - 1; in FindChunk()
[all …]

12345678910>>...14