/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandle.java | 983 public MethodHandle asSpreader(Class<?> arrayType, int arrayLength) { in asSpreader() argument 984 MethodType postSpreadType = asSpreaderChecks(arrayType, arrayLength); in asSpreader() 997 (targetParamCount - arrayLength), targetParamCount); in asSpreader() 1000 return new Transformers.Spreader(this, adapterType, arrayLength); in asSpreader() 1008 private MethodType asSpreaderChecks(Class<?> arrayType, int arrayLength) { in asSpreaderChecks() argument 1009 spreadArrayChecks(arrayType, arrayLength); in asSpreaderChecks() 1011 if (nargs < arrayLength || arrayLength < 0) in asSpreaderChecks() 1016 for (int i = nargs - arrayLength; i < nargs; i++) { in asSpreaderChecks() 1027 MethodType needType = mtype.asSpreaderType(arrayType, arrayLength); in asSpreaderChecks() 1034 private void spreadArrayChecks(Class<?> arrayType, int arrayLength) { in spreadArrayChecks() argument [all …]
|
D | MethodType.java | 479 /*non-public*/ MethodType asSpreaderType(Class<?> arrayType, int arrayLength) { in asSpreaderType() argument 480 assert(parameterCount() >= arrayLength); in asSpreaderType() 481 int spreadPos = ptypes.length - arrayLength; in asSpreaderType() 482 if (arrayLength == 0) return this; // nothing to change in asSpreaderType() 487 MethodType res = genericMethodType(arrayLength); in asSpreaderType() 522 /*non-public*/ MethodType asCollectorType(Class<?> arrayType, int arrayLength) { in asCollectorType() argument 527 res = genericMethodType(arrayLength); in asCollectorType() 534 res = methodType(rtype, Collections.nCopies(arrayLength, elemType)); in asCollectorType()
|
D | Transformers.java | 1104 final int arrayLength = Array.getLength(arrayObj); in transform() local 1105 if (arrayLength != numArrayArgs) { in transform() 1106 throw new IllegalArgumentException("Invalid array length: " + arrayLength); in transform()
|
/libcore/benchmarks/src/benchmarks/ |
D | SystemArrayCopyBenchmark.java | 24 int arrayLength; field in SystemArrayCopyBenchmark 29 final int len = arrayLength; in timeSystemCharArrayCopy() 38 final int len = arrayLength; in timeSystemByteArrayCopy() 47 final int len = arrayLength; in timeSystemShortArrayCopy() 56 final int len = arrayLength; in timeSystemIntArrayCopy() 65 final int len = arrayLength; in timeSystemLongArrayCopy() 74 final int len = arrayLength; in timeSystemFloatArrayCopy() 83 final int len = arrayLength; in timeSystemDoubleArrayCopy() 92 final int len = arrayLength; in timeSystemBooleanArrayCopy()
|
D | DeepArrayOpsBenchmark.java | 27 @Param({"0001", "0004", "0016", "0256", "2048"}) int arrayLength; field in DeepArrayOpsBenchmark 33 array = new Object[arrayLength * 14]; in setUp() 34 array2 = new Object[arrayLength * 14]; in setUp() 35 for (int i = 0; i < arrayLength; i += 14) { in setUp()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SpinedBuffer.java | 481 protected abstract int arrayLength(T_ARR array); in arrayLength() method in SpinedBuffer.OfPrimitive 489 ? arrayLength(curChunk) in capacity() 490 : priorElementCount[spineIndex] + arrayLength(spine[spineIndex]); in capacity() 513 priorElementCount[i] = priorElementCount[i-1] + arrayLength(spine[i - 1]); in ensureCapacity() 535 if (index < priorElementCount[j] + arrayLength(spine[j])) in chunkFor() 543 if (finalOffset > arrayLength(array) || finalOffset < offset) { in copyInto() 552 System.arraycopy(spine[i], 0, array, offset, arrayLength(spine[i])); in copyInto() 553 offset += arrayLength(spine[i]); in copyInto() 570 if (elementIndex == arrayLength(curChunk)) { in preAccept() 594 arrayForEach(spine[j], 0, arrayLength(spine[j]), consumer); in forEach() [all …]
|
D | Nodes.java | 1836 int arrayLength) { 1842 this.length = arrayLength; 1846 long offset, long length, int arrayLength) { 1855 if (offset < 0 || length < 0 || (offset + length - 1 >= arrayLength)) { 1858 offset, offset, length, arrayLength));
|
/libcore/luni/src/main/java/libcore/io/ |
D | NioBufferIterator.java | 138 private static void checkArrayBounds(int arrayOffset, int arrayLength, int count) { in checkArrayBounds() argument 146 if (targetPos < 0 || targetPos > arrayLength) { in checkArrayBounds() 148 "Write outside range: arrayLength=" + arrayLength + ", arrayOffset=" in checkArrayBounds()
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandle.java | 42 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { return null; } in asCollector() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 307 int arrayLength = 10; in test_enumerate$Ljava_lang_Thread() local 308 Thread[] tarray = new Thread[arrayLength]; in test_enumerate$Ljava_lang_Thread()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 385 private static void checkFromToBounds(int arrayLength, int origin, int fence) { in checkFromToBounds() argument 393 if (fence > arrayLength) { in checkFromToBounds()
|
D | Arrays.java | 114 private static void rangeCheck(int arrayLength, int fromIndex, int toIndex) { in rangeCheck() argument 122 if (toIndex > arrayLength) { in rangeCheck()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 38 private static void rangeCheck(int arrayLength, int fromIndex, int toIndex) { in rangeCheck() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 1963 size_t arrayLength = env->GetArrayLength(javaStructs); in Linux_poll() local 1964 std::unique_ptr<struct pollfd[]> fds(new struct pollfd[arrayLength]); in Linux_poll() 1965 memset(fds.get(), 0, sizeof(struct pollfd) * arrayLength); in Linux_poll() 1967 for (size_t i = 0; i < arrayLength; ++i) { in Linux_poll()
|