Home
last modified time | relevance | path

Searched refs:targetMethod (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DInvokeDynamicClassInstrumentor.java84 ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) { in interceptInvokeVirtualMethod() argument
85 interceptInvokeVirtualMethodWithInvokeDynamic(instructions, targetMethod); in interceptInvokeVirtualMethod()
93 ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) { in interceptInvokeVirtualMethodWithInvokeDynamic() argument
96 Type type = Type.getObjectType(targetMethod.owner); in interceptInvokeVirtualMethodWithInvokeDynamic()
97 String description = targetMethod.desc; in interceptInvokeVirtualMethodWithInvokeDynamic()
100 if (targetMethod.getOpcode() != Opcodes.INVOKESTATIC) { in interceptInvokeVirtualMethodWithInvokeDynamic()
105 …instructions.add(new InvokeDynamicInsnNode(targetMethod.name, description, BOOTSTRAP_INTRINSIC, ow… in interceptInvokeVirtualMethodWithInvokeDynamic()
DClassInstrumentor.java415 MethodInsnNode targetMethod = (MethodInsnNode) node; in rewriteMethodBody() local
416 targetMethod.desc = mutableClass.config.remapParams(targetMethod.desc); in rewriteMethodBody()
417 if (isGregorianCalendarBooleanConstructor(targetMethod)) { in rewriteMethodBody()
418 replaceGregorianCalendarBooleanConstructor(instructions, targetMethod); in rewriteMethodBody()
419 } else if (mutableClass.config.shouldIntercept(targetMethod)) { in rewriteMethodBody()
420 interceptInvokeVirtualMethod(mutableClass, instructions, targetMethod); in rewriteMethodBody()
438 private boolean isGregorianCalendarBooleanConstructor(MethodInsnNode targetMethod) { in isGregorianCalendarBooleanConstructor() argument
439 return targetMethod.owner.equals("java/util/GregorianCalendar") && in isGregorianCalendarBooleanConstructor()
440 targetMethod.name.equals("<init>") && in isGregorianCalendarBooleanConstructor()
441 targetMethod.desc.equals("(Z)V"); in isGregorianCalendarBooleanConstructor()
[all …]
DOldClassInstrumentor.java182 ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) { in interceptInvokeVirtualMethod() argument
183 interceptInvokeVirtualMethodWithoutInvokeDynamic(mutableClass, instructions, targetMethod); in interceptInvokeVirtualMethod()
191 ListIterator<AbstractInsnNode> instructions, MethodInsnNode targetMethod) { in interceptInvokeVirtualMethodWithoutInvokeDynamic() argument
192 boolean isStatic = targetMethod.getOpcode() == Opcodes.INVOKESTATIC; in interceptInvokeVirtualMethodWithoutInvokeDynamic()
196 Type[] argumentTypes = Type.getArgumentTypes(targetMethod.desc); in interceptInvokeVirtualMethodWithoutInvokeDynamic()
230 …instructions.add(new LdcInsnNode(targetMethod.owner + "/" + targetMethod.name + targetMethod.desc)… in interceptInvokeVirtualMethodWithoutInvokeDynamic()
241 final Type returnType = Type.getReturnType(targetMethod.desc); in interceptInvokeVirtualMethodWithoutInvokeDynamic()
DInstrumentationConfiguration.java217 boolean shouldIntercept(MethodInsnNode targetMethod) { in shouldIntercept() argument
218 …if (targetMethod.name.equals("<init>")) return false; // sorry, can't strip out calls to super() i… in shouldIntercept()
219 return methodsToIntercept.contains(new MethodRef(targetMethod.owner, targetMethod.name)) in shouldIntercept()
220 || methodsToIntercept.contains(new MethodRef(targetMethod.owner, "*")); in shouldIntercept()
DProxyMaker.java65 String targetMethod = methodMapper.getName(targetClass.getName(), method.getName()); in createProxyFactory() local
70 … m.visitMethodInsn(INVOKEVIRTUAL, targetName, targetMethod, proxyMethod.getDescriptor(), false); in createProxyFactory()
/external/proguard/src/proguard/classfile/editor/
DMemberAdder.java191 ProgramMethod targetMethod = (ProgramMethod)targetClass.findMethod(name, descriptor); in visitProgramMethod() local
192 if (targetMethod != null) in visitProgramMethod()
208 int targetAccessFlags = targetMethod.getAccessFlags(); in visitProgramMethod()
219 targetMethod.u2accessFlags = in visitProgramMethod()
225 targetMethod, in visitProgramMethod()
234 …rAdder: renaming method ["+targetClass.getName()+"."+targetMethod.getName(targetClass)+targetMetho… in visitProgramMethod()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DDuckTypedPSKKeyManager.java54 for (Method targetMethod : PSKKeyManager.class.getMethods()) { in getInstance()
55 if (targetMethod.isSynthetic()) { in getInstance()
60 sourceClass.getMethod(targetMethod.getName(), targetMethod.getParameterTypes()); in getInstance()
63 Class<?> targetReturnType = targetMethod.getReturnType(); in getInstance()
/external/conscrypt/common/src/main/java/org/conscrypt/
DDuckTypedPSKKeyManager.java53 for (Method targetMethod : PSKKeyManager.class.getMethods()) { in getInstance()
54 if (targetMethod.isSynthetic()) { in getInstance()
59 sourceClass.getMethod(targetMethod.getName(), targetMethod.getParameterTypes()); in getInstance()
62 Class<?> targetReturnType = targetMethod.getReturnType(); in getInstance()
/external/proguard/src/proguard/optimize/peephole/
DMethodInliner.java73 private ProgramMethod targetMethod; field in MethodInliner
151 …System.err.println(" Target method = ["+targetMethod.getName(targetClass)+targetMethod.getDescri… in visitCodeAttribute()
164 targetMethod.accept(targetClass, new ClassPrinter()); in visitCodeAttribute()
185 targetMethod = (ProgramMethod)method; in visitCodeAttribute0()
199 targetMethod = null; in visitCodeAttribute0()
228 …targetClass.getName()+"."+targetMethod.getName(targetClass)+targetMethod.getDescriptor(targetClass… in visitCodeAttribute0()
514 (!programMethod.equals(targetMethod) || in visitProgramMethod()
571 MethodOptimizationInfo.getMethodOptimizationInfo(targetMethod); in visitProgramMethod()
/external/mockito/src/test/java/org/mockitousage/bugs/
DConcurrentModificationExceptionOnMultiThreadedVerificationTest.java48 verify(target, timeout(expectedMaxTestLength).times(TIMES * nThreads)).targetMethod("arg"); in shouldSuccessfullyVerifyConcurrentInvocationsWithTimeout()
72 target.targetMethod("arg"); in call()
82 String targetMethod(String arg); in targetMethod() method
/external/proguard/src/proguard/optimize/
DTailRecursionSimplifier.java59 private Method targetMethod; field in TailRecursionSimplifier
107 targetMethod = method; in visitCodeAttribute()
258 recursive = targetMethod.equals(methodrefConstant.referencedMember); in visitAnyMethodrefConstant()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DMethodAnalyzer.java1742 MethodReference targetMethod;
1750 targetMethod = (MethodReference)instruction.getReference();
1753 targetMethod = (MethodReference)instruction.getReference();
1756 MethodReference replacementMethod = normalizeMethodReference(targetMethod);
1758 if (replacementMethod == null || replacementMethod.equals(targetMethod)) {