Searched defs:offsets (Results 1 - 16 of 16) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
H A DCollatorTest.java133 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { argument
134 for (int offset : offsets) {
141 private void assertGetCollationElementIteratorString(Locale l, String s, Integer... offsets) { argument
143 assertCollationElementIterator(coll.getCollationElementIterator(s), offsets);
146 private void assertGetCollationElementIteratorCharacterIterator(Locale l, String s, Integer... offsets) { argument
149 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets);
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp126 ScopedIntArrayRW offsets(env, javaOffsets);
127 if (offsets.get() == NULL) {
132 offsets[2*i + 0] = mMatcher->start(i, mStatus);
133 offsets[2*i + 1] = mMatcher->end(i, mStatus);
167 static jint Matcher_findImpl(JNIEnv* env, jclass, jlong addr, jint startIndex, jintArray offsets) { argument
171 state->updateOffsets(env, offsets);
176 static jint Matcher_findNextImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { argument
180 state->updateOffsets(env, offsets);
195 static jint Matcher_lookingAtImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) { argument
199 state->updateOffsets(env, offsets);
204 Matcher_matchesImpl(JNIEnv* env, jclass, jlong addr, jintArray offsets) argument
[all...]
H A Dlibcore_io_Linux.cpp297 ScopedIntArrayRO offsets(mEnv, javaOffsets);
298 if (offsets.get() == NULL) {
315 iov.iov_base = reinterpret_cast<void*>(ptr + offsets[i]);
2017 static jint Linux_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
2019 if (!ioVec.init(buffers, offsets, byteCounts)) {
2456 static jint Linux_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
2458 if (!ioVec.init(buffers, offsets, byteCounts)) {
/libcore/ojluni/src/main/java/java/util/
H A DTimeZone.java228 * @param offsets an array of int where the raw GMT offset
238 int getOffsets(long date, int[] offsets) { argument
244 if (offsets != null) {
245 offsets[0] = rawoffset;
246 offsets[1] = dstoffset;
H A DSimpleTimeZone.java545 int getOffsets(long date, int[] offsets) { argument
571 if (offsets != null) {
572 offsets[0] = rawOffset;
573 offsets[1] = offset - rawOffset;
1101 * The offset in milliseconds between this zone and GMT. Negative offsets
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixPath.java61 // array of offsets of elements in path (created lazily)
62 private volatile int[] offsets; field in class:UnixPath
206 if (offsets == null) {
226 // populate offsets
241 if (offsets == null)
242 offsets = result;
275 int count = offsets.length;
285 int lastOffset = offsets[count-1];
296 int count = offsets.length;
301 int len = offsets[coun
[all...]
H A DLinuxWatchService.java166 private static final int[] offsets = eventOffsets(); field in class:LinuxWatchService.Poller
167 private static final int OFFSETOF_WD = offsets[0];
168 private static final int OFFSETOF_MASK = offsets[1];
169 private static final int OFFSETOF_LEN = offsets[3];
170 private static final int OFFSETOF_NAME = offsets[4];
477 // offsets of inotify_event
/libcore/ojluni/src/main/java/java/text/
H A DMessageFormat.java527 copyAndFixQuotes(pattern, lastOffset, offsets[i], result);
528 lastOffset = offsets[i];
816 * On output: the offsets of the alignment field.
862 * On output: the offsets of the alignment field.
975 int len = offsets[i] - patternOffset;
990 int tempLength = (i != maxOffset) ? offsets[i+1] : pattern.length();
1097 other.offsets = offsets.clone();
1116 && Arrays.equals(offsets,other.offsets)
1209 private int[] offsets = new int[INITIAL_FORMATS]; field in class:MessageFormat
[all...]
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatcher.java168 * Holds the offsets for the most recent match.
1199 private static native boolean findImpl(long addr, int startIndex, int[] offsets); argument
1200 private static native boolean findNextImpl(long addr, int[] offsets); argument
1204 private static native boolean lookingAtImpl(long addr, int[] offsets); argument
1205 private static native boolean matchesImpl(long addr, int[] offsets); argument
1215 * representing match offsets. The array is of the form
1221 private final int[] offsets; field in class:Matcher.OffsetBasedMatchResult
1223 OffsetBasedMatchResult(String input, int[] offsets) { argument
1225 this.offsets = offsets
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java267 @Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { argument
269 return os.readv(fd, buffers, offsets, byteCounts);
351 @Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { argument
353 return os.writev(fd, buffers, offsets, byteCounts);
H A DForwardingOs.java150 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return os.readv(fd, buffers, offsets, byteCounts); } argument
196 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return os.writev(fd, buffers, offsets, byteCounts); } argument
H A DLinux.java189 public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
291 public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
H A DOs.java137 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
183 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java114 * The times (in seconds) at which the offsets changes for any reason, whether that is a change
278 // Find the latest daylight and standard offsets (if any).
334 // Use the latest transition's pair of offsets to compute the DST savings.
353 // Rather than keep offsets from UTC, we use offsets from local time, so the raw offset
354 // can be changed and automatically affect all the offsets.
518 * Get the raw and DST offsets for the specified time in milliseconds since
522 * index 0 of the {@code offsets} array and the DST offset, i.e. that part of the offset which
526 * @param offsets the array whose length must be greater than or equal to 2.
527 * @return the total offset which is the sum of the raw and DST offsets
529 getOffsetsByUtcTime(long utcTimeInMillis, int[] offsets) argument
[all...]
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java1318 * Calculates and sets serializable field offsets, as well as primitive
1938 /** field data offsets */
1939 private final int[] offsets; field in class:ObjectStreamClass.FieldReflector
1957 offsets = new int[nfields];
1971 offsets[i] = f.getOffset();
2007 int off = offsets[i];
2061 int off = offsets[i];
2118 vals[offsets[i]] = unsafe.getObject(obj, readKeys[i]);
2146 Object val = vals[offsets[i]];
/libcore/luni/src/main/java/android/system/
H A DOs.java429 public static int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return Libcore.os.readv(fd, buffers, offsets, byteCounts); } argument
644 public static int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return Libcore.os.writev(fd, buffers, offsets, byteCounts); } argument

Completed in 1487 milliseconds