/libcore/support/src/test/java/libcore/java/security/ |
CpuFeatures.java | 23 import java.lang.reflect.Method; 49 Method EVP_has_aes_hardware = nativeCrypto.getDeclaredMethod("EVP_has_aes_hardware");
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
AlphabeticIndexCompat.java | 9 import java.lang.reflect.Method; 115 private Method mGetBucketIndexMethod; 116 private Method mGetBucketLabelMethod; 165 private Method mGetBucketIndexMethod; 167 private Method mGetBucketMethod; 168 private Method mGetLabelMethod; 175 Method localeGetter = locales.getClass().getDeclaredMethod("get", int.class); 182 Method addLocales = clazz.getDeclaredMethod("addLabels", Locale[].class);
|
/packages/apps/TV/common/src/com/android/tv/common/ |
BooleanSystemProperty.java | 21 import java.lang.reflect.Method; 71 final Method get = systemProperties.getMethod("getBoolean", String.class, Boolean.TYPE);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
TextInfoCompatUtils.java | 24 import java.lang.reflect.Method; 29 private static final Method TEXT_INFO_GET_CHAR_SEQUENCE =
|
UserManagerCompatUtils.java | 25 import java.lang.reflect.Method; 34 private static final Method METHOD_isUserUnlocked; 37 // We do not try to search the method in Android M and prior.
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ddk/ |
d4drvif.h | 35 #define CTL_CODE( DeviceType, Function, Method, Access ) ( \ 36 ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestsForSetsInJavaUtil.java | 27 import java.lang.reflect.Method; 74 protected Collection<Method> suppressForEmptySet() { 77 protected Collection<Method> suppressForSingletonSet() { 80 protected Collection<Method> suppressForHashSet() { 83 protected Collection<Method> suppressForLinkedHashSet() { 86 protected Collection<Method> suppressForEnumSet() { 89 protected Collection<Method> suppressForTreeSetNatural() { 92 protected Collection<Method> suppressForTreeSetWithComparator() { 95 protected Collection<Method> suppressForCopyOnWriteArraySet() { 98 protected Collection<Method> suppressForUnmodifiableSet() [all...] |
TestsForMapsInJavaUtil.java | 27 import java.lang.reflect.Method; 69 protected Collection<Method> suppressForEmptyMap() { 72 protected Collection<Method> suppressForSingletonMap() { 75 protected Collection<Method> suppressForHashMap() { 78 protected Collection<Method> suppressForLinkedHashMap() { 81 protected Collection<Method> suppressForTreeMapNatural() { 84 protected Collection<Method> suppressForTreeMapWithComparator() { 87 protected Collection<Method> suppressForEnumMap() { 90 protected Collection<Method> suppressForConcurrentHashMap() { 93 protected Collection<Method> suppressForConcurrentSkipListMap() [all...] |
/external/javassist/src/main/javassist/compiler/ |
MemberResolver.java | 55 public static class Method { 60 public Method(CtClass c, MethodInfo i, int n) { 67 * Returns true if the invoked method is static. 75 public Method lookupMethod(CtClass clazz, CtClass currentClass, MethodInfo current, 81 Method maybe = null; 82 // to enable the creation of a recursively called method 88 Method r = new Method(clazz, current, res); 96 Method m = lookupMethod(clazz, methodName, argTypes, argDims, 104 private Method lookupMethod(CtClass clazz, String methodName [all...] |
/art/runtime/native/ |
java_lang_reflect_Method.cc | 34 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 35 if (method->GetDeclaringClass()->IsProxyClass()) { 41 method->GetDexFile()->GetAnnotationForMethod(method, klass)); 46 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 47 if (!method->GetDeclaringClass()->IsAnnotation()) { 50 return soa.AddLocalReference<jobject>(method->GetDexFile()->GetAnnotationDefaultValue(method)); 55 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 56 if (method->GetDeclaringClass()->IsProxyClass()) 92 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local [all...] |
/art/test/130-hprof/src/ |
Main.java | 20 import java.lang.reflect.Method; 112 Method enableMethod = klass.getDeclaredMethod("enableRecentAllocations", 133 java.lang.reflect.Method dumpHprofDataMethod = getDumpHprofDataMethod(); 143 System.out.println("Could not find dump method!"); 152 * @return the reflection object, or null if the method can't be found 154 private static Method getDumpHprofDataMethod() { 163 Method meth; 168 System.err.println("Found VMDebug but not dumpHprofData method");
|
/dalvik/dx/src/com/android/dx/cf/code/ |
ConcreteMethod.java | 25 import com.android.dx.cf.iface.Method; 34 * Container for all the giblets that make up a concrete Java bytecode method. 35 * It implements {@link Method}, so it provides all the original access 37 * stuff extracted from the method's {@code Code} attribute. 39 public final class ConcreteMethod implements Method { 40 /** {@code non-null;} method being wrapped */ 41 private final Method method; field in class:ConcreteMethod 50 * whether the class that this method is part of is defined with 67 * @param method {@code non-null;} the method to be based o [all...] |
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
BenchmarkClass.java | 35 import java.lang.reflect.Method; 77 ImmutableSet<Method> beforeExperimentMethods() { 81 ImmutableSet<Method> afterExperimentMethods() { 100 // If setUp fails, we should call tearDown. If this method throws an exception, we 150 for (Method method : beforeExperimentMethods()) { 152 method.invoke(benchmark); 158 "Exception thrown from a @BeforeExperiment method", e.getCause()); 164 for (Method method : afterExperimentMethods()) [all...] |
/external/dbus-binding-generator/chromeos-dbus-bindings/ |
xml_interface_parser_unittest.cc | 27 <method name="Scan"> 29 <annotation name="org.chromium.DBus.Method.Kind" value="async"/> 30 <annotation name="org.chromium.DBus.Method.IncludeDBusMessage" 32 </method> 33 <method name="GetBlob"> 36 <annotation name="org.chromium.DBus.Method.Const" value="true"/> 37 </method> 86 // <method name="Scan"> 88 EXPECT_EQ(Interface::Method::Kind::kAsync, interface.methods[0].kind); 99 // <method name="GetBlob" [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingTestCase.java | 27 import java.lang.reflect.Method; 62 * This invocation handler only registers that a method was called, 67 public Object invoke(Object proxy, Method method, Object[] args) 69 called(asString(method)); 71 return getDefaultValue(method.getReturnType()); 82 * Returns string representation of a method. 84 * If the method takes no parameters, it returns the name (e.g. 85 * "isEmpty". If the method takes parameters, it returns the simple names 88 private String asString(Method method) [all...] |
/external/junit/src/org/junit/internal/runners/ |
MethodRoadie.java | 4 import java.lang.reflect.Method; 31 public MethodRoadie(Object test, TestMethod method, RunNotifier notifier, Description description) { 35 fTestMethod= method; 127 List<Method> befores= fTestMethod.getBefores(); 128 for (Method before : befores) 142 List<Method> afters= fTestMethod.getAfters(); 143 for (Method after : afters)
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
CursorWrapperTest.java | 13 import java.lang.reflect.Method; 27 final HashMap<String, Method> cursorMethod; 32 cursorMethod = new HashMap<String, Method>(); 35 for (Method m : Cursor.class.getMethods()) { 43 Method method = cursorMethod.get(methodName); local 44 method.invoke(cursorWrapper, params); 45 method.invoke(verify(mockCursor, times(1)), params);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TelephonyTestUtils.java | 26 import java.lang.reflect.Method; 65 public static Object invokeStaticMethod(Class<?> clazz, String method, Object... params) { 72 Method methodReflection = clazz.getDeclaredMethod(method, paramType); 82 * This is needed when the test expects the method in source being called to throw an exception. 88 public static Object invokeStaticMethodThrowsException(Class<?> clazz, String method, 96 Method methodReflection = clazz.getDeclaredMethod(method, paramType); 112 public static Object invokeNonStaticMethod(Class<?> clazz, Object caller, String method, 120 Method methodReflection = clazz.getDeclaredMethod(method, paramType) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
TypeVariableTest.java | 21 import java.lang.reflect.Method; 48 Method method = clazz.getDeclaredMethod("b"); local 49 TypeVariable<Method>[] typeParameters = method.getTypeParameters(); 51 TypeVariable<Method> typeVariable = typeParameters[0]; 52 assertEquals(method, typeVariable.getGenericDeclaration()); 96 Method method = clazz.getDeclaredMethod("e"); local 98 TypeVariable<?>[] typeParameters = method.getTypeParameters() [all...] |
MethodTest.java | 26 import java.lang.reflect.Method; 150 @Target({ElementType.PARAMETER, ElementType.METHOD}) 193 * java.lang.reflect.Method#equals(java.lang.Object) 196 // Test for method boolean 197 // java.lang.reflect.Method.equals(java.lang.Object) 199 Method m1 = null, m2 = null; 207 assertTrue("Overriden method returned equal", !m1.equals(m2)); 208 assertTrue("Same method returned not-equal", m1.equals(m1)); 216 assertTrue("Inherited method returned not-equal", m1.equals(m2)); 224 Method m1 = TestMethod.class.getMethod("invokeInstanceTest", new Class[0]) 403 Method method = TestMethod.class.getDeclaredMethod( local 435 Method method = TestMethod.class.getDeclaredMethod("annotatedMethod"); local 452 Method method = TestAnno.class.getDeclaredMethod("value"); local 461 Method method = ExceptionTest.class.getDeclaredMethod("exceptionTest"); local 475 Method method = GenericReturnType.class local 491 Method method = GenericString.class.getDeclaredMethod("genericString", local [all...] |
/external/guice/core/src/com/google/inject/internal/ |
ProviderMethodsModule.java | 40 import java.lang.reflect.Method; 48 * binding annotations on the provider method to configure the binding. 130 Multimap<Signature, Method> methodsBySignature = HashMultimap.create(); 132 for (Method method : c.getDeclaredMethods()) { 138 if (((method.getModifiers() & (Modifier.PRIVATE | Modifier.STATIC)) == 0) 139 && !method.isBridge() && !method.isSynthetic()) { 140 methodsBySignature.put(new Signature(method), method); 152 Method method = provider.getMethod(); local [all...] |
/external/proguard/src/proguard/classfile/editor/ |
CodeAttributeEditor.java | 395 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 399 // method.getName(clazz).equals("abc"); 402 // Catch any unexpected exceptions from the actual visiting method. 406 visitCodeAttribute0(clazz, method, codeAttribute); 412 System.err.println(" Method = ["+method.getName(clazz)+method.getDescriptor(clazz)+"]"); 420 public void visitCodeAttribute0(Clazz clazz, Method method, CodeAttribute codeAttribute [all...] |
CodeAttributeComposer.java | 417 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 421 System.out.println("CodeAttributeComposer: putting results in ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"]"); 458 stackSizeUpdater.visitCodeAttribute(clazz, method, codeAttribute); 459 variableSizeUpdater.visitCodeAttribute(clazz, method, codeAttribute); 462 codeAttribute.attributesAccept(clazz, method, this); 465 //codeAttribute.exceptionsAccept(clazz, method, this); 473 instructionWriter.visitCodeAttribute(clazz, method, codeAttribute); 479 public void visitStackMapAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapAttribute stackMapAttribute [all...] |
/frameworks/base/test-runner/src/android/test/ |
TestRunner.java | 26 import java.lang.reflect.Method; 96 * Implemented method of the interface TestListener which will listen for the 106 * Implemented method of the interface TestListener which will listen for the 119 * Implemented method of the interface TestListener which will listen for an 285 Method method = getChildrenMethod(clazz); local 286 if (method != null) { 287 String[] children = getChildren(method); 333 Method[] methods = getAllTestMethods(clazz); 334 for (Method m : methods) 690 Method method = getChildrenMethod(clazz); local [all...] |
/art/test/412-new-array/src/ |
Main.java | 18 import java.lang.reflect.Method; 21 // it does compile the method. 152 Method m = c.getMethod("newInt", Integer.TYPE, Integer.TYPE, Integer.TYPE); 162 Method m = c.getMethod("newRef", Object.class, Object.class); 171 Method m = c.getMethod("newArray", int[].class, int[].class); 180 Method m = c.getMethod("newIntRange", Integer.TYPE, Integer.TYPE, Integer.TYPE); 190 Method m = c.getMethod("newRefRange", Object.class, Object.class); 199 Method m = c.getMethod("newArrayRange", int[].class, int[].class); 223 Method m = c.getMethod("intArray", int[].class); 262 Method m = c.getMethod("shortArray", short[].class) [all...] |