/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()
|
D | Bits.java | 133 int count = 0; in bitCount() local 136 count += Integer.bitCount(bits[i]); in bitCount() 139 return count; in bitCount()
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
D | DexData.java | 143 int count = mHeaderItem.stringIdsSize; in loadStrings() local 144 int stringOffsets[] = new int[count]; in loadStrings() 149 readByteBuffer(Integer.BYTES * count).asIntBuffer().get(stringOffsets); in loadStrings() 151 mStrings = new String[count]; in loadStrings() 154 for (int i = 0; i < count; i++) { in loadStrings() 165 int count = mHeaderItem.typeIdsSize; in loadTypeIds() local 166 mTypeIds = new TypeIdItem[count]; in loadTypeIds() 170 ByteBuffer buffer = readByteBuffer(Integer.BYTES * count); in loadTypeIds() 171 for (int i = 0; i < count; i++) { in loadTypeIds() 184 int count = mHeaderItem.protoIdsSize; in loadProtoIds() local [all …]
|
/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/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/dx/src/com/android/dx/dex/file/ |
D | MemberIdsSection.java | 61 AtomicInteger count = membersByPackage.get(packageName); in getTooManyMembersMessage() local 62 if (count == null) { in getTooManyMembersMessage() 63 count = new AtomicInteger(); in getTooManyMembersMessage() 64 membersByPackage.put(packageName, count); in getTooManyMembersMessage() 66 count.incrementAndGet(); in getTooManyMembersMessage()
|
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()
|
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()
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
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()
|
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()
|
/dalvik/dx/src/com/android/dx/dex/code/ |
D | DalvInsnList.java | 196 int count = 0; in getOutsSize() local 204 count = methodRef.getParameterWordCount(isStatic); in getOutsSize() 207 count = invokeDynamicRef.getPrototype().getParameterTypes().getWordCount(); in getOutsSize() 220 count = proto.getPrototype().getParameterTypes().getWordCount(); in getOutsSize() 221 count = count + 1; // And one for receiver (method handle). in getOutsSize() 226 if (count > result) { in getOutsSize() 227 result = count; in getOutsSize()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | StdAttributeFactory.java | 420 int count = bytes.getUnsignedShort(offset); // number_of_exceptions in exceptions() local 424 "number_of_exceptions: " + Hex.u2(count)); in exceptions() 430 if (length != (count * 2)) { in exceptions() 431 throwBadLength((count * 2) + 2); in exceptions() 434 TypeList list = cf.makeTypeList(offset, count); in exceptions() 449 int count = bytes.getUnsignedShort(offset); // number_of_classes in innerClasses() local 453 "number_of_classes: " + Hex.u2(count)); in innerClasses() 459 if (length != (count * 8)) { in innerClasses() 460 throwBadLength((count * 8) + 2); in innerClasses() 463 InnerClassList list = new InnerClassList(count); in innerClasses() [all …]
|
D | AnnotationParser.java | 174 int count = input.readUnsignedByte(); in parseAnnotationsList() local 177 parsed(1, "num_parameters: " + Hex.u1(count)); in parseAnnotationsList() 180 AnnotationsList outerList = new AnnotationsList(count); in parseAnnotationsList() 182 for (int i = 0; i < count; i++) { in parseAnnotationsList() 209 int count = input.readUnsignedShort(); in parseAnnotations() local 212 parsed(2, "num_annotations: " + Hex.u2(count)); in parseAnnotations() 217 for (int i = 0; i < count; i++) { in parseAnnotations()
|
/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/docs/ |
D | porting-proto.c.txt | 72 s4 iasl32(s4 x, s4 count) { return x << (count & 0x1f); } 73 s8 iasl64(s8 x, s4 count) { return x << (count & 0x3f); } 75 s4 iasr32(s4 x, s4 count) { return x >> (count & 0x1f); } 76 s8 iasr64(s8 x, s4 count) { return x >> (count & 0x3f); } 78 s4 ilsr32(s4 x, s4 count) { return ((u4)x) >> (count & 0x1f); } // unsigned 79 s8 ilsr64(s8 x, s4 count) { return ((u8)x) >> (count & 0x3f); } // unsigned
|
/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/rop/ |
D | ByteCatchList.java | 38 public ByteCatchList(int count) { in ByteCatchList() argument 39 super(count); in ByteCatchList() 138 private static boolean typeNotFound(Item item, Item[] arr, int count) { in typeNotFound() argument 141 for (int i = 0; i < count; i++) { in typeNotFound()
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | ByteCatchList.java | 38 public ByteCatchList(int count) { in ByteCatchList() argument 39 super(count); in ByteCatchList() 138 private static boolean typeNotFound(Item item, Item[] arr, int count) { in typeNotFound() argument 141 for (int i = 0; i < count; i++) { in typeNotFound()
|
/dalvik/dx/src/com/android/dx/util/ |
D | Bits.java | 133 int count = 0; in bitCount() local 136 count += Integer.bitCount(bits[i]); in bitCount() 139 return count; in bitCount()
|
/dalvik/dx/junit-tests/com/android/dx/merge/ |
D | DexMergerTest.java | 86 int count; in readEntireStream() local 87 while ((count = inputStream.read(buffer)) != -1) { in readEntireStream() 88 bytesOut.write(buffer, 0, count); in readEntireStream()
|