Home
last modified time | relevance | path

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

123

/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/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/libdex/
DDexDataMap.cpp51 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()
DSysUtil.cpp316 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg) in sysWriteFully() argument
318 while (count != 0) { in sysWriteFully()
319 ssize_t actual = TEMP_FAILURE_RETRY(write(fd, buf, count)); in sysWriteFully()
324 } else if (actual != (ssize_t) count) { in sysWriteFully()
326 logMsg, (int) actual, count); in sysWriteFully()
329 count -= actual; in sysWriteFully()
336 int sysCopyFileToFile(int outFd, int inFd, size_t count) in sysCopyFileToFile() argument
341 while (count != 0) { in sysCopyFileToFile()
342 size_t getSize = (count > kBufSize) ? kBufSize : count; in sysCopyFileToFile()
354 count -= getSize; in sysCopyFileToFile()
DDexCatch.h68 s4 count = readSignedLeb128(&pEncodedData); in dexCatchIteratorInitToPointer() local
70 if (count <= 0) { in dexCatchIteratorInitToPointer()
72 count = -count; in dexCatchIteratorInitToPointer()
78 pIterator->countRemaining = count; in dexCatchIteratorInitToPointer()
DLeb128.h154 int count = 0; in unsignedLeb128Size() local
158 count++; in unsignedLeb128Size()
161 return count; in unsignedLeb128Size()
DSysUtil.h101 int sysWriteFully(int fd, const void* buf, size_t count, const char* logMsg);
107 int sysCopyFileToFile(int outFd, int inFd, size_t count);
DDexSwapVerify.cpp372 u4 count; in swapMap() local
380 count = pMap->size; in swapMap()
382 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapMap()
384 while (count--) { in swapMap()
1042 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations() argument
1048 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapFieldAnnotations()
1050 while (count--) { in swapFieldAnnotations()
1072 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations() argument
1078 CHECK_LIST_SIZE(item, count, sizeOfItem); in swapMethodAnnotations()
1080 while (count--) { in swapMethodAnnotations()
[all …]
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DDexData.java138 int count = mHeaderItem.stringIdsSize; in loadStrings() local
139 int stringOffsets[] = new int[count]; in loadStrings()
144 for (int i = 0; i < count; i++) { in loadStrings()
148 mStrings = new String[count]; in loadStrings()
151 for (int i = 0; i < count; i++) { in loadStrings()
162 int count = mHeaderItem.typeIdsSize; in loadTypeIds() local
163 mTypeIds = new TypeIdItem[count]; in loadTypeIds()
167 for (int i = 0; i < count; i++) { in loadTypeIds()
180 int count = mHeaderItem.protoIdsSize; in loadProtoIds() local
181 mProtoIds = new ProtoIdItem[count]; in loadProtoIds()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DMemberIdsSection.java64 AtomicInteger count = membersByPackage.get(packageName); in getTooManyMembersMessage() local
65 if (count == null) { in getTooManyMembersMessage()
66 count = new AtomicInteger(); in getTooManyMembersMessage()
67 membersByPackage.put(packageName, count); in getTooManyMembersMessage()
69 count.incrementAndGet(); in getTooManyMembersMessage()
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()
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()
/dalvik/tools/hprof-conv/
DHprofConv.c194 static int ebAddData(ExpandBuf* pBuf, const void* data, size_t count) in ebAddData() argument
196 ebEnsureCapacity(pBuf, count); in ebAddData()
197 memcpy(pBuf->storage + pBuf->curLen, data, count); in ebAddData()
198 pBuf->curLen += count; in ebAddData()
230 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument
234 assert(count > 0); in ebReadData()
236 ebEnsureCapacity(pBuf, count); in ebReadData()
237 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData()
238 if (actual != count) { in ebReadData()
242 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/dexgen/src/com/android/dexgen/dex/file/
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()
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()
/dalvik/dx/src/com/android/dx/cf/direct/
DStdAttributeFactory.java384 int count = bytes.getUnsignedShort(offset); // number_of_exceptions in exceptions() local
388 "number_of_exceptions: " + Hex.u2(count)); in exceptions()
394 if (length != (count * 2)) { in exceptions()
395 throwBadLength((count * 2) + 2); in exceptions()
398 TypeList list = cf.makeTypeList(offset, count); in exceptions()
413 int count = bytes.getUnsignedShort(offset); // number_of_classes in innerClasses() local
417 "number_of_classes: " + Hex.u2(count)); in innerClasses()
423 if (length != (count * 8)) { in innerClasses()
424 throwBadLength((count * 8) + 2); in innerClasses()
427 InnerClassList list = new InnerClassList(count); in innerClasses()
[all …]
/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/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()
/dalvik/dx/src/com/android/dx/cf/attrib/
DInnerClassList.java33 public InnerClassList(int count) { in InnerClassList() argument
34 super(count); in InnerClassList()
/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/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()

123