Home
last modified time | relevance | path

Searched defs:length (Results 1 – 25 of 341) sorted by relevance

12345678910>>...14

/libcore/ojluni/src/main/java/java/net/
DDatagramPacket.java69 int length; field in DatagramPacket
87 public DatagramPacket(byte buf[], int offset, int length) { in DatagramPacket()
103 public DatagramPacket(byte buf[], int length) { in DatagramPacket()
123 public DatagramPacket(byte buf[], int offset, int length, in DatagramPacket()
152 public DatagramPacket(byte buf[], int offset, int length, SocketAddress address) { in DatagramPacket()
175 public DatagramPacket(byte buf[], int length, in DatagramPacket()
193 public DatagramPacket(byte buf[], int length, SocketAddress address) { in DatagramPacket()
278 public synchronized void setData(byte[] buf, int offset, int length) { in setData()
307 public void setReceivedLength(int length) { in setReceivedLength()
401 public synchronized void setLength(int length) { in setLength()
/libcore/luni/src/main/java/libcore/util/
DCharsetUtils.java32 public static native byte[] toAsciiBytes(String s, int offset, int length); in toAsciiBytes()
39 public static native byte[] toIsoLatin1Bytes(String s, int offset, int length); in toIsoLatin1Bytes()
46 public static native byte[] toUtf8Bytes(String s, int offset, int length); in toUtf8Bytes()
52 public static byte[] toBigEndianUtf16Bytes(String s, int offset, int length) { in toBigEndianUtf16Bytes()
73 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); in asciiBytesToChars()
/libcore/ojluni/src/main/java/jdk/internal/util/
DArraysSupport.java117 int length, in vectorizedMismatch()
199 public static int vectorizedHashCode(Object array, int fromIndex, int length, int initialValue, in vectorizedHashCode()
213 private static int signedHashCode(int result, byte[] a, int fromIndex, int length) { in signedHashCode()
221 private static int hashCode(int result, byte[] a, int fromIndex, int length) { in hashCode()
229 private static int hashCode(int result, char[] a, int fromIndex, int length) { in hashCode()
237 private static int hashCode(int result, short[] a, int fromIndex, int length) { in hashCode()
245 private static int hashCode(int result, int[] a, int fromIndex, int length) { in hashCode()
258 public static int utf16hashCode(int result, byte[] value, int fromIndex, int length) { in utf16hashCode()
274 int length) { in mismatch()
296 int length) { in mismatch()
[all …]
DPreconditions.java69 int index, int length) { in outOfBoundsCheckIndex()
75 int fromIndex, int toIndex, int length) { in outOfBoundsCheckFromToIndex()
81 int fromIndex, int size, int length) { in outOfBoundsCheckFromIndexSize()
87 long index, long length) { in outOfBoundsCheckIndex()
93 long fromIndex, long toIndex, long length) { in outOfBoundsCheckFromToIndex()
99 long fromIndex, long size, long length) { in outOfBoundsCheckFromIndexSize()
/libcore/ojluni/src/main/java/java/nio/
DByteBufferAsDoubleBuffer.java104 public DoubleBuffer slice(int index, int length) { in slice()
177 public DoubleBuffer get(double[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public DoubleBuffer get(int index, double[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public DoubleBuffer put(double[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public DoubleBuffer put(int index, double[] src, int off, int length) { in put()
261 private void putUnchecked(int index, double[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DByteBufferAsLongBuffer.java104 public LongBuffer slice(int index, int length) { in slice()
177 public LongBuffer get(long[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public LongBuffer get(int index, long[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public LongBuffer put(long[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public LongBuffer put(int index, long[] src, int off, int length) { in put()
261 private void putUnchecked(int index, long[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DByteBufferAsIntBuffer.java104 public IntBuffer slice(int index, int length) { in slice()
177 public IntBuffer get(int[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public IntBuffer get(int index, int[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public IntBuffer put(int[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public IntBuffer put(int index, int[] src, int off, int length) { in put()
261 private void putUnchecked(int index, int[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DByteBufferAsShortBuffer.java104 public ShortBuffer slice(int index, int length) { in slice()
177 public ShortBuffer get(short[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public ShortBuffer get(int index, short[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public ShortBuffer put(short[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public ShortBuffer put(int index, short[] src, int off, int length) { in put()
261 private void putUnchecked(int index, short[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DByteBufferAsFloatBuffer.java104 public FloatBuffer slice(int index, int length) { in slice()
177 public FloatBuffer get(float[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public FloatBuffer get(int index, float[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public FloatBuffer put(float[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public FloatBuffer put(int index, float[] src, int off, int length) { in put()
261 private void putUnchecked(int index, float[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DBufferMismatch.java34 static int mismatch(ByteBuffer a, int aOff, ByteBuffer b, int bOff, int length) { in mismatch()
57 static int mismatch(CharBuffer a, int aOff, CharBuffer b, int bOff, int length) { in mismatch()
84 static int mismatch(ShortBuffer a, int aOff, ShortBuffer b, int bOff, int length) { in mismatch()
107 static int mismatch(IntBuffer a, int aOff, IntBuffer b, int bOff, int length) { in mismatch()
130 static int mismatch(FloatBuffer a, int aOff, FloatBuffer b, int bOff, int length) { in mismatch()
171 static int mismatch(LongBuffer a, int aOff, LongBuffer b, int bOff, int length) { in mismatch()
193 static int mismatch(DoubleBuffer a, int aOff, DoubleBuffer b, int bOff, int length) { in mismatch()
DByteBufferAsCharBuffer.java104 public CharBuffer slice(int index, int length) { in slice()
177 public CharBuffer get(char[] dst, int off, int length) { in get()
181 bb.getUnchecked(ix(position), dst, off, length); in get() local
187 public CharBuffer get(int index, char[] dst, int off, int length) { in get()
190 bb.getUnchecked(ix(index), dst, off, length); in get() local
242 public CharBuffer put(char[] src, int off, int length) { in put()
247 bb.putUnchecked(ix(position), src, off, length); in put() local
253 public CharBuffer put(int index, char[] src, int off, int length) { in put()
261 private void putUnchecked(int index, char[] src, int off, int length) { in putUnchecked()
262 bb.putUnchecked(ix(index), src, off, length); in putUnchecked() local
DMappedByteBuffer.java217 private long mappingLength(long length, long mappingOffset) { in mappingLength()
252 long length = mappingLength(offset); in isLoaded() local
283 long length = mappingLength(offset); in load() local
284 load0(mappingAddress(offset), length); in load() local
389 public final MappedByteBuffer force(int index, int length) { in force()
517 public abstract MappedByteBuffer slice(int index, int length); in slice()
519 private native boolean isLoaded0(long address, long length, long pageCount); in isLoaded0()
520 private native void load0(long address, long length); in load0()
521 private native void force0(FileDescriptor fd, long address, long length); in force0()
DDirectByteBuffer.java183 public final MappedByteBuffer slice(int index, int length) { in slice()
258 public ByteBuffer get(byte[] dst, int dstOffset, int length) { in get()
270 dst, dstOffset, length); in get() local
314 public ByteBuffer put(byte[] src, int srcOffset, int length) { in put()
329 src, srcOffset, length); in put() local
409 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { in getUnchecked()
414 dst, dstOffset, length, !nativeByteOrder); in getUnchecked() local
455 void putUnchecked(int pos, char[] src, int srcOffset, int length) { in putUnchecked()
460 src, srcOffset, length, !nativeByteOrder); in putUnchecked() local
511 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { in getUnchecked()
[all …]
DHeapByteBuffer.java157 public ByteBuffer slice(int index, int length) { in slice()
237 public ByteBuffer get(byte[] dst, int offset, int length) { in get()
249 public ByteBuffer get(int index, byte[] dst, int offset, int length) { in get()
294 public ByteBuffer put(byte[] src, int offset, int length) { in put()
351 public ByteBuffer put(int index, ByteBuffer src, int offset, int length) { in put()
362 public ByteBuffer put(int index, byte[] src, int offset, int length) { in put()
481 void getUnchecked(int pos, char[] dst, int dstOffset, int length) { in getUnchecked()
507 void putUnchecked(int pos, char[] src, int srcOffset, int length) { in putUnchecked()
571 void getUnchecked(int pos, short[] dst, int dstOffset, int length) { in getUnchecked()
609 void putUnchecked(int pos, short[] src, int srcOffset, int length) { in putUnchecked()
[all …]
DByteBuffer.java422 int offset, int length) in wrap()
628 public abstract ByteBuffer slice(int index, int length); in slice()
815 public ByteBuffer get(byte[] dst, int offset, int length) { in get()
894 public ByteBuffer get(int index, byte[] dst, int offset, int length) { in get()
934 private ByteBuffer getArray(int index, byte[] dst, int offset, int length) { in getArray()
1095 public ByteBuffer put(int index, ByteBuffer src, int offset, int length) { in put()
1292 public ByteBuffer put(byte[] src, int offset, int length) { in put()
1377 public ByteBuffer put(int index, byte[] src, int offset, int length) { in put()
1421 private ByteBuffer putArray(int index, byte[] src, int offset, int length) { in putArray()
1913 int length = Math.min(thisRem, thatRem); in compareTo() local
[all …]
/libcore/ojluni/src/test/java/util/Arrays/
DArrayObjectMethods.java304 public static long[] longArray(int length) { in longArray()
311 public static int[] intArray(int length) { in intArray()
318 public static short[] shortArray(int length) { in shortArray()
325 public static char[] charArray(int length) { in charArray()
332 public static byte[] byteArray(int length) { in byteArray()
339 public static boolean[] booleanArray(int length) { in booleanArray()
346 public static double[] doubleArray(int length) { in doubleArray()
353 public static float[] floatArray(int length) { in floatArray()
360 public static Object[] flatObjectArray(int length) { in flatObjectArray()
369 public static Object[] nestedObjectArray(int length) { in nestedObjectArray()
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java96 private final int length; field in CoderResult
98 private CoderResult(int type, int length) { in CoderResult()
172 public int length() { in length() method in CoderResult
217 public static CoderResult malformedForLength(int length) { in malformedForLength()
242 public static CoderResult unmappableForLength(int length) { in unmappableForLength()
/libcore/ojluni/src/main/java/sun/security/util/
DBitArray.java41 private int length; field in BitArray
56 public BitArray(int length) throws IllegalArgumentException { in BitArray()
72 public BitArray(int length, byte[] a) throws IllegalArgumentException { in BitArray()
83 public BitArray(int length, byte[] a, int ofs) in BitArray()
166 public int length() { in length() method in BitArray
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DBitArray.java31 public BitArray(int length) throws java.lang.IllegalArgumentException { in BitArray()
36 public BitArray(int length, byte[] a) throws java.lang.IllegalArgumentException { in BitArray()
64 public int length() { in length() method in BitArray
107 private int length; field in BitArray
/libcore/ojluni/src/main/java/java/util/
DObjects.java358 int checkIndex(int index, int length) { in checkIndex()
384 int checkFromToIndex(int fromIndex, int toIndex, int length) { in checkFromToIndex()
410 int checkFromIndexSize(int fromIndex, int size, int length) { in checkFromIndexSize()
435 long checkIndex(long index, long length) { in checkIndex()
461 long checkFromToIndex(long fromIndex, long toIndex, long length) { in checkFromToIndex()
487 long checkFromIndexSize(long fromIndex, long size, long length) { in checkFromIndexSize()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DSystem.java78 java.lang.Object src, int srcPos, java.lang.Object dest, int destPos, int length); in arraycopy()
81 private static void arraycopy(char[] src, int srcPos, char[] dst, int dstPos, int length) { in arraycopy()
86 char[] src, int srcPos, char[] dst, int dstPos, int length); in arraycopyCharUnchecked()
89 public static void arraycopy(byte[] src, int srcPos, byte[] dst, int dstPos, int length) { in arraycopy()
94 byte[] src, int srcPos, byte[] dst, int dstPos, int length); in arraycopyByteUnchecked()
97 private static void arraycopy(short[] src, int srcPos, short[] dst, int dstPos, int length) { in arraycopy()
102 short[] src, int srcPos, short[] dst, int dstPos, int length); in arraycopyShortUnchecked()
105 private static void arraycopy(int[] src, int srcPos, int[] dst, int dstPos, int length) { in arraycopy()
110 int[] src, int srcPos, int[] dst, int dstPos, int length); in arraycopyIntUnchecked()
113 private static void arraycopy(long[] src, int srcPos, long[] dst, int dstPos, int length) { in arraycopy()
[all …]
/libcore/ojluni/annotations/flagged_api/java/nio/
DIntBuffer.annotated.java40 public static java.nio.IntBuffer wrap(int[] array, int offset, int length) { throw new RuntimeExcep… in wrap()
46 public abstract java.nio.IntBuffer slice(int index, int length); in slice()
60 public java.nio.IntBuffer get(int[] dst, int offset, int length) { throw new RuntimeException("Stub… in get()
65 public java.nio.IntBuffer get(int index, int[] dst, int offset, int length) { throw new RuntimeExce… in get()
73 public java.nio.IntBuffer put(int index, java.nio.IntBuffer src, int offset, int length) { throw ne… in put()
75 public java.nio.IntBuffer put(int[] src, int offset, int length) { throw new RuntimeException("Stub… in put()
80 public java.nio.IntBuffer put(int index, int[] src, int offset, int length) { throw new RuntimeExce… in put()
DFloatBuffer.annotated.java40 public static java.nio.FloatBuffer wrap(float[] array, int offset, int length) { throw new RuntimeE… in wrap()
46 public abstract java.nio.FloatBuffer slice(int index, int length); in slice()
60 public java.nio.FloatBuffer get(float[] dst, int offset, int length) { throw new RuntimeException("… in get()
65 public java.nio.FloatBuffer get(int index, float[] dst, int offset, int length) { throw new Runtime… in get()
73 public java.nio.FloatBuffer put(int index, java.nio.FloatBuffer src, int offset, int length) { thro… in put()
75 public java.nio.FloatBuffer put(float[] src, int offset, int length) { throw new RuntimeException("… in put()
80 public java.nio.FloatBuffer put(int index, float[] src, int offset, int length) { throw new Runtime… in put()
DDoubleBuffer.annotated.java40 public static java.nio.DoubleBuffer wrap(double[] array, int offset, int length) { throw new Runtim… in wrap()
46 public abstract java.nio.DoubleBuffer slice(int index, int length); in slice()
60 public java.nio.DoubleBuffer get(double[] dst, int offset, int length) { throw new RuntimeException… in get()
65 public java.nio.DoubleBuffer get(int index, double[] dst, int offset, int length) { throw new Runti… in get()
73 public java.nio.DoubleBuffer put(int index, java.nio.DoubleBuffer src, int offset, int length) { th… in put()
75 public java.nio.DoubleBuffer put(double[] src, int offset, int length) { throw new RuntimeException… in put()
80 public java.nio.DoubleBuffer put(int index, double[] src, int offset, int length) { throw new Runti… in put()
DLongBuffer.annotated.java40 public static java.nio.LongBuffer wrap(long[] array, int offset, int length) { throw new RuntimeExc… in wrap()
46 public abstract java.nio.LongBuffer slice(int index, int length); in slice()
60 public java.nio.LongBuffer get(long[] dst, int offset, int length) { throw new RuntimeException("St… in get()
65 public java.nio.LongBuffer get(int index, long[] dst, int offset, int length) { throw new RuntimeEx… in get()
73 public java.nio.LongBuffer put(int index, java.nio.LongBuffer src, int offset, int length) { throw … in put()
75 public java.nio.LongBuffer put(long[] src, int offset, int length) { throw new RuntimeException("St… in put()
80 public java.nio.LongBuffer put(int index, long[] src, int offset, int length) { throw new RuntimeEx… in put()

12345678910>>...14