Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DSegmentedByteString.java52 transient final byte[][] segments; field in SegmentedByteString
71 this.segments = new byte[segmentCount][]; in SegmentedByteString()
76 segments[segmentCount] = s.data; in SegmentedByteString()
79 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString()
126 checkOffsetAndCount(directory[segments.length - 1], pos, 1); in getByte()
129 int segmentPos = directory[segment + segments.length]; in getByte()
130 return segments[segment][pos - segmentOffset + segmentPos]; in getByte()
136 int i = Arrays.binarySearch(directory, 0, segments.length, pos + 1); in segment()
141 return directory[segments.length - 1]; in size()
145 byte[] result = new byte[directory[segments.length - 1]]; in toByteArray()
[all …]
/external/okhttp/okio/okio/src/main/java/okio/
DSegmentedByteString.java51 transient final byte[][] segments; field in SegmentedByteString
70 this.segments = new byte[segmentCount][]; in SegmentedByteString()
75 segments[segmentCount] = s.data; in SegmentedByteString()
78 directory[segmentCount + segments.length] = s.pos; in SegmentedByteString()
125 checkOffsetAndCount(directory[segments.length - 1], pos, 1); in getByte()
128 int segmentPos = directory[segment + segments.length]; in getByte()
129 return segments[segment][pos - segmentOffset + segmentPos]; in getByte()
135 int i = Arrays.binarySearch(directory, 0, segments.length, pos + 1); in segment()
140 return directory[segments.length - 1]; in size()
144 byte[] result = new byte[directory[segments.length - 1]]; in toByteArray()
[all …]
/external/tensorflow/tensorflow/python/ops/signal/
Dreconstruction_ops.py96 segments = -(-frame_length // frame_step) # Divide and round up.
106 paddings = [[0, segments], [0, segments * frame_step - frame_length]]
118 shape = full_shape([frames + segments, segments, frame_step])
131 shape = full_shape([(frames + segments) * segments, frame_step])
136 signal = signal[..., :(frames + segments - 1) * segments, :]
142 shape = full_shape([segments, (frames + segments - 1), frame_step])
149 shape = full_shape([(frames + segments - 1) * frame_step])
/external/skqp/src/gpu/ops/
DGrAAConvexPathRenderer.cpp66 static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument
69 int count = segments.count(); in center_of_mass()
75 p0 = segments[0].endPt(); in center_of_mass()
81 pj = segments[1].endPt() - p0; in center_of_mass()
84 pj = segments[i + 1].endPt() - p0; in center_of_mass()
99 const SkPoint& pt = segments[i].endPt(); in center_of_mass()
116 static bool compute_vectors(SegmentArray* segments, in compute_vectors() argument
121 if (!center_of_mass(*segments, fanPt)) { in compute_vectors()
124 int count = segments->count(); in compute_vectors()
138 Segment& sega = (*segments)[a]; in compute_vectors()
[all …]
/external/elfutils/src/
Dfindtextrel.c41 struct segments struct
91 static void check_rel (size_t nsegments, struct segments segments[nsegments],
307 struct segments *segments in process_file() local
308 = (struct segments *) malloc (nsegments_max * sizeof (segments[0])); in process_file()
309 if (segments == NULL) in process_file()
336 segments in process_file()
337 = (struct segments *) realloc (segments, in process_file()
339 * sizeof (segments[0])); in process_file()
340 if (segments == NULL) in process_file()
350 segments[nsegments].from = phdr->p_vaddr; in process_file()
[all …]
/external/skia/src/gpu/ops/
DGrAAConvexPathRenderer.cpp65 static bool center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument
68 int count = segments.count(); in center_of_mass()
74 p0 = segments[0].endPt(); in center_of_mass()
80 pj = segments[1].endPt() - p0; in center_of_mass()
83 pj = segments[i + 1].endPt() - p0; in center_of_mass()
98 const SkPoint& pt = segments[i].endPt(); in center_of_mass()
115 static bool compute_vectors(SegmentArray* segments, in compute_vectors() argument
120 if (!center_of_mass(*segments, fanPt)) { in compute_vectors()
123 int count = segments->count(); in compute_vectors()
137 Segment& sega = (*segments)[a]; in compute_vectors()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_errors.py58 segments = ['adb %s: failed ' % adb_cmd]
60 segments.append('with exit status %s ' % self.status)
62 segments.append('and output:\n')
63 segments.extend('- %s\n' % line for line in output.splitlines())
65 segments.append('and no output.')
66 message = ''.join(segments)
122 segments = ['shell command run via adb failed on the device:\n',
124 segments.append(' exit status: %s\n' % status)
126 segments.append(' output:\n')
131 segments.extend(' - %s\n' % line for line in output_lines)
[all …]
/external/testng/src/test/java/test/ant/
DTestCommandLineArgs.java23 String[] segments = path.split("[/\\\\]", -1); in testUnixPathResolution() local
25 assertEquals(4, segments.length); in testUnixPathResolution()
26 assertEquals("wee", segments[1]); in testUnixPathResolution()
34 String[] segments = path.split("[/\\\\]", -1); in testDOSPathResolution() local
36 assertEquals(5, segments.length); in testDOSPathResolution()
37 assertEquals("com", segments[2]); // because c: is actually \\ which will be split twice in testDOSPathResolution()
/external/llvm/lib/CodeGen/
DLiveInterval.cpp66 if (I == segments().end()) { in createDeadDef()
88 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef()
93 if (segments().empty()) in extendInBlock()
97 if (I == segments().begin()) in extendInBlock()
112 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo()
118 for (; MergeTo != segments().end() && NewEnd >= MergeTo->end; ++MergeTo) in extendSegmentEndTo()
126 if (MergeTo != segments().end() && MergeTo->start <= I->end && in extendSegmentEndTo()
133 segments().erase(std::next(I), MergeTo); in extendSegmentEndTo()
140 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentStartTo()
147 if (MergeTo == segments().begin()) { in extendSegmentStartTo()
[all …]
/external/python/cpython2/Lib/
Durlparse.py279 segments = bpath.split('/')[:-1] + path.split('/')
281 if segments[-1] == '.':
282 segments[-1] = ''
283 while '.' in segments:
284 segments.remove('.')
287 n = len(segments) - 1
289 if (segments[i] == '..'
290 and segments[i-1] not in ('', '..')):
291 del segments[i-1:i+1]
296 if segments == ['', '..']:
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLiveInterval.cpp94 if (I == segments().end()) { in createDeadDef()
117 segments().insert(I, Segment(Def, Def.getDeadSlot(), VNI)); in createDeadDef()
122 if (segments().empty()) in extendInBlock()
126 if (I == segments().begin()) in extendInBlock()
138 if (segments().empty()) in extendInBlock()
142 if (I == segments().begin()) in extendInBlock()
160 assert(I != segments().end() && "Not a valid segment!"); in extendSegmentEndTo()
166 for (; MergeTo != segments().end() && NewEnd >= MergeTo->end; ++MergeTo) in extendSegmentEndTo()
174 if (MergeTo != segments().end() && MergeTo->start <= I->end && in extendSegmentEndTo()
181 segments().erase(std::next(I), MergeTo); in extendSegmentEndTo()
[all …]
/external/syzkaller/sys/linux/
Dfilesystem.txt13 syz_read_part_table(size intptr, nsegs len[segments], segments ptr[in, array[fs_image_segment]])
15 …in, string["vfat"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
17 …n, string["msdos"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
19 …[in, string["bfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
21 …[in, string["xfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
23 …n, string["minix"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
25 …string["reiserfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
27 …[in, string["hfs"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
29 … string["hfsplus"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
31 … string["iso9660"]], dir ptr[in, filename], size intptr, nsegs len[segments], segments ptr[in, arr…
[all …]
/external/fonttools/Lib/fontTools/pens/
DpointPen.py68 def _flushContour(self, segments): argument
105 segments = [("move", [(pt, smooth, name, kwargs)])]
106 self._flushContour(segments)
108 segments = []
113 segments.append(("move", [(pt, smooth, name, kwargs)]))
138 segments.append((segmentType, currentSegment))
141 self._flushContour(segments)
159 def _flushContour(self, segments): argument
160 assert len(segments) >= 1
162 if segments[0][0] == "move":
[all …]
/external/freetype/src/autofit/
Dafhints.c48 if ( !axis->segments ) in af_axis_hints_new_segment()
50 axis->segments = axis->embedded.segments; in af_axis_hints_new_segment()
71 if ( axis->segments == axis->embedded.segments ) in af_axis_hints_new_segment()
73 if ( FT_NEW_ARRAY( axis->segments, new_max ) ) in af_axis_hints_new_segment()
75 ft_memcpy( axis->segments, axis->embedded.segments, in af_axis_hints_new_segment()
76 sizeof ( axis->embedded.segments ) ); in af_axis_hints_new_segment()
80 if ( FT_RENEW_ARRAY( axis->segments, old_max, new_max ) ) in af_axis_hints_new_segment()
87 segment = axis->segments + axis->num_segments++; in af_axis_hints_new_segment()
248 AF_Segment segments = axis->segments; in af_get_segment_index() local
249 AF_Segment limit = segments + axis->num_segments; in af_get_segment_index()
[all …]
Dafwarp.c78 AF_Segment segments, in af_warper_compute_line_best() argument
121 FT_Pos len = segments[nn].max_coord - segments[nn].min_coord; in af_warper_compute_line_best()
122 FT_Pos y0 = FT_MulFix( segments[nn].pos, scale ) + delta; in af_warper_compute_line_best()
178 AF_Segment segments; in af_warper_compute() local
199 segments = axis->segments; in af_warper_compute()
224 X1 = X2 = segments[0].pos; in af_warper_compute()
227 FT_Int X = segments[nn].pos; in af_warper_compute()
348 segments, num_segments ); in af_warper_compute()
/external/harfbuzz_ng/src/
Dhb-ot-cmap-table.hh86 const hb_vector_t<segment_plan> &segments) in serialize()
93 this->length.set (get_sub_table_size (segments)); in serialize()
95 this->segCountX2.set (segments.len * 2); in serialize()
96 this->entrySelector.set (MAX (1u, hb_bit_storage (segments.len)) - 1); in serialize()
98 this->rangeShift.set (segments.len * 2 > this->searchRange in serialize()
99 ? 2 * segments.len - this->searchRange in serialize()
102 HBUINT16 *end_count = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.len); in serialize()
104 HBUINT16 *start_count = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.len); in serialize()
105 HBINT16 *id_delta = c->allocate_size<HBINT16> (HBUINT16::static_size * segments.len); in serialize()
106 HBUINT16 *id_range_offset = c->allocate_size<HBUINT16> (HBUINT16::static_size * segments.len); in serialize()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_a_v_a_r.py35 self.segments = {}
47 mappings = sorted(self.segments[axis].items())
65 segments = self.segments[axis] = {}
70 segments[fixedToFloat(fromValue, 14)] = fixedToFloat(toValue, 14)
78 for key, value in sorted(self.segments[axis].items()):
91 segment = self.segments[axis] = {}
/external/sonivox/jet_tools/JetCreator/
DJetFile.py303 segments = []
360segments.append(JetSegment(segname, filename, start, end, length, output, quantize, jetevents, dls…
363 self.segments = segments
364 if not len(segments):
392 JINF_NUM_SMF_CHUNKS, len(self.segments),
428 for segment in self.segments:
508 for segment in self.segments:
519 for segment in self.segments:
526 for segment in self.segments:
535 for segment in self.segments:
[all …]
/external/skqp/src/gpu/
DGrDistanceFieldGenFromVector.cpp363 PathSegmentArray* segments) { in add_line_to_segment() argument
364 segments->push_back(); in add_line_to_segment()
365 segments->back().fType = PathSegment::kLine; in add_line_to_segment()
366 segments->back().fPts[0] = pts[0]; in add_line_to_segment()
367 segments->back().fPts[1] = pts[1]; in add_line_to_segment()
369 segments->back().init(); in add_line_to_segment()
373 PathSegmentArray* segments) { in add_quad_segment() argument
381 add_line_to_segment(line_pts, segments); in add_quad_segment()
384 segments->push_back(); in add_quad_segment()
385 segments->back().fType = PathSegment::kQuad; in add_quad_segment()
[all …]
/external/skia/src/gpu/
DGrDistanceFieldGenFromVector.cpp363 PathSegmentArray* segments) { in add_line_to_segment() argument
364 segments->push_back(); in add_line_to_segment()
365 segments->back().fType = PathSegment::kLine; in add_line_to_segment()
366 segments->back().fPts[0] = pts[0]; in add_line_to_segment()
367 segments->back().fPts[1] = pts[1]; in add_line_to_segment()
369 segments->back().init(); in add_line_to_segment()
373 PathSegmentArray* segments) { in add_quad_segment() argument
381 add_line_to_segment(line_pts, segments); in add_quad_segment()
384 segments->push_back(); in add_quad_segment()
385 segments->back().fType = PathSegment::kQuad; in add_quad_segment()
[all …]
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaImageDecoder.java67 List<String> segments = uri.getPathSegments(); in decode() local
68 int size = segments.size(); in decode()
69 if (size == 2 && segments.get(0).equals("drawable")) { in decode()
70 String resName = segments.get(1); in decode()
72 } else if (size == 1 && TextUtils.isDigitsOnly(segments.get(0))) { in decode()
74 id = Integer.parseInt(segments.get(0)); in decode()
/external/protobuf/src/google/protobuf/util/
Djson_util_test.cc185 explicit SegmentedZeroCopyOutputStream(list<Segment> segments) in SegmentedZeroCopyOutputStream() argument
186 : segments_(segments), last_segment_(static_cast<char*>(NULL), 0), byte_count_(0) {} in SegmentedZeroCopyOutputStream()
229 list<Segment> segments; in TEST() local
233 segments.push_back( in TEST()
238 segments.push_back( in TEST()
247 SegmentedZeroCopyOutputStream output_stream(segments); in TEST()
267 SegmentedZeroCopyOutputStream output_stream(segments); in TEST()
289 SegmentedZeroCopyOutputStream output_stream(segments); in TEST()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/xpath/
DXMPPath.java47 private List segments = new ArrayList(5); field in XMPPath
57 segments.add(segment); in add()
67 return (XMPPathSegment) segments.get(index); in getSegment()
76 return segments.size(); in size()
/external/fonttools/Tests/ttLib/tables/
D_a_v_a_r_test.py23 avar.segments["wdth"] = {-1.0: -1.0, 0.0: 0.0, 0.3: 0.8, 1.0: 1.0}
24 avar.segments["wght"] = {-1.0: -1.0, 0.0: 0.0, 1.0: 1.0}
33 }, avar.segments)
42 avar.segments["opsz"] = {-1.0: -1.0, 0.0: 0.0, 0.3: 0.8, 1.0: 1.0}
65 avar.segments)
/external/icu/icu4c/source/i18n/
Drbt_rule.cpp68 segments(0), in TransliterationRule()
107 this->segments = segs; in TransliterationRule()
175 segments = NULL; in TransliterationRule()
178 segments = (UnicodeFunctor **)uprv_malloc(other.segmentsCount * sizeof(UnicodeFunctor *)); in TransliterationRule()
179 uprv_memcpy(segments, other.segments, (size_t)other.segmentsCount*sizeof(segments[0])); in TransliterationRule()
195 uprv_free(segments); in ~TransliterationRule()
364 if (segments != NULL) { in matchAndReplace()
366 ((StringMatcher*) segments[i])->resetMatch(); in matchAndReplace()

12345678910>>...17