Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 59) sorted by relevance

123

/dalvik/dx/src/com/android/dex/
DLeb128.java41 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 …]
DDex.java134 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/
DLeb128Utils.java41 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()
DByteArrayAnnotatedOutput.java229 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()
DBits.java133 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/
DDexData.java143 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/
DTryCatchFinally.java6 int count = 0; in method() local
15 count++; in method()
19 count++; in method()
22 if (count != 2) { in method()
/dalvik/tools/hprof-conv/
DHprofConv.c199 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/
Dopcode-gen.awk247 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/
DMemberIdsSection.java61 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()
DMapItem.java83 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()
DStatistics.java115 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/
DMapItem.java84 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()
DStatistics.java116 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/
DDalvInsnList.java196 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/
DStdAttributeFactory.java420 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 …]
DAnnotationParser.java174 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/
DForm3rc.java159 int count; in writeTo() local
163 count = 0; in writeTo()
167 count = lastReg - firstReg; in writeTo()
171 opcodeUnit(insn, count), in writeTo()
DForm4rcc.java159 int count; in writeTo() local
163 count = 0; in writeTo()
167 count = lastReg - firstReg; in writeTo()
171 opcodeUnit(insn, count), in writeTo()
/dalvik/docs/
Dporting-proto.c.txt72 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/
DMain.java31 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/
DByteCatchList.java38 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/
DByteCatchList.java38 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/
DBits.java133 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/
DDexMergerTest.java86 int count; in readEntireStream() local
87 while ((count = inputStream.read(buffer)) != -1) { in readEntireStream()
88 bytesOut.write(buffer, 0, count); in readEntireStream()

123