/dalvik/dx/src/com/android/dex/ |
D | Leb128.java | 41 int count = 0; in unsignedLeb128Size() local 45 count++; in unsignedLeb128Size() 48 return count + 1; in unsignedLeb128Size() 57 int count = 0; in readSignedLeb128() local 62 result |= (cur & 0x7f) << (count * 7); in readSignedLeb128() 64 count++; in readSignedLeb128() 65 } while (((cur & 0x80) == 0x80) && count < 5); in readSignedLeb128() 85 int count = 0; in readUnsignedLeb128() local 89 result |= (cur & 0x7f) << (count * 7); in readUnsignedLeb128() 90 count++; in readUnsignedLeb128() [all …]
|
D | Dex.java | 134 int count; in loadFrom() local 135 while ((count = in.read(buffer)) != -1) { in loadFrom() 136 bytesOut.write(buffer, 0, count); in loadFrom() 155 int count = Math.min(buffer.length, data.remaining()); in writeTo() local 156 data.get(buffer, 0, count); in writeTo() 157 out.write(buffer, 0, count); in writeTo() 284 int count = Math.min(buffer.length, data.remaining()); in computeSignature() local 285 data.get(buffer, 0, count); in computeSignature() 286 digest.update(buffer, 0, count); in computeSignature() 301 int count = Math.min(buffer.length, data.remaining()); in computeChecksum() local [all …]
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | Leb128Utils.java | 41 int count = 0; in unsignedLeb128Size() local 45 count++; in unsignedLeb128Size() 48 return count + 1; in unsignedLeb128Size() 62 int count = 0; in signedLeb128Size() local 72 count++; in signedLeb128Size() 75 return count; in signedLeb128Size()
|
D | ByteArrayAnnotatedOutput.java | 229 int count = 0; in writeUnsignedLeb128() local 235 count++; in writeUnsignedLeb128() 239 return count + 1; in writeUnsignedLeb128() 245 int count = 0; in writeSignedLeb128() local 256 count++; in writeSignedLeb128() 259 return count; in writeSignedLeb128() 309 public void writeZeroes(int count) { in writeZeroes() argument 310 if (count < 0) { in writeZeroes() 314 int end = cursor + count; in writeZeroes()
|
/dalvik/dx/tests/115-merge/testdata/ |
D | TryCatchFinally.java | 6 int count = 0; in method() local 15 count++; in method() 19 count++; in method() 22 if (count != 2) { in method()
|
/dalvik/libdex/ |
D | DexDataMap.cpp | 51 map->count = 0; in dexDataMapAlloc() 77 assert(map->count < map->max); in dexDataMapAdd() 79 if ((map->count != 0) && in dexDataMapAdd() 80 (map->offsets[map->count - 1] >= offset)) { in dexDataMapAdd() 82 map->offsets[map->count - 1], offset); in dexDataMapAdd() 86 map->offsets[map->count] = offset; in dexDataMapAdd() 87 map->types[map->count] = type; in dexDataMapAdd() 88 map->count++; in dexDataMapAdd() 100 int max = map->count - 1; in dexDataMapGet()
|
D | SysUtil.cpp | 317 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) in sysWriteFully() argument 319 while (count != 0) { in sysWriteFully() 320 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, buf, count)); in sysWriteFully() 325 } else if (actual != (ssize_t) count) { in sysWriteFully() 327 logMsg, (int) actual, count); in sysWriteFully() 330 count -= actual; in sysWriteFully() 337 int sysCopyFileToFile(int outFd, int inFd, size_t count) in sysCopyFileToFile() argument 342 while (count != 0) { in sysCopyFileToFile() 343 size_t getSize = (count > kBufSize) ? kBufSize : count; in sysCopyFileToFile() 355 count -= getSize; in sysCopyFileToFile()
|
D | DexCatch.h | 68 s4 count = readSignedLeb128(&pEncodedData); in dexCatchIteratorInitToPointer() local 70 if (count <= 0) { in dexCatchIteratorInitToPointer() 72 count = -count; in dexCatchIteratorInitToPointer() 78 pIterator->countRemaining = count; in dexCatchIteratorInitToPointer()
|
D | Leb128.h | 154 int count = 0; in unsignedLeb128Size() local 158 count++; in unsignedLeb128Size() 161 return count; in unsignedLeb128Size()
|
D | SysUtil.h | 101 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg); 107 int sysCopyFileToFile(int outFd, int inFd, size_t count);
|
D | DexSwapVerify.cpp | 376 u4 count; in swapMap() local 384 count = pMap->size; in swapMap() 386 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapMap() 388 while (count--) { in swapMap() 1094 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations() argument 1100 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapFieldAnnotations() 1102 while (count--) { in swapFieldAnnotations() 1124 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations() argument 1130 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapMethodAnnotations() 1132 while (count--) { in swapMethodAnnotations() [all …]
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 139 int count = mHeaderItem.stringIdsSize; in loadStrings() local 140 int stringOffsets[] = new int[count]; in loadStrings() 145 for (int i = 0; i < count; i++) { in loadStrings() 149 mStrings = new String[count]; in loadStrings() 152 for (int i = 0; i < count; i++) { in loadStrings() 163 int count = mHeaderItem.typeIdsSize; in loadTypeIds() local 164 mTypeIds = new TypeIdItem[count]; in loadTypeIds() 168 for (int i = 0; i < count; i++) { in loadTypeIds() 181 int count = mHeaderItem.protoIdsSize; in loadProtoIds() local 182 mProtoIds = new ProtoIdItem[count]; in loadProtoIds() [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | MemberIdsSection.java | 62 AtomicInteger count = membersByPackage.get(packageName); in getTooManyMembersMessage() local 63 if (count == null) { in getTooManyMembersMessage() 64 count = new AtomicInteger(); in getTooManyMembersMessage() 65 membersByPackage.put(packageName, count); in getTooManyMembersMessage() 67 count.incrementAndGet(); in getTooManyMembersMessage()
|
D | Statistics.java | 115 private int count; field in Statistics.Data 136 this.count = 1; in Data() 150 count++; in add() 180 count + " item" + (count == 1 ? "" : "s") + "; " + in toHuman() 186 int average = totalSize / count; in toHuman()
|
D | MapItem.java | 83 int count = 0; in addMap() local 88 if (count != 0) { in addMap() 90 firstItem, lastItem, count)); in addMap() 94 count = 0; in addMap() 97 count++; in addMap() 100 if (count != 0) { in addMap() 103 firstItem, lastItem, count)); in addMap()
|
/dalvik/tools/hprof-conv/ |
D | HprofConv.c | 199 static int ebAddData(ExpandBuf* pBuf, const void* data, size_t count) in ebAddData() argument 201 ebEnsureCapacity(pBuf, count); in ebAddData() 202 memcpy(pBuf->storage + pBuf->curLen, data, count); in ebAddData() 203 pBuf->curLen += count; in ebAddData() 235 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument 239 assert(count > 0); in ebReadData() 241 ebEnsureCapacity(pBuf, count); in ebReadData() 242 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData() 243 if (actual != count) { in ebReadData() 247 fprintf(stderr, "ERROR: read %zu of %zu bytes\n", actual, count); in ebReadData() [all …]
|
/dalvik/opcode-gen/ |
D | opcode-gen.awk | 247 function readBytecodes(i, parts, line, cmd, status, count) { 263 count = split(line, parts); 264 if (count == 0) continue; # Blank or comment line. 286 function defineOpcode(line, count, parts, idx) { 288 count = split(line, parts); 289 if (count != 6) return -1; 339 function defineFormat(line, count, parts, i) { 341 count = split(line, parts); 342 if (count < 1) return -1; 345 parts[count + 1] = "none"; [all …]
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | Statistics.java | 116 private int count; field in Statistics.Data 137 this.count = 1; in Data() 151 count++; in add() 181 count + " item" + (count == 1 ? "" : "s") + "; " + in toHuman() 187 int average = totalSize / count; in toHuman()
|
D | MapItem.java | 84 int count = 0; in addMap() local 89 if (count != 0) { in addMap() 91 firstItem, lastItem, count)); in addMap() 95 count = 0; in addMap() 98 count++; in addMap() 101 if (count != 0) { in addMap() 104 firstItem, lastItem, count)); in addMap()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | StdAttributeFactory.java | 388 int count = bytes.getUnsignedShort(offset); // number_of_exceptions in exceptions() local 392 "number_of_exceptions: " + Hex.u2(count)); in exceptions() 398 if (length != (count * 2)) { in exceptions() 399 throwBadLength((count * 2) + 2); in exceptions() 402 TypeList list = cf.makeTypeList(offset, count); in exceptions() 417 int count = bytes.getUnsignedShort(offset); // number_of_classes in innerClasses() local 421 "number_of_classes: " + Hex.u2(count)); in innerClasses() 427 if (length != (count * 8)) { in innerClasses() 428 throwBadLength((count * 8) + 2); in innerClasses() 431 InnerClassList list = new InnerClassList(count); in innerClasses() [all …]
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | DalvInsnList.java | 195 int count = 0; in getOutsSize() local 203 count = methodRef.getParameterWordCount(isStatic); in getOutsSize() 216 count = proto.getPrototype().getParameterTypes().getWordCount(); in getOutsSize() 217 count = count + 1; // And one for receiver (method handle). in getOutsSize() 222 if (count > result) { in getOutsSize() 223 result = count; in getOutsSize()
|
/dalvik/dx/src/com/android/dx/command/grep/ |
D | Main.java | 31 int count = new Grep(dex, Pattern.compile(pattern), new PrintWriter(System.out)).grep(); in main() local 32 System.exit((count > 0) ? 0 : 1); in main()
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
D | Form3rc.java | 159 int count; in writeTo() local 163 count = 0; in writeTo() 167 count = lastReg - firstReg; in writeTo() 171 opcodeUnit(insn, count), in writeTo()
|
D | Form4rcc.java | 159 int count; in writeTo() local 163 count = 0; in writeTo() 167 count = lastReg - firstReg; in writeTo() 171 opcodeUnit(insn, count), in writeTo()
|
/dalvik/dx/src/com/android/dx/cf/attrib/ |
D | InnerClassList.java | 33 public InnerClassList(int count) { in InnerClassList() argument 34 super(count); in InnerClassList()
|