/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 | 81 * @param startIndex Index in data at which to start parsing 85 public static List<ComprehensionTlv> decodeMany(byte[] data, int startIndex) 89 while (startIndex < endIndex) { 90 ComprehensionTlv ctlv = ComprehensionTlv.decode(data, startIndex); 92 startIndex = ctlv.mValueIndex + ctlv.mLength; 102 * @param startIndex Index in data at which to start parsing 106 public static ComprehensionTlv decode(byte[] data, int startIndex) 109 int curIndex = startIndex;
|
/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;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
IconMerger.java | 79 int startIndex = -1; 83 startIndex = i+1; 91 if (moreView == null || startIndex < 0) { 95 + " startIndex=" + startIndex); 113 for (i=startIndex; i<N; i++) {
|
/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++) {
|
/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 | 256 final int startIndex = 0; 259 addView(mDividerForYes, startIndex); 263 index = startIndex + mYes; 267 final int startIndex = (mYes == 0 ? 0 : 1 + mYes); 270 addView(mDividerForNo, startIndex); 274 index = startIndex + mNo; 278 final int startIndex = (mYes == 0 ? 0 : 1 + mYes) + (mNo == 0 ? 0 : 1 + mNo); 281 addView(mDividerForMaybe, startIndex); 285 index = startIndex + mMaybe; 289 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 | 86 protected int enumerateMediaItems(ItemConsumer consumer, int startIndex) { 87 mDataManager.mapMediaItems(mPaths, consumer, startIndex);
|
/libcore/luni/src/test/java/tests/api/java/util/ |
ArraysTest.java | [all...] |
/packages/apps/Camera/src/com/android/camera/ui/ |
IndicatorControlWheel.java | 196 int startIndex = (mCurrentLevel == 0) ? 0 : mSecondLevelStartIndex; 205 if (index > sectors) return (startIndex + sectors); 207 if (index < 0) return startIndex; 209 if (delta <= (mChildRadians[startIndex + index] 211 return (startIndex + index); 213 if (delta >= (mChildRadians[startIndex + index + 1] 215 return (startIndex + index + 1); 354 int startIndex = 0; 356 mChildRadians[startIndex + i] = Math.toRadians(degrees); 375 int startIndex = mSecondLevelStartIndex [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...] |