Searched refs:arrayLength (Results 1 - 12 of 12) sorted by relevance

/libcore/benchmarks/src/benchmarks/
H A DSystemArrayCopyBenchmark.java24 int arrayLength; field in class:SystemArrayCopyBenchmark
29 final int len = arrayLength;
38 final int len = arrayLength;
47 final int len = arrayLength;
56 final int len = arrayLength;
65 final int len = arrayLength;
74 final int len = arrayLength;
83 final int len = arrayLength;
92 final int len = arrayLength;
H A DDeepArrayOpsBenchmark.java25 @Param({"1", "4", "16", "256", "2048"}) int arrayLength; field in class:DeepArrayOpsBenchmark
34 array = new Object[arrayLength * 13];
35 array2 = new Object[arrayLength * 13];
36 for (int i = 0; i < arrayLength; i += 13) {
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandle.java792 * {@code arrayLength} parameters of the target's type are replaced
862 * @param arrayLength the number of arguments to spread from an incoming array argument
868 * {@code arrayLength} parameter types,
869 * or if {@code arrayLength} is negative,
875 public MethodHandle asSpreader(Class<?> arrayType, int arrayLength) { argument
876 MethodType postSpreadType = asSpreaderChecks(arrayType, arrayLength);
880 (targetParamCount - arrayLength), targetParamCount);
883 return new Transformers.Spreader(this, adapterType, arrayLength);
890 private MethodType asSpreaderChecks(Class<?> arrayType, int arrayLength) { argument
891 spreadArrayChecks(arrayType, arrayLength);
916 spreadArrayChecks(Class<?> arrayType, int arrayLength) argument
1001 asCollector(Class<?> arrayType, int arrayLength) argument
1011 asCollectorChecks(Class<?> arrayType, int arrayLength) argument
[all...]
H A DMethodType.java473 /** Replace the last arrayLength parameter types with the component type of arrayType.
475 * @param arrayLength the number of parameter types to change
478 /*non-public*/ MethodType asSpreaderType(Class<?> arrayType, int arrayLength) { argument
479 assert(parameterCount() >= arrayLength);
480 int spreadPos = ptypes.length - arrayLength;
481 if (arrayLength == 0) return this; // nothing to change
486 MethodType res = genericMethodType(arrayLength);
516 /** Delete the last parameter type and replace it with arrayLength copies of the component type of arrayType.
518 * @param arrayLength the number of parameter types to insert
521 /*non-public*/ MethodType asCollectorType(Class<?> arrayType, int arrayLength) { argument
[all...]
H A DTransformers.java1103 final int arrayLength = Array.getLength(arrayObj);
1104 if (arrayLength != numArrayArgs) {
1105 throw new IllegalArgumentException("Invalid array length: " + arrayLength);
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodHandle.java42 public MethodHandle asCollector(Class<?> arrayType, int arrayLength) { return null; } argument
/libcore/ojluni/src/main/java/java/util/stream/
H A DSpinedBuffer.java479 protected abstract int arrayLength(T_ARR array); method in class:SpinedBuffer.OfPrimitive
487 ? arrayLength(curChunk)
488 : priorElementCount[spineIndex] + arrayLength(spine[spineIndex]);
511 priorElementCount[i] = priorElementCount[i-1] + arrayLength(spine[i - 1]);
533 if (index < priorElementCount[j] + arrayLength(spine[j]))
541 if (finalOffset > arrayLength(array) || finalOffset < offset) {
550 System.arraycopy(spine[i], 0, array, offset, arrayLength(spine[i]));
551 offset += arrayLength(spine[i]);
568 if (elementIndex == arrayLength(curChunk)) {
592 arrayForEach(spine[j], 0, arrayLength(spin
757 protected int arrayLength(int[] array) { method in class:SpinedBuffer.OfInt
871 protected int arrayLength(long[] array) { method in class:SpinedBuffer.OfLong
987 protected int arrayLength(double[] array) { method in class:SpinedBuffer.OfDouble
[all...]
H A DNodes.java1836 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));
1834 SizedCollectorTask(Spliterator<P_IN> spliterator, PipelineHelper<P_OUT> helper, int arrayLength) argument
1845 SizedCollectorTask(K parent, Spliterator<P_IN> spliterator, long offset, long length, int arrayLength) argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
H A DThreadTest.java307 int arrayLength = 10;
308 Thread[] tarray = new Thread[arrayLength];
/libcore/ojluni/src/main/java/java/util/
H A DArrays.java114 private static void rangeCheck(int arrayLength, int fromIndex, int toIndex) { argument
122 if (toIndex > arrayLength) {
130 * {@code arrayLength}.
133 public static void checkOffsetAndCount(int arrayLength, int offset, int count) { argument
134 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) {
135 throw new ArrayIndexOutOfBoundsException(arrayLength, offset,
H A DSpliterators.java378 * @param arrayLength The length of the array
385 private static void checkFromToBounds(int arrayLength, int origin, int fence) { argument
393 if (fence > arrayLength) {
/libcore/luni/src/main/native/
H A Dlibcore_io_Linux.cpp1869 size_t arrayLength = env->GetArrayLength(javaStructs); local
1870 std::unique_ptr<struct pollfd[]> fds(new struct pollfd[arrayLength]);
1871 memset(fds.get(), 0, sizeof(struct pollfd) * arrayLength);
1873 for (size_t i = 0; i < arrayLength; ++i) {

Completed in 336 milliseconds