/dalvik/dx/src/com/android/dx/io/ |
D | MethodId.java | 22 private final DexBuffer buffer; field in MethodId 27 public MethodId(DexBuffer buffer, int declaringClassIndex, int protoIndex, int nameIndex) { in MethodId() argument 28 this.buffer = buffer; in MethodId() 63 if (buffer == null) { in toString() 66 return buffer.typeNames().get(declaringClassIndex) in toString() 67 + "." + buffer.strings().get(nameIndex) in toString() 68 + buffer.readTypeList(buffer.protoIds().get(protoIndex).getParametersOffset()); in toString()
|
D | ProtoId.java | 22 private final DexBuffer buffer; field in ProtoId 27 public ProtoId(DexBuffer buffer, int shortyIndex, int returnTypeIndex, int parametersOffset) { in ProtoId() argument 28 this.buffer = buffer; in ProtoId() 60 if (buffer == null) { in toString() 64 return buffer.strings().get(shortyIndex) in toString() 65 + ": " + buffer.typeNames().get(returnTypeIndex) in toString() 66 + " " + buffer.readTypeList(parametersOffset); in toString()
|
D | ClassDef.java | 24 private final DexBuffer buffer; field in ClassDef 35 public ClassDef(DexBuffer buffer, int offset, int typeIndex, int accessFlags, in ClassDef() argument 38 this.buffer = buffer; in ClassDef() 67 return buffer.readTypeList(interfacesOffset).getTypes(); in getInterfaces() 91 if (buffer == null) { in toString() 96 result.append(buffer.typeNames().get(typeIndex)); in toString() 98 result.append(" extends ").append(buffer.typeNames().get(supertypeIndex)); in toString()
|
D | FieldId.java | 22 private final DexBuffer buffer; field in FieldId 27 public FieldId(DexBuffer buffer, int declaringClassIndex, int typeIndex, int nameIndex) { in FieldId() argument 28 this.buffer = buffer; in FieldId() 63 if (buffer == null) { in toString() 66 return buffer.typeNames().get(typeIndex) + "." + buffer.strings().get(nameIndex); in toString()
|
D | Annotation.java | 25 private final DexBuffer buffer; field in Annotation 31 public Annotation(DexBuffer buffer, byte visibility, int typeIndex, int[] names, in Annotation() argument 33 this.buffer = buffer; in Annotation() 84 if (buffer == null) { in toString() 91 result.append(buffer.typeNames().get(typeIndex)); in toString() 97 result.append(buffer.strings().get(names[i])); in toString()
|
D | DexBuffer.java | 165 byte[] buffer = new byte[8192]; in loadFrom() 168 while ((count = in.read(buffer)) != -1) { in loadFrom() 169 bytesOut.write(buffer, 0, count); in loadFrom()
|
/dalvik/dx/src/com/android/dx/merge/ |
D | TypeList.java | 27 private final DexBuffer buffer; field in TypeList 30 public TypeList(DexBuffer buffer, short[] types) { in TypeList() argument 31 this.buffer = buffer; in TypeList() 52 result.append(buffer != null ? buffer.typeNames().get(types[i]) : types[i]); in toString()
|
D | SortableType.java | 46 private final DexBuffer buffer; field in SortableType 50 public SortableType(DexBuffer buffer, ClassDef classDef) { in SortableType() argument 51 this.buffer = buffer; in SortableType() 56 return buffer; in getBuffer()
|
D | DexMerger.java | 574 private void readSortableTypes(SortableType[] sortableTypes, DexBuffer buffer, in readSortableTypes() argument 576 for (ClassDef classDef : buffer.classDefs()) { in readSortableTypes() 577 SortableType sortableType = indexMap.adjust(new SortableType(buffer, classDef)); in readSortableTypes() 583 + buffer.typeNames().get(classDef.getTypeIndex())); in readSortableTypes()
|
/dalvik/vm/compiler/ |
D | Dataflow.cpp | 824 char buffer[256]; in dvmCompilerGetDalvikDisassembly() local 830 buffer[0] = 0; in dvmCompilerGetDalvikDisassembly() 833 strcpy(buffer, "PHI"); in dvmCompilerGetDalvikDisassembly() 836 sprintf(buffer, "Opcode %#x", opcode); in dvmCompilerGetDalvikDisassembly() 840 strcpy(buffer, dexGetOpcodeName(opcode)); in dvmCompilerGetDalvikDisassembly() 845 strcat(buffer, note); in dvmCompilerGetDalvikDisassembly() 853 snprintf(buffer + strlen(buffer), 256, " v%d,", insn->vA); in dvmCompilerGetDalvikDisassembly() 857 snprintf(buffer + strlen(buffer), 256, " v%d, v%d,", in dvmCompilerGetDalvikDisassembly() 872 snprintf(buffer + strlen(buffer), 256, " (%c%x)", in dvmCompilerGetDalvikDisassembly() 878 if (i != 0) strcat(buffer, ","); in dvmCompilerGetDalvikDisassembly() [all …]
|
/dalvik/tests/070-nio-buffer/ |
D | expected.txt | 1 Direct byte buffer has array: true 2 Got expected buffer overflow exception 4 Got expected buffer overflow exception
|
/dalvik/tools/ |
D | deadcode.py | 7 def SplitSections(buffer): argument 25 result = headerPattern.search(buffer, start) 30 sections[sectionName] = buffer[anchor] 36 sections[sectionName] = buffer[anchor:result.start()]
|
/dalvik/vm/ |
D | AllocTracker.cpp | 509 u1* buffer = NULL; in dvmGenerateTrackedAllocationReport() local 565 buffer = (u1*) malloc(totalSize); in dvmGenerateTrackedAllocationReport() 566 strPtr = buffer + baseSize; in dvmGenerateTrackedAllocationReport() 567 generateBaseOutput(buffer, baseSize, classNames, methodNames, fileNames); in dvmGenerateTrackedAllocationReport() 571 if (strPtr - buffer != (int)totalSize) { in dvmGenerateTrackedAllocationReport() 572 ALOGE("size mismatch (%d vs %zd)", strPtr - buffer, totalSize); in dvmGenerateTrackedAllocationReport() 577 *pData = buffer; in dvmGenerateTrackedAllocationReport() 579 buffer = NULL; // don't free -- caller will own in dvmGenerateTrackedAllocationReport() 586 free(buffer); in dvmGenerateTrackedAllocationReport()
|
/dalvik/libdex/ |
D | sha1.cpp | 108 const unsigned char buffer[64]); 136 const unsigned char buffer[64]) in SHA1Transform() 147 memcpy(block, buffer, 64); in SHA1Transform() 149 block = (CHAR64LONG16*)buffer; in SHA1Transform() 226 memcpy(&context->buffer[j], data, (i = 64-j)); in SHA1Update() 227 SHA1Transform(context->state, context->buffer); in SHA1Update() 235 memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update() 264 memset(context->buffer, 0, 64); in SHA1Final() 270 SHA1Transform(context->state, context->buffer); in SHA1Final() 286 unsigned char buffer[16384]; in sha1file() local [all …]
|
D | sha1.h | 10 unsigned char buffer[64]; member
|
D | DexProto.cpp | 44 if (length <= sizeof(pCache->buffer)) { in dexStringCacheAlloc() 45 pCache->value = pCache->buffer; in dexStringCacheAlloc() 58 pCache->value = pCache->buffer; in dexStringCacheInit() 60 pCache->buffer[0] = '\0'; in dexStringCacheInit() 70 pCache->value = pCache->buffer; in dexStringCacheRelease() 103 pCache->value = pCache->buffer; in dexStringCacheAbandon()
|
D | DexProto.h | 36 char buffer[120]; /* buffer used to hold small-enough results */ member
|
/dalvik/vm/oo/ |
D | Object.cpp | 331 static inline void copyTypes(char* buffer, const char** argTypes, in copyTypes() argument 341 argTypes[i] = buffer; in copyTypes() 346 *(buffer++) = c; in copyTypes() 353 *(buffer++) = c; in copyTypes() 357 *(buffer++) = '\0'; in copyTypes() 381 char buffer[argCount + (returnType - descriptor) - 2]; in findMethodInListByDescriptor() local 384 copyTypes(buffer, argTypes, argCount, descriptor); in findMethodInListByDescriptor()
|
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
D | DexMergeTest.java | 187 byte[] buffer = new byte[1024]; in copy() 189 while ((count = in.read(buffer)) != -1) { in copy() 190 out.write(buffer, 0, count); in copy()
|
/dalvik/dx/src/com/android/dx/dex/ |
D | TableOfContents.java | 70 public void readFrom(DexBuffer buffer) throws IOException { in readFrom() argument 71 readHeader(buffer.open(0)); in readFrom() 72 readMap(buffer.open(mapList.off)); in readFrom()
|
/dalvik/vm/jdwp/ |
D | JdwpAdb.cpp | 142 char buffer[CMSG_SPACE(sizeof(int))]; in receiveClientFd() member 153 msg.msg_control = cm_un.buffer; in receiveClientFd() 154 msg.msg_controllen = sizeof(cm_un.buffer); in receiveClientFd()
|
/dalvik/hit/src/com/android/hit/ |
D | HprofParser.java | 465 byte[] buffer = mFieldBuffer; in loadClassDump() 474 in.readFully(buffer, 0, fieldSize); in loadClassDump() 475 staticFieldValues.write(buffer, 0, fieldSize); in loadClassDump()
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 439 void readBytes(byte[] buffer) throws IOException { in readBytes() argument 440 mDexFile.readFully(buffer); in readBytes()
|