Home
last modified time | relevance | path

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

123456

/dalvik/vm/
DPointerSet.c26 u2 count; member
39 for (i = 0; i < pSet->count; i++) { in verifySorted()
92 pSet->count = 0; in dvmPointerSetClear()
100 return pSet->count; in dvmPointerSetGetCount()
125 if (pSet->count == pSet->alloc) { in dvmPointerSetAddEntry()
142 if (pSet->count == 0) { in dvmPointerSetAddEntry()
166 if (nearby != pSet->count) { in dvmPointerSetAddEntry()
169 (pSet->count - nearby) * sizeof(pSet->list[0])); in dvmPointerSetAddEntry()
174 pSet->count++; in dvmPointerSetAddEntry()
190 if (where != pSet->count-1) { in dvmPointerSetRemoveEntry()
[all …]
DStdioConverter.c45 int count; member
166 stdoutData->count = stderrData->count = 0; in stdioConverterThreadStart()
230 assert(data->count < kMaxLine); in readAndLog()
232 want = kMaxLine - data->count; in readAndLog()
233 actual = read(fd, data->buf + data->count, want); in readAndLog()
241 data->count += actual; in readAndLog()
249 int i = data->count; in readAndLog()
250 for (i = data->count; i > 0; i--, cp++) { in readAndLog()
262 if (start == data->buf && data->count == kMaxLine) { in readAndLog()
274 if (start >= data->buf + data->count) { in readAndLog()
[all …]
DReferenceTable.c214 int count = dvmReferenceTableEntries(pRef); in dvmDumpReferenceTable() local
218 if (count == 0) { in dvmDumpReferenceTable()
222 assert(count > 0); in dvmDumpReferenceTable()
230 int start = count - kLast; in dvmDumpReferenceTable()
234 for (i = start; i < count; i++) { in dvmDumpReferenceTable()
254 Object** tableCopy = (Object**)malloc(sizeof(Object*) * count); in dvmDumpReferenceTable()
255 memcpy(tableCopy, pRef->table, sizeof(Object*) * count); in dvmDumpReferenceTable()
256 qsort(tableCopy, count, sizeof(Object*), compareObject); in dvmDumpReferenceTable()
263 LOGW("%s reference table summary (%d entries):\n", descr, count); in dvmDumpReferenceTable()
266 for (i = 1; i < count; i++) { in dvmDumpReferenceTable()
[all …]
DHash.c113 int i, count; in countTombStones() local
115 for (count = i = 0; i < pHashTable->tableSize; i++) { in countTombStones()
117 count++; in countTombStones()
119 return count; in countTombStones()
348 int count = 0; in countProbes() local
373 count++; in countProbes()
378 return count; in countProbes()
402 int count; in dvmHashTableProbeCount() local
404 count = countProbes(pHashTable, (*calcFunc)(data), data, cmpFunc); in dvmHashTableProbeCount()
408 if (count < minProbe) in dvmHashTableProbeCount()
[all …]
DMisc.c74 int i, count; in dvmPrintHexDumpEx() local
86 count = ((int)length > 16-gap) ? 16-gap : (int)length; /* cap length */ in dvmPrintHexDumpEx()
87 assert(count != 0); in dvmPrintHexDumpEx()
88 assert(count+gap <= 16); in dvmPrintHexDumpEx()
96 for (i = gap ; i < count+gap; i++) { in dvmPrintHexDumpEx()
130 length -= count; in dvmPrintHexDumpEx()
131 offset += count; in dvmPrintHexDumpEx()
204 int count; in dvmAllocBitVector() local
211 count = (startBits + 31) >> 5; in dvmAllocBitVector()
213 bv->storageSize = count; in dvmAllocBitVector()
[all …]
DIndirectRefTable.c407 int count = dvmIndirectRefTableEntries(pRef); in dvmDumpIndirectRefTable() local
411 if (count == 0) { in dvmDumpIndirectRefTable()
415 assert(count > 0); in dvmDumpIndirectRefTable()
424 int start = count - kLast; in dvmDumpIndirectRefTable()
428 for (i = start; i < count; i++) { in dvmDumpIndirectRefTable()
449 Object** tableCopy = (Object**)malloc(sizeof(Object*) * count); in dvmDumpIndirectRefTable()
450 memcpy(tableCopy, pRef->table, sizeof(Object*) * count); in dvmDumpIndirectRefTable()
451 qsort(tableCopy, count, sizeof(Object*), compareObject); in dvmDumpIndirectRefTable()
456 for (q = 0; q < count; q++) in dvmDumpIndirectRefTable()
461 while (refs[count-1] == NULL) { in dvmDumpIndirectRefTable()
[all …]
DAllocTracker.c291 int count = dvmPointerSetGetCount(strings); in dumpStringTable() local
294 for (i = 0; i < count; i++) in dumpStringTable()
324 int count = gDvm.allocRecordCount; in populateStringTables() local
330 while (count--) { in populateStringTables()
376 int count = gDvm.allocRecordCount; in generateBaseOutput() local
383 set2BE(&ptr[3], count); in generateBaseOutput()
391 while (count--) { in generateBaseOutput()
445 int count = dvmPointerSetGetCount(strings); in computeStringTableSize() local
449 for (i = 0; i < count; i++) { in computeStringTableSize()
482 int count = dvmPointerSetGetCount(strings); in outputStringTable() local
[all …]
/dalvik/dx/src/com/android/dx/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()
/dalvik/vm/test/
DTestHash.c36 int* count = (int*) arg; in printFunc() local
37 (*count)++; in printFunc()
42 int count = 0; in dumpForeach() local
45 dvmHashForeach(pTab, printFunc, &count); in dumpForeach()
46 if (count != kNumTestEntries) { in dumpForeach()
57 int count = 0; in dumpIterator() local
67 count++; in dumpIterator()
69 if (count != kNumTestEntries) { in dumpIterator()
158 int count = 0; in dvmTestHash() local
163 count++; in dvmTestHash()
[all …]
/dalvik/libdex/
DDexDataMap.c50 map->count = 0; in dexDataMapAlloc()
76 assert(map->count < map->max); in dexDataMapAdd()
78 if ((map->count != 0) && in dexDataMapAdd()
79 (map->offsets[map->count - 1] >= offset)) { in dexDataMapAdd()
81 map->offsets[map->count - 1], offset); in dexDataMapAdd()
85 map->offsets[map->count] = offset; in dexDataMapAdd()
86 map->types[map->count] = type; in dexDataMapAdd()
87 map->count++; in dexDataMapAdd()
99 int max = map->count - 1; in dexDataMapGet()
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()
/dalvik/tests/023-many-interfaces/
Diface-gen.c11 static int createFiles(int count) in createFiles() argument
16 for (i = 0; i < count; i++) { in createFiles()
35 for (i = 0; i < count; i++) { in createFiles()
36 fprintf(fp, " Interface%03d%s\n", i, (i == count-1) ? "" : ","); in createFiles()
39 for (i = 1; i < count; i += 2) { in createFiles()
/dalvik/tools/dexdeps/src/com/android/dexdeps/
DDexData.java130 int count = mHeaderItem.stringIdsSize; in loadStrings() local
131 int stringOffsets[] = new int[count]; in loadStrings()
136 for (int i = 0; i < count; i++) { in loadStrings()
140 mStrings = new String[count]; in loadStrings()
143 for (int i = 0; i < count; i++) { in loadStrings()
154 int count = mHeaderItem.typeIdsSize; in loadTypeIds() local
155 mTypeIds = new TypeIdItem[count]; in loadTypeIds()
159 for (int i = 0; i < count; i++) { in loadTypeIds()
172 int count = mHeaderItem.protoIdsSize; in loadProtoIds() local
173 mProtoIds = new ProtoIdItem[count]; in loadProtoIds()
[all …]
/dalvik/dx/src/junit/textui/
DResultPrinter.java54 protected void printDefects(Enumeration booBoos, int count, String type) { in printDefects() argument
55 if (count == 0) return; in printDefects()
56 if (count == 1) in printDefects()
57 getWriter().println("There was " + count + " " + type + ":"); in printDefects()
59 getWriter().println("There were " + count + " " + type + "s:"); in printDefects()
65 public void printDefect(TestFailure booBoo, int count) { // only public for testing purposes in printDefect() argument
66 printDefectHeader(booBoo, count); in printDefect()
70 protected void printDefectHeader(TestFailure booBoo, int count) { in printDefectHeader() argument
73 getWriter().print(count + ") " + booBoo.failedTest()); in printDefectHeader()
/dalvik/vm/oo/
DAccessCheck.c26 int count = 0; in strcmpCount() local
29 char ch = str1[count]; in strcmpCount()
30 if (ch == '\0' || ch != str2[count]) in strcmpCount()
31 return count; in strcmpCount()
32 count++; in strcmpCount()
/dalvik/tests/050-sync-test/src/
DMain.java105 int i, count; in output() local
107 count = mCount; in output()
116 count++; in output()
117 mCount = count; in output()
126 private static int count = 0; field in SleepyThread
132 setName("thread#" + count); in SleepyThread()
133 count++; in SleepyThread()
/dalvik/tools/hprof-conv/
DHprofConv.c185 static int ebAddData(ExpandBuf* pBuf, const void* data, size_t count) in ebAddData() argument
187 ebEnsureCapacity(pBuf, count); in ebAddData()
188 memcpy(pBuf->storage + pBuf->curLen, data, count); in ebAddData()
189 pBuf->curLen += count; in ebAddData()
221 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument
225 assert(count > 0); in ebReadData()
227 ebEnsureCapacity(pBuf, count); in ebReadData()
228 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData()
229 if (actual != count) { in ebReadData()
233 fprintf(stderr, "ERROR: read %d of %d bytes\n", actual, count); in ebReadData()
[all …]
/dalvik/tests/023-many-interfaces/src/
DManyInterfaces.java288 static void testIface001(Interface001 iface, int count) { in testIface001() argument
289 while (count-- != 0) { in testIface001()
297 static void testIface049(Interface049 iface, int count) { in testIface049() argument
298 while (count-- != 0) { in testIface049()
306 static void testIface099(Interface099 iface, int count) { in testIface099() argument
307 while (count-- != 0) { in testIface099()
315 static void testVirt001(ManyInterfaces obj, int count) { in testVirt001() argument
316 while (count-- != 0) { in testVirt001()
324 static void testVirt049(ManyInterfaces obj, int count) { in testVirt049() argument
325 while (count-- != 0) { in testVirt049()
[all …]
/dalvik/dx/src/com/android/dx/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.java386 int count = bytes.getUnsignedShort(offset); // number_of_exceptions in exceptions() local
390 "number_of_exceptions: " + Hex.u2(count)); in exceptions()
396 if (length != (count * 2)) { in exceptions()
397 throwBadLength((count * 2) + 2); in exceptions()
400 TypeList list = cf.makeTypeList(offset, count); in exceptions()
415 int count = bytes.getUnsignedShort(offset); // number_of_classes in innerClasses() local
419 "number_of_classes: " + Hex.u2(count)); in innerClasses()
425 if (length != (count * 8)) { in innerClasses()
426 throwBadLength((count * 8) + 2); in innerClasses()
429 InnerClassList list = new InnerClassList(count); in innerClasses()
[all …]
/dalvik/vm/hprof/
DHprofStack.c170 int count; in hprofDumpStacks() local
188 count = 0; in hprofDumpStacks()
189 while ((count < STACK_DEPTH) && in hprofDumpStacks()
190 (stackTraceEntry->trace.frameIds[count] != 0)) { in hprofDumpStacks()
191 count++; in hprofDumpStacks()
193 hprofAddU4ToRecord(rec, count); in hprofDumpStacks()
194 for (i = 0; i < count; i++) { in hprofDumpStacks()
/dalvik/vm/reflect/
DReflect.c245 int i, count; in convertSignatureToClassArray() local
251 count = 0; in convertSignatureToClassArray()
254 count++; in convertSignatureToClassArray()
266 LOGVV("REFLECT found %d parameters in '%s'\n", count, *pSignature); in convertSignatureToClassArray()
269 classArray = dvmAllocArray(gDvm.classJavaLangClassArray, count, in convertSignatureToClassArray()
276 for (i = 0; i < count; i++) { in convertSignatureToClassArray()
395 int i, count; in dvmGetDeclaredFields() local
402 count = clazz->sfieldCount + clazz->ifieldCount; in dvmGetDeclaredFields()
404 count = 0; in dvmGetDeclaredFields()
407 count++; in dvmGetDeclaredFields()
[all …]

123456