/libcore/luni/src/test/java/libcore/util/ |
D | ZoneInfoTest.java | 38 int[][] offsets = {}; in testMakeTimeZone_NoOffsets() local 40 createZoneInfo(times, offsets); in testMakeTimeZone_NoOffsets() 52 int[][] offsets = { in testMakeTimeZone_OneOffset_NoTransitions() local 55 ZoneInfo zoneInfo = createZoneInfo(times, offsets); in testMakeTimeZone_OneOffset_NoTransitions() 77 int[][] offsets = { in testMakeTimeZone_OneNonDstTransition() local 80 ZoneInfo zoneInfo = createZoneInfo(times, offsets); in testMakeTimeZone_OneNonDstTransition() 102 int[][] offsets = { in testMakeTimeZone_OneDstTransition() local 106 createZoneInfo(times, offsets); in testMakeTimeZone_OneDstTransition() 123 int[][] offsets = { in testMakeTimeZone_NegativeTransition() local 128 ZoneInfo zoneInfo = createZoneInfo(times, offsets); in testMakeTimeZone_NegativeTransition() [all …]
|
/libcore/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 86 ScopedIntArrayRW offsets(mEnv, javaOffsets); in updateOffsets() local 87 if (offsets.get() == NULL) { in updateOffsets() 92 offsets[2*i + 0] = mMatcher->start(i, mStatus); in updateOffsets() 93 offsets[2*i + 1] = mMatcher->end(i, mStatus); in updateOffsets() 133 …r_findImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jint startIndex, jintArray offsets) { in Matcher_findImpl() argument 137 matcher.updateOffsets(offsets); in Matcher_findImpl() 142 …c jint Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offsets) { in Matcher_findNextImpl() argument 149 matcher.updateOffsets(offsets); in Matcher_findNextImpl() 164 … jint Matcher_lookingAtImpl(JNIEnv* env, jclass, jlong addr, jstring javaText, jintArray offsets) { in Matcher_lookingAtImpl() argument 168 matcher.updateOffsets(offsets); in Matcher_lookingAtImpl() [all …]
|
D | libcore_io_Posix.cpp | 283 ScopedIntArrayRO offsets(mEnv, javaOffsets); in init() local 284 if (offsets.get() == NULL) { in init() 301 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); in init() 1521 …dv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCo… in Posix_readv() argument 1523 if (!ioVec.init(buffers, offsets, byteCounts)) { in Posix_readv() 1952 …ev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCo… in Posix_writev() argument 1954 if (!ioVec.init(buffers, offsets, byteCounts)) { in Posix_writev()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 1097 private static native boolean findImpl(long addr, String s, int startIndex, int[] offsets); in findImpl() argument 1098 private static native boolean findNextImpl(long addr, String s, int[] offsets); in findNextImpl() argument 1102 private static native boolean lookingAtImpl(long addr, String s, int[] offsets); in lookingAtImpl() argument 1103 private static native boolean matchesImpl(long addr, String s, int[] offsets); in matchesImpl() argument 1119 private final int[] offsets; field in Matcher.OffsetBasedMatchResult 1121 OffsetBasedMatchResult(String input, int[] offsets) { in OffsetBasedMatchResult() argument 1123 this.offsets = offsets.clone(); in OffsetBasedMatchResult() 1133 return offsets[2 * group]; in start() 1143 return offsets[2 * group + 1]; in end() 1164 return (offsets.length / 2) - 1; in groupCount()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | CollatorTest.java | 133 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { 134 for (int offset : offsets) { 141 private void assertGetCollationElementIteratorString(Locale l, String s, Integer... offsets) { 143 assertCollationElementIterator(coll.getCollationElementIterator(s), offsets); 146 …e void assertGetCollationElementIteratorCharacterIterator(Locale l, String s, Integer... offsets) { 149 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets);
|
/libcore/ojluni/src/main/java/java/text/ |
D | MessageFormat.java | 527 copyAndFixQuotes(pattern, lastOffset, offsets[i], result); in toPattern() 528 lastOffset = offsets[i]; in toPattern() 965 int len = offsets[i] - patternOffset; in parse() 980 int tempLength = (i != maxOffset) ? offsets[i+1] : pattern.length(); in parse() 1087 other.offsets = (int[]) offsets.clone(); in clone() 1106 && Arrays.equals(offsets,other.offsets) in equals() 1199 private int[] offsets = new int[INITIAL_FORMATS]; field in MessageFormat 1237 result.append(pattern.substring(lastOffset, offsets[i])); in subformat() 1238 lastOffset = offsets[i]; in subformat() 1439 System.arraycopy(offsets, 0, newOffsets, 0, maxOffset + 1); in makeFormat() [all …]
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | AbstractCalendar.java | 125 int[] offsets = new int[2]; in getCalendarDate() local 127 offsets[0] = zi.getRawOffset(); in getCalendarDate() 128 offsets[1] = zoneOffset - offsets[0]; in getCalendarDate() 138 saving = offsets[1]; in getCalendarDate() 181 int[] offsets = new int[2]; in getTime() local
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 239 int getOffsets(long date, int[] offsets) { in getOffsets() argument 245 if (offsets != null) { in getOffsets() 246 offsets[0] = rawoffset; in getOffsets() 247 offsets[1] = dstoffset; in getOffsets()
|
D | SimpleTimeZone.java | 545 int getOffsets(long date, int[] offsets) { in getOffsets() argument 571 if (offsets != null) { in getOffsets() 572 offsets[0] = rawOffset; in getOffsets() 573 offsets[1] = offset - rawOffset; in getOffsets()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfo.java | 509 public int getOffsetsByUtcTime(long utcTimeInMillis, int[] offsets) { in getOffsetsByUtcTime() argument 550 offsets[0] = rawOffset; in getOffsetsByUtcTime() 551 offsets[1] = dstOffset; in getOffsetsByUtcTime() 895 int[] offsets = new int[zoneInfo.mOffsets.length + 1]; 922 offsets[numFound++] = 0; // offset of 0 from raw offset 929 offsets[numFound++] = zoneInfo.mOffsets[type]; 936 System.arraycopy(offsets, 0, toReturn, 0, numFound);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollationElementIteratorTest.java | 48 int[] offsets = { 0, 1, 2, 3 }; in testGetOffset() local 51 assertEquals(offsets[i++], offset); in testGetOffset() 55 assertEquals(offsets[i++], offset); in testGetOffset()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 244 …@Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) t… in readv() argument 246 return os.readv(fd, buffers, offsets, byteCounts); in readv() 322 …@Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) … in writev() argument 324 return os.writev(fd, buffers, offsets, byteCounts); in writev()
|
D | ForwardingOs.java | 132 …ect[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { re… in readv() argument 178 …ct[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { ret… in writev() argument
|
D | Os.java | 125 …public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Errn… in readv() argument 171 …public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Err… in writev() argument
|
D | Posix.java | 174 …public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thro… in readv() argument 276 …public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thr… in writev() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 383 …] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return… in readv() argument 576 … buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return … in writev() argument
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1870 private final int[] offsets; field in ObjectStreamClass.FieldReflector 1888 offsets = new int[nfields]; in FieldReflector() 1902 offsets[i] = f.getOffset(); in FieldReflector() 1938 int off = offsets[i]; in getPrimFieldValues() 1992 int off = offsets[i]; in setPrimFieldValues() 2049 vals[offsets[i]] = unsafe.getObject(obj, readKeys[i]); in getObjFieldValues() 2077 Object val = vals[offsets[i]]; in setObjFieldValues()
|