Home
last modified time | relevance | path

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

12345678910>>...49

/libcore/ojluni/annotations/flagged_api/java/lang/invoke/
DVarHandle.annotated.java34 public final native java.lang.Object get(java.lang.Object... args); in get() argument
36 public final native void set(java.lang.Object... args); in set() argument
38 public final native java.lang.Object getVolatile(java.lang.Object... args); in getVolatile() argument
40 public final native void setVolatile(java.lang.Object... args); in setVolatile() argument
42 public final native java.lang.Object getOpaque(java.lang.Object... args); in getOpaque() argument
44 public final native void setOpaque(java.lang.Object... args); in setOpaque() argument
46 public final native java.lang.Object getAcquire(java.lang.Object... args); in getAcquire() argument
48 public final native void setRelease(java.lang.Object... args); in setRelease() argument
50 public final native boolean compareAndSet(java.lang.Object... args); in compareAndSet() argument
52 public final native java.lang.Object compareAndExchange(java.lang.Object... args); in compareAndExchange() argument
[all …]
/libcore/ojluni/src/test/java/lang/invoke/
DInvokeGenericTest.java113 static Object logEntry(String name, Object... args) { in logEntry() argument
114 return Arrays.asList(name, Arrays.asList(args)); in logEntry()
116 static Object called(String name, Object... args) { in called() argument
117 Object entry = logEntry(name, args); in called()
121 static void assertCalled(String name, Object... args) { in assertCalled() argument
122 Object expected = logEntry(name, args); in assertCalled()
132 static void printCalled(MethodHandle target, String name, Object... args) { in printCalled() argument
134 System.out.println("calling MH="+target+" to "+name+Arrays.toString(args)); in printCalled()
225 Object[] args = new Object[params.length]; in randomArgs() local
226 for (int i = 0; i < args.length; i++) in randomArgs()
[all …]
DRicochetTest.java147 int[] args = new int[nargs]; in testIntSpreads() local
148 for (int j = 0; j < args.length; j++) args[j] = j + 11; in testIntSpreads()
150 int[] args1 = (int[]) id.invokeExact(args); in testIntSpreads()
151 assertArrayEquals(args, args1); in testIntSpreads()
153 int[] args2 = args; in testIntSpreads()
156 case 1: args2 = (int[]) coll.invokeExact(args[0]); break; in testIntSpreads()
157 case 2: args2 = (int[]) coll.invokeExact(args[0], args[1]); break; in testIntSpreads()
158 case 3: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2]); break; in testIntSpreads()
159 … case 4: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3]); break; in testIntSpreads()
160 … case 5: args2 = (int[]) coll.invokeExact(args[0], args[1], args[2], args[3], args[4]); break; in testIntSpreads()
[all …]
DMethodHandlesPermuteArgumentsTest.java80 Object[] args = randomArgs(types); in testPermuteArguments() local
89 testPermuteArguments(args, types, outargs, numcases, casStep); in testPermuteArguments()
99 testPermuteArguments(args, types, reorder); in testPermuteArguments()
104 testPermuteArguments(args, types, reorder); in testPermuteArguments()
105 testPermuteArguments(args, types, reverse(reorder)); in testPermuteArguments()
113 testPermuteArguments(args, types, reorder); in testPermuteArguments()
114 testPermuteArguments(args, types, reverse(reorder)); in testPermuteArguments()
124 public void testPermuteArguments(Object[] args, Class<?>[] types, in testPermuteArguments() argument
126 int inargs = args.length; in testPermuteArguments()
136 testPermuteArguments(args, types, reorder); in testPermuteArguments()
[all …]
DMethodHandlesAsCollectorTest.java81 Object[] args = randomArgs(newType.parameterArray()); in testAsCollector() local
83 Object[] collectedArgs = Arrays.copyOfRange(args, 0, pos+1); in testAsCollector()
84 collectedArgs[pos] = Arrays.copyOfRange(args, pos, args.length); in testAsCollector()
90 System.out.println("collect from "+Arrays.asList(args)+" ["+pos+".."+nargs+"]"); in testAsCollector()
92 Object[] returnValue = (Object[]) result.invokeWithArguments(args); in testAsCollector()
127 Object[] args = randomArgs(newType.parameterArray()); in testAsCollector() local
132 System.arraycopy(args, 0, collectedArgs, 0, pos); in testAsCollector()
133 collectedArgs[pos] = Arrays.copyOfRange(args, pos, pos+collect); in testAsCollector()
134 System.arraycopy(args, pos+collect, collectedArgs, pos+1, args.length-(pos+collect)); in testAsCollector()
141 …System.out.println("collect "+collect+" from "+Arrays.asList(args)+" ["+pos+".."+(pos+collect)+"["… in testAsCollector()
[all …]
DVarargsArrayTest.java63 public static void main(String[] args) throws Throwable { in main() argument
87 Object[] args = new Object[nargs]; in testVarargsArray() local
89 args[i] = "#"+i; in testVarargsArray()
90 Object res = target.invokeWithArguments(args); in testVarargsArray()
91 assertArrayEquals(args, (Object[])res); in testVarargsArray()
144 Object[] args = makeTestArray(elemType, nargs); in testTypedVarargsArray() local
156 Object res = varargsArray.invokeWithArguments(args); in testTypedVarargsArray()
159 assertEquals(Arrays.toString(args), resString); in testTypedVarargsArray()
169 assertEquals(Arrays.toString(args), res2String); in testTypedVarargsArray()
172 Object res3 = spreader.invokeWithArguments((Object)args); in testTypedVarargsArray()
[all …]
/libcore/tools/expected_upstream/
Dojluni_modify_expectation.py140 args = main_parser.parse_args(argv)
146 no_args = args.autocomplete
149 if args.command == 'modify' or args.command == 'remove':
151 input_class_or_ojluni_path = args.class_or_ojluni_path
165 elif no_args == 3 and args.command == 'modify':
166 autocomp_result += autocomplete_tag_or_commit(args.tag_or_commit)
167 elif args.command == 'add':
169 autocomp_result += autocomplete_tag_or_commit(args.tag_or_commit)
171 commit = get_commit_or_exit(args.tag_or_commit)
172 class_or_src_path = args.class_or_source_file
[all …]
/libcore/ojluni/src/main/java/jdk/internal/util/
DPreconditions.java59 Number... args) { in outOfBounds() argument
60 List<Number> largs = List.of(args); in outOfBounds()
176 public X apply(String checkKind, List<Number> args) { in outOfBoundsExceptionFormatter()
177 return f.apply(outOfBoundsMessage(checkKind, args)); in outOfBoundsExceptionFormatter()
182 private static String outOfBoundsMessage(String checkKind, List<? extends Number> args) {
183 if (checkKind == null && args == null) {
186 return String.format("Range check failed: %s", args);
187 } else if (args == null) {
204 switch ((args.size() != argSize) ? "" : checkKind) {
207 args.get(0), args.get(1));
[all …]
/libcore/luni/src/main/java/libcore/reflect/
DParameterizedTypeImpl.java25 private final ListOfTypes args; field in ParameterizedTypeImpl
33 ListOfTypes args, ClassLoader loader) { in ParameterizedTypeImpl() argument
34 if (args == null) { in ParameterizedTypeImpl()
39 this.args = args; in ParameterizedTypeImpl()
45 return args.getResolvedTypes().clone(); in getActualTypeArguments()
76 if (ownerType0 == null && args.getResolvedTypes().length == 0) { in getResolvedType()
91 Arrays.equals(args.getResolvedTypes(), that.getActualTypeArguments()); in equals()
97 Arrays.hashCode(args.getResolvedTypes()); in hashCode()
112 if (args.length() > 0) { in toString()
113 sb.append("<").append(args).append(">"); in toString()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/
DNullArgsTestCase.java43 public final Object[] args; field in NullArgsTestCase
45 protected NullArgsTestCase(String name, Consumer<Object[]> sink, Object[] args) { in NullArgsTestCase() argument
48 this.args = args; in NullArgsTestCase()
53 sink.accept(args); in goodNonNull()
58 for (int i=0; i<args.length; i++) { in throwWithNull()
59 Object[] temp = Arrays.copyOf(args, args.length); in throwWithNull()
/libcore/ojluni/src/main/native/
Djni_util.c199 va_list args; in JNU_CallStaticMethodByName() local
219 va_start(args, signature); in JNU_CallStaticMethodByName()
222 (*env)->CallStaticVoidMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
226 result.l = (*env)->CallStaticObjectMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
229 result.z = (*env)->CallStaticBooleanMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
232 result.b = (*env)->CallStaticByteMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
235 result.c = (*env)->CallStaticCharMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
238 result.s = (*env)->CallStaticShortMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
241 result.i = (*env)->CallStaticIntMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
244 result.j = (*env)->CallStaticLongMethodV(env, clazz, mid, args); in JNU_CallStaticMethodByName()
[all …]
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
Dgenerate-vh-tests.sh17 args="-K$type -Dtype=$type -DType=$Type"
19 args="$args -KCAS"
23 args="$args -KAtomicAdd"
29 args="$args -KBitwise"
/libcore/luni/src/test/java/tests/support/
DMockFunction.java35 public void function(FunctionContext fc, String args[]) { in function() argument
37 if (args.length > 0) { in function()
38 fc.set_result(args[0].toLowerCase()); in function()
42 public void step(FunctionContext fc, String args[]) { in step() argument
44 for (int i = 0; i < args.length; i++) { in step()
45 acc.append(args[i]); in step()
/libcore/ojluni/src/main/java/sun/misc/
DMessageUtils.java43 String args[] = { arg }; in subst() local
44 return subst(patt, args); in subst()
48 String args[] = { arg1, arg2 }; in subst() local
49 return subst(patt, args); in subst()
54 String args[] = { arg1, arg2, arg3 }; in subst() local
55 return subst(patt, args); in subst()
58 public static String subst(String patt, String args[]) { in subst() argument
69 } else if (index < args.length) { in subst()
70 result.append(args[index]); in subst()
/libcore/ojluni/src/main/java/java/lang/invoke/
DVarHandle.java501 Object get(Object... args); in get() argument
527 void set(Object... args); in set() argument
559 Object getVolatile(Object... args); in getVolatile() argument
589 void setVolatile(Object... args); in setVolatile() argument
619 Object getOpaque(Object... args); in getOpaque() argument
646 void setOpaque(Object... args); in setOpaque() argument
683 Object getAcquire(Object... args); in getAcquire() argument
714 void setRelease(Object... args); in setRelease() argument
750 boolean compareAndSet(Object... args); in compareAndSet() argument
785 Object compareAndExchange(Object... args); in compareAndExchange() argument
[all …]
/libcore/ojluni/src/test/java/lang/invoke/common/test/java/lang/invoke/lib/
DHelper.java95 public static void assertCalled(String name, Object... args) { in assertCalled() argument
96 assertCalled(0, name, args); in assertCalled()
99 public static void assertCalled(int lag, String name, Object... args) { in assertCalled() argument
100 Object expected = logEntry(name, args); in assertCalled()
110 public static Object called(String name, Object... args) { in called() argument
111 List<Object> entry = logEntry(name, args); in called()
116 private static List<Object> logEntry(String name, Object... args) { in logEntry() argument
117 return Arrays.asList(name, Arrays.asList(args)); in logEntry()
257 Object[] args = new Object[params.length]; in randomArgs() local
258 for (int i = 0; i < args.length; i++) { in randomArgs()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DProxyTest.java55 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument
57 return args[1]; in invoke()
104 public Object invoke(Object proxy, Method method, Object[] args) in test_ProxyLjava_lang_reflect_InvocationHandler()
122 public Object invoke(Object proxy, Method method, Object[] args) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
125 return Boolean.valueOf(proxy == args[0]); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
127 return new int[] { (int) ((long[]) args[0])[1], -1 }; in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
129 if ("".equals(args[0])) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
131 if ("clone".equals(args[0])) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
133 if ("error".equals(args[0])) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
135 if ("any".equals(args[0])) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DProcessImpl.java72 byte[][] args = new byte[cmdarray.length-1][]; in start()
73 int size = args.length; // For added NUL bytes in start()
74 for (int i = 0; i < args.length; i++) { in start()
75 args[i] = cmdarray[i+1].getBytes(); in start()
76 size += args[i].length; in start()
80 for (byte[] arg : args) { in start()
139 argBlock, args.length, in start()
/libcore/luni/src/test/native/
Dlibcore_java_lang_ThreadTest.cpp34 JavaVMAttachArgs args; in TestThreadNaming() local
35 args.version = JNI_VERSION_1_6; in TestThreadNaming()
36 args.group = nullptr; in TestThreadNaming()
38 args.name = native_thread_name.c_str(); in TestThreadNaming()
40 args.name = nullptr; in TestThreadNaming()
43 if (javaVm->AttachCurrentThread(&env, &args) != JNI_OK) { in TestThreadNaming()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMethodLogger.java41 public void add(String method, Object ... args) { in add() argument
42 Object[] argsCopy = new Object[args.length]; in add()
43 System.arraycopy(args, 0, argsCopy, 0, args.length); in add()
/libcore/ojluni/src/test/java/util/ArrayList/
DBug6533203.java39 void test(String[] args) throws Throwable { in test() argument
60 public static void main(String[] args) throws Throwable { in main() argument
61 new Bug6533203().instanceMain(args);} in main()
62 void instanceMain(String[] args) throws Throwable { in instanceMain() argument
63 try {test(args);} catch (Throwable t) {unexpected(t);} in instanceMain()
/libcore/ojluni/annotations/flagged_api/java/io/
DConsole.annotated.java39 public java.io.Console format(java.lang.String fmt, java.lang.Object... args) { throw new RuntimeEx… in format() argument
41 public java.io.Console printf(java.lang.String format, java.lang.Object... args) { throw new Runtim… in printf() argument
43 public java.lang.String readLine(java.lang.String fmt, java.lang.Object... args) { throw new Runtim… in readLine() argument
47 public char[] readPassword(java.lang.String fmt, java.lang.Object... args) { throw new RuntimeExcep… in readPassword() argument
/libcore/support/src/test/java/tests/support/
DSupport_DeleteOnExitTest.java11 public static void main(String[] args) throws Exception { in main() argument
12 File file1 = new File(args[0]); in main()
13 File file2 = new File(args[1]); in main()
/libcore/ojluni/src/test/java/util/Collections/
DT6433170.java51 void test(String[] args) throws Throwable { in test() argument
81 public static void main(String[] args) throws Throwable { in main() argument
82 new T6433170().instanceMain(args);} in main()
83 void instanceMain(String[] args) throws Throwable { in instanceMain() argument
84 try {test(args);} catch (Throwable t) {unexpected(t);} in instanceMain()
/libcore/support/src/test/java/libcore/java/io/
DNullPrintStream.java36 public PrintStream format(String format, Object... args) { return this; } in format() argument
37 public PrintStream format(Locale l, String format, Object... args) { return this; } in format() argument
38 public PrintStream printf(String format, Object... args) { return this; } in printf() argument
39 public PrintStream printf(Locale l, String format, Object... args) { return this; } in printf() argument

12345678910>>...49