Home
last modified time | relevance | path

Searched refs:currentIndex (Results 1 – 25 of 53) sorted by relevance

123

/external/proguard/src/proguard/
DWordReader.java44 private int currentIndex; field in WordReader
138 while (currentIndex < currentLineLength && in nextWord()
139 Character.isWhitespace(currentLine.charAt(currentIndex))) in nextWord()
141 currentIndex++; in nextWord()
145 if (currentIndex < currentLineLength && in nextWord()
146 isComment(currentLine.charAt(currentIndex))) in nextWord()
148 currentIndex = currentLineLength; in nextWord()
153 while (currentLine == null || currentIndex == currentLineLength) in nextWord()
164 currentIndex = 0; in nextWord()
165 while (currentIndex < currentLineLength && in nextWord()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DReplaceableUCharacterIterator.java41 this.currentIndex = 0; in ReplaceableUCharacterIterator()
53 this.currentIndex = 0; in ReplaceableUCharacterIterator()
65 this.currentIndex = 0; in ReplaceableUCharacterIterator()
90 if (currentIndex < replaceable.length()) { in current()
91 return replaceable.charAt(currentIndex); in current()
139 return currentIndex; in getIndex()
152 if (currentIndex < replaceable.length()) { in next()
153 return replaceable.charAt(currentIndex++); in next()
169 if (currentIndex > 0) { in previous()
170 return replaceable.charAt(--currentIndex); in previous()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DReplaceableUCharacterIterator.java39 this.currentIndex = 0; in ReplaceableUCharacterIterator()
51 this.currentIndex = 0; in ReplaceableUCharacterIterator()
63 this.currentIndex = 0; in ReplaceableUCharacterIterator()
88 if (currentIndex < replaceable.length()) { in current()
89 return replaceable.charAt(currentIndex); in current()
137 return currentIndex; in getIndex()
150 if (currentIndex < replaceable.length()) { in next()
151 return replaceable.charAt(currentIndex++); in next()
167 if (currentIndex > 0) { in previous()
168 return replaceable.charAt(--currentIndex); in previous()
[all …]
/external/jline/src/src/main/java/jline/
DHistory.java22 private int currentIndex = 0; field in History
80 currentIndex = 0; in clear()
99 currentIndex = history.size(); in addToHistory()
129 if (lastEntry >= 0 && lastEntry != currentIndex) { in moveToLastEntry()
130 currentIndex = history.size() - 1; in moveToLastEntry()
142 currentIndex = history.size(); in moveToEnd()
178 return this.currentIndex; in getCurrentIndex()
185 if (currentIndex >= history.size()) { in current()
189 return (String) history.get(currentIndex); in current()
198 if (currentIndex <= 0) { in previous()
[all …]
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DJNITypeParser.java40 private int currentIndex; field in JNITypeParser
118 currentIndex = 0; in signatureList()
120 while(currentIndex < signature.length()) { in signatureList()
137 currentIndex = 0; in typeNameList()
139 while(currentIndex < signature.length()) { in typeNameList()
152 char key = signature.charAt(currentIndex++); in nextSignature()
160 currentIndex); in nextSignature()
161 String retVal = signature.substring(currentIndex - 1, in nextSignature()
163 currentIndex = endClass + 1; in nextSignature()
189 char key = signature.charAt(currentIndex++); in nextTypeName()
[all …]
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/snappy/
DFramedSnappyCompressorOutputStream.java51 private int currentIndex = 0; field in FramedSnappyCompressorOutputStream
89 if (currentIndex + len > MAX_COMPRESSED_BUFFER_SIZE) { in write()
95 currentIndex = MAX_COMPRESSED_BUFFER_SIZE; in write()
99 System.arraycopy(data, off, buffer, currentIndex, len); in write()
100 currentIndex += len; in write()
118 if (currentIndex > 0) { in finish()
126 try (OutputStream o = new SnappyCompressorOutputStream(baos, currentIndex, params)) { in flushBuffer() argument
127 o.write(buffer, 0, currentIndex); in flushBuffer()
133 currentIndex = 0; in flushBuffer()
141 checksum.update(buffer, 0, currentIndex); in writeCrc()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lz4/
DFramedLZ4CompressorOutputStream.java48 private int currentIndex = 0; field in FramedLZ4CompressorOutputStream
213 if (currentIndex + len > blockData.length) { in write()
219 currentIndex = blockData.length; in write()
223 System.arraycopy(data, off, blockData, currentIndex, len); in write()
224 currentIndex += len; in write()
243 if (currentIndex > 0) { in finish()
279 o.write(blockData, 0, currentIndex); in flushBlock()
282 appendToBlockDependencyBuffer(blockData, 0, currentIndex); in flushBlock()
285 if (b.length > currentIndex) { // compression increased size, maybe beyond blocksize in flushBlock()
286 …ByteUtils.toLittleEndian(out, currentIndex | FramedLZ4CompressorInputStream.UNCOMPRESSED_FLAG_MASK, in flushBlock()
[all …]
/external/cldr/tools/java/org/unicode/cldr/icu/
DLDML2ICUBinaryWriter.java438 int currentIndex = 0; in stripRules() local
446 while (currentIndex < data.length()) { in stripRules()
448 curChar = data.charAt(currentIndex); in stripRules()
471 while (!isNewLine(curChar) && currentIndex < data.length()) { in stripRules()
472 currentIndex++; in stripRules()
473 if (currentIndex < data.length()) { in stripRules()
474 curChar = data.charAt(currentIndex); in stripRules()
478 currentIndex++; in stripRules()
479 if (currentIndex < data.length()) { in stripRules()
480 curChar = data.charAt(currentIndex); in stripRules()
[all …]
/external/apache-http/src/org/apache/http/message/
DBasicListHeaderIterator.java66 protected int currentIndex; field in BasicListHeaderIterator
99 this.currentIndex = findNext(-1); in BasicListHeaderIterator()
148 return (this.currentIndex >= 0); in hasNext()
162 final int current = this.currentIndex; in nextHeader()
168 this.currentIndex = findNext(current); in nextHeader()
199 this.currentIndex--; // adjust for the removed element in remove()
DBasicHeaderIterator.java66 protected int currentIndex; field in BasicHeaderIterator
92 this.currentIndex = findNext(-1); in BasicHeaderIterator()
135 return (this.currentIndex >= 0); in hasNext()
149 final int current = this.currentIndex; in nextHeader()
154 this.currentIndex = findNext(current); in nextHeader()
/external/icu/icu4c/source/common/
Dnormlzr.cpp43 currentIndex(0), nextIndex(0), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
52 currentIndex(0), nextIndex(0), in Normalizer()
61 currentIndex(0), nextIndex(0), in Normalizer()
70 currentIndex(copy.currentIndex), nextIndex(copy.nextIndex), in Normalizer()
108 …return text->hashCode() + fUMode + fOptions + buffer.hashCode() + bufferPos + currentIndex + nextI… in hashCode()
295 currentIndex=nextIndex=text->setToStart(); in reset()
302 currentIndex=nextIndex=text->getIndex(); in setIndexOnly()
321 currentIndex=nextIndex=text->setToEnd(); in last()
342 return currentIndex; in getIndex()
483 currentIndex=nextIndex; in nextNormalize()
[all …]
/external/icu/icu4c/source/tools/gensprep/
Dstore.c157 static int16_t currentIndex = 0; /* the current index into the data trie */ variable
271 indexes[_SPREP_NORM_CORRECTNS_LAST_UNI_VERSION+mappingLength] = currentIndex; in storeMappingData()
276 limitIndex = currentIndex; in storeMappingData()
284 trieWord = currentIndex << 2; in storeMappingData()
318 if(currentIndex+value->length+1 > _SPREP_MAX_INDEX_VALUE){ in storeMappingData()
320 currentIndex+value->length, _SPREP_MAX_INDEX_VALUE); in storeMappingData()
328 mappingData[currentIndex++] = (uint16_t) mappingLength; in storeMappingData()
331 u_memmove(mappingData+currentIndex, value->mapping, value->length); in storeMappingData()
332 currentIndex += value->length; in storeMappingData()
333 if (currentIndex > mappingDataCapacity) { in storeMappingData()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/util/
DAnnotationsDirectory.java213 private int currentIndex;
220 this.currentIndex = 0;
224 while (currentItemIndex < itemIndex && (currentIndex+1) < size) {
225 currentIndex++;
226 currentItemIndex = dexFile.readSmallUint(startOffset + (currentIndex*8));
230 return dexFile.readSmallUint(startOffset + (currentIndex*8)+4);
237 this.currentIndex = 0;
/external/libphonenumber/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java153 int currentIndex = numOfEntries - 1; in lookup() local
161 currentIndex = binarySearch(0, currentIndex, phonePrefix); in lookup()
162 if (currentIndex < 0) { in lookup()
165 int currentPrefix = phonePrefixMapStorage.getPrefix(currentIndex); in lookup()
167 return phonePrefixMapStorage.getDescription(currentIndex); in lookup()
/external/libphonenumber/repackaged/internal/prefixmapper/src/com/android/i18n/phonenumbers/prefixmapper/
DPhonePrefixMap.java155 int currentIndex = numOfEntries - 1; in lookup() local
163 currentIndex = binarySearch(0, currentIndex, phonePrefix); in lookup()
164 if (currentIndex < 0) { in lookup()
167 int currentPrefix = phonePrefixMapStorage.getPrefix(currentIndex); in lookup()
169 return phonePrefixMapStorage.getDescription(currentIndex); in lookup()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/internal/
DArrayIterator.java8 private int currentIndex = 0; field in ArrayIterator
19 return currentIndex < Array.getLength(array); in hasNext()
24 return Array.get(array, currentIndex++); in next()
/external/freetype/src/gxvalid/
Dgxvmorx1.c118 FT_Short currentIndex; in gxv_morx_subtable_type1_entry_validate() local
136 currentIndex = (FT_Short)( glyphOffset_p->ul ); in gxv_morx_subtable_type1_entry_validate()
148 markIndex, currentIndex )); in gxv_morx_subtable_type1_entry_validate()
154 if ( optdata->substitutionTable_num_lookupTables < currentIndex + 1 ) in gxv_morx_subtable_type1_entry_validate()
156 (FT_UShort)( currentIndex + 1 ); in gxv_morx_subtable_type1_entry_validate()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DBinaryTree.java85 int currentIndex = 0; in read() local
93 final int childIndex = 2 * currentIndex + 1 + bit; in read()
97 currentIndex = childIndex; in read()
101 …throw new IOException("The child " + bit + " of node at index " + currentIndex + " is not defined"… in read()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DCorrelation.java145 int currentIndex = 0; in downsampleData() local
147 for (int i = 0; i < N && currentIndex < mBlockSize; i++) { in downsampleData()
150 currentIndex++; in downsampleData()
154 if (currentIndex >= mBlockSize) { in downsampleData()
160 dataDownsampled[currentIndex] += value; in downsampleData()
DWavePlotView.java426 double currentIndex = 0; //points. in computeInset() local
442 int prevIndexInt = (int) currentIndex; in computeInset()
443 currentIndex += pointsPerSample; in computeInset()
444 if ((int) currentIndex > prevIndexInt) { //it switched, time to decide in computeInset()
486 double currentIndex = 0; //points. in computeViewArray() local
502 int prevIndexInt = (int) currentIndex; in computeViewArray()
503 currentIndex += pointsPerSample; in computeViewArray()
504 if ((int) currentIndex > prevIndexInt) { //it switched, time to decide in computeViewArray()
/external/lzma/CS/7zip/Common/
DCommandLineParser.cs224 int currentIndex = -1; in ParseSubCharsCommand()
232 if (currentIndex >= 0) in ParseSubCharsCommand()
236 currentIndex = j; in ParseSubCharsCommand()
240 if (currentIndex == -1 && !charsSet.EmptyAllowed) in ParseSubCharsCommand()
242 indices.Add(currentIndex); in ParseSubCharsCommand()
/external/skqp/src/sksl/ir/
DSkSLConstructor.h189 int currentIndex = 0; in getMatComponent() local
192 SkASSERT(targetIndex >= currentIndex); in getMatComponent()
194 if (currentIndex + arg->fType.columns() > targetIndex) { in getMatComponent()
200 return &((Constructor&) *arg).getVecComponent(targetIndex - currentIndex); in getMatComponent()
203 currentIndex += arg->fType.columns(); in getMatComponent()
/external/skia/src/sksl/ir/
DSkSLConstructor.h187 int currentIndex = 0; in getMatComponent() local
190 SkASSERT(targetIndex >= currentIndex); in getMatComponent()
192 if (currentIndex + arg->fType.columns() > targetIndex) { in getMatComponent()
198 return &((Constructor&) *arg).getVecComponent(targetIndex - currentIndex); in getMatComponent()
201 currentIndex += arg->fType.columns(); in getMatComponent()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/
DPath.java92 int currentIndex = 0; in getPaths() local
95 if (index == -1 || index == currentIndex) { in getPaths()
98 currentIndex++; in getPaths()
/external/mockito/src/main/java/org/mockito/internal/matchers/text/
DValuePrinter.java55 private int currentIndex = 0; in print()
58 return currentIndex < Array.getLength(value); in print()
62 return Array.get(value, currentIndex++); in print()

123