Searched refs:startIndex (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/core/java/android/alsa/
H A DLineTokenizer.java32 int nextToken(String line, int startIndex) { argument
34 int offset = startIndex;
45 int nextDelimiter(String line, int startIndex) { argument
47 int offset = startIndex;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DComprehensionTlv.java84 * @param startIndex Index in data at which to start parsing
88 public static List<ComprehensionTlv> decodeMany(byte[] data, int startIndex) argument
92 while (startIndex < endIndex) {
93 ComprehensionTlv ctlv = ComprehensionTlv.decode(data, startIndex);
96 startIndex = ctlv.mValueIndex + ctlv.mLength;
110 * @param startIndex Index in data at which to start parsing
114 public static ComprehensionTlv decode(byte[] data, int startIndex) argument
116 int curIndex = startIndex;
129 ", startIndex=" + startIndex
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DWspTypeDecoder.java213 * @param startIndex The starting position of the "Text-string" in this pdu
219 public boolean decodeTextString(int startIndex) { argument
220 int index = startIndex;
224 mDataLength = index - startIndex + 1;
225 if (mWspData[startIndex] == 127) {
226 mStringValue = new String(mWspData, startIndex + 1, mDataLength - 2);
228 mStringValue = new String(mWspData, startIndex, mDataLength - 1);
236 * @param startIndex The starting position of the "Token-text" in this pdu
242 public boolean decodeTokenText(int startIndex) { argument
243 int index = startIndex;
262 decodeShortInteger(int startIndex) argument
280 decodeLongInteger(int startIndex) argument
303 decodeIntegerValue(int startIndex) argument
319 decodeUintvarInteger(int startIndex) argument
344 decodeValueLength(int startIndex) argument
368 decodeExtensionMedia(int startIndex) argument
394 decodeConstrainedEncoding(int startIndex) argument
415 decodeContentType(int startIndex) argument
466 readContentParameters(int startIndex, int leftToRead, int accumulator) argument
536 decodeNoValue(int startIndex) argument
568 decodeContentLength(int startIndex) argument
581 decodeContentLocation(int startIndex) argument
595 decodeXWapApplicationId(int startIndex) argument
612 seekXWapApplicationId(int startIndex, int endIndex) argument
676 decodeXWapContentURI(int startIndex) argument
689 decodeXWapInitiatorURI(int startIndex) argument
[all...]
H A DIntRangeManager.java206 for (int startIndex = 0; startIndex < len; startIndex++) {
207 IntRange range = mRanges.get(startIndex);
220 if ((startIndex + 1) < len) {
221 nextRange = mRanges.get(startIndex + 1);
258 mRanges.add(startIndex, new IntRange(startId, endId, client));
275 for (int endIndex = startIndex+1; endIndex < len; endIndex++) {
287 // of the next range to join is always startIndex+1.
290 int joinIndex = startIndex
[all...]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DReparenting.java48 private void setupButtons(int startIndex, ViewGroup parent) { argument
49 for (int i = startIndex; i < (startIndex + 3); ++i) {
/frameworks/base/core/java/android/view/animation/
H A DPathInterpolator.java208 int startIndex = 0;
211 while (endIndex - startIndex > 1) {
212 int midIndex = (startIndex + endIndex) / 2;
216 startIndex = midIndex;
220 float xRange = mX[endIndex] - mX[startIndex];
222 return mY[startIndex];
225 float tInRange = t - mX[startIndex];
228 float startY = mY[startIndex];
/frameworks/av/media/libmedia/
H A DIMediaCodecList.cpp68 const char *type, bool encoder, size_t startIndex = 0) const
70 if (startIndex > INT32_MAX) {
78 data.writeInt32(startIndex);
133 size_t startIndex = static_cast<size_t>(data.readInt32()); local
134 ssize_t index = findCodecByType(type, isEncoder, startIndex);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DStaggeredGridDefault.java159 int startIndex = itemIndex;
161 while (startRow > 0 && startIndex > firstIndex) {
162 startIndex--;
163 startRow = getLocation(startIndex).row;
166 for (int i = firstIndex; i < startIndex; i++) {
H A DStaggeredGrid.java158 * @param startIndex the index of the first item
161 public final void setStart(int startIndex, int startRow) { argument
162 mStartIndex = startIndex;
/frameworks/av/include/media/
H A DIMediaCodecList.h37 const char *type, bool encoder, size_t startIndex = 0) const = 0;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsDatabase.java81 final int startIndex = files.closestIndexOnOrAfter(currentTimeMillis);
82 if (startIndex < 0) {
87 for (int i = startIndex; i < fileCount; i++) {
93 for (int i = startIndex; i < fileCount; i++) {
353 int startIndex = intervalStats.closestIndexOnOrBefore(beginTime);
354 if (startIndex < 0) {
357 startIndex = 0;
384 for (int i = startIndex; i <= endIndex; i++) {
H A DUserUsageStatsService.java301 final int startIndex = stats.events.closestIndexOnOrAfter(beginTime);
302 if (startIndex < 0) {
307 for (int i = startIndex; i < size; i++) {
/frameworks/base/core/java/android/animation/
H A DPathKeyframes.java98 private PointF interpolateInRange(float fraction, int startIndex, int endIndex) { argument
99 int startBase = (startIndex * NUM_COMPONENTS);
/frameworks/base/services/core/java/com/android/server/location/
H A DGpsXtraDownloader.java97 int startIndex = mNextServerIndex;
113 if (mNextServerIndex == startIndex) break;
/frameworks/base/libs/hwui/
H A DFontRenderer.h105 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions,
110 uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path,
131 DropShadow renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex,
H A DFontRenderer.cpp595 uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) {
614 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions);
646 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, penX, penY,
691 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y,
699 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions);
709 uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path,
717 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, path, hOffset, vOffset);
594 renderDropShadow(const SkPaint* paint, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, float radius, const float* positions) argument
690 renderPosText(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds, Functor* functor, bool forceFinish) argument
708 renderTextOnPath(const SkPaint* paint, const Rect* clip, const char *text, uint32_t startIndex, uint32_t len, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, Functor* functor) argument
/frameworks/av/include/media/stagefright/
H A DMediaCodecList.h41 const char *type, bool encoder, size_t startIndex = 0) const;
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DICalendar.java546 int startIndex = -1;
571 startIndex = state.index;
575 if ((parameter == null) || (startIndex == -1)) {
579 parameter.name = text.substring(startIndex + 1, equalIndex);
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp591 const char *type, bool encoder, size_t startIndex) const {
598 for (; startIndex < numCodecs; ++startIndex) {
599 const MediaCodecInfo &info = *mCodecInfos.itemAt(startIndex).get();
621 return startIndex;
/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java1015 int startIndex = 1;
1023 startIndex = 2;
1027 for (int i = startIndex; i <= mTypedTimes.size(); i++) {
1029 if (i == startIndex) {
1031 } else if (i == startIndex+1) {
1036 } else if (i == startIndex+2) {
1038 } else if (i == startIndex+3) {
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DTimePickerDialog.java735 int startIndex = 1;
743 startIndex = 2;
747 for (int i = startIndex; i <= mTypedTimes.size(); i++) {
749 if (i == startIndex) {
751 } else if (i == startIndex+1) {
756 } else if (i == startIndex+2) {
758 } else if (i == startIndex+3) {
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneFilterTypeAdapter.java344 * @param startIndex
347 public int parseNum(String str, int startIndex) { argument
348 int idx = startIndex;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DLinearLayoutManager.java1127 * @param startIndex inclusive
1130 private void recycleChildren(RecyclerView.Recycler recycler, int startIndex, int endIndex) { argument
1131 if (startIndex == endIndex) {
1135 Log.d(TAG, "Recycling " + Math.abs(startIndex - endIndex) + " items");
1137 if (endIndex > startIndex) {
1138 for (int i = endIndex - 1; i >= startIndex; i--) {
1142 for (int i = startIndex; i > endIndex; i--) {
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java315 final int startIndex = getIndexAfter(end);
316 for (int i = startIndex; i >= 0; i--) {
492 final int startIndex = getIndexAfter(end);
493 for (int i = startIndex; i >= 0; i--) {
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp683 char* buffer, jint startIndex, jint endIndex, jintArray format,
712 jsize i = startIndex;
800 jbyteArray buffer, jint startIndex, jint endIndex, jintArray format,
806 (char*) bufferArray, startIndex, endIndex, format, outStrings,
682 android_os_Process_parseProcLineArray(JNIEnv* env, jobject clazz, char* buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
799 android_os_Process_parseProcLine(JNIEnv* env, jobject clazz, jbyteArray buffer, jint startIndex, jint endIndex, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument

Completed in 970 milliseconds

12