Searched defs:count (Results 201 - 225 of 430) sorted by last modified time

1234567891011>>

/frameworks/base/libs/androidfw/
H A DAsset.cpp436 ssize_t _FileAsset::read(void* buf, size_t count) argument
454 /* adjust count if we're near EOF */
456 if (count > maxLen)
457 count = maxLen;
459 if (!count)
465 memcpy(buf, (char*)mMap->getDataPtr() + mOffset, count);
466 actual = count;
470 memcpy(buf, (char*)mBuf + mOffset, count);
471 actual = count;
488 actual = fread(buf, 1, count, mF
760 read(void* buf, size_t count) argument
[all...]
H A DAssetManager.cpp155 int count = android_atomic_inc(&gCount)+1; local
156 //ALOGI("Creating AssetManager %p #%d\n", this, count);
162 int count = android_atomic_dec(&gCount); local
163 //ALOGI("Destroying AssetManager in %p #%d\n", this, count);
1318 int i, start, count; local
1344 count = mCache.size();
1351 for (i = start+1; i < count; i++) {
1386 int i, count, exclExtLen; local
1388 count = pContents->size();
1390 for (i = 0; i < count;
[all...]
H A DResourceTypes.cpp2276 // For compatibility, we count KEYSHIDDEN_NO as being
2432 // For compatibility, we count a request for KEYSHIDDEN_NO as also
2871 Type(const Header* _header, const Package* _package, size_t count) argument
2872 : header(_header), package(_package), entryCount(count),
3060 TABLE_NOISY(ALOGV("Applying style 0x%08x to theme %p, count=%d", resID, this, N));
3710 int count=0; local
3712 && value->data != 0 && count < 20) {
3732 count++;
3813 ALOGW("Entry identifier 0x%x is larger than entry count 0x%x",
3867 const uint32_t count local
[all...]
H A DStreamingZipInflater.cpp134 ssize_t StreamingZipInflater::read(void* outBuf, size_t count) { argument
137 size_t toRead = min_of(count, size_t(mOutTotalSize - mOutCurPosition));
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp146 ssize_t count = table.lockBag(base::R::array::integerArray1, &entry); local
147 ASSERT_GE(count, 0);
159 count = table.lockBag(base::R::array::integerArray1, &entry);
160 ASSERT_GE(count, 0);
/frameworks/base/libs/common_time/
H A Dclock_recovery.cpp113 uint32_t count) {
115 for (uint32_t i = 1; i < count; ++i)
112 findMinRTTNdx(DisciplineDataPoint* data, uint32_t count) argument
H A Dutils.cpp96 ++last->count;
100 mRingBuffer[mWr].count = 1;
125 size_t count = mIsFull ? mSize : mWr; local
132 for (size_t i = 0; i < count; ++i) {
138 if (1 != mRingBuffer[ndx].count) {
143 mRingBuffer[ndx].count,
H A Dutils.h65 uint32_t count; member in class:android::LogRing::Entry
/frameworks/base/libs/hwui/
H A DAssetAtlas.cpp31 void AssetAtlas::init(sp<GraphicBuffer> buffer, int64_t* map, int count) { argument
45 createEntries(caches, map, count);
117 void AssetAtlas::createEntries(Caches& caches, int64_t* map, int count) { argument
121 for (int i = 0; i < count; ) {
H A DDeferredDisplayList.cpp127 if (CC_LIKELY(!mAllOpsOpaque || !mBounds.contains(bounds) || count() == 1)) return false;
139 inline int count() const { return mOps.size(); } function in class:android::uirenderer::DrawBatch
320 // use invalid save count because it won't be used at flush time - RestoreToCountOp is the
339 DEFER_LOGD("batch %p restoring to count %d", this, mRestoreCount);
352 * The count used here represents the flush() time saveCount. This is as opposed to the
354 * (saveCount + mCount) respectively). Since the count is different from the original
449 DEFER_LOGD("%p adding saveLayerOp %p, flags %x, new count %d",
457 * Takes save op and it's return value - the new save count - and stores it into the stream as a
462 DEFER_LOGD("%p adding saveOp %p, flags %x, new count %d", this, op, saveFlags, newSaveCount);
466 DEFER_LOGD(" adding save barrier with new save count
[all...]
H A DDisplayListOp.h250 DrawBoundedOp(const float* points, int count, const SkPaint* paint) argument
252 for (int i = 2; i < count; i += 2) {
312 RestoreToCountOp(int count) argument
313 : mCount(count) {}
327 OP_LOG("Restore to count %d", mCount);
874 // worth performing a first iteration to count the exact number
924 const size_t count = opMesh->quads.size(); local
925 for (size_t i = 0; i < count; i++) {
1050 DrawRectsOp(const float* rects, int count, const SkPaint* paint) argument
1051 : DrawBoundedOp(rects, count, pain
1255 DrawLinesOp(const float* points, int count, const SkPaint* paint) argument
1285 DrawPointsOp(const float* points, int count, const SkPaint* paint) argument
1301 DrawSomeTextOp(const char* text, int bytesCount, int count, const SkPaint* paint) argument
1331 DrawTextOnPathOp(const char* text, int bytesCount, int count, const SkPath* path, float hOffset, float vOffset, const SkPaint* paint) argument
1353 DrawPosTextOp(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument
1371 DrawTextOp(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument
[all...]
H A DDisplayListRenderer.cpp342 status_t DisplayListRenderer::drawLines(const float* points, int count, const SkPaint* paint) { argument
343 points = refBuffer<float>(points, count);
346 addDrawOp(new (alloc()) DrawLinesOp(points, count, paint));
350 status_t DisplayListRenderer::drawPoints(const float* points, int count, const SkPaint* paint) { argument
351 points = refBuffer<float>(points, count);
354 addDrawOp(new (alloc()) DrawPointsOp(points, count, paint));
358 status_t DisplayListRenderer::drawTextOnPath(const char* text, int bytesCount, int count, argument
360 if (!text || count <= 0) return DrawGlInfo::kStatusDone;
366 DrawOp* op = new (alloc()) DrawTextOnPathOp(text, bytesCount, count, path,
372 status_t DisplayListRenderer::drawPosText(const char* text, int bytesCount, int count, argument
395 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
434 drawRects(const float* rects, int count, const SkPaint* paint) argument
[all...]
H A DDisplayListRenderer.h125 virtual status_t drawRects(const float* rects, int count, const SkPaint* paint);
140 virtual status_t drawLines(const float* points, int count, const SkPaint* paint);
141 virtual status_t drawPoints(const float* points, int count, const SkPaint* paint);
144 virtual status_t drawText(const char* text, int bytesCount, int count, float x, float y,
147 virtual status_t drawTextOnPath(const char* text, int bytesCount, int count, const SkPath* path,
149 virtual status_t drawPosText(const char* text, int bytesCount, int count,
188 inline const T* refBuffer(const T* srcBuffer, int32_t count) { argument
191 T* dstBuffer = (T*) mDisplayListData->allocator.alloc(count * sizeof(T));
192 memcpy(dstBuffer, srcBuffer, count * sizeof(T));
H A DGammaFontRenderer.cpp208 int count = 0; local
214 count++;
222 if (count <= 1 || min < 0) return;
H A DGradientCache.cpp43 uint32_t hash = JenkinsHashMix(0, count);
44 for (uint32_t i = 0; i < count; i++) {
52 int deltaInt = int(lhs.count) - int(rhs.count);
55 deltaInt = memcmp(lhs.colors, rhs.colors, lhs.count * sizeof(uint32_t));
58 return memcmp(lhs.positions, rhs.positions, lhs.count * sizeof(float));
132 Texture* GradientCache::get(uint32_t* colors, float* positions, int count) { argument
133 GradientCacheEntry gradient(colors, positions, count);
137 texture = addLinearGradient(gradient, colors, positions, count);
147 void GradientCache::getGradientInfo(const uint32_t* colors, const int count, argument
170 addLinearGradient(GradientCacheEntry& gradient, uint32_t* colors, float* positions, int count) argument
[all...]
H A DGradientCache.h35 count = 0;
40 GradientCacheEntry(uint32_t* colors, float* positions, uint32_t count) { argument
41 copy(colors, positions, count);
45 copy(entry.colors, entry.positions, entry.count);
58 copy(entry.colors, entry.positions, entry.count);
78 uint32_t count; member in struct:android::uirenderer::GradientCacheEntry
81 void copy(uint32_t* colors, float* positions, uint32_t count) { argument
82 this->count = count;
83 this->colors = new uint32_t[count];
[all...]
H A DLayerCache.cpp92 size_t count = mCache.size(); local
93 for (size_t i = 0; i < count; i++) {
H A DLayerRenderer.cpp148 size_t count; local
149 const android::Rect* rects = safeRegion.getArray(&count);
151 GLsizei elementCount = count * 6;
159 mLayer->mesh = new TextureVertex[count * 4];
169 for (size_t i = 0; i < count; i++) {
H A DOpenGLRenderer.cpp491 int count = mLayerUpdates.size(); local
492 if (count > 0) {
500 for (int i = 0; i < count; i++) {
514 int count = mLayerUpdates.size(); local
515 if (count > 0) {
519 for (int i = 0; i < count; i++) {
606 const int count = saveSnapshot(flags); local
612 return count;
663 const int count = saveSnapshot(flags); local
683 return count;
1048 shadeSpan(int x, int y, SkPMColor[], int count) argument
1108 size_t count; local
1192 size_t count; local
1276 const size_t count = mLayers.size(); local
2044 const uint32_t count = meshWidth * meshHeight * 6; local
2271 const size_t count = mesh->quads.size(); local
2420 drawLines(const float* points, int count, const SkPaint* paint) argument
2437 drawPoints(const float* points, int count, const SkPaint* paint) argument
2619 drawTextShadow(const SkPaint* paint, const char* text, int bytesCount, int count, const float* positions, FontRenderer& fontRenderer, int alpha, float x, float y) argument
2670 drawPosText(const char* text, int bytesCount, int count, const float* positions, const SkPaint* paint) argument
2750 drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument
2837 drawTextOnPath(const char* text, int bytesCount, int count, const SkPath* path, float hOffset, float vOffset, const SkPaint* paint) argument
3124 drawRects(const float* rects, int count, const SkPaint* paint) argument
3172 drawColorRects(const float* rects, int count, const SkPaint* paint, bool ignoreTransform, bool dirty, bool clip) argument
[all...]
H A DPatchCache.cpp124 size_t count = mGarbage.size(); local
125 for (size_t i = 0; i < count; i++) {
141 size_t count = mGarbage.size(); local
142 for (size_t i = 0; i < count; i++) {
H A DPathCache.cpp389 size_t count = mGarbage.size(); local
390 for (size_t i = 0; i < count; i++) {
H A DPathTessellator.cpp794 const float* points, int count, Rect& bounds) {
797 int numPoints = count / 2;
801 for (int i = 0; i < count; i += 2) {
808 void PathTessellator::tessellatePoints(const float* points, int count, const SkPaint* paint, argument
834 int numPoints = count / 2;
838 instanceVertices<Vertex>(tempBuffer, vertexBuffer, points, count, bounds);
842 instanceVertices<AlphaVertex>(tempBuffer, vertexBuffer, points, count, bounds);
850 void PathTessellator::tessellateLines(const float* points, int count, const SkPaint* paint, argument
856 int numLines = count / 4;
873 for (int i = 0; i < count;
793 instanceVertices(VertexBuffer& srcBuffer, VertexBuffer& dstBuffer, const float* points, int count, Rect& bounds) argument
[all...]
H A DProgramCache.cpp421 size_t count = mCache.size(); local
422 for (size_t i = 0; i < count; i++) {
H A DRenderBufferCache.cpp103 size_t count = mCache.size(); local
104 for (size_t i = 0; i < count; i++) {
H A DTextureCache.cpp244 size_t count = mGarbage.size(); local
245 for (size_t i = 0; i < count; i++) {

Completed in 3843 milliseconds

1234567891011>>