HomeSort by relevance Sort by last modified time
    Searched full:startindex (Results 1 - 25 of 150) sorted by null

1 2 3 4 5 6

  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
ArraysCompatUtils.java 26 public static int binarySearch(int[] array, int startIndex, int endIndex, int value) {
29 array, startIndex, endIndex, value);
32 return compatBinarySearch(array, startIndex, endIndex, value);
36 /* package */ static int compatBinarySearch(int[] array, int startIndex, int endIndex,
38 if (startIndex > endIndex) throw new IllegalArgumentException();
39 if (startIndex < 0 || endIndex > array.length) throw new ArrayIndexOutOfBoundsException();
41 final int work[] = new int[endIndex - startIndex];
42 System.arraycopy(array, startIndex, work, 0, work.length);
45 return index + startIndex;
47 return ~(~index + startIndex);
    [all...]
  /frameworks/base/telephony/java/com/android/internal/telephony/
WspTypeDecoder.java 213 * @param startIndex The starting position of the "Text-string" in this pdu
219 public boolean decodeTextString(int startIndex) {
220 int index = startIndex;
224 dataLength = index - startIndex + 1;
225 if (wspData[startIndex] == 127) {
226 stringValue = new String(wspData, startIndex + 1, dataLength - 2);
228 stringValue = new String(wspData, startIndex, dataLength - 1);
236 * @param startIndex The starting position of the "Token-text" in this pdu
242 public boolean decodeTokenText(int startIndex) {
243 int index = startIndex;
    [all...]
IntRangeManager.java 190 for (int startIndex = 0; startIndex < len; startIndex++) {
191 IntRange range = mRanges.get(startIndex);
198 mRanges.add(startIndex, new IntRange(startId, endId, client));
214 for (int endIndex = startIndex+1; endIndex < len; endIndex++) {
225 // of the next range to join is always startIndex+1.
228 int joinIndex = startIndex + 1;
248 // of the next range to join is always startIndex+1.
251 int joinIndex = startIndex + 1
    [all...]
  /external/apache-xml/src/main/java/org/apache/xpath/functions/
FuncSubstring.java 58 int startIndex;
66 startIndex = 0;
71 startIndex = (start > 0) ? (int) start - 1 : 0;
85 if (startIndex > lenOfS1)
86 startIndex = lenOfS1;
88 substr = s1.substring(startIndex, end);
92 if (startIndex > lenOfS1)
93 startIndex = lenOfS1;
94 substr = s1.substring(startIndex);
  /external/webkit/Source/JavaScriptCore/runtime/
ArgList.cpp 33 void ArgList::getSlice(int startIndex, ArgList& result) const
35 if (startIndex <= 0 || static_cast<unsigned>(startIndex) >= m_argCount) {
39 result = ArgList(m_args + startIndex, m_argCount - startIndex);
  /external/antlr/src/org/antlr/runtime/tree/
CommonTree.java 45 protected int startIndex=-1, stopIndex=-1;
58 this.startIndex = node.startIndex;
113 if ( startIndex==-1 && token!=null ) {
116 return startIndex;
120 startIndex = index;
140 if ( startIndex<0 || stopIndex<0 ) {
141 startIndex = stopIndex = token.getTokenIndex();
148 if ( startIndex>=0 && stopIndex>=0 ) return; // already set
152 startIndex = firstChild.getTokenStartIndex()
    [all...]
  /external/proguard/src/proguard/classfile/util/
ExternalTypeEnumeration.java 81 int startIndex = index;
85 startIndex);
91 startIndex);
98 return descriptor.substring(startIndex, index++).trim();
  /frameworks/base/telephony/java/com/android/internal/telephony/cat/
ComprehensionTlv.java 82 * @param startIndex Index in data at which to start parsing
86 public static List<ComprehensionTlv> decodeMany(byte[] data, int startIndex)
90 while (startIndex < endIndex) {
91 ComprehensionTlv ctlv = ComprehensionTlv.decode(data, startIndex);
94 startIndex = ctlv.mValueIndex + ctlv.mLength;
109 * @param startIndex Index in data at which to start parsing
113 public static ComprehensionTlv decode(byte[] data, int startIndex)
116 int curIndex = startIndex;
  /packages/apps/Camera/src/com/android/camera/ui/
IndicatorControlWheel.java 208 int startIndex = (mCurrentLevel == 0) ? 0 : mSecondLevelStartIndex;
213 if (mZoomControl != null) startIndex++;
220 if ((delta >= (mChildRadians[startIndex] - halfTouchSectorRadians)) &&
224 index = (int) ((delta - mChildRadians[startIndex])
227 if (index > sectors) return (startIndex + sectors);
229 if (index < 0) return startIndex;
231 if (delta <= (mChildRadians[startIndex + index]
233 return (startIndex + index);
235 if (delta >= (mChildRadians[startIndex + index + 1]
237 return (startIndex + index + 1)
    [all...]
  /external/jsilver/src/com/google/streamhtmlparser/util/
JavascriptTokenBuffer.java 58 private int startIndex;
69 startIndex = 0;
82 startIndex = aJavascriptTokenBuffer.startIndex;
117 if (endIndex == startIndex) {
118 startIndex = (endIndex + 1) % buffer.length;
129 if (startIndex == endIndex) {
250 int len = endIndex - startIndex;
  /libcore/luni/src/main/java/java/util/
HugeEnumSet.java 325 int startIndex = startOrdinal / BIT_IN_LONG;
332 if (startIndex == endIndex) {
334 size -= Long.bitCount(bits[startIndex]);
335 bits[startIndex] |= range;
336 size += Long.bitCount(bits[startIndex]);
340 size -= Long.bitCount(bits[startIndex]);
341 bits[startIndex] |= range;
342 size += Long.bitCount(bits[startIndex]);
350 for (int i = (startIndex + 1); i <= (endIndex - 1); i++) {
Arrays.java 178 * @param startIndex the inclusive start index.
183 * @throws IllegalArgumentException if {@code startIndex > endIndex}
184 * @throws ArrayIndexOutOfBoundsException if {@code startIndex < 0 || endIndex > array.length}
187 public static int binarySearch(byte[] array, int startIndex, int endIndex, byte value) {
188 checkBinarySearchBounds(startIndex, endIndex, array.length);
189 int lo = startIndex;
228 * @param startIndex the inclusive start index.
233 * @throws IllegalArgumentException if {@code startIndex > endIndex}
234 * @throws ArrayIndexOutOfBoundsException if {@code startIndex < 0 || endIndex > array.length}
237 public static int binarySearch(char[] array, int startIndex, int endIndex, char value)
    [all...]
  /external/proguard/src/proguard/
WordReader.java 176 int startIndex = currentIndex;
179 char startChar = currentLine.charAt(startIndex);
190 startIndex++;
200 currentWord = currentLine.substring(startIndex-1, currentIndex);
229 currentWord = currentLine.substring(startIndex, endIndex);
  /external/llvm/unittests/Support/
raw_ostream_test.cpp 35 unsigned StartIndex = 256 - BytesLeftInBuffer;
36 for (unsigned i = 0; i != StartIndex; ++i)
39 return OS.str().substr(StartIndex);
  /packages/apps/Calendar/src/com/android/calendar/event/
AttendeesView.java 254 final int startIndex = 0;
257 addView(mDividerForYes, startIndex);
261 index = startIndex + mYes;
265 final int startIndex = (mYes == 0 ? 0 : 1 + mYes);
268 addView(mDividerForNo, startIndex);
272 index = startIndex + mNo;
276 final int startIndex = (mYes == 0 ? 0 : 1 + mYes) + (mNo == 0 ? 0 : 1 + mNo);
279 addView(mDividerForMaybe, startIndex);
283 index = startIndex + mMaybe;
287 final int startIndex = (mYes == 0 ? 0 : 1 + mYes) + (mNo == 0 ? 0 : 1 + mNo
    [all...]
  /external/webkit/Source/WebCore/fileapi/
BlobURL.cpp 59 unsigned startIndex = url.pathAfterLastSlash();
60 return url.string().substring(startIndex);
  /external/webkit/Source/WebCore/html/parser/
HTMLSourceTracker.cpp 57 ASSERT(!token.startIndex());
59 int length = token.endIndex() - token.startIndex() - m_sourceFromPreviousSegments.length();
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
ClusterAlbum.java 96 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) {
97 mDataManager.mapMediaItems(mPaths, consumer, startIndex);
  /libcore/luni/src/test/java/tests/api/java/util/
ArraysTest.java     [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ArraysTest.java 868 int startIndex = arraySize / 4;
876 Arrays.sort(reversedArray, startIndex, endIndex);
877 for (int counter = 0; counter < startIndex; counter++)
880 for (int counter = startIndex; counter < endIndex - 1; counter++)
    [all...]
  /external/icu4c/samples/citer/
citer.cpp 76 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
77 u_fprintf(out, "startIndex() or endIndex() failed\n");
140 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) {
141 u_fprintf(out, "startIndex() or endIndex() failed\n");
  /external/webkit/Tools/Scripts/
bisect-builds 131 my $startIndex = $revisions[0] ? findNearestNightlyIndex(@nightlies, $revisions[0], 'ceil') : 0;
141 $nightlies[$startIndex]->{rev};
142 downloadNightly($nightlies[$startIndex]->{file}, $nightlyFilesURLBase, $nightlyDownloadDirectory);
143 mountAndRunNightly($nightlies[$startIndex]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile);
144 $didReproduceBug = promptForTest($nightlies[$startIndex]->{rev});
145 $startIndex-- if $didReproduceBug < 0;
166 printStatus($nightlies[$startIndex]->{rev}, $nightlies[$endIndex]->{rev}, $isProgression);
169 while (abs($endIndex - $startIndex) > 1) {
170 my $index = $startIndex + int(($endIndex - $startIndex) / 2)
    [all...]
  /external/clang/test/Index/
load-exprs.c 27 enum { StartIndex = 1 };
30 struct Y y0 = { .array[StartIndex].b = bval, .array[StartIndex].a = aval };
31 __builtin_offsetof(struct Y, array[StartIndex].b);
70 // CHECK: load-exprs.c:30:26: DeclRefExpr=StartIndex:27:8 Extent=[30:26 - 30:36]
74 // CHECK: load-exprs.c:30:55: DeclRefExpr=StartIndex:27:8 Extent=[30:55 - 30:65]
79 // CHECK: load-exprs.c:31:38: DeclRefExpr=StartIndex:27:8 Extent=[31:38 - 31:48]
  /external/markdown/markdown/
treeprocessors.py 91 startIndex = 0
93 data, matched, startIndex = self.__applyPattern(
95 data, patternIndex, startIndex)
198 def __applyPattern(self, pattern, data, patternIndex, startIndex=0):
208 * startIndex: string index, from which we starting search
213 match = pattern.getCompiledRegExp().match(data[startIndex:])
214 leftData = data[:startIndex]
  /external/proguard/src/proguard/retrace/
ReTrace.java 211 int startIndex = matcher.start(expressionTypeIndex + 1);
212 if (startIndex >= 0)
250 int startIndex = matcher.start(expressionTypeIndex + 1);
251 if (startIndex >= 0)
257 outLine.append(line.substring(lineIndex, startIndex));
515 int startIndex = 0;
518 int endIndex = obfuscatedArguments.indexOf(',', startIndex);
524 originalArguments.append(originalType(obfuscatedArguments.substring(startIndex, endIndex).trim())).append(',');
526 startIndex = endIndex + 1;
529 originalArguments.append(originalType(obfuscatedArguments.substring(startIndex).trim()))
    [all...]

Completed in 1961 milliseconds

1 2 3 4 5 6