Home
last modified time | relevance | path

Searched refs:firstIndex (Results 1 – 7 of 7) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/util/
DArrayList.java45 private transient int firstIndex; field in ArrayList
69 firstIndex = lastIndex = 0; in ArrayList()
88 firstIndex = lastIndex = 0; in ArrayList()
121 int size = lastIndex - firstIndex; in add()
124 if (firstIndex == 0 && lastIndex == array.length) { in add()
126 } else if ((location < size / 2 && firstIndex > 0) in add()
128 System.arraycopy(array, firstIndex, array, --firstIndex, in add()
131 int index = location + firstIndex; in add()
136 array[location + firstIndex] = object; in add()
138 if (firstIndex == 0) { in add()
[all …]
/dalvik/libcore/sql/src/main/java/java/sql/
DTime.java224 int firstIndex = timeString.indexOf(':'); in valueOf() local
225 int secondIndex = timeString.indexOf(':', firstIndex + 1); in valueOf()
230 if (secondIndex == -1|| firstIndex == 0 || secondIndex + 1 == timeString.length()) { in valueOf()
234 int hour = Integer.parseInt(timeString.substring(0, firstIndex)); in valueOf()
235 int minute = Integer.parseInt(timeString.substring(firstIndex + 1, secondIndex)); in valueOf()
DDate.java221 int firstIndex = dateString.indexOf('-'); in valueOf() local
222 int secondIndex = dateString.indexOf('-', firstIndex + 1); in valueOf()
228 if (secondIndex == -1 || firstIndex == 0 in valueOf()
233 int year = Integer.parseInt(dateString.substring(0, firstIndex)); in valueOf()
234 int month = Integer.parseInt(dateString.substring(firstIndex + 1, in valueOf()
/dalvik/dx/src/com/android/dx/ssa/
DPhiTypeResolver.java134 int firstIndex = -1; in resolveResultType() local
142 firstIndex = i; in resolveResultType()
155 if (i == firstIndex) { in resolveResultType()
/dalvik/vm/
DDebugger.h185 bool dvmDbgOutputArray(ObjectId arrayId, int firstIndex, int count,
187 bool dvmDbgSetArrayElements(ObjectId arrayId, int firstIndex, int count,
DDebugger.c1012 bool dvmDbgOutputArray(ObjectId arrayId, int firstIndex, int count, in dvmDbgOutputArray() argument
1021 if (firstIndex + count > (int)arrayObj->length) { in dvmDbgOutputArray()
1023 firstIndex, count, arrayObj->length); in dvmDbgOutputArray()
1035 copyValuesToBE(outBuf, data + firstIndex*width, count, width); in dvmDbgOutputArray()
1041 pObjects += firstIndex; in dvmDbgOutputArray()
1063 bool dvmDbgSetArrayElements(ObjectId arrayId, int firstIndex, int count, in dvmDbgSetArrayElements() argument
1072 if (firstIndex + count > (int)arrayObj->length) { in dvmDbgSetArrayElements()
1074 firstIndex, count, arrayObj->length); in dvmDbgSetArrayElements()
1085 copyValuesFromBE(data + firstIndex*width, buf, count, width); in dvmDbgSetArrayElements()
1091 pObjects += firstIndex; in dvmDbgSetArrayElements()
/dalvik/vm/jdwp/
DJdwpHandler.c1418 u4 firstIndex; in handleAR_GetValues() local
1423 firstIndex = read4BE(&buf); in handleAR_GetValues()
1428 arrayId, firstIndex, length, tag); in handleAR_GetValues()
1433 if (!dvmDbgOutputArray(arrayId, firstIndex, length, pReply)) in handleAR_GetValues()
1446 u4 firstIndex; in handleAR_SetValues() local
1452 firstIndex = read4BE(&buf); in handleAR_SetValues()
1456 arrayId, firstIndex, values); in handleAR_SetValues()
1458 if (!dvmDbgSetArrayElements(arrayId, firstIndex, values, buf)) in handleAR_SetValues()