/dalvik/vm/native/ |
D | java_lang_reflect_Method.cpp | 35 Method* meth; in Dalvik_java_lang_reflect_Method_getMethodModifiers() local 37 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Method_getMethodModifiers() 38 RETURN_INT(dvmFixMethodFlags(meth->accessFlags)); in Dalvik_java_lang_reflect_Method_getMethodModifiers() 58 const Method* meth; in Dalvik_java_lang_reflect_Method_invokeNative() local 65 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Method_invokeNative() 66 assert(meth != NULL); in Dalvik_java_lang_reflect_Method_invokeNative() 68 if (dvmIsStaticMethod(meth)) { in Dalvik_java_lang_reflect_Method_invokeNative() 89 meth = dvmGetVirtualizedMethod(methObj->clazz, meth); in Dalvik_java_lang_reflect_Method_invokeNative() 90 if (meth == NULL) { in Dalvik_java_lang_reflect_Method_invokeNative() 100 result = dvmInvokeMethod(methObj, meth, argList, params, returnType, in Dalvik_java_lang_reflect_Method_invokeNative() [all …]
|
D | java_lang_reflect_Constructor.cpp | 44 Method* meth; in Dalvik_java_lang_reflect_Constructor_constructNative() local 65 meth = dvmSlotToMethod(declaringClass, slot); in Dalvik_java_lang_reflect_Constructor_constructNative() 66 assert(meth != NULL); in Dalvik_java_lang_reflect_Constructor_constructNative() 68 (void) dvmInvokeMethod(newObj, meth, argList, params, NULL, noAccessCheck); in Dalvik_java_lang_reflect_Constructor_constructNative()
|
/dalvik/vm/analysis/ |
D | DexVerify.cpp | 27 static bool verifyMethod(Method* meth); 85 const Method* meth = vdata->method; in computeWidthsAndCountOps() local 88 const u2* insns = meth->insns; in computeWidthsAndCountOps() 97 LOG_VFY_METH(meth, "VFY: invalid instruction (0x%04x)", *insns); in computeWidthsAndCountOps() 100 LOG_VFY_METH(meth, in computeWidthsAndCountOps() 115 LOG_VFY_METH(meth, "VFY: code did not end where expected (%d vs. %d)", in computeWidthsAndCountOps() 116 i, dvmGetMethodInsnsSize(meth)); in computeWidthsAndCountOps() 137 static bool scanTryCatchBlocks(const Method* meth, InsnFlags* insnFlags) in scanTryCatchBlocks() argument 139 u4 insnsSize = dvmGetMethodInsnsSize(meth); in scanTryCatchBlocks() 140 const DexCode* pCode = dvmGetMethodCode(meth); in scanTryCatchBlocks() [all …]
|
D | VerifySubs.cpp | 29 bool dvmWantVerboseVerification(const Method* meth) in dvmWantVerboseVerification() argument 36 return (strcmp(meth->clazz->descriptor, cd) == 0 && in dvmWantVerboseVerification() 37 dvmCompareNameDescriptorAndMethod(mn, sg, meth) == 0); in dvmWantVerboseVerification() 45 void dvmLogVerifyFailure(const Method* meth, const char* format, ...) in dvmLogVerifyFailure() argument 59 if (meth != NULL) { in dvmLogVerifyFailure() 60 char* desc = dexProtoCopyMethodDescriptor(&meth->prototype); in dvmLogVerifyFailure() 62 meth->clazz->descriptor, meth->name, desc); in dvmLogVerifyFailure() 75 const Method* meth) in dvmLogUnableToResolveClass() argument 82 std::string dotFromClass = dvmHumanReadableDescriptor(meth->clazz->descriptor); in dvmLogUnableToResolveClass() 84 dotMissingClass.c_str(), dotFromClass.c_str(), meth->name); in dvmLogUnableToResolveClass() [all …]
|
D | VerifySubs.h | 43 bool dvmComputeCodeWidths(const Method* meth, InsnFlags* insnFlags, 47 bool dvmSetTryFlags(const Method* meth, InsnFlags* insnFlags); 54 void dvmLogVerifyFailure(const Method* meth, const char* format, ...) 62 const Method* meth); 65 bool dvmGetBranchOffset(const Method* meth, const InsnFlags* insnFlags, 72 bool dvmWantVerboseVerification(const Method* meth);
|
D | CodeVerify.cpp | 110 static bool isInitMethod(const Method* meth); 116 static bool verifyInstruction(const Method* meth, InsnFlags* insnFlags,\ 421 UninitInstanceMap* dvmCreateUninitInstanceMap(const Method* meth, in dvmCreateUninitInstanceMap() argument 424 const int insnsSize = dvmGetMethodInsnsSize(meth); in dvmCreateUninitInstanceMap() 425 const u2* insns = meth->insns; in dvmCreateUninitInstanceMap() 430 if (isInitMethod(meth)) { in dvmCreateUninitInstanceMap() 595 static bool isInitMethod(const Method* meth) in isInitMethod() argument 597 return (*meth->name == '<' && strcmp(meth->name+1, "init>") == 0); in isInitMethod() 604 static bool isClassInitMethod(const Method* meth) 606 return (*meth->name == '<' && strcmp(meth->name+1, "clinit>") == 0); [all …]
|
D | VfyBasicBlock.cpp | 162 const Method* meth = vdata->method; in setPredecessors() local 178 gotBranch = dvmGetBranchOffset(meth, insnFlags, curIdx, in setPredecessors() 189 const u2* curInsn = &meth->insns[curIdx]; in setPredecessors() 207 if (dexOpcodeFromCodeUnit(meth->insns[curIdx]) == OP_PACKED_SWITCH) { in setPredecessors() 210 assert(dexOpcodeFromCodeUnit(meth->insns[curIdx]) == in setPredecessors() 232 meth->clazz->descriptor, meth->name, meth->shorty); in setPredecessors() 298 const Method* meth = vdata->method; in dvmComputeVfyBasicBlocks() local 300 const DexCode* pCode = dvmGetMethodCode(meth); in dvmComputeVfyBasicBlocks() 313 meth->clazz->descriptor, meth->name, meth->shorty); in dvmComputeVfyBasicBlocks() 409 Opcode opcode = dexOpcodeFromCodeUnit(meth->insns[idx]); in dvmComputeVfyBasicBlocks() [all …]
|
D | Liveness.cpp | 70 const Method* meth = vdata->method; in dvmComputeLiveness() local 72 meth->clazz->descriptor, meth->name, meth->shorty); in dvmComputeLiveness() 322 const Method* meth = vdata->method; in processInstruction() local 323 const u2* insns = meth->insns + insnIdx; in processInstruction() 786 const Method* meth = vdata->method; in markDebugLocals() local 788 dexDecodeDebugInfo(meth->clazz->pDvmDex->pDexFile, dvmGetMethodCode(meth), in markDebugLocals() 789 meth->clazz->descriptor, meth->prototype.protoIdx, meth->accessFlags, in markDebugLocals()
|
D | RegisterMap.cpp | 50 const Method* meth); 608 static bool writeMapForMethod(const Method* meth, u1** pPtr) in writeMapForMethod() argument 610 if (meth->registerMap == NULL) { in writeMapForMethod() 611 if (!dvmIsAbstractMethod(meth) && !dvmIsNativeMethod(meth)) { in writeMapForMethod() 613 meth->clazz->descriptor, meth->name); in writeMapForMethod() 621 size_t mapSize = computeRegisterMapSize(meth->registerMap); in writeMapForMethod() 622 memcpy(*pPtr, meth->registerMap, mapSize); in writeMapForMethod() 625 assert(**pPtr == meth->registerMap->format); in writeMapForMethod() 669 const Method* meth = &clazz->directMethods[i]; in writeMapsAllMethods() local 670 if (dvmIsMirandaMethod(meth)) in writeMapsAllMethods() [all …]
|
/dalvik/vm/reflect/ |
D | Reflect.cpp | 346 static int methodToSlot(const Method* meth) in methodToSlot() argument 348 ClassObject* clazz = meth->clazz; in methodToSlot() 351 if (dvmIsDirectMethod(meth)) { in methodToSlot() 352 slot = meth - clazz->directMethods; in methodToSlot() 356 slot = meth - clazz->virtualMethods; in methodToSlot() 388 static Object* createConstructorObject(Method* meth) in createConstructorObject() argument 412 cp = dvmCopyDescriptorStringFromMethod(meth, &mangle); in createConstructorObject() 413 params = convertSignatureToClassArray(&cp, meth->clazz); in createConstructorObject() 423 exceptions = dvmGetMethodThrows(meth); in createConstructorObject() 427 slot = methodToSlot(meth); in createConstructorObject() [all …]
|
/dalvik/tests/046-reflect/src/ |
D | Main.java | 18 void printMethodInfo(Method meth) { in printMethodInfo() argument 22 System.out.println("Method name is " + meth.getName()); in printMethodInfo() 24 + meth.getDeclaringClass().getName()); in printMethodInfo() 25 params = meth.getParameterTypes(); in printMethodInfo() 28 exceptions = meth.getExceptionTypes(); in printMethodInfo() 31 System.out.println(" Return type is " + meth.getReturnType().getName()); in printMethodInfo() 33 + Integer.toHexString(meth.getModifiers())); in printMethodInfo() 69 Method meth; in checkAccess() local 71 meth = target.getMethod("publicMethod", (Class[]) null); in checkAccess() 72 meth.invoke(instance); in checkAccess() [all …]
|
/dalvik/tests/075-verification-error/ |
D | expected.txt | 10 Got expected IllegalAccessError (meth-class) 12 Got expected IllegalAccessError (meth-meth)
|
/dalvik/tests/032-concrete-sub/src/ |
D | ConcreteSub.java | 41 Method meth; in main() local 46 meth = absClass.getMethod("redefineMe", (Class[]) null); in main() 51 System.out.println("meth modifiers=" + meth.getModifiers()); in main()
|
/dalvik/tests/085-old-style-inner-class/src/ |
D | Main.java | 37 private static String nameOf(Method meth) { in nameOf() argument 38 return (meth == null) ? "(null)" : meth.toString(); in nameOf()
|
/dalvik/dx/src/com/android/dx/ssa/ |
D | Dominators.java | 48 private final SsaMethod meth; field in Dominators 68 private Dominators(SsaMethod meth, DomFront.DomInfo[] domInfos, in Dominators() argument 70 this.meth = meth; in Dominators() 73 this.blocks = meth.getBlocks(); in Dominators() 86 public static Dominators make(SsaMethod meth, DomFront.DomInfo[] domInfos, in make() argument 88 Dominators result = new Dominators(meth, domInfos, postdom); in make() 172 ? meth.getExitBlock() : meth.getEntryBlock(); in run() 185 meth.forEachBlockDepthFirst(postdom, walker); in run()
|
D | DomFront.java | 37 private final SsaMethod meth; field in DomFront 62 public DomFront(SsaMethod meth) { in DomFront() argument 63 this.meth = meth; in DomFront() 64 nodes = meth.getBlocks(); in DomFront() 90 Dominators methDom = Dominators.make(meth, domInfos, false); in run()
|
/dalvik/vm/ |
D | Native.cpp | 512 Method* meth = &methods[count]; in unregisterJNINativeMethods() local 513 if (!dvmIsNativeMethod(meth)) in unregisterJNINativeMethods() 515 if (dvmIsAbstractMethod(meth)) /* avoid abstract method stubs */ in unregisterJNINativeMethods() 531 meth->clazz->descriptor, meth->name, meth->shorty); in unregisterJNINativeMethods() 532 dvmSetNativeFunc(meth, dvmResolveNativeMethod, NULL); in unregisterJNINativeMethods() 691 const Method* meth = (const Method*) vmethod; in findMethodInLib() local 699 if (meth->clazz->classLoader != pLib->classLoader) { in findMethodInLib() 701 pLib->pathName, meth->name); in findMethodInLib() 704 ALOGV("+++ scanning '%s' for '%s'", pLib->pathName, meth->name); in findMethodInLib() 710 createJniNameString(meth->clazz->descriptor, meth->name, &len); in findMethodInLib() [all …]
|
D | Profile.cpp | 304 Method* meth; in dumpMarkedMethods() local 311 meth = &clazz->virtualMethods[i]; in dumpMarkedMethods() 312 if (meth->inProfile) { in dumpMarkedMethods() 313 name = dvmDescriptorToName(meth->clazz->descriptor); in dumpMarkedMethods() 314 fprintf(fp, "0x%08x\t%s\t%s\t%s\t%s\t%d\n", (int) meth, in dumpMarkedMethods() 315 name, meth->name, in dumpMarkedMethods() 316 dexProtoGetMethodDescriptor(&meth->prototype, &stringCache), in dumpMarkedMethods() 317 dvmGetMethodSourceFile(meth), dvmLineNumFromPC(meth, 0)); in dumpMarkedMethods() 318 meth->inProfile = false; in dumpMarkedMethods() 324 meth = &clazz->directMethods[i]; in dumpMarkedMethods() [all …]
|
/dalvik/tests/087-gc-after-link/src/ |
D | Main.java | 86 Method meth = dexClass.getMethod("loadClass", in findDexClass() local 93 meth.invoke(dexFile, name, this); in findDexClass() 97 Method meth = dexClass.getMethod("close", (Class[]) null); in findDexClass() local 98 meth.invoke(dexFile); in findDexClass()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | MethodListParser.java | 80 StdMethod meth = in set() local 83 methods.set(n, meth); in set() 84 return meth; in set()
|
/dalvik/dx/src/com/android/dx/command/dump/ |
D | BlockDumper.java | 196 ConcreteMethod meth = in endParsingMember() local 200 ropDump(meth); in endParsingMember() 202 regularDump(meth); in endParsingMember() 211 private void regularDump(ConcreteMethod meth) { in regularDump() argument 212 BytecodeArray code = meth.getCode(); in regularDump() 214 ByteBlockList list = BasicBlocker.identifyBlocks(meth); in regularDump() 286 private void ropDump(ConcreteMethod meth) { in ropDump() argument 288 BytecodeArray code = meth.getCode(); in ropDump() 290 RopMethod rmeth = Ropper.convert(meth, advice); in ropDump() 294 boolean isStatic = AccessFlags.isStatic(meth.getAccessFlags()); in ropDump() [all …]
|
/dalvik/vm/oo/ |
D | Class.cpp | 180 Method* meth); 188 static void freeMethodInnards(Method* meth); 2101 static void freeMethodInnards(Method* meth) in freeMethodInnards() argument 2104 free(meth->exceptions); in freeMethodInnards() 2105 free(meth->lines); in freeMethodInnards() 2106 free(meth->locals); in freeMethodInnards() 2113 const RegisterMap* pMap = meth->registerMap; in freeMethodInnards() 2116 meth->registerMap = NULL; in freeMethodInnards() 2122 if (IS_METHOD_FLAG_SET(meth, METHOD_ISWRITABLE)) { in freeMethodInnards() 2123 DexCode* methodDexCode = (DexCode*) dvmGetMethodCode(meth); in freeMethodInnards() [all …]
|
/dalvik/tests/004-annotations/src/android/test/anno/ |
D | TestAnnotations.java | 120 Method meth; in testArrayProblem() local 125 meth = TestAnnotations.class.getMethod("getFocusType", in testArrayProblem() 130 property = meth.getAnnotation(ExportedProperty.class); in testArrayProblem() 138 meth.isAnnotationPresent(ExportedProperty.class)); in testArrayProblem() 140 meth.isAnnotationPresent(AnnoSimpleType.class)); in testArrayProblem()
|
/dalvik/tests/068-classloader/src/ |
D | FancyLoader.java | 111 Method meth; in findClassDalvik() local 114 meth = mDexClass.getMethod("loadClass", in findClassDalvik() 121 meth.invoke(mDexFile, name, this); in findClassDalvik()
|
/dalvik/dx/src/com/android/dx/dex/cf/ |
D | CfTranslator.java | 233 CstMethodRef meth = new CstMethodRef(thisClass, one.getNat()); in processMethods() local 239 boolean isConstructor = meth.isInstanceInit() || in processMethods() 240 meth.isClassInit(); in processMethods() 260 paramSize = meth.getParameterWordCount(isStatic); in processMethods() 321 new EncodedMethod(meth, accessFlags, code, exceptions); in processMethods() 323 if (meth.isInstanceInit() || meth.isClassInit() || in processMethods() 333 out.addMethodAnnotations(meth, annotations); in processMethods() 339 out.addParameterAnnotations(meth, list); in processMethods()
|