Home
last modified time | relevance | path

Searched refs:lastIndex (Results 1 – 25 of 84) sorted by relevance

1234

/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/authoring/builder/
DByteBufferHelper.java30 int lastIndex = nuSamples.size() - 1; in mergeAdjacentBuffers() local
31 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in mergeAdjacentBuffers()
32 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in mergeAdjacentBuffers()
33 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in mergeAdjacentBuffers()
37 } else if (lastIndex >= 0 && in mergeAdjacentBuffers()
38 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in mergeAdjacentBuffers()
39 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in mergeAdjacentBuffers()
41 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in mergeAdjacentBuffers()
DDefaultMp4Builder.java558 int lastIndex = nuSamples.size() - 1; in unifyAdjacentBuffers() local
559 …if (lastIndex >= 0 && buffer.hasArray() && nuSamples.get(lastIndex).hasArray() && buffer.array() =… in unifyAdjacentBuffers()
560 …nuSamples.get(lastIndex).arrayOffset() + nuSamples.get(lastIndex).limit() == buffer.arrayOffset())… in unifyAdjacentBuffers()
561 ByteBuffer oldBuffer = nuSamples.remove(lastIndex); in unifyAdjacentBuffers()
565 } else if (lastIndex >= 0 && in unifyAdjacentBuffers()
566 … buffer instanceof MappedByteBuffer && nuSamples.get(lastIndex) instanceof MappedByteBuffer && in unifyAdjacentBuffers()
567 … nuSamples.get(lastIndex).limit() == nuSamples.get(lastIndex).capacity() - buffer.capacity()) { in unifyAdjacentBuffers()
569 ByteBuffer oldBuffer = nuSamples.get(lastIndex); in unifyAdjacentBuffers()
/external/proguard/src/proguard/classfile/util/
DInternalTypeEnumeration.java38 private int lastIndex; field in InternalTypeEnumeration
49 this.lastIndex = descriptor.indexOf(ClassConstants.METHOD_ARGUMENTS_CLOSE); in InternalTypeEnumeration()
52 if (lastIndex < 0) in InternalTypeEnumeration()
54 lastIndex = descriptor.length(); in InternalTypeEnumeration()
84 return index < lastIndex; in hasMoreTypes()
123 return descriptor.substring(lastIndex + 1); in returnType()
202 if (enumeration.lastIndex < descriptor.length()) in main()
/external/apache-http/src/org/apache/http/message/
DBasicListHeaderIterator.java73 protected int lastIndex; field in BasicListHeaderIterator
100 this.lastIndex = -1; in BasicListHeaderIterator()
167 this.lastIndex = current; in nextHeader()
194 if (this.lastIndex < 0) { in remove()
197 this.allHeaders.remove(this.lastIndex); in remove()
198 this.lastIndex = -1; in remove()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs171 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp
175 lastIndex = to; in ReplaceOp()
184 return lastIndex + 1; in Execute()
191 … return string.Format("<DeleteOp@{0}..{1}>", stream._tokens[index], stream._tokens[lastIndex]); in ToString()
194 …ing.Format("<ReplaceOp@{0}..{1}:\"{2}\">", stream._tokens[index], stream._tokens[lastIndex], text); in ToString()
590 else if (iop.index > rop.index && iop.index <= rop.lastIndex) in ReduceToSingleOperationPerIndex()
601 if ( prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex ) in ReduceToSingleOperationPerIndex()
609 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex()
611 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex()
619 rop.lastIndex = Math.Max(prevRop.lastIndex, rop.lastIndex); in ReduceToSingleOperationPerIndex()
[all …]
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java139 protected int lastIndex; field in TokenRewriteStream.ReplaceOp
142 lastIndex = to; in ReplaceOp()
149 return lastIndex+1; in execute()
155 ".."+tokens.get(lastIndex)+">"; in toString()
158 ".."+tokens.get(lastIndex)+":\""+text+"\">"; in toString()
479 else if ( iop.index > rop.index && iop.index <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
488 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
495 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; in reduceToSingleOperationPerIndex()
497 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex; in reduceToSingleOperationPerIndex()
504 rop.lastIndex = Math.max(prevRop.lastIndex, rop.lastIndex); in reduceToSingleOperationPerIndex()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py80 lastIndex = len(metrics)
81 while metrics[lastIndex-2][0] == lastAdvance:
82 lastIndex -= 1
83 if lastIndex <= 1:
85 lastIndex = 1
87 additionalMetrics = metrics[lastIndex:]
89 metrics = metrics[:lastIndex]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs151 public int lastIndex; field in Antlr.Runtime.TokenRewriteStream.ReplaceOp
154 lastIndex = to; in ReplaceOp()
160 return lastIndex + 1; in Execute()
163 return "<ReplaceOp@" + index + ".." + lastIndex + ":\"" + text + "\">"; in ToString()
172 return "<DeleteOp@" + index + ".." + lastIndex + ">"; in ToString()
505 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
514 if (prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
521 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex()
523 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex()
560 if (iop.index >= rop.index && iop.index <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
/external/skqp/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp176 int lastIndex = num_glyphs; in SkPDFMakeCIDGlyphWidthsArray() local
178 while (!subset->has(lastIndex - 1) && lastIndex > 0) { in SkPDFMakeCIDGlyphWidthsArray()
179 --lastIndex; in SkPDFMakeCIDGlyphWidthsArray()
184 for (int gId = 0; gId <= lastIndex; gId++) { in SkPDFMakeCIDGlyphWidthsArray()
186 if (gId < lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
257 if (curRange.fStartId == lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
262 finish_range(&curRange, lastIndex - 1, AdvanceMetric::kRange); in SkPDFMakeCIDGlyphWidthsArray()
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp176 int lastIndex = num_glyphs; in SkPDFMakeCIDGlyphWidthsArray() local
178 while (!subset->has(lastIndex - 1) && lastIndex > 0) { in SkPDFMakeCIDGlyphWidthsArray()
179 --lastIndex; in SkPDFMakeCIDGlyphWidthsArray()
184 for (int gId = 0; gId <= lastIndex; gId++) { in SkPDFMakeCIDGlyphWidthsArray()
186 if (gId < lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
257 if (curRange.fStartId == lastIndex) { in SkPDFMakeCIDGlyphWidthsArray()
262 finish_range(&curRange, lastIndex - 1, AdvanceMetric::kRange); in SkPDFMakeCIDGlyphWidthsArray()
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
DNumberOfInvocationsCheckerTest.java164 int lastIndex = 0; in matchesSafely() local
166 while (lastIndex != -1) { in matchesSafely()
167 lastIndex = text.indexOf(expected, lastIndex); in matchesSafely()
168 if (lastIndex != -1) { in matchesSafely()
170 lastIndex += expected.length(); in matchesSafely()
DNumberOfInvocationsInOrderCheckerTest.java205 int lastIndex = 0; in matchesSafely() local
207 while (lastIndex != -1) { in matchesSafely()
208 lastIndex = text.indexOf(expected, lastIndex); in matchesSafely()
209 if (lastIndex != -1) { in matchesSafely()
211 lastIndex += expected.length(); in matchesSafely()
/external/antlr/runtime/Python/antlr3/
Dstreams.py1002 self.lastIndex = last
1009 return self.lastIndex + 1
1014 return '<DeleteOp@%d..%d>' % (self.index, self.lastIndex)
1017 self.index, self.lastIndex, self.text)
1408 elif iop.index > rop.index and iop.index <= rop.lastIndex:
1415 and prevRop.lastIndex <= rop.lastIndex):
1421 disjoint = (prevRop.lastIndex < rop.index
1422 or prevRop.index > rop.lastIndex)
1424 and prevRop.lastIndex == rop.lastIndex)
1434 rop.lastIndex = max(prevRop.lastIndex, rop.lastIndex)
[all …]
/external/antlr/runtime/Python3/antlr3/
Dstreams.py948 self.lastIndex = last
955 return self.lastIndex + 1
1348 elif iop.index > rop.index and iop.index <= rop.lastIndex:
1355 and prevRop.lastIndex <= rop.lastIndex):
1361 disjoint = (prevRop.lastIndex < rop.index
1362 or prevRop.index > rop.lastIndex)
1364 and prevRop.lastIndex == rop.lastIndex)
1374 rop.lastIndex = max(prevRop.lastIndex, rop.lastIndex)
1407 if iop.index >= rop.index and iop.index <= rop.lastIndex:
/external/vogar/src/vogar/target/
DClassPathScanner.java186 int lastIndex = entryName.lastIndexOf('/'); in getJarEntries() local
188 String packageName = entryName.substring(0, lastIndex + 1); in getJarEntries()
190 lastIndex = entryName.lastIndexOf('/', lastIndex - 1); in getJarEntries()
191 } while (lastIndex > 0); in getJarEntries()
/external/jsoncpp/src/test_lib_json/
Djsontest.cpp185 std::string::size_type lastIndex = 0; in indentText() local
186 while (lastIndex < text.size()) { in indentText()
187 std::string::size_type nextIndex = text.find('\n', lastIndex); in indentText()
192 reindented += text.substr(lastIndex, nextIndex - lastIndex + 1); in indentText()
193 lastIndex = nextIndex + 1; in indentText()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRangeDateRule.java139 int lastIndex = ranges.size(); in startIndex() local
146 lastIndex = i; in startIndex()
148 return lastIndex; in startIndex()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DRangeDateRule.java133 int lastIndex = ranges.size(); in startIndex() local
140 lastIndex = i; in startIndex()
142 return lastIndex; in startIndex()
/external/junit/src/main/java/junit/textui/
DTestRunner.java164 int lastIndex = arg.lastIndexOf('.'); in start() local
165 testCase = arg.substring(0, lastIndex); in start()
166 method = arg.substring(lastIndex + 1); in start()
/external/antlr/runtime/ObjC/Framework/
DTokenRewriteStream.m127 @synthesize lastIndex;
137 lastIndex = to;
148 return lastIndex+1;
153 return [NSString stringWithFormat:@"<ANTLRReplaceOp@ %d..%d :>%@\n", rwIndex, lastIndex, text];
169 lastIndex = to;
176 return [NSString stringWithFormat:@"<DeleteOp@ %d..%d\n", rwIndex, lastIndex];
573 if ( iop.rwIndex >= rop.rwIndex && iop.rwIndex <= rop.lastIndex ) {
582 if ( prevRop.rwIndex>=rop.rwIndex && prevRop.lastIndex <= rop.lastIndex ) {
588 BOOL disjoint = prevRop.lastIndex<rop.rwIndex || prevRop.rwIndex > rop.lastIndex;
589 BOOL same = prevRop.rwIndex==rop.rwIndex && prevRop.lastIndex==rop.lastIndex;
[all …]
/external/eigen/Eigen/src/SparseCore/
DTriangularSolver.h42 Index lastIndex = 0;
46 lastIndex = it.index();
47 if(lastIndex==i)
49 tmp -= lastVal * other.coeff(lastIndex,col);
55 eigen_assert(lastIndex==i);
/external/guava/guava/src/com/google/common/net/
DInternetDomainName.java223 final int lastIndex = parts.size() - 1; in validateSyntax() local
227 if (!validatePart(parts.get(lastIndex), true)) { in validateSyntax()
231 for (int i = 0; i < lastIndex; i++) { in validateSyntax()
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DTokenRewriteStream.as326 if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) {
334 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) {
340 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex;
342 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex;
376 if ( iop.index >= rop.index && iop.index <= rop.lastIndex ) {
482 public var lastIndex:int; variable in ReplaceOp
486 lastIndex = toIndex;
493 return lastIndex+1;
497 return "<ReplaceOp@" + index + ".." + lastIndex + ":\"" + text + "\">";
507 return "<DeleteOp@" + index + ".." + lastIndex + ">";
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DClassName.java221 int lastIndex = parts.size() - 1; in bestGuessFromString() local
224 firstClassPartIndex == lastIndex in bestGuessFromString()
226 : ImmutableList.copyOf(parts.subList(firstClassPartIndex, lastIndex)), in bestGuessFromString()
227 parts.get(lastIndex)); in bestGuessFromString()
/external/cldr/tools/java/org/unicode/cldr/util/
DStateDictionaryBuilder.java156 int lastIndex = key.length - 1; in addMapping() local
157 for (int i = 0; i <= lastIndex; ++i) { in addMapping()
158 result = add(key[i], result, i == lastIndex); in addMapping()

1234