Lines Matching refs:count
179 int count = mEntries.size(); in discardEntries() local
181 while (--count >= 0) in discardEntries()
182 delete mEntries[count]; in discardEntries()
790 size_t count; in copyFpToFp() local
795 count = fread(tmpBuf, 1, sizeof(tmpBuf), srcFp); in copyFpToFp()
798 ALOGW("fread %zu bytes failed, %s", count, strerror(errno)); in copyFpToFp()
801 if (count == 0) in copyFpToFp()
804 *pCRC32 = crc32(*pCRC32, tmpBuf, count); in copyFpToFp()
806 if (fwrite(tmpBuf, 1, count, dstFp) != count) { in copyFpToFp()
807 ALOGW("fwrite %zu bytes failed, %s", count, strerror(errno)); in copyFpToFp()
847 size_t count; in copyPartialFpToFp() local
859 count = fread(tmpBuf, 1, readSize, srcFp); in copyPartialFpToFp()
860 if (count != readSize) { // error or unexpected EOF in copyPartialFpToFp()
870 *pCRC32 = crc32(*pCRC32, tmpBuf, count); in copyPartialFpToFp()
872 if (fwrite(tmpBuf, 1, count, dstFp) != count) { in copyPartialFpToFp()
873 ALOGW("fwrite %zu bytes failed, %s", count, strerror(errno)); in copyPartialFpToFp()
988 int i, count; in flush() local
1004 count = mEntries.size(); in flush()
1005 for (i = 0; i < count; i++) { in flush()
1040 int i, count; in crunchArchive() local
1058 count = mEntries.size(); in crunchArchive()
1060 for (i = 0; i < count; i++) { in crunchArchive()
1073 for (int ii = i+1; nextOffset == 0 && ii < count; ii++) in crunchArchive()
1099 count--; in crunchArchive()
1128 assert(mEOCD.mNumEntries == count); in crunchArchive()