Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 10 of 10) sorted by relevance

/dalvik/dx/src/com/android/dex/
DClassDef.java24 private final Dex buffer; field in ClassDef
35 public ClassDef(Dex buffer, int offset, int typeIndex, int accessFlags, in ClassDef() argument
38 this.buffer = buffer; in ClassDef()
67 return buffer.readTypeList(interfacesOffset).getTypes(); in getInterfaces()
92 if (buffer == null) { in toString()
97 result.append(buffer.typeNames().get(typeIndex)); in toString()
99 result.append(" extends ").append(buffer.typeNames().get(supertypeIndex)); in toString()
DDex.java132 byte[] buffer = new byte[8192]; in loadFrom()
135 while ((count = in.read(buffer)) != -1) { in loadFrom()
136 bytesOut.write(buffer, 0, count); in loadFrom()
151 byte[] buffer = new byte[8192]; in writeTo()
155 int count = Math.min(buffer.length, data.remaining()); in writeTo()
156 data.get(buffer, 0, count); in writeTo()
157 out.write(buffer, 0, count); in writeTo()
279 byte[] buffer = new byte[8192]; in computeSignature()
284 int count = Math.min(buffer.length, data.remaining()); in computeSignature()
285 data.get(buffer, 0, count); in computeSignature()
[all …]
/dalvik/libdex/
Dsha1.cpp105 const unsigned char buffer[64]);
133 const unsigned char buffer[64]) in SHA1Transform()
144 memcpy(block, buffer, 64); in SHA1Transform()
146 block = (CHAR64LONG16*)buffer; in SHA1Transform()
223 memcpy(&context->buffer[j], data, (i = 64-j)); in SHA1Update()
224 SHA1Transform(context->state, context->buffer); in SHA1Update()
232 memcpy(&context->buffer[j], &data[i], len - i); in SHA1Update()
261 memset(context->buffer, 0, 64); in SHA1Final()
267 SHA1Transform(context->state, context->buffer); in SHA1Final()
283 unsigned char buffer[16384]; in sha1file() local
[all …]
DDexProto.cpp44 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()
Dsha1.h10 unsigned char buffer[64]; member
DDexProto.h36 char buffer[120]; /* buffer used to hold small-enough results */ member
/dalvik/dx/junit-tests/com/android/dx/merge/
DDexMergerTest.java84 byte[] buffer = new byte[8192]; in readEntireStream()
87 while ((count = inputStream.read(buffer)) != -1) { in readEntireStream()
88 bytesOut.write(buffer, 0, count); in readEntireStream()
/dalvik/dx/tests/115-merge/com/android/dx/merge/
DDexMergeTest.java191 byte[] buffer = new byte[1024]; in copy()
193 while ((count = in.read(buffer)) != -1) { in copy()
194 out.write(buffer, 0, count); in copy()
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DDexData.java442 void readBytes(byte[] buffer) throws IOException { in readBytes() argument
443 mDexFile.readFully(buffer); in readBytes()
/dalvik/dx/src/com/android/dx/merge/
DDexMerger.java650 private void readSortableTypes(SortableType[] sortableTypes, Dex buffer, in readSortableTypes() argument
652 for (ClassDef classDef : buffer.classDefs()) { in readSortableTypes()
654 new SortableType(buffer, indexMap, classDef)); in readSortableTypes()
660 + buffer.typeNames().get(classDef.getTypeIndex())); in readSortableTypes()