/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | MethodTest.java | 522 Method[] methods = null; in test_getParameterTypes() local 549 methods = cl.getDeclaredMethods(); in test_getParameterTypes() 552 for (i = 0; i < methods.length; i++) in test_getParameterTypes() 553 if (methods[i].getName().equals("parmTest")) { in test_getParameterTypes() 554 mth = methods[i]; in test_getParameterTypes() 555 i = methods.length + 1; in test_getParameterTypes() 557 if (i < methods.length) { in test_getParameterTypes() 707 Method methods[] = cl.getMethods(); in test_invokeLjava_lang_Object$Ljava_lang_Object() local 708 for (int i = 0; i < methods.length; i++) { in test_invokeLjava_lang_Object$Ljava_lang_Object() 709 if (methods[i].getName().startsWith("invokeCastTest1")) { in test_invokeLjava_lang_Object$Ljava_lang_Object() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldAndroidClassTest.java | 145 Method[] methods = ArrayList.class.getMethods(); in testClassGetMethodsNoDupes() local 148 for (Method method : methods) { in testClassGetMethodsNoDupes() 180 Method[] methods = MyInterface.class.getMethods(); in testGetMethodsInterfaces() local 181 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces() 183 methods = MyOtherInterface.class.getMethods(); in testGetMethodsInterfaces() 184 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces() 185 assertTrue(hasMethod(methods, ".bar(")); in testGetMethodsInterfaces() 187 methods = MyClass.class.getMethods(); in testGetMethodsInterfaces() 188 assertTrue(hasMethod(methods, ".foo(")); in testGetMethodsInterfaces() 189 assertTrue(hasMethod(methods, ".bar(")); in testGetMethodsInterfaces() [all …]
|
D | MethodOverridesTest.java | 98 Method[] methods = Sub.class.getMethods(); in testSubclassChangesVisibility() local 100 for (Method method : methods) { in testSubclassChangesVisibility() 115 Method[] methods = PublicSub.class.getMethods(); in testMoreVisibleSubclassChangesVisibility() local 117 for (Method method : methods) { in testMoreVisibleSubclassChangesVisibility() 166 private Set<String> signatures(Method[] methods) { in signatures() argument 168 for (Method method : methods) { in signatures()
|
D | ReflectionTest.java | 290 Method[] methods = ExtendsImplementsDefinesMember.class.getMethods(); in testGetMethodsViaExtendsThenImplements() local 291 assertTrue(names(methods).contains("method")); in testGetMethodsViaExtendsThenImplements() 295 Method[] methods = ImplementsExtendsDefinesMember.class.getMethods(); in testGetMethodsViaImplementsThenExtends() local 296 assertTrue(names(methods).contains("method")); in testGetMethodsViaImplementsThenExtends() 300 Method[] methods = ExtendsAndImplementsDefinesMember.class.getMethods(); in testGetMethodsContainsNoDuplicates() local 301 assertEquals(1, count(names(methods), "method")); in testGetMethodsContainsNoDuplicates() 411 private List<String> names(Member[] methods) { in names() argument 413 for (Member method : methods) { in names()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/ |
D | MethodLogger.java | 31 private List<String> methods = new ArrayList<String>(); field in MethodLogger 45 methods.add(method); in add() 53 return methods.size(); in size() 60 return methods.get(index); in getMethod() 91 methods.clear(); in clear()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Proxy.java | 678 List<Method> methods = getMethods(interfaces); in apply() local 679 Collections.sort(methods, ORDER_BY_SIGNATURE_AND_SUBTYPE); in apply() 680 validateReturnTypes(methods); in apply() 681 List<Class<?>[]> exceptions = deduplicateAndGetExceptions(methods); in apply() 683 Method[] methodsArray = methods.toArray(new Method[methods.size()]); in apply() 706 private static List<Class<?>[]> deduplicateAndGetExceptions(List<Method> methods) { in deduplicateAndGetExceptions() argument 707 List<Class<?>[]> exceptions = new ArrayList<Class<?>[]>(methods.size()); in deduplicateAndGetExceptions() 709 for (int i = 0; i < methods.size(); ) { in deduplicateAndGetExceptions() 710 Method method = methods.get(i); in deduplicateAndGetExceptions() 713 if (i > 0 && Method.ORDER_BY_SIGNATURE.compare(method, methods.get(i - 1)) == 0) { in deduplicateAndGetExceptions() [all …]
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | AcrossThreads.java | 96 Map<String, Integer> methods = new HashMap<String, Integer>(); in assertWalker() local 98 Integer i = methods.putIfAbsent(f.getMethodName(), 1); in assertWalker() 100 methods.put(f.getMethodName(), i + 1); in assertWalker() 105 assertTrue(methods.get("consume") == 1); in assertWalker() 106 assertTrue(methods.get("run") == 1); in assertWalker() 107 assertTrue(methods.get("assertWalker") == LOOPS); in assertWalker()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTypeMismatchExceptionTest.java | 38 Method[] methods = Class.forName("java.lang.String").getMethods(); in test_constructorLjava_lang_reflect_MethodLjava_lang_String() local 39 Method m = methods[0]; in test_constructorLjava_lang_reflect_MethodLjava_lang_String()
|
/libcore/ojluni/src/main/java/java/net/ |
D | HttpURLConnection.java | 519 private static final String[] methods = { field in HttpURLConnection 634 for (int i = 0; i < methods.length; i++) { in setRequestMethod() 635 if (methods[i].equals(method)) { in setRequestMethod()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Proxy.java | 54 java.util.List<java.lang.reflect.Method> methods) { in deduplicateAndGetExceptions() argument 63 private static void validateReturnTypes(java.util.List<java.lang.reflect.Method> methods) { in validateReturnTypes() argument 73 java.lang.Class<?>[] interfaces, java.util.List<java.lang.reflect.Method> methods) { in getMethodsRecursive() argument 81 java.lang.reflect.Method[] methods, in generateProxy() argument
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | SignaturesCollector.java | 128 List<MethodNode> methods = new ArrayList<>(node.methods); in addClassesFromClassNode() local 129 for (MethodNode method : methods) { in addClassesFromClassNode() 185 List<Method> methods) { in SignaturesCollection() argument 188 mMethods = new LinkedHashSet<>(methods); in SignaturesCollection()
|
D | DependencyAnalyzer.java | 144 List<MethodNode> methods = new ArrayList<>(classNode.methods); in analyze() local 145 methods.sort(Comparator.comparing(n -> n.name + n.desc)); in analyze() 146 for (MethodNode method : methods) { in analyze() 320 .flatMap(n -> n.methods.stream()) in test() 531 for (MethodNode method : node.methods) { in getSignatureCollection()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | README.txt | 1 These classes are tied to the VM, e.g. the VM may invoke some of the methods.
|
/libcore/ojluni/src/test/java/text/testlib/ |
D | IntlTest.java | 57 Method[] methods = getClass().getDeclaredMethods(); in IntlTest() local 58 for (Method method : methods) { in IntlTest()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | Wrappers.java | 129 Method[] methods = Collection.class.getMethods(); 130 for (Method m: methods) {
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldClassTest.java | 899 Method[] methods = Cls2.class.getMethods(); in test_getMethods() local 900 for (Method method : methods) { in test_getMethods() 912 methods = Cls3.class.getMethods(); in test_getMethods() 913 for (Method method : methods) { in test_getMethods() 925 methods = Cls3.class.getMethods(); in test_getMethods() 926 for (Method method : methods) { in test_getMethods()
|
D | ThreadTestHelper.smali | 41 # direct methods
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 263 private transient long methods; field in Class 2219 List<Method> methods = new ArrayList<Method>(); in getMethods() local 2220 getPublicMethodsInternal(methods); in getMethods() 2226 CollectionUtils.removeDuplicates(methods, Method.ORDER_BY_SIGNATURE); in getMethods() 2227 return methods.toArray(new Method[methods.size()]); in getMethods()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 53 List<Method> methods = Arrays.asList(AnnotatedClass.class.getDeclaredMethods()); in test_equals() local 56 for (Method m : methods) { in test_equals()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | X-Buffer.java.template | 58 * {@link #put($type$) <i>put</i>} methods that read and write 62 * methods that transfer contiguous sequences of $type$s from this buffer 66 * methods that transfer contiguous sequences of $type$s from $a$ 73 * and {@link #putChar(char) <i>put</i>} methods that read and 144 * <p> This class defines methods for reading and writing values of all other 148 * methods. Specific byte orders are represented by instances of the {@link 154 * <i>get</i> and <i>put</i> methods for each type. For 32-bit floating-point 163 * <p> Corresponding methods are defined for the types {@code char, 165 * parameters of the absolute <i>get</i> and <i>put</i> methods are in terms of 171 * the same type, this class defines methods that can create <i>views</i> of a [all …]
|
/libcore/ojluni/annotations/ |
D | README | 44 …4. Add @libcore.api.Hide to each class, methods and fields in the new files. This will prevent it …
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 511 Method[] methods = testClass.getDeclaredMethods(); in testMethodNames() local 512 ArrayList<String> names = new ArrayList<String>(methods.length); in testMethodNames() 513 for (Method method : methods) { in testMethodNames()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1827 Method[] methods = cl.getDeclaredMethods(); in computeDefaultSUID() local 1829 classMods = (methods.length > 0) ? in computeDefaultSUID() 1927 MemberSignature[] methSigs = new MemberSignature[methods.length]; in computeDefaultSUID() 1928 for (int i = 0; i < methods.length; i++) { in computeDefaultSUID() 1929 methSigs[i] = new MemberSignature(methods[i]); in computeDefaultSUID()
|
/libcore/tools/non-cts-json-generator/src/libcore/tools/generator/noncts/ |
D | Main.java | 164 for (MethodNode methodNode : classNode.methods) { in parse()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Class.java | 444 private transient long methods; field in Class
|