Home
last modified time | relevance | path

Searched refs:ix (Results 1 – 25 of 25) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java209 private int ix(int i) { in ix() method in HeapByteBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
369 System.arraycopy(src, offset, hb, ix(index), length); in put()
410 System.arraycopy(hb, ix(pos), hb, ix(0), rem); in compact()
[all …]
DDirectByteBuffer.java232 private long ix(int i) { in ix() method in DirectByteBuffer
245 return get(ix(nextGetIndex())); in get()
253 return get(ix(checkIndex(i))); in get()
269 Memory.peekByteArray(ix(pos), in get()
296 put(ix(nextPutIndex()), x); in put()
308 put(ix(checkIndex(i)), x); in put()
328 Memory.pokeByteArray(ix(pos), in put()
386 char x = (char) Memory.peekShort(ix(position), !nativeByteOrder); in getChar()
397 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getChar()
405 return (char) Memory.peekShort(ix(i), !nativeByteOrder); in getCharUnchecked()
[all …]
DHeapCharBuffer.java209 private int ix(int i) { in ix() method in HeapCharBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
232 return hb[ix(i)]; in getUnchecked()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
[all …]
DHeapIntBuffer.java209 private int ix(int i) { in ix() method in HeapIntBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
331 hb, ix(position()), n); in put()
[all …]
DHeapFloatBuffer.java209 private int ix(int i) { in ix() method in HeapFloatBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
331 hb, ix(position()), n); in put()
[all …]
DHeapShortBuffer.java209 private int ix(int i) { in ix() method in HeapShortBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
331 hb, ix(position()), n); in put()
[all …]
DHeapLongBuffer.java209 private int ix(int i) { in ix() method in HeapLongBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
331 hb, ix(position()), n); in put()
[all …]
DHeapDoubleBuffer.java209 private int ix(int i) { in ix() method in HeapDoubleBuffer
221 return hb[ix(nextGetIndex())]; in get()
226 return hb[ix(checkIndex(i))]; in get()
243 System.arraycopy(hb, ix(pos), dst, offset, length); in get()
253 System.arraycopy(hb, ix(index), dst, offset, length); in get()
274 hb[ix(nextPutIndex())] = x; in put()
286 hb[ix(checkIndex(i))] = x; in put()
303 System.arraycopy(src, offset, hb, ix(pos), length); in put()
330 System.arraycopy(sb.hb, sb.ix(sb.position()), in put()
331 hb, ix(position()), n); in put()
[all …]
DByteBufferAsDoubleBuffer.java100 return new ByteBufferAsDoubleBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsDoubleBuffer
172 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
233 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
274 this.bb.putBuffer(ix(pos), asSrc.bb, asSrc.ix(srcPos), n << 3); in putBuffer()
[all …]
DByteBufferAsLongBuffer.java100 return new ByteBufferAsLongBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsLongBuffer
172 return bb.getLongUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
233 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
274 this.bb.putBuffer(ix(pos), asSrc.bb, asSrc.ix(srcPos), n << 3); in putBuffer()
[all …]
DByteBufferAsIntBuffer.java100 return new ByteBufferAsIntBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsIntBuffer
172 return bb.getIntUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
233 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
274 this.bb.putBuffer(ix(pos), asSrc.bb, asSrc.ix(srcPos), n << 2); in putBuffer()
[all …]
DByteBufferAsShortBuffer.java100 return new ByteBufferAsShortBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsShortBuffer
172 return bb.getShortUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
233 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
274 this.bb.putBuffer(ix(pos), asSrc.bb, asSrc.ix(srcPos), n << 1); in putBuffer()
[all …]
DByteBufferAsFloatBuffer.java100 return new ByteBufferAsFloatBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsFloatBuffer
172 return bb.getFloatUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
233 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
274 this.bb.putBuffer(ix(pos), asSrc.bb, asSrc.ix(srcPos), n << 2); in putBuffer()
[all …]
DByteBufferAsCharBuffer.java100 return new ByteBufferAsCharBuffer(bb, -1, 0, rem, rem, ix(pos), order); in slice()
112 ix(index), order); in slice()
143 private int ix(int i) { in ix() method in ByteBufferAsCharBuffer
172 return bb.getCharUnchecked(ix(checkIndex(i))); in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get()
202 return bb.getCharUnchecked(ix(i)); in getUnchecked()
233 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
247 bb.putUnchecked(ix(position), src, off, length); in put()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked()
[all …]
DHeap-X-Buffer.java.template209 private int ix(int i) {
221 return hb[ix(nextGetIndex())];
226 return hb[ix(checkIndex(i))];
232 return hb[ix(i)];
243 System.arraycopy(hb, ix(pos), dst, offset, length);
253 System.arraycopy(hb, ix(index), dst, offset, length);
274 hb[ix(nextPutIndex())] = x;
286 hb[ix(checkIndex(i))] = x;
303 System.arraycopy(src, offset, hb, ix(pos), length);
330 System.arraycopy(sb.hb, sb.ix(sb.position()),
[all …]
DByteBufferAs-X-Buffer.java.template100 return new ByteBufferAs$Type$Buffer(bb, -1, 0, rem, rem, ix(pos), order);
112 ix(index), order);
143 private int ix(int i) {
172 return bb.get$Type$Unchecked(ix(checkIndex(i)));
181 bb.getUnchecked(ix(position), dst, off, length);
190 bb.getUnchecked(ix(index), dst, off, length);
202 return bb.get$Type$Unchecked(ix(i));
233 bb.put$Type$Unchecked(ix(checkIndex(i)), x);
247 bb.putUnchecked(ix(position), src, off, length);
262 bb.putUnchecked(ix(index), src, off, length);
[all …]
DDirect-X-Buffer-bin.java.template45 return get$Type$(ix(nextGetIndex($BYTES_PER_VALUE$)));
53 return get$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$)));
77 put$Type$(ix(nextPutIndex($BYTES_PER_VALUE$)), x);
86 put$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$)), x);
DDirect-X-Buffer.java.template318 private long ix(int i) {
324 … return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(scope(), null, ix(nextGetIndex()))));
332 … return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(scope(), null, ix(checkIndex(i)))));
341 return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(null, null, ix(i))));
352 … SCOPED_MEMORY_ACCESS.put$Swaptype$(scope(), null, ix(nextPutIndex()), $swap$($toBits$(x)));
365 … SCOPED_MEMORY_ACCESS.put$Swaptype$(scope(), null, ix(checkIndex(i)), $swap$($toBits$(x)));
384 ix(pos), null, ix(0), (long)rem << $LG_BYTES_PER_VALUE$);
/libcore/ojluni/src/main/native/
Dcanonicalize_md.c115 splitNames(char *names, char **ix) in splitNames() argument
121 ix[i++] = p++; in splitNames()
141 joinNames(char *names, int nc, char **ix) in joinNames() argument
147 if (!ix[i]) continue; in joinNames()
151 if (p == ix[i]) { in joinNames()
154 char *q = ix[i]; in joinNames()
180 char **ix; in collapse() local
187 ix = (char **)alloca(nc * sizeof(char *)); in collapse()
188 splitNames(names, ix); in collapse()
195 char *p = ix[i]; in collapse()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DFileHandler.java463 } catch (FileAlreadyExistsException ix) { in openFiles()
505 } catch (IOException ix) { in openFiles()
571 int ix = 0; in generate() local
574 while (ix < pattern.length()) { in generate()
575 char ch = pattern.charAt(ix); in generate()
576 ix++; in generate()
578 if (ix < pattern.length()) { in generate()
579 ch2 = Character.toLowerCase(pattern.charAt(ix)); in generate()
596 ix++; in generate()
609 ix++; in generate()
[all …]
DMemoryHandler.java207 int ix = (start+count)%buffer.length; in publish() local
208 buffer[ix] = record; in publish()
227 int ix = (start+i)%buffer.length; in push() local
228 LogRecord record = buffer[ix]; in push()
DSocketHandler.java128 } catch (IOException ix) { in SocketHandler()
130 throw ix; in SocketHandler()
192 } catch (IOException ix) { in close()
DLogRecord.java565 for (int ix = 0; ix < depth; ix++) { in inferCaller()
572 StackTraceElement frame = stack[ix]; in inferCaller()
DLogManager.java847 int ix = 1; in processParentHandlers() local
849 int ix2 = name.indexOf(".", ix); in processParentHandlers()
860 ix = ix2+1; in processParentHandlers()
872 int ix = name.indexOf("."); in getNode() local
874 if (ix > 0) { in getNode()
875 head = name.substring(0, ix); in getNode()
876 name = name.substring(ix + 1); in getNode()
1367 int ix = 0; in parseClassNames() local
1369 while (ix < hands.length()) { in parseClassNames()
1370 int end = ix; in parseClassNames()
[all …]
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java110 private long ix(int i) { in ix() method in DirectByteBuffer