Home
last modified time | relevance | path

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

1234

/external/webkit/LayoutTests/fast/url/
Dsegments-from-data-url-expected.txt6 PASS segments('http://user:pass@foo:21/bar;par?b#c') is '["http:","foo","21","/bar;par","?b","#c"]'
7 PASS segments('http:foo.com') is '["http:","foo.com","","/","",""]'
8 PASS segments('\t :foo.com \n') is '[":","","","","",""]'
9 PASS segments(' foo.com ') is '[":","","","","",""]'
10 PASS segments('a:\t foo.com') is '["a:","",""," foo.com","",""]'
11 PASS segments('http://f:21/ b ? d # e ') is '["http:","f","21","/%20b%20","?%20d%20","# e"]'
12 PASS segments('http://f:/c') is '["http:","f","","/c","",""]'
13 PASS segments('http://f:0/c') is '["http:","f","0","/c","",""]'
14 PASS segments('http://f:00000000000000/c') is '["http:","f","0","/c","",""]'
15 FAIL segments('http://f:00000000000000000000080/c') should be ["http:","f","0","/c","",""]. Was ["h…
[all …]
Dsegments-expected.txt6 PASS segments('http://user:pass@foo:21/bar;par?b#c') is '["http:","foo","21","/bar;par","?b","#c"]'
7 PASS segments('http:foo.com') is '["http:","example.org","","/foo/foo.com","",""]'
8 PASS segments('\t :foo.com \n') is '["http:","example.org","","/foo/:foo.com","",""]'
9 PASS segments(' foo.com ') is '["http:","example.org","","/foo/foo.com","",""]'
10 PASS segments('a:\t foo.com') is '["a:","",""," foo.com","",""]'
11 PASS segments('http://f:21/ b ? d # e ') is '["http:","f","21","/%20b%20","?%20d%20","# e"]'
12 PASS segments('http://f:/c') is '["http:","f","","/c","",""]'
13 PASS segments('http://f:0/c') is '["http:","f","0","/c","",""]'
14 PASS segments('http://f:00000000000000/c') is '["http:","f","0","/c","",""]'
15 FAIL segments('http://f:00000000000000000000080/c') should be ["http:","f","0","/c","",""]. Was ["h…
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowUriMatcher.java41 String[] segments = path.split("/"); in addURI() local
42 addNodes(authNode, Arrays.asList(segments), code); in addURI()
48 List<String> segments = uri.getPathSegments(); in match() local
54 return matchSegments(rootNode.map.get(auth), segments); in match()
57 private int matchSegments(MatchNode node, List<String> segments) { in matchSegments() argument
58 if (segments.isEmpty()) return node.code; in matchSegments()
59 String segment = segments.get(0); in matchSegments()
60 segments = segments.subList(1, segments.size()); in matchSegments()
63 return matchSegments(node.map.get(segment), segments); in matchSegments()
70 return matchSegments(node.number, segments); in matchSegments()
[all …]
/external/skia/src/gpu/
DGrAAConvexPathRenderer.cpp54 void center_of_mass(const SegmentArray& segments, SkPoint* c) { in center_of_mass() argument
57 int count = segments.count(); in center_of_mass()
63 p0 = segments[0].endPt(); in center_of_mass()
69 pj = segments[1].endPt() - p0; in center_of_mass()
72 const SkPoint pj = segments[i + 1].endPt() - p0; in center_of_mass()
87 const SkPoint& pt = segments[i].endPt(); in center_of_mass()
105 void compute_vectors(SegmentArray* segments, in compute_vectors() argument
110 center_of_mass(*segments, fanPt); in compute_vectors()
111 int count = segments->count(); in compute_vectors()
125 const Segment& sega = (*segments)[a]; in compute_vectors()
[all …]
/external/elfutils/src/
Dfindtextrel.c48 struct segments struct
99 static void check_rel (size_t nsegments, struct segments segments[nsegments],
314 struct segments *segments in process_file() local
315 = (struct segments *) malloc (nsegments_max * sizeof (segments[0])); in process_file()
316 if (segments == NULL) in process_file()
337 segments in process_file()
338 = (struct segments *) realloc (segments, in process_file()
340 * sizeof (segments[0])); in process_file()
341 if (segments == NULL) in process_file()
351 segments[nsegments].from = phdr->p_vaddr; in process_file()
[all …]
/external/skia/src/utils/
DSkUnitMappers.cpp13 SkDiscreteMapper::SkDiscreteMapper(int segments) { in SK_DEFINE_INST_COUNT()
14 if (segments < 2) { in SK_DEFINE_INST_COUNT()
18 if (segments > 0xFFFF) { in SK_DEFINE_INST_COUNT()
19 segments = 0xFFFF; in SK_DEFINE_INST_COUNT()
21 fSegments = segments; in SK_DEFINE_INST_COUNT()
22 fScale = SK_Fract1 / (segments - 1); in SK_DEFINE_INST_COUNT()
/external/skia/legacy/src/utils/
DSkUnitMappers.cpp10 SkDiscreteMapper::SkDiscreteMapper(int segments) { in SkDiscreteMapper() argument
11 if (segments < 2) { in SkDiscreteMapper()
15 if (segments > 0xFFFF) { in SkDiscreteMapper()
16 segments = 0xFFFF; in SkDiscreteMapper()
18 fSegments = segments; in SkDiscreteMapper()
19 fScale = SK_Fract1 / (segments - 1); in SkDiscreteMapper()
/external/libxslt/libxslt/
Dattrvt.c51 void *segments[MAX_AVT_SEG]; member
102 if (avt->segments[i] != NULL) in xsltFreeAttrVT()
103 xmlFree((xmlChar *) avt->segments[i]); in xsltFreeAttrVT()
105 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->segments[i]); in xsltFreeAttrVT()
108 xmlXPathFreeCompExpr((xmlXPathCompExprPtr) avt->segments[i]); in xsltFreeAttrVT()
110 if (avt->segments[i] != NULL) in xsltFreeAttrVT()
111 xmlFree((xmlChar *) avt->segments[i]); in xsltFreeAttrVT()
154 memset(&avt->segments[avt->nb_seg], 0, MAX_AVT_SEG*sizeof(void *)); in xsltSetAttrVTsegment()
157 avt->segments[avt->nb_seg++] = val; in xsltSetAttrVTsegment()
371 ret = xmlStrcat(ret, (const xmlChar *) cur->segments[i]); in xsltEvalAVT()
[all …]
/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/sonivox/jet_tools/JetCreator/
DJetDebug.py43 def DumpSegments1(segments): argument
44 for segment in segments:
56 def DumpSegments(segments): argument
57 for segment in segments:
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/freetype/src/autofit/
Dafwarp.c78 AF_Segment segments, in af_warper_compute_line_best() argument
122 FT_Pos len = segments[nn].max_coord - segments[nn].min_coord; in af_warper_compute_line_best()
123 FT_Pos y0 = FT_MulFix( segments[nn].pos, scale ) + delta; in af_warper_compute_line_best()
179 AF_Segment segments; in af_warper_compute() local
200 segments = axis->segments; in af_warper_compute()
225 X1 = X2 = segments[0].pos; in af_warper_compute()
228 FT_Int X = segments[nn].pos; in af_warper_compute()
349 segments, num_segments ); in af_warper_compute()
/external/opencv/cvaux/src/
Dcvbgfg_common.cpp48 CV_IMPL void cvRefineForegroundMaskBySegm( CvSeq* segments, CvBGStatModel* bg_model ) in cvRefineForegroundMaskBySegm() argument
52 for( ; segments; segments = ((CvSeq*)segments)->h_next ) in cvRefineForegroundMaskBySegm()
54 CvSeq seq = *segments; in cvRefineForegroundMaskBySegm()
/external/icu4c/i18n/
Drbt_rule.cpp66 segments(0), in TransliterationRule()
105 this->segments = segs; in TransliterationRule()
173 segments = NULL; in TransliterationRule()
176 segments = (UnicodeFunctor **)uprv_malloc(other.segmentsCount * sizeof(UnicodeFunctor *)); in TransliterationRule()
177 uprv_memcpy(segments, other.segments, other.segmentsCount*sizeof(segments[0])); in TransliterationRule()
193 uprv_free(segments); in ~TransliterationRule()
362 if (segments != NULL) { in matchAndReplace()
364 ((StringMatcher*) segments[i])->resetMatch(); in matchAndReplace()
/external/webkit/Source/WebCore/inspector/front-end/
DSummaryBar.js137 _drawSummaryGraph: function(segments) argument
139 if (!segments || !segments.length) {
140 segments = [{color: "white", value: 1}];
147 for (var i = 0; i < segments.length; ++i)
148 total += segments[i].value;
151 …var percents = segments.map(function(s) { return Math.max(Math.round(100 * s.value / total), 1) });
248 for (var i = 0; i < segments.length; ++i) {
250 ctx.fillStyle = segments[i].color;
/external/guava/guava-tests/test/com/google/common/cache/
DCacheTesting.java132 for (Segment segment : map.segments) { in drainRecencyQueues()
154 for (LocalCache.Segment segment : cchm.segments) { in drainReferenceQueues()
171 for (Segment<?, ?> segment : map.segments) { in getTotalSegmentSize()
190 for (Segment<?, ?> segment : cchm.segments) { in checkValidState()
220 for (Segment<?, ?> segment : cchm.segments) { in checkExpiration()
282 for (Segment<?, ?> segment : map.segments) {
301 for (Segment segment : map.segments) {
331 for (Segment<?, ?> segment : cchm.segments) {
344 for (Segment<?, ?> segment : cchm.segments) {
383 Segment<?, ?> segment = cchm.segments[0];
[all …]
DCacheBuilderTest.java91 assertEquals(4, map.segments.length); in testInitialCapacity_small()
92 assertEquals(2, map.segments[0].table.length()); in testInitialCapacity_small()
93 assertEquals(2, map.segments[1].table.length()); in testInitialCapacity_small()
94 assertEquals(2, map.segments[2].table.length()); in testInitialCapacity_small()
95 assertEquals(2, map.segments[3].table.length()); in testInitialCapacity_small()
105 assertEquals(4, map.segments.length); in testInitialCapacity_smallest()
107 assertEquals(1, map.segments[0].table.length()); in testInitialCapacity_smallest()
108 assertEquals(1, map.segments[1].table.length()); in testInitialCapacity_smallest()
109 assertEquals(1, map.segments[2].table.length()); in testInitialCapacity_smallest()
110 assertEquals(1, map.segments[3].table.length()); in testInitialCapacity_smallest()
[all …]
/external/icu4c/layout/
DSegmentSingleProcessor.cpp38 const LookupSegment *segments = segmentSingleLookupTable->segments; in process() local
44 … const LookupSegment *lookupSegment = segmentSingleLookupTable->lookupSegment(segments, thisGlyph); in process()
DLookupTables.h57 const LookupSegment *lookupSegment(const LookupSegment *segments, LEGlyphID glyph) const;
69 LookupSegment segments[ANY_NUMBER]; member
74 LookupSegment segments[ANY_NUMBER]; member
DSegmentArrayProcessor.cpp38 const LookupSegment *segments = segmentArrayLookupTable->segments; in process() local
44 … const LookupSegment *lookupSegment = segmentArrayLookupTable->lookupSegment(segments, thisGlyph); in process()
/external/webp/src/enc/
Dconfig.c38 config->segments = 4; in WebPConfigInitInternal()
77 config->segments = 2; in WebPConfigInitInternal()
96 if (config->segments < 1 || config->segments > 4) in WebPValidateConfig()
/external/skia/src/gpu/gl/
DGrGLProgram.cpp344 void gen_attribute_coverage(GrGLShaderBuilder* segments, in gen_attribute_coverage() argument
346 segments->fVSAttrs.push_back().set(kVec4f_GrSLType, in gen_attribute_coverage()
350 segments->addVarying(kVec4f_GrSLType, "Coverage", &vsName, &fsName); in gen_attribute_coverage()
351 segments->fVSCode.appendf("\t%s = " COV_ATTR_NAME ";\n", vsName); in gen_attribute_coverage()
353 segments->fFSCode.appendf("\tvec4 attrCoverage = %s * %s;\n", in gen_attribute_coverage()
362 void GrGLProgram::genGeometryShader(GrGLShaderBuilder* segments) const { in genGeometryShader()
366 segments->fGSHeader.append("layout(triangles) in;\n" in genGeometryShader()
368 segments->fGSCode.append("\tfor (int i = 0; i < 3; ++i) {\n" in genGeometryShader()
371 segments->fGSCode.append("\t\tgl_PointSize = 1.0;\n"); in genGeometryShader()
373 GrAssert(segments->fGSInputs.count() == segments->fGSOutputs.count()); in genGeometryShader()
[all …]
/external/robolectric/src/main/java/android/net/
DUri__FromAndroid.java920 final String[] segments; field in Uri__FromAndroid.PathSegments
923 PathSegments(String[] segments, int size) { in PathSegments() argument
924 this.segments = segments; in PathSegments()
933 return segments[index]; in get()
946 String[] segments; field in Uri__FromAndroid.PathSegmentsBuilder
950 if (segments == null) { in add()
951 segments = new String[4]; in add()
952 } else if (size + 1 == segments.length) { in add()
953 String[] expanded = new String[segments.length * 2]; in add()
954 System.arraycopy(segments, 0, expanded, 0, segments.length); in add()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DCollisionSystem.java206 boolean hit = testBoxAgainstList(mCollisionTiles[tileIndex].segments, in testBox()
431 protected static boolean testSegmentAgainstList(FixedSizeArray<LineSegment> segments, in testSegmentAgainstList() argument
440 final int count = segments.getCount(); in testSegmentAgainstList()
441 final Object[] segmentArray = segments.getArray(); in testSegmentAgainstList()
475 protected static boolean testBoxAgainstList(FixedSizeArray<LineSegment> segments, in testBoxAgainstList() argument
481 final int count = segments.getCount(); in testBoxAgainstList()
482 final Object[] segmentArray = segments.getArray(); in testBoxAgainstList()
655 … boolean foundHit = testSegmentAgainstList(tile.segments, mTileSpaceStart, mTileSpaceEnd, in visit()
842 public FixedSizeArray<LineSegment> segments; field in CollisionSystem.CollisionTile
846 segments = new FixedSizeArray<LineSegment>(maxSegments); in CollisionTile()
[all …]
/external/webkit/Source/WebKit2/Platform/
DRegion.cpp282 Vector<int> segments; in shapeOperation() local
301 segments.append(x); in shapeOperation()
308 segments.appendRange(s1, segments1End); in shapeOperation()
310 segments.appendRange(s2, segments2End); in shapeOperation()
313 if (!segments.isEmpty() || !result.isEmpty()) in shapeOperation()
314 result.appendSpan(y, segments.data(), segments.data() + segments.size()); in shapeOperation()

1234