/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 62 private volatile int[] offsets; field in UnixPath 206 if (offsets == null) { in initOffsets() 241 if (offsets == null) in initOffsets() 242 offsets = result; in initOffsets() 275 int count = offsets.length; in getFileName() 285 int lastOffset = offsets[count-1]; in getFileName() 296 int count = offsets.length; in getParent() 301 int len = offsets[count-1] - 1; in getParent() 314 return offsets.length; in getNameCount() 322 if (index >= offsets.length) in getName() [all …]
|
D | LinuxWatchService.java | 159 private static final int[] offsets = eventOffsets(); field in LinuxWatchService.Poller 160 private static final int OFFSETOF_WD = offsets[0]; 161 private static final int OFFSETOF_MASK = offsets[1]; 162 private static final int OFFSETOF_LEN = offsets[3]; 163 private static final int OFFSETOF_NAME = offsets[4];
|
/libcore/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 125 ScopedIntArrayRW offsets(env, javaOffsets); in updateOffsets() local 126 if (offsets.get() == NULL) { in updateOffsets() 131 offsets[2*i + 0] = mMatcher->start(i, mStatus); in updateOffsets() 132 offsets[2*i + 1] = mMatcher->end(i, mStatus); in updateOffsets() 160 …ic jboolean Matcher_findImpl(JNIEnv* env, jclass, jlong addr, jint startIndex, jintArray offsets) { in Matcher_findImpl() argument 164 state->updateOffsets(env, offsets); in Matcher_findImpl() 171 static jboolean Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { in Matcher_findNextImpl() argument 175 state->updateOffsets(env, offsets); in Matcher_findNextImpl() 196 static jboolean Matcher_lookingAtImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { in Matcher_lookingAtImpl() argument 200 state->updateOffsets(env, offsets); in Matcher_lookingAtImpl() [all …]
|
D | libcore_io_Linux.cpp | 305 ScopedIntArrayRO offsets(mEnv, javaOffsets); in init() local 306 if (offsets.get() == NULL) { in init() 323 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]); in init() 2108 …dv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCo… in Linux_readv() argument 2110 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_readv() 2569 …ev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCo… in Linux_writev() argument 2571 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_writev()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 1224 private static native boolean findImpl(long addr, int startIndex, int[] offsets); in findImpl() argument 1225 private static native boolean findNextImpl(long addr, int[] offsets); in findNextImpl() argument 1229 private static native boolean lookingAtImpl(long addr, int[] offsets); in lookingAtImpl() argument 1230 private static native boolean matchesImpl(long addr, int[] offsets); in matchesImpl() argument 1245 private final int[] offsets; field in Matcher.OffsetBasedMatchResult 1247 OffsetBasedMatchResult(String input, int[] offsets) { in OffsetBasedMatchResult() argument 1249 this.offsets = offsets.clone(); in OffsetBasedMatchResult() 1259 return offsets[2 * group]; in start() 1269 return offsets[2 * group + 1]; in end() 1290 return (offsets.length / 2) - 1; in groupCount()
|
/libcore/ojluni/annotations/hiddenapi/java/util/regex/ |
D | Matcher.java | 205 private static native boolean findImpl(long addr, int startIndex, int[] offsets); in findImpl() argument 207 private static native boolean findNextImpl(long addr, int[] offsets); in findNextImpl() argument 215 private static native boolean lookingAtImpl(long addr, int[] offsets); in lookingAtImpl() argument 217 private static native boolean matchesImpl(long addr, int[] offsets); in matchesImpl() argument 265 OffsetBasedMatchResult(java.lang.String input, int[] offsets) { in OffsetBasedMatchResult() argument 303 private final int[] offsets; field in Matcher.OffsetBasedMatchResult 306 offsets = new int[0];
|
/libcore/luni/src/main/java/libcore/timezone/ |
D | CountryTimeZones.java | 416 int[] offsets = new int[2]; in offsetMatchesAtTime() local 417 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime() 420 boolean zoneIsDst = offsets[1] != 0; in offsetMatchesAtTime() 424 return offsetMillis == (offsets[0] + offsets[1]); in offsetMatchesAtTime() 480 int[] offsets = new int[2]; in offsetMatchesAtTime() local 481 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime() 484 if (dstOffsetMillis.intValue() != offsets[1]) { in offsetMatchesAtTime() 488 return offsetMillis == (offsets[0] + offsets[1]); in offsetMatchesAtTime()
|
/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() 977 int len = offsets[i] - patternOffset; in parse() 992 int tempLength = (i != maxOffset) ? offsets[i+1] : pattern.length(); in parse() 1099 other.offsets = offsets.clone(); in clone() 1118 && Arrays.equals(offsets,other.offsets) in equals() 1211 private int[] offsets = new int[INITIAL_FORMATS]; field in MessageFormat 1249 result.append(pattern.substring(lastOffset, offsets[i])); in subformat() 1250 lastOffset = offsets[i]; in subformat() 1451 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 130 zoneOffset = ((libcore.util.ZoneInfo) zi).getOffsetsByUtcTime(millis, offsets); in getCalendarDate() 134 offsets[0] = zi.getRawOffset(); in getCalendarDate() 135 offsets[1] = zoneOffset - offsets[0]; in getCalendarDate() 146 saving = offsets[1]; in getCalendarDate() 189 int[] offsets = new int[2]; in getTime() local
|
/libcore/luni/src/test/java/libcore/libcore/icu/ |
D | TimeZoneIntegrationTest.java | 514 int[] offsets = new int[2]; in testDstMeansSummer() local 515 timeZone.getOffset(winterTimeMillis, false /* local */, offsets); in testDstMeansSummer() 516 assertEquals(winterOffsetRawMillis, offsets[0]); in testDstMeansSummer() 517 assertEquals(winterOffsetDstMillis, offsets[1]); in testDstMeansSummer() 519 timeZone.getOffset(summerTimeMillis, false /* local */, offsets); in testDstMeansSummer() 520 assertEquals(summerOffsetRawMillis, offsets[0]); in testDstMeansSummer() 521 assertEquals(summerOffsetDstMillis, offsets[1]); in testDstMeansSummer()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 240 int getOffsets(long date, int[] offsets) { in getOffsets() argument 246 if (offsets != null) { in getOffsets() 247 offsets[0] = rawoffset; in getOffsets() 248 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 | 558 public int getOffsetsByUtcTime(long utcTimeInMillis, int[] offsets) { in getOffsetsByUtcTime() argument 599 offsets[0] = rawOffset; in getOffsetsByUtcTime() 600 offsets[1] = dstOffset; in getOffsetsByUtcTime() 952 int[] offsets = new int[zoneInfo.mOffsets.length + 1]; 979 offsets[numFound++] = 0; // offset of 0 from raw offset 986 offsets[numFound++] = zoneInfo.mOffsets[type]; 993 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 | 321 …@Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) t… in readv() argument 323 return super.readv(fd, buffers, offsets, byteCounts); in readv() 420 …@Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) … in writev() argument 422 return super.writev(fd, buffers, offsets, byteCounts); in writev()
|
D | ForwardingOs.java | 181 …ect[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { re… in readv() argument 242 …ct[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { ret… in writev() argument
|
D | Os.java | 154 …public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Errn… in readv() argument 206 …public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Err… in writev() argument
|
D | Linux.java | 195 …public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thro… in readv() argument 297 …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 | 485 …] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return… in readv() argument 735 … buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return … in writev() argument
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1997 private final int[] offsets; field in ObjectStreamClass.FieldReflector 2015 offsets = new int[nfields]; in FieldReflector() 2029 offsets[i] = f.getOffset(); in FieldReflector() 2065 int off = offsets[i]; in getPrimFieldValues() 2119 int off = offsets[i]; in setPrimFieldValues() 2176 vals[offsets[i]] = unsafe.getObject(obj, readKeys[i]); in getObjFieldValues() 2204 Object val = vals[offsets[i]]; in setObjFieldValues()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectStreamClass.java | 601 private final int[] offsets; field in ObjectStreamClass.FieldReflector 604 offsets = new int[0];
|