Home
last modified time | relevance | path

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

12345678910>>...36

/libcore/luni/src/test/java/libcore/javax/net/ssl/
DPSKKeyManagerProxy.java77 public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke() argument
84 return getKey((String) args[0], (String) args[1], (SSLEngine) args[2]); in invoke()
86 return getKey((String) args[0], (String) args[1], (Socket) args[2]); in invoke()
90 return chooseServerKeyIdentityHint((SSLEngine) args[0]); in invoke()
92 return chooseServerKeyIdentityHint((Socket) args[0]); in invoke()
96 return chooseClientKeyIdentity((String) args[0], (SSLEngine) args[1]); in invoke()
98 return chooseClientKeyIdentity((String) args[0], (Socket) args[1]); in invoke()
/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()
75 if (args.getResolvedTypes().length == 0) { in getResolvedType()
90 Arrays.equals(args.getResolvedTypes(), that.getActualTypeArguments()); in equals()
96 Arrays.hashCode(args.getResolvedTypes()); in hashCode()
103 if (args.length() > 0) { in toString()
104 sb.append("<").append(args).append(">"); in toString()
/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/luni/src/main/java/java/io/
DConsole.java74 public Console format(String format, Object... args) { in format() argument
76 f.format(format, args); in format()
84 public Console printf(String format, Object... args) { in printf() argument
85 return format(format, args); in printf()
122 public String readLine(String format, Object... args) { in readLine() argument
124 format(format, args); in readLine()
139 public char[] readPassword(String format, Object... args) { in readPassword() argument
DPrintStream.java283 public PrintStream format(String format, Object... args) { in format() argument
284 return format(Locale.getDefault(), format, args); in format()
306 public PrintStream format(Locale l, String format, Object... args) { in format() argument
310 new Formatter(this, l).format(format, args); in format()
333 public PrintStream printf(String format, Object... args) { in printf() argument
334 return format(format, args); in printf()
356 public PrintStream printf(Locale l, String format, Object... args) { in printf() argument
357 return format(l, format, args); in printf()
DPrintWriter.java281 public PrintWriter format(String format, Object... args) { in format() argument
282 return format(Locale.getDefault(), format, args); in format()
305 public PrintWriter format(Locale l, String format, Object... args) { in format() argument
309 new Formatter(this, l).format(format, args); in format()
335 public PrintWriter printf(String format, Object... args) { in printf() argument
336 return format(format, args); in printf()
358 public PrintWriter printf(Locale l, String format, Object... args) { in printf() argument
359 return format(l, format, args); in printf()
/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 new Boolean(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/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/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/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
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DHprofBinaryToAscii.java40 public static void main(String[] args) { in main() argument
41 System.exit(convert(args) ? 0 : 1); in main()
48 private static boolean convert(String[] args) { in convert() argument
50 if (args.length != 1) { in convert()
54 File file = new File(args[0]); in convert()
/libcore/support/src/test/java/tests/io/
DMockOs.java46 @Override public Object invoke(Object o, Method method, Object[] args) throws Throwable {
48 return method.invoke(delegate, args);
56 @Override public Object invoke(Object proxy, Method method, Object[] args)
62 return handler.invoke(proxy, method, args);
115 … @Override public Object invoke(Object proxy, Method method, Object[] args) throws ErrnoException { in enqueueFault()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
35 throw (Throwable) args[0];
249 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testEquals()
250 return args[0] == ProxyTest.class; // bogus as equals(), but good for testing in testEquals()
262 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testHashCode()
272 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testToString()
282 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller()
294 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller()
395 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke() argument
396 return args[0]; in invoke()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_nodedocumentnodetype.java78 public static void main(final String[] args) { in main() argument
79 DOMTestCase.doMain(hc_nodedocumentnodetype.class, args); in main()
Dnodedocumentnodetype.java79 public static void main(final String[] args) { in main() argument
80 DOMTestCase.doMain(nodedocumentnodetype.class, args); in main()
Dhc_documentgetelementsbytagnamelength.java80 public static void main(final String[] args) { in main() argument
81 DOMTestCase.doMain(hc_documentgetelementsbytagnamelength.class, args); in main()
Dhc_elementgetelementsbytagname.java81 public static void main(final String[] args) { in main() argument
82 DOMTestCase.doMain(hc_elementgetelementsbytagname.class, args); in main()
Dhc_elementgetelementsbytagnamenomatch.java79 public static void main(final String[] args) { in main() argument
80 DOMTestCase.doMain(hc_elementgetelementsbytagnamenomatch.class, args); in main()
Delementgetelementsbytagname.java82 public static void main(final String[] args) { in main() argument
83 DOMTestCase.doMain(elementgetelementsbytagname.class, args); in main()
Dnodedocumentnodename.java80 public static void main(final String[] args) { in main() argument
81 DOMTestCase.doMain(nodedocumentnodename.class, args); in main()
Dhc_nodegetownerdocumentnull.java78 public static void main(final String[] args) { in main() argument
79 DOMTestCase.doMain(hc_nodegetownerdocumentnull.class, args); in main()
Dnodegetownerdocumentnull.java76 public static void main(final String[] args) { in main() argument
77 DOMTestCase.doMain(nodegetownerdocumentnull.class, args); in main()
Ddocumentgetelementsbytagnamelength.java81 public static void main(final String[] args) { in main() argument
82 DOMTestCase.doMain(documentgetelementsbytagnamelength.class, args); in main()
Dnodedocumentnodeattribute.java77 public static void main(final String[] args) { in main() argument
78 DOMTestCase.doMain(nodedocumentnodeattribute.class, args); in main()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DgetElementById02.java84 public static void main(final String[] args) { in main() argument
85 DOMTestCase.doMain(getElementById02.class, args); in main()

12345678910>>...36