/external/testng/src/main/java/org/testng/internal/annotations/ |
AnnotationHelper.java | 5 import java.lang.reflect.Method; 35 public static ITestAnnotation findTest(IAnnotationFinder finder, Method m) { 43 public static IFactoryAnnotation findFactory(IAnnotationFinder finder, Method m) { 79 public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, Method m) { 192 * Delegation method for creating the list of <CODE>ITestMethod</CODE>s to be 199 // Keep a map of the methods we saw so that we ignore a method in a superclass if it's 220 Method[] methods = cls.getDeclaredMethods(); 221 for (Method m : methods) { 233 // that method as a @Test 237 Utils.log("", 3, "Method " + m + " has a configuration annotation [all...] |
/libcore/luni/src/test/java/libcore/java/lang/ |
CharacterTest.java | 19 import java.lang.reflect.Method; 197 Method m = Character.class.getDeclaredMethod("isDigit" + "Impl", int.class); 206 Method m = Character.class.getDeclaredMethod("isIdentifierIgnorable" + "Impl", int.class); 215 Method m = Character.class.getDeclaredMethod("isLetter" + "Impl", int.class); 224 Method m = Character.class.getDeclaredMethod("isLetterOrDigit" + "Impl", int.class); 233 Method m = Character.class.getDeclaredMethod("isLowerCase" + "Impl", int.class); 242 Method m = Character.class.getDeclaredMethod("isSpaceChar" + "Impl", int.class); 258 Method m = Character.class.getDeclaredMethod("isUpperCase" + "Impl", int.class); 267 Method m = Character.class.getDeclaredMethod("isWhitespace" + "Impl", int.class);
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ProxyTest.java | 23 import java.lang.reflect.Method; 34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 249 @Override public Object invoke(Object proxy, Method method, Object[] args) { 262 @Override public Object invoke(Object proxy, Method method, Object[] args) { 272 @Override public Object invoke(Object proxy, Method method, Object[] args) { 282 @Override public Object invoke(Object proxy, Method method, Object[] args) [all...] |
ClassLoaderReflectionTest.java | 21 import java.lang.reflect.Method; 115 Method method = fClass.getDeclaredMethod("method", bClass, List.class); local 116 assertParameterizedType(method.getGenericReturnType(), bClass, String.class); 120 Method method = fClass.getDeclaredMethod("method", bClass, List.class); local 121 Type[] types = method.getGenericParameterTypes(); 138 Method m1 = E.class.getMethod("call") 164 B<String> method(B<String> parameter, List<A> anotherParameter) { method in class:ClassLoaderReflectionTest.F [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ForegroundService.java | 35 import java.lang.reflect.Method; 64 private Method mSetForeground; 65 private Method mStartForeground; 66 private Method mStopForeground; 71 void invokeMethod(Method method, Object[] args) { 73 method.invoke(this, args); 76 Log.w("ApiDemos", "Unable to invoke method", e); 79 Log.w("ApiDemos", "Unable to invoke method", e); 84 * This is a wrapper around the new startForeground method, using the olde [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
AllocationInstrument.java | 41 import java.lang.reflect.Method; 48 * benchmark method and reports some statistic. The benchmark method must accept a 50 * the benchmark method, and it must be public and non-static. 66 public boolean isBenchmarkMethod(Method method) { 67 return method.isAnnotationPresent(Benchmark.class) || BenchmarkMethods.isTimeMethod(method); 71 public Instrumentation createInstrumentation(Method benchmarkMethod) 92 MicroAllocationInstrumentation(Method benchmarkMethod) [all...] |
/external/guava/guava/src/com/google/common/reflect/ |
Invokable.java | 30 import java.lang.reflect.Method; 39 * Wrapper around either a {@link Method} or a {@link Constructor}. 43 * <p>In addition to convenience methods, {@link TypeToken#method} and {@link 44 * TypeToken#constructor} will resolve the type parameters of the method or constructor in the 48 * Method getMethod = List.class.getMethod("get", int.class); 49 * Invokable<List<String>, ?> invokable = new TypeToken<List<String>>() {}.method(getMethod); 53 * @param <T> the type that owns this method or constructor. 54 * @param <R> the return type of (or supertype thereof) the method or the declaring type of the 66 /** Returns {@link Invokable} of {@code method}. */ 67 public static Invokable<?, Object> from(Method method) 188 final Method method; field in class:Invokable.MethodInvokable [all...] |
/external/guice/examples/src/example/xml/ |
XmlBeanModule.java | 10 import java.lang.reflect.Method; 121 // Find setter method for the given property name. 123 Method setter = null; 124 for (Method method : type.getMethods()) { 125 if (method.getName().equals(setterName)) { 126 setter = method; 157 final Method setter; 160 Property(Method setter, Provider<?> provider) {
|
/external/jcommander/src/main/java/com/beust/jcommander/ |
Parameterized.java | 8 import java.lang.reflect.Method; 14 * Encapsulate a field or a method annotated with @Parameter or @DynamicParameter 18 // Either a method or a field 20 private Method m_method; 21 private Method m_getter; 28 Field field, Method method) { 30 m_method = method; 64 for (Method m : cls.getDeclaredMethods()) {
|
/external/junit/src/junit/framework/ |
TestSuite.java | 7 import java.lang.reflect.Method; 125 * Parts of this method were written at 2337 meters in the Hueffihuette, 149 for (Method each : superClass.getDeclaredMethods()) 224 * test suites have a name and this method 284 private void addTestMethod(Method m, List<String> names, Class<?> theClass) { 290 addTest(warning("Test method isn't public: "+ m.getName() + "(" + theClass.getCanonicalName() + ")")); 297 private boolean isPublicTestMethod(Method m) { 301 private boolean isTestMethod(Method m) {
|
/external/proguard/src/proguard/classfile/ |
LibraryClass.java | 287 public Method findMethod(String name, String descriptor) 291 Method method = methods[index]; local 292 if (method != null && 293 (name == null || method.getName(this).equals(name)) && 294 (descriptor == null || method.getDescriptor(this).equals(descriptor))) 296 return method; 491 Method method = methods[index]; local 492 if (method != null 502 Method method = findMethod(name, descriptor); local [all...] |
/external/proguard/src/proguard/evaluation/ |
BasicInvocationUnit.java | 33 * This InvocationUnit sets up the variables for entering a method, 65 public void enterMethod(Clazz clazz, Method method, Variables variables) 67 String descriptor = method.getDescriptor(clazz); 71 (method.getAccessFlags() & ClassConstants.ACC_STATIC) != 0; 91 method, 100 Clazz[] referencedClasses = ((ProgramMethod)method).referencedClasses; 115 method, 132 public void exitMethod(Clazz clazz, Method method, Value returnValue [all...] |
/external/proguard/src/proguard/optimize/evaluation/ |
VariableOptimizer.java | 95 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 99 // method.getName(clazz).equals("abc"); 105 livenessAnalyzer.visitCodeAttribute(clazz, method, codeAttribute); 110 codeAttribute.attributesAccept(clazz, method, this); 113 (method.getAccessFlags() & ClassConstants.ACC_STATIC) != 0 || 117 ClassUtil.internalMethodParameterSize(method.getDescriptor(clazz), 118 method.getAccessFlags()); 158 System.out.println("VariableOptimizer: "+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)) [all...] |
/external/testng/src/main/java/org/testng/internal/ |
ClonedMethod.java | 10 import java.lang.reflect.Method; 19 transient private Method m_javaMethod; 27 public ClonedMethod(ITestNGMethod method, Method javaMethod) { 28 m_method = method; 123 public Method getMethod() { 322 Method m = getMethod();
|
TestNGClassFinder.java | 4 import java.lang.reflect.Method; 61 Method[] ms; 67 ms = new Method[0]; 69 for (Method m : ms) { 232 for (Method m : getAvailableMethods(cls)) {
|
/frameworks/base/core/java/android/test/ |
InstrumentationTestCase.java | 28 import java.lang.reflect.Method; 47 * Injects instrumentation into this test case. This method is 57 * Injects instrumentation into this test case. This method is 79 * Utility method for launching an activity. 107 * Utility method for launching an activity with a specific Intent. 133 * Note, in most cases it is simpler to annotate the test method with 134 * {@link android.test.UiThreadTest}, which will run the entire test method on the UI thread. 135 * Use this method if you need to switch in and out of the UI thread to perform your test. 137 * @param r runnable containing test code in the {@link Runnable#run()} method 163 Method method = null local [all...] |
/frameworks/base/tools/aapt2/compile/ |
Pseudolocalizer.cpp | 64 Pseudolocalizer::Pseudolocalizer(Method method) : mLastDepth(0) { 65 setMethod(method); 68 void Pseudolocalizer::setMethod(Method method) { 69 switch (method) { 70 case Method::kNone: 73 case Method::kAccent: 76 case Method::kBidi:
|
/frameworks/base/tools/layoutlib/bridge/src/android/animation/ |
PropertyValuesHolder_Delegate.java | 24 import java.lang.reflect.Method; 60 private static final Map<Long, Method> ID_TO_METHOD = new HashMap<Long, Method>(); 66 // Encode the number of arguments in the method name 73 // The method was already registered 78 Method method = null; local 84 method = targetClass.getDeclaredMethod(methodName, args); 89 if (method != null) { 91 ID_TO_METHOD.put(methodId, method); 103 Method method = ID_TO_METHOD.get(methodID); local [all...] |
/libcore/dom/src/test/java/org/w3c/domts/ |
XercesHTML2DocumentBuilderFactory.java | 17 import java.lang.reflect.Method; 40 private Method getHTMLDocumentMethod; 68 Method method = local 70 domImpl = (DOMImplementation) method.invoke(null, NO_OBJECTS); 118 private final Method getHTMLDocumentMethod; 123 Method getHTMLDocumentMethod) throws Exception {
|
XercesHTMLDocumentBuilderFactory.java | 17 import java.lang.reflect.Method; 40 private Method getHTMLDocumentMethod; 68 Method method = local 70 domImpl = (DOMImplementation) method.invoke(null, NO_OBJECTS); 118 private final Method getHTMLDocumentMethod; 123 Method getHTMLDocumentMethod) throws Exception {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
InvocationTargetExceptionTest.java | 26 import java.lang.reflect.Method; 131 // Test for method 134 Method mth = TestMethod.class.getDeclaredMethod( 152 // Test for method 156 Method mth = TestMethod.class.getDeclaredMethod( 174 // Test for method java.lang.Throwable 177 Method mth = TestMethod.class.getDeclaredMethod( 198 Method mth = TestMethod.class.getDeclaredMethod( 218 // Test for method void 242 // Test for method voi [all...] |
/packages/apps/TV/usbtuner/src/com/android/usbtuner/ |
DvbDeviceAccessor.java | 40 import java.lang.reflect.Method; 58 private static Method sGetDvbDeviceListMethod; 59 private static Method sOpenDvbDeviceMethod; 75 Log.e(TAG, "Couldn't find method", e); 157 private static Method sGetAdapterIdMethod; 158 private static Method sGetDeviceIdMethod; 174 Log.e(TAG, "Couldn't find method", e);
|
/external/dbus-binding-generator/chromeos-dbus-bindings/ |
adaptor_generator_unittest.cc | 290 interface2.methods.back().kind = Interface::Method::Kind::kSimple; 295 interface2.methods.back().kind = Interface::Method::Kind::kAsync; 300 interface2.methods.back().kind = Interface::Method::Kind::kAsync;
|
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/reflect/ |
ClassLoaderLocalMap.java | 19 import java.lang.reflect.Method; 38 private static Method defineMethod; 39 private static Method findLoadedClass;
|
/external/guava/guava/src/com/google/common/base/ |
FinalizableReferenceQueue.java | 27 import java.lang.reflect.Method; 46 * calling its {@code close} method. You <em>could</em> use a finalizer to accomplish this, but 136 private static final Method startFinalizer; 184 * FinalizableReference#finalizeReferent()} on them until the queue is empty. This method is a 350 static Method getStartFinalizer(Class<?> finalizer) {
|