/external/mockito/src/org/mockito/internal/creation/ |
MethodInterceptorFilter.java | 23 import java.lang.reflect.Method; 44 public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) 46 if (objectMethodsGuru.isEqualsMethod(method)) { 48 } else if (objectMethodsGuru.isHashCodeMethod(method)) { 50 } else if (acrossJVMSerializationFeature.isWriteReplace(method)) { 57 MockitoMethod mockitoMethod = createMockitoMethod(method); 78 public MockitoMethod createMockitoMethod(Method method) { 80 return new SerializableMethod(method); [all...] |
/external/proguard/src/proguard/classfile/attribute/preverification/ |
FullFrame.java | 83 public void variablesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VerificationTypeVisitor verificationTypeVisitor) 87 variables[index].variablesAccept(clazz, method, codeAttribute, offset, index, verificationTypeVisitor); 95 public void stackAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, VerificationTypeVisitor verificationTypeVisitor) 99 stack[index].stackAccept(clazz, method, codeAttribute, offset, index, verificationTypeVisitor); 112 public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor) 114 stackMapFrameVisitor.visitFullFrame(clazz, method, codeAttribute, offset, this);
|
/external/proguard/src/proguard/classfile/editor/ |
AttributeAdder.java | 221 public void visitMethodParametersAttribute(Clazz clazz, Method method, MethodParametersAttribute methodParametersAttribute) 231 method, 239 public void visitExceptionsAttribute(Clazz clazz, Method method, ExceptionsAttribute exceptionsAttribute) 254 // Add it to the target method. 259 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 283 method, 292 method, [all...] |
/external/proguard/src/proguard/optimize/ |
DuplicateInitializerInvocationFixer.java | 36 * initialization method invocations that it visits. 80 public void visitCodeAttribute(Clazz clazz, Method method, CodeAttribute codeAttribute) 88 method, 92 codeAttributeEditor.visitCodeAttribute(clazz, method, codeAttribute); 98 public void visitAnyInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, Instruction instruction) {} 101 public void visitConstantInstruction(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, ConstantInstruction constantInstruction) 120 System.out.println(" ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] Inserting "+extraInstruction.toString()+" before "+c (…) [all...] |
/external/proguard/src/proguard/optimize/info/ |
MethodOptimizationInfo.java | 29 * a method. 53 * Creates a new MethodOptimizationInfo for the given method. 55 public MethodOptimizationInfo(Clazz clazz, Method method) 60 ClassUtil.internalMethodParameterCount(method.getDescriptor(clazz)); 62 if ((method.getAccessFlags() & ClassConstants.ACC_STATIC) == 0) 309 public static void setMethodOptimizationInfo(Clazz clazz, Method method) 311 MethodLinker.lastMember(method).setVisitorInfo(new MethodOptimizationInfo(clazz, method)); [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue318/ |
ContextClassLoaderTest.java | 25 import java.lang.reflect.Method; 127 Method dumpMethod = yaml.getClass().getMethod("dump", new Class<?>[] { Object.class }); 130 Method loadMethod = yaml.getClass().getMethod("load", new Class<?>[] { String.class });
|
/external/testng/src/main/java/org/testng/internal/ |
ClassHelper.java | 5 import java.lang.reflect.Method; 80 * than from the default ClassLoader. This method differs from the standard 128 * For the given class, returns the method annotated with @Factory or null 129 * if none is found. This method does not search up the superclass hierarchy. 130 * If more than one method is @Factory annotated, a TestNGException is thrown. 134 * @return the @Factory <CODE>method</CODE> or null 140 for (Method method : getAvailableMethods(cls)) { 141 IFactoryAnnotation f = finder.findAnnotation(method, IFactoryAnnotation.class); 144 result = new ConstructorOrMethod(method); [all...] |
/frameworks/base/core/java/android/util/ |
ReflectiveProperty.java | 20 import java.lang.reflect.Method; 31 private Method mSetter; 32 private Method mGetter; 36 * For given property name 'name', look for getName/isName method or 'name' field. 37 * Also look for setName method (optional - could be readonly). Failing method getters and 71 throw new NoSuchPropertyException("No accessor method or field found for" 91 * Utility method to check whether the type of the underlying field/method on the target 94 * method/field will probably be a primitive type instead. Accept float as matching Float [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/app/ |
ActionBarDrawerToggleHoneycomb.java | 32 import java.lang.reflect.Method; 100 public Method setHomeAsUpIndicator; 101 public Method setHomeActionContentDescription; 111 // If we got the method we won't need the stuff below.
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
ActionBarDrawerToggleHoneycomb.java | 31 import java.lang.reflect.Method; 99 public Method setHomeAsUpIndicator; 100 public Method setHomeActionContentDescription; 110 // If we got the method we won't need the stuff below.
|
/libcore/dom/src/test/java/org/w3c/domts/ |
BatikTestDocumentBuilderFactory.java | 17 import java.lang.reflect.Method; 40 /** reflective method to create document in Batik. **/ 41 private Method createDocument; 158 Method getImpl =
|
/libcore/luni/src/test/java/libcore/java/math/ |
RunCSVTests.java | 3 import java.lang.reflect.Method; 57 Method m = mathClass.getMethod(func, new Class[] { Double.TYPE }); 84 Method m;
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/ |
NTLMAuthenticationProxy.java | 30 import java.lang.reflect.Method; 38 private static Method supportsTA; 39 private static Method isTrustedSite; 113 * method. Otherwise, it is considered an error.
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
HttpClientFactory.java | 31 import java.lang.reflect.Method; 38 // TODO: migrate GDataClient to use this util method instead of apache's 59 Method newInstance = clazz.getMethod("newInstance", String.class); 95 Method method = clazz.getMethod("close", (Class<?>[]) null); local 96 method.invoke(client, (Object[]) null);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
InputMethodSubtypeCompatUtils.java | 29 import java.lang.reflect.Method; 53 private static final Method METHOD_isAsciiCapable = CompatUtils.getMethod( 85 private static final Method GET_LANGUAGE_TAG =
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
gUnitBaseTest.java | 43 import java.lang.reflect.Method; 92 Method ruleName = lexer.getMethod("m"+testRuleName, new Class[0]); 105 Method ruleName2 = lexer.getMethod("getCharIndex", new Class[0]); 196 Method _setTreeAdaptor = parser.getMethod("setTreeAdaptor", parArgTypes); 201 Method ruleName = parser.getMethod(testRuleName); 221 Method[] methods = _return.getDeclaredMethods(); 222 for(Method method : methods) { 223 if ( method.getName().equals("getTree") ) { 224 Method returnName = _return.getMethod("getTree") [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
ClassProto.java | 45 import org.jf.dexlib2.iface.Method; 213 * method will either return true or throw an UnresolvedClassException 237 * This is a helper method for getCommonSuperclass 352 public Method getMethodByVtableIndex(int vtableIndex) { 353 List<Method> vtable = getVtable(); 361 public int findMethodIndexInVtable(@Nonnull MethodReference method) { 362 List<Method> vtable = getVtable(); 364 Method candidate = vtable.get(i); 365 if (MethodUtil.methodSignaturesMatch(candidate, method)) { 761 @Nonnull List<Method> getVtable() [all...] |
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/tests/ |
test_mox.py | 41 method = mox.MockMethod("testMethod", [], False) 42 method(1, 2).AndReturn('output') 43 e = mox.ExpectedMethodCallsError([method]) 591 """Method should not be equal to an object of a different type.""" 607 method = mox.MockMethod("f", [], False) 608 method(1, 2, "st", n1=8, n2="st2") 609 self.assertEqual(str(method), 612 method = mox.MockMethod("testMethod", [], False) 613 method(1, 2, "only positional") 614 self.assertEqual(str(method), [all...] |
/external/chromium-trace/catapult/third_party/mox3/mox3/tests/ |
test_mox.py | 41 method = mox.MockMethod("testMethod", [], False) 42 method(1, 2).AndReturn('output') 43 e = mox.ExpectedMethodCallsError([method]) 591 """Method should not be equal to an object of a different type.""" 607 method = mox.MockMethod("f", [], False) 608 method(1, 2, "st", n1=8, n2="st2") 609 self.assertEqual(str(method), 612 method = mox.MockMethod("testMethod", [], False) 613 method(1, 2, "only positional") 614 self.assertEqual(str(method), [all...] |
/external/dexmaker/src/main/java/com/google/dexmaker/stock/ |
ProxyBuilder.java | 33 import java.lang.reflect.Method; 55 * which will always return 4 when asked for integers, and which logs method calls to every method. 59 * public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 60 * if (method.getName().equals("nextInt")) { 64 * Object result = ProxyBuilder.callSuper(proxy, method, args); 65 * System.out.println("Method: " + method.getName() + " args: " 81 * {@link #build()}. The returned instance will be a dynamically generated subclass where all method 412 Method method = methodsToProxy[m]; local 568 MethodId<?, ?> method = generatedType.getConstructor(types); local [all...] |
/art/test/088-monitor-verification/src/ |
Main.java | 18 import java.lang.reflect.Method; 69 * Recursive synchronized method. 108 * Confirms that we can have 32 nested monitors on one method. 149 * method. 232 Method[] methods = c.getDeclaredMethods(); 235 // will give us the method we need to run. 236 Method method = null; local 237 for (Method m : methods) { 239 method = m [all...] |
/art/test/098-ddmc/src/ |
Main.java | 17 import java.lang.reflect.Method; 122 " number of method name strings: " + numberOfMethodNameStrings + 129 private static final Method enableRecentAllocationsMethod; 130 private static final Method getRecentAllocationStatusMethod; 131 private static final Method getRecentAllocationsMethod;
|
/art/test/131-structural-change/src/ |
Main.java | 19 import java.lang.reflect.Method;
|
/dalvik/dx/src/com/android/dx/cf/iface/ |
StdMethod.java | 25 * Standard implementation of {@link Method}, which directly stores 28 public final class StdMethod extends StdMember implements Method { 29 /** {@code non-null;} the effective method descriptor */
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
ArbitraryMeasurementInstrument.java | 39 import java.lang.reflect.Method; 47 @Override public boolean isBenchmarkMethod(Method method) { 48 return method.isAnnotationPresent(ArbitraryMeasurement.class); 52 public Instrumentation createInstrumentation(Method benchmarkMethod) 86 protected ArbitraryMeasurementInstrumentation(Method benchmarkMethod) {
|