/dalvik/dx/src/com/android/dx/rop/type/ |
D | Type.java | 238 private final String descriptor; field in Type 291 public static Type intern(String descriptor) { in intern() argument 292 Type result = internTable.get(descriptor); in intern() 299 firstChar = descriptor.charAt(0); in intern() 313 result = intern(descriptor.substring(1)); in intern() 322 int length = descriptor.length(); in intern() 324 (descriptor.charAt(length - 1) != ';')) { in intern() 339 char c = descriptor.charAt(i); in intern() 351 (descriptor.charAt(i - 1) == '/')) { in intern() 359 result = new Type(descriptor, BT_OBJECT); 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() 58 Prototype result = internTable.get(descriptor); in intern() 63 Type[] params = makeParameterArray(descriptor); in intern() 69 char c = descriptor.charAt(at); in intern() 78 c = descriptor.charAt(at); in intern() 83 int endAt = descriptor.indexOf(';', at); in intern() 93 Type.intern(descriptor.substring(startAt, at)); in intern() 97 Type returnType = Type.internReturnType(descriptor.substring(at)); in intern() [all …]
|
/dalvik/dx/src/com/android/dx/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.c | 28 static ClassObject* createArrayClass(const char* descriptor, Object* loader); 47 assert(arrayClass->descriptor[0] == '['); in dvmAllocArray() 67 arrayClass->descriptor, (int) length, (int) size); in dvmAllocArray() 84 const char* descriptor = arrayClass->descriptor; in dvmAllocArrayByClass() local 86 assert(descriptor[0] == '['); /* must be array class */ in dvmAllocArrayByClass() 87 if (descriptor[1] != '[' && descriptor[1] != 'L') { in dvmAllocArrayByClass() 89 assert(descriptor[2] == '\0'); in dvmAllocArrayByClass() 90 return dvmAllocPrimitiveArray(descriptor[1], length, allocFlags); in dvmAllocArrayByClass() 110 arrayClass->descriptor, elemClassObj->descriptor); in dvmFindArrayClassForElement() 113 int nameLen = strlen(elemClassObj->descriptor); in dvmFindArrayClassForElement() [all …]
|
D | Object.c | 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 | 77 ClassObject* dvmFindClass(const char* descriptor, Object* loader); 78 ClassObject* dvmFindClassNoInit(const char* descriptor, Object* loader); 83 ClassObject* dvmFindSystemClass(const char* descriptor); 84 ClassObject* dvmFindSystemClassNoInit(const char* descriptor); 96 ClassObject* dvmFindLoadedClass(const char* descriptor); 103 ClassObject* dvmDefineClass(DvmDex* pDvmDex, const char* descriptor, 134 ClassObject* dvmLookupClass(const char* descriptor, Object* loader, 251 INLINE int dvmCompareDescriptorAndMethodProto(const char* descriptor, in dvmCompareDescriptorAndMethodProto() argument 255 return -dexProtoCompareToDescriptor(&method->prototype, descriptor); in dvmCompareDescriptorAndMethodProto() 274 const char* descriptor, const Method* method);
|
D | Class.c | 171 const char* descriptor, Object* loader); 172 static ClassObject* findClassNoInit(const char* descriptor, Object* loader,\ 204 get_process_name(), (int) clazz->classLoader, clazz->descriptor, in logClassLoadWithTime() 337 unlinkedClass->descriptor = "!unlinkedClass"; in dvmClassStartup() 637 static DvmDex* searchBootPathForClass(const char* descriptor, in searchBootPathForClass() argument 645 descriptor); in searchBootPathForClass() 662 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass() 678 pClassDef = dexFindClass(pDvmDex->pDexFile, descriptor); in searchBootPathForClass() 709 dexFindClass(gDvm.bootClassPathOptExtra->pDexFile, descriptor); in searchBootPathForClass() 815 const char* descriptor; member [all …]
|
D | Resolve.c | 78 classIdx, referrer->descriptor, referrer->classLoader); in dvmResolveClass() 129 referrer->descriptor, referrer->classLoader, in dvmResolveClass() 131 resClass->descriptor, resClassCheck->descriptor, in dvmResolveClass() 134 referrer->descriptor, resClass->descriptor); in dvmResolveClass() 143 resClass->descriptor, referrer->descriptor, referrer->pDvmDex, in dvmResolveClass() 186 referrer->descriptor); in dvmResolveMethod() 199 resClass->descriptor); in dvmResolveMethod() 227 methodIdx, resClass->descriptor, resMethod->name); in dvmResolveMethod() 281 methodIdx, referrer->descriptor); in dvmResolveInterfaceMethod() 294 resClass->descriptor); in dvmResolveInterfaceMethod() [all …]
|
D | AccessCheck.c | 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()
|
D | Array.h | 33 ClassObject* dvmFindArrayClass(const char* descriptor, Object* loader); 112 return ( ((Object*)arrayObj)->clazz->descriptor[0] == '[' ); in dvmIsArray() 123 return (clazz->descriptor[0] == '['); in dvmIsArrayClass()
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | FileDescriptor.java | 61 int descriptor = -1; field in FileDescriptor 69 in.descriptor = 0; 70 out.descriptor = 1; 71 err.descriptor = 2; 107 return descriptor != -1; in valid()
|
D | FileOutputStream.java | 97 fd.descriptor = fileSystem.open(file.properPath(true), in FileOutputStream() 100 channel = FileChannelFactory.getFileChannel(this, fd.descriptor, in FileOutputStream() 129 channel = FileChannelFactory.getFileChannel(this, fd.descriptor, in FileOutputStream() 188 if (channel.isOpen() && fd.descriptor >= 0) { in close() 195 if (fd.descriptor >= 0 && innerFD) { in close() 196 fileSystem.close(fd.descriptor); in close() 197 fd.descriptor = -1; in close() 297 fileSystem.write(fd.descriptor, buffer, offset, count); in write() 315 fileSystem.write(fd.descriptor, byteArray, 0, 1); in write() 319 if (fd.descriptor < 0) { in openCheck()
|
D | FileInputStream.java | 77 fd.descriptor = fileSystem.open(file.properPath(true), in FileInputStream() 153 return fileSystem.ioctlAvailable(fd.descriptor); in available() 188 if (fd != null && fd.descriptor >= 0 && innerFD) { in close() 189 fileSystem.close(fd.descriptor); in close() 190 fd.descriptor = -1; in close() 222 channel = FileChannelFactory.getFileChannel(this, fd.descriptor, in getChannel() 319 return (int) fileSystem.read(fd.descriptor, buffer, offset, count); in read() 364 final long currentPosition = fileSystem.seek(fd.descriptor, 0L, in skip() 366 final long newPosition = fileSystem.seek(fd.descriptor, in skip() 373 if (fd.descriptor < 0) { in openCheck()
|
D | RandomAccessFile.java | 145 fd.descriptor = fileSystem.open(file.properPath(true), options); in RandomAccessFile() 202 if (fd != null && fd.descriptor >= 0) { in close() 203 fileSystem.close(fd.descriptor); in close() 204 fd.descriptor = -1; in close() 223 channel = FileChannelFactory.getFileChannel(this, fd.descriptor, in getChannel() 255 return fileSystem.seek(fd.descriptor, 0L, IFileSystem.SEEK_CUR); in getFilePointer() 266 if (fd.descriptor < 0) { in openCheck() 281 long currentPosition = fileSystem.seek(fd.descriptor, 0L, in length() 283 long endOfFilePosition = fileSystem.seek(fd.descriptor, 0L, in length() 285 fileSystem.seek(fd.descriptor, currentPosition, in length() [all …]
|
/dalvik/libdex/ |
D | DexProto.c | 197 const char* descriptor = dexParameterIteratorNextDescriptor(&iterator); in dexProtoGetParameterDescriptors() local 198 if (descriptor == NULL) { in dexProtoGetParameterDescriptors() 202 length += strlen(descriptor); in dexProtoGetParameterDescriptors() 211 const char* descriptor = dexParameterIteratorNextDescriptor(&iterator); in dexProtoGetParameterDescriptors() local 212 if (descriptor == NULL) { in dexProtoGetParameterDescriptors() 216 strcpy(at, descriptor); in dexProtoGetParameterDescriptors() 217 at += strlen(descriptor); in dexProtoGetParameterDescriptors() 365 static const char* methodDescriptorReturnType(const char* descriptor) { in methodDescriptorReturnType() argument 366 const char* result = strchr(descriptor, ')'); in methodDescriptorReturnType() 382 static const char* methodDescriptorNextType(const char* descriptor) { in methodDescriptorNextType() argument [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | LocalVariableList.java | 146 CstUtf8 descriptor, CstUtf8 signature, int index) { in set() argument 147 set0(n, new Item(startPc, length, name, descriptor, signature, index)); in set() 213 private final CstUtf8 descriptor; field in LocalVariableList.Item 236 CstUtf8 descriptor, CstUtf8 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/vm/native/ |
D | InternalNative.c | 101 const char* classDescriptor = method->clazz->descriptor; in dvmLookupInternalNativeMethod() 213 char* descriptor = NULL; in dvmFindClassByName() local 232 descriptor = dvmDotToDescriptor(name); in dvmFindClassByName() 233 if (descriptor == NULL) { in dvmFindClassByName() 238 clazz = dvmFindClass(descriptor, loader); in dvmFindClassByName() 240 clazz = dvmFindClassNoInit(descriptor, loader); in dvmFindClassByName() 243 LOGVV("FAIL: load %s (%d)\n", descriptor, doInit); in dvmFindClassByName() 253 descriptor, doInit, clazz, clazz->classLoader); in dvmFindClassByName() 258 free(descriptor); in dvmFindClassByName()
|
D | java_lang_VMClassLoader.c | 87 char* descriptor = NULL; in Dalvik_java_lang_VMClassLoader_findLoadedClass() local 102 descriptor = dvmDotToDescriptor(name); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 103 if (descriptor == NULL) in Dalvik_java_lang_VMClassLoader_findLoadedClass() 106 clazz = dvmLookupClass(descriptor, loader, false); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 107 LOGVV("look: %s ldr=%p --> %p\n", descriptor, loader, clazz); in Dalvik_java_lang_VMClassLoader_findLoadedClass() 111 free(descriptor); in Dalvik_java_lang_VMClassLoader_findLoadedClass()
|
D | java_lang_Class.c | 35 char* className = dvmDescriptorToName(thisPtr->descriptor); in Dalvik_java_lang_Class_desiredAssertionStatus() 164 if (thisPtr->descriptor[1] == '[') in Dalvik_java_lang_Class_getComponentType() 165 RETURN_PTR(dvmFindArrayClass(&thisPtr->descriptor[1], in Dalvik_java_lang_Class_getComponentType() 328 const char* descriptor = clazz->descriptor; in Dalvik_java_lang_Class_getName() local 331 if ((descriptor[0] != 'L') && (descriptor[0] != '[')) { in Dalvik_java_lang_Class_getName() 337 switch (descriptor[0]) { in Dalvik_java_lang_Class_getName() 348 LOGE("Unknown primitive type '%c'\n", descriptor[0]); in Dalvik_java_lang_Class_getName() 365 char* dotName = dvmDescriptorToDot(clazz->descriptor); in Dalvik_java_lang_Class_getName() 390 pClassDef = dvmDexFindClass(pDexFile, clazz->descriptor); in Dalvik_java_lang_Class_getName() 501 clazz->descriptor); in Dalvik_java_lang_Class_newInstance() [all …]
|
/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/hprof/ |
D | HprofClass.c | 49 cp = clazz->descriptor; in computeClassHash() 67 return strcmp(c1->descriptor, c2->descriptor); in classCmp() 73 getPrettyClassNameId(const char *descriptor) in getPrettyClassNameId() argument 76 char *dotName = dvmDescriptorToDot(descriptor); in getPrettyClassNameId() 177 getPrettyClassNameId(clazz->descriptor); in hprofLookupClassId() 214 hprofAddIdToRecord(rec, getPrettyClassNameId(clazz->descriptor)); in hprofDumpClasses()
|
/dalvik/vm/ |
D | Exception.c | 210 (cause != NULL) ? cause->clazz->descriptor : "(none)"); in dvmThrowChainedException() 257 excepClass->descriptor); in dvmThrowChainedExceptionByClass() 258 if (strcmp(excepClass->descriptor, "Ljava/lang/InternalError;") == 0) in dvmThrowChainedExceptionByClass() 278 excepClass->descriptor, msg != NULL ? msg : "(no msg)"); in dvmThrowChainedExceptionByClass() 288 excepClass->descriptor, msg); in dvmThrowChainedExceptionByClass() 378 msg, excepClass->descriptor); in initException() 386 cause->clazz->descriptor); in initException() 473 excepClass->descriptor, msg, initKind); in initException() 474 assert(strcmp(excepClass->descriptor, in initException() 515 self->exception->clazz->descriptor, exception->clazz->descriptor); in initException() [all …]
|
/dalvik/libcore/luni/src/main/native/ |
D | java_io_FileDescriptor.c | 34 jfieldID descriptor; /* int */ member 47 return (*env)->GetIntField(env, obj, gCachedFields.descriptor); in getFd() 57 (*env)->SetIntField(env, obj, gCachedFields.descriptor, value); in setFd() 70 gCachedFields.descriptor = in nativeClassInit() 73 if(gCachedFields.descriptor == NULL) { in nativeClassInit() 157 (*env)->SetIntField(env, ret, gCachedFields.descriptor, fd); in jniCreateFileDescriptor()
|
/dalvik/vm/mterp/c/ |
D | gotoTargets.c | 60 LOGVV("+++ filled-new-array type is '%s'\n", arrayClass->descriptor); in GOTO_TARGET() 61 typeCh = arrayClass->descriptor[1]; in GOTO_TARGET() 175 baseMethod->clazz->descriptor, baseMethod->name, in GOTO_TARGET() 177 methodToCall->clazz->descriptor, methodToCall->name); in GOTO_TARGET() 183 baseMethod->clazz->descriptor, baseMethod->name, in GOTO_TARGET() 185 methodToCall->clazz->descriptor, methodToCall->name); in GOTO_TARGET() 266 baseMethod->clazz->descriptor, baseMethod->name, in GOTO_TARGET() 267 methodToCall->clazz->descriptor, methodToCall->name); in GOTO_TARGET() 428 ref, methodToCall->clazz->descriptor, methodToCall->name); in GOTO_TARGET() 489 ref, methodToCall->clazz->descriptor, methodToCall->name); in GOTO_TARGET() [all …]
|
/dalvik/dx/src/com/android/dx/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()
|