/dalvik/dx/src/com/android/dx/rop/type/ |
D | Type.java | 240 private final String descriptor; field in Type 293 public static Type intern(String descriptor) { in intern() argument 296 result = internTable.get(descriptor); in intern() 304 firstChar = descriptor.charAt(0); in intern() 318 result = intern(descriptor.substring(1)); in intern() 327 int length = descriptor.length(); in intern() 329 (descriptor.charAt(length - 1) != ';')) { in intern() 330 throw new IllegalArgumentException("bad descriptor: " + descriptor); in intern() 344 char c = descriptor.charAt(i); in intern() 351 throw new IllegalArgumentException("bad descriptor: " + descriptor); in intern() [all …]
|
D | Prototype.java | 32 private final String descriptor; field in Prototype 53 public static Prototype intern(String descriptor) { in intern() argument 54 if (descriptor == null) { in intern() 60 result = internTable.get(descriptor); in intern() 66 Type[] params = makeParameterArray(descriptor); in intern() 72 char c = descriptor.charAt(at); in intern() 81 c = descriptor.charAt(at); in intern() 86 int endAt = descriptor.indexOf(';', at); in intern() 96 Type.intern(descriptor.substring(startAt, at)); in intern() 100 Type returnType = Type.internReturnType(descriptor.substring(at)); in intern() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/type/ |
D | Type.java | 256 private final String descriptor; field in Type 324 public static Type intern(String descriptor) { in intern() argument 326 Type result = internTable.get(descriptor); in intern() 333 firstChar = descriptor.charAt(0); in intern() 347 result = intern(descriptor.substring(1)); in intern() 356 int length = descriptor.length(); in intern() 358 (descriptor.charAt(length - 1) != ';')) { in intern() 359 throw new IllegalArgumentException("bad descriptor" + descriptor); in intern() 373 char c = descriptor.charAt(i); in intern() 380 throw new IllegalArgumentException("bad descriptor" + descriptor); in intern() [all …]
|
D | Prototype.java | 32 private final String descriptor; field in Prototype 53 public static Prototype intern(String descriptor) { in intern() argument 54 if (descriptor == null) { in intern() 57 Prototype result = internTable.get(descriptor); in intern() 62 Type[] params = makeParameterArray(descriptor); in intern() 68 char c = descriptor.charAt(at); in intern() 77 c = descriptor.charAt(at); in intern() 82 int endAt = descriptor.indexOf(';', at); in intern() 92 Type.intern(descriptor.substring(startAt, at)); in intern() 96 Type returnType = Type.internReturnType(descriptor.substring(at)); in intern() [all …]
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
D | CstNat.java | 38 private final CstString descriptor; field in CstNat 46 public CstNat(CstString name, CstString descriptor) { in CstNat() argument 51 if (descriptor == null) { in CstNat() 56 this.descriptor = descriptor; in CstNat() 68 descriptor.equals(otherNat.descriptor); in equals() 74 return (name.hashCode() * 31) ^ descriptor.hashCode(); in hashCode() 87 return descriptor.compareTo(otherNat.descriptor); in compareTo0() 123 return descriptor; in getDescriptor() 133 return name.toHuman() + ':' + descriptor.toHuman(); in toHuman() 144 return Type.intern(descriptor.getString()); in getFieldType()
|
D | CstType.java | 91 private CstString descriptor; field in CstType 153 this.descriptor = null; in CstType() 225 if (descriptor == null) { in getDescriptor() 226 descriptor = new CstString(type.getDescriptor()); in getDescriptor() 229 return descriptor; in getDescriptor() 239 String descriptor = getDescriptor().getString(); in getPackageName() local 240 int lastSlash = descriptor.lastIndexOf('/'); in getPackageName() 241 int lastLeftSquare = descriptor.lastIndexOf('['); // -1 unless this is an array in getPackageName() 246 return descriptor.substring(lastLeftSquare + 2, lastSlash).replace('/', '.'); in getPackageName()
|
/dalvik/dexgen/src/com/android/dexgen/rop/cst/ |
D | CstNat.java | 38 private final CstUtf8 descriptor; field in CstNat 46 public CstNat(CstUtf8 name, CstUtf8 descriptor) { in CstNat() argument 51 if (descriptor == null) { in CstNat() 56 this.descriptor = descriptor; in CstNat() 68 descriptor.equals(otherNat.descriptor); in equals() 74 return (name.hashCode() * 31) ^ descriptor.hashCode(); in hashCode() 87 return descriptor.compareTo(otherNat.descriptor); in compareTo0() 123 return descriptor; in getDescriptor() 133 return name.toHuman() + ':' + descriptor.toHuman(); in toHuman() 144 return Type.intern(descriptor.getString()); in getFieldType()
|
/dalvik/vm/oo/ |
D | Array.cpp | 28 static ClassObject* createArrayClass(const char* descriptor, Object* loader); 42 assert(arrayClass->descriptor != NULL); in allocArray() 43 assert(arrayClass->descriptor[0] == '['); in allocArray() 53 std::string descriptor(dvmHumanReadableDescriptor(arrayClass->descriptor)); in allocArray() local 55 "%s of length %zd exceeds the VM limit", descriptor.c_str(), length); in allocArray() 74 const char* descriptor = arrayClass->descriptor; in dvmAllocArrayByClass() local 76 assert(descriptor[0] == '['); /* must be array class */ in dvmAllocArrayByClass() 77 if (descriptor[1] != '[' && descriptor[1] != 'L') { in dvmAllocArrayByClass() 79 assert(descriptor[2] == '\0'); in dvmAllocArrayByClass() 80 return dvmAllocPrimitiveArray(descriptor[1], length, allocFlags); in dvmAllocArrayByClass() [all …]
|
D | Array.h | 30 ClassObject* dvmFindArrayClass(const char* descriptor, Object* loader); 76 return ( ((Object*)arrayObj)->clazz->descriptor[0] == '[' ); in dvmIsArray() 86 const char* descriptor = clazz->descriptor; in dvmIsObjectArrayClass() local 87 return descriptor[0] == '[' && (descriptor[1] == 'L' || in dvmIsObjectArrayClass() 88 descriptor[1] == '['); in dvmIsObjectArrayClass() 109 return (clazz->descriptor[0] == '['); in dvmIsArrayClass()
|
D | Object.cpp | 258 static inline size_t countArgsAndFindReturnType(const char* descriptor, in countArgsAndFindReturnType() argument 265 assert(*descriptor == '('); in countArgsAndFindReturnType() 266 descriptor++; in countArgsAndFindReturnType() 269 switch (*descriptor) { in countArgsAndFindReturnType() 277 descriptor++; in countArgsAndFindReturnType() 278 } while (*descriptor == '['); in countArgsAndFindReturnType() 284 descriptor--; in countArgsAndFindReturnType() 289 descriptor++; in countArgsAndFindReturnType() 290 } while ((*descriptor != ';') && (*descriptor != '\0')); in countArgsAndFindReturnType() 292 if (*descriptor == '\0') { in countArgsAndFindReturnType() [all …]
|
D | Class.h | 84 ClassObject* dvmFindClass(const char* descriptor, Object* loader); 85 ClassObject* dvmFindClassNoInit(const char* descriptor, Object* loader); 90 ClassObject* dvmFindSystemClass(const char* descriptor); 91 ClassObject* dvmFindSystemClassNoInit(const char* descriptor); 103 ClassObject* dvmFindLoadedClass(const char* descriptor); 110 ClassObject* dvmDefineClass(DvmDex* pDvmDex, const char* descriptor, 141 ClassObject* dvmLookupClass(const char* descriptor, Object* loader, 254 INLINE int dvmCompareDescriptorAndMethodProto(const char* descriptor, in dvmCompareDescriptorAndMethodProto() argument 258 return -dexProtoCompareToDescriptor(&method->prototype, descriptor); in dvmCompareDescriptorAndMethodProto() 277 const char* descriptor, const Method* method);
|
D | Resolve.cpp | 79 classIdx, referrer->descriptor, referrer->classLoader); in dvmResolveClass() 130 referrer->descriptor, referrer->classLoader, in dvmResolveClass() 132 resClass->descriptor, resClassCheck->descriptor, in dvmResolveClass() 135 referrer->descriptor, resClass->descriptor); in dvmResolveClass() 144 resClass->descriptor, referrer->descriptor, referrer->pDvmDex, in dvmResolveClass() 187 referrer->descriptor); in dvmResolveMethod() 199 resClass->descriptor); in dvmResolveMethod() 223 msg += resClass->descriptor; in dvmResolveMethod() 231 methodIdx, resClass->descriptor, resMethod->name); in dvmResolveMethod() 272 resMethod->clazz->descriptor, resMethod->name, in dvmResolveMethod() [all …]
|
D | Class.cpp | 174 const char* descriptor, Object* loader); 175 static ClassObject* findClassNoInit(const char* descriptor, Object* loader,\ 209 get_process_name(), (int) clazz->classLoader, clazz->descriptor, in logClassLoadWithTime() 338 const char* descriptor = dexGetPrimitiveTypeDescriptor(primitiveType); in createPrimitiveType() local 339 assert(descriptor != NULL); in createPrimitiveType() 351 newClass->descriptor = descriptor; in createPrimitiveType() 357 LOGVV("Constructed class for primitive type '%s'", newClass->descriptor); in createPrimitiveType() 381 clazz->descriptor = "Ljava/lang/Class;"; in createInitialClasses() 767 static DvmDex* searchBootPathForClass(const char* descriptor, in searchBootPathForClass() argument 775 descriptor); in searchBootPathForClass() [all …]
|
D | AccessCheck.cpp | 75 commonLen = strcmpCount(class1->descriptor, class2->descriptor); in dvmInSamePackage() 76 if (strchr(class1->descriptor + commonLen, '/') != NULL || in dvmInSamePackage() 77 strchr(class2->descriptor + commonLen, '/') != NULL) in dvmInSamePackage()
|
/dalvik/libdex/ |
D | DexProto.cpp | 185 const char* descriptor = dexParameterIteratorNextDescriptor(&iterator); in dexProtoGetParameterDescriptors() local 186 if (descriptor == NULL) { in dexProtoGetParameterDescriptors() 190 length += strlen(descriptor); in dexProtoGetParameterDescriptors() 199 const char* descriptor = dexParameterIteratorNextDescriptor(&iterator); in dexProtoGetParameterDescriptors() local 200 if (descriptor == NULL) { in dexProtoGetParameterDescriptors() 204 strcpy(at, descriptor); in dexProtoGetParameterDescriptors() 205 at += strlen(descriptor); in dexProtoGetParameterDescriptors() 332 static const char* methodDescriptorReturnType(const char* descriptor) { in methodDescriptorReturnType() argument 333 const char* result = strchr(descriptor, ')'); in methodDescriptorReturnType() 349 static const char* methodDescriptorNextType(const char* descriptor) { in methodDescriptorNextType() argument [all …]
|
D | DexDebugInfo.cpp | 114 const char *descriptor; member 126 localInReg[reg].descriptor, in emitLocalCbIfLive() 168 localInReg[argReg].descriptor = classDescriptor; in dexDecodeDebugInfo0() 180 const char* descriptor = dexParameterIteratorNextDescriptor(&iterator); in dexDecodeDebugInfo0() local 184 if ((argReg >= pCode->registersSize) || (descriptor == NULL)) { in dexDecodeDebugInfo0() 192 switch (descriptor[0]) { in dexDecodeDebugInfo0() 204 localInReg[reg].descriptor = descriptor; in dexDecodeDebugInfo0() 240 localInReg[reg].descriptor = readTypeIdx(pDexFile, &stream); in dexDecodeDebugInfo0() 270 || localInReg[reg].descriptor == NULL) { in dexDecodeDebugInfo0()
|
/dalvik/vm/native/ |
D | InternalNative.cpp | 100 const char* classDescriptor = method->clazz->descriptor; in dvmLookupInternalNativeMethod() 167 std::string expectedClassName(dvmHumanReadableDescriptor(clazz->descriptor)); in dvmVerifyObjectInClass() 182 char* descriptor = NULL; in dvmFindClassByName() local 201 descriptor = dvmDotToDescriptor(name); in dvmFindClassByName() 202 if (descriptor == NULL) { in dvmFindClassByName() 207 clazz = dvmFindClass(descriptor, loader); in dvmFindClassByName() 209 clazz = dvmFindClassNoInit(descriptor, loader); in dvmFindClassByName() 212 LOGVV("FAIL: load %s (%d)", descriptor, doInit); in dvmFindClassByName() 221 descriptor, doInit, clazz, clazz->classLoader); in dvmFindClassByName() 226 free(descriptor); in dvmFindClassByName()
|
D | java_lang_VMClassLoader.cpp | 85 char* descriptor = NULL; in Dalvik_java_lang_VMClassLoader_findLoadedClass() local 99 descriptor = dvmDotToDescriptor(name); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 100 if (descriptor == NULL) in Dalvik_java_lang_VMClassLoader_findLoadedClass() 103 clazz = dvmLookupClass(descriptor, loader, false); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 104 LOGVV("look: %s ldr=%p --> %p", descriptor, loader, clazz); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 108 free(descriptor); in Dalvik_java_lang_VMClassLoader_findLoadedClass()
|
/dalvik/vm/hprof/ |
D | HprofClass.cpp | 46 cp = clazz->descriptor; in computeClassHash() 63 return strcmp(c1->descriptor, c2->descriptor); in classCmp() 68 static int getPrettyClassNameId(const char *descriptor) { in getPrettyClassNameId() argument 69 std::string name(dvmHumanReadableDescriptor(descriptor)); in getPrettyClassNameId() 100 getPrettyClassNameId(clazz->descriptor); in hprofLookupClassId() 136 hprofAddIdToRecord(rec, getPrettyClassNameId(clazz->descriptor)); in hprofDumpClasses()
|
/dalvik/vm/ |
D | Exception.cpp | 130 excepClass->descriptor); in dvmThrowChainedException() 131 if (strcmp(excepClass->descriptor, "Ljava/lang/InternalError;") == 0) in dvmThrowChainedException() 151 excepClass->descriptor, msg != NULL ? msg : "(no msg)"); in dvmThrowChainedException() 161 excepClass->descriptor, msg); in dvmThrowChainedException() 274 msg, excepClass->descriptor); in initException() 282 cause->clazz->descriptor); in initException() 371 excepClass->descriptor, msg, initKind); in initException() 372 assert(strcmp(excepClass->descriptor, in initException() 413 self->exception->clazz->descriptor, exception->clazz->descriptor); in initException() 434 self->exception->clazz->descriptor, in initException() [all …]
|
D | InitRefs.cpp | 156 ALOGE("Could not find essential field %s.%s of type %s", clazz->descriptor, name, type); in initFieldOffset() 295 const char* name, const char* descriptor) { in initDirectMethodReferenceByClass() argument 296 Method* method = dvmFindDirectMethodByDescriptor(clazz, name, descriptor); in initDirectMethodReferenceByClass() 300 clazz->descriptor, name, descriptor); in initDirectMethodReferenceByClass() 309 const char* name, const char* descriptor) { in initDirectMethodReference() argument 317 return initDirectMethodReferenceByClass(pMethod, clazz, name, descriptor); in initDirectMethodReference() 321 static struct { Method** method; const char* name; const char* descriptor; } constructors[] = { in initConstructorReferences() member 342 "<init>", constructors[i].descriptor)) { in initConstructorReferences() 355 const char* descriptor; in initDirectMethodReferences() member 386 methods[i].name, methods[i].descriptor)) { in initDirectMethodReferences() [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | LocalVariableList.java | 146 CstString descriptor, CstString signature, int index) { in set() argument 147 set0(n, new Item(startPc, length, name, descriptor, signature, index)); in set() 213 private final CstString descriptor; field in LocalVariableList.Item 236 CstString descriptor, CstString signature, int index) { in Item() argument 249 if ((descriptor == null) && (signature == null)) { in Item() 261 this.descriptor = descriptor; in Item() 290 return descriptor; in getDescriptor() 328 return Type.intern(descriptor.getString()); in getType() 339 return new Item(startPc, length, name, descriptor, newSignature, in withSignature()
|
/dalvik/dx/tests/014-field-attrib-ConstantValue/ |
D | expected.txt | 47 descriptor: B 60 descriptor: C 73 descriptor: D 86 descriptor: F 99 descriptor: I 112 descriptor: J 125 descriptor: S 138 descriptor: Z 151 descriptor: Ljava/lang/String;
|
/dalvik/vm/analysis/ |
D | Optimize.cpp | 470 if (strcmp(excep->clazz->descriptor, in dvmOptResolveClass() 491 resClass->descriptor); in dvmOptResolveClass() 503 referrer->descriptor, resClass->descriptor); in dvmOptResolveClass() 546 resClass->descriptor, in dvmOptResolveInstField() 554 resClass->descriptor, in dvmOptResolveInstField() 573 referrer->descriptor, resField->clazz->descriptor, in dvmOptResolveInstField() 621 resClass->descriptor, fieldName); in dvmOptResolveStaticField() 628 resClass->descriptor, fieldName); in dvmOptResolveStaticField() 651 referrer->descriptor, resField->clazz->descriptor, in dvmOptResolveStaticField() 689 fieldIdx, (int) (insns - method->insns), clazz->descriptor, in rewriteInstField() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | TypeIdItem.java | 62 CstUtf8 descriptor = type.getDescriptor(); in writeTo() local 63 int idx = file.getStringIds().indexOf(descriptor); in writeTo() 66 out.annotate(0, indexString() + ' ' + descriptor.toHuman()); in writeTo()
|