Home
last modified time | relevance | path

Searched refs:getSize (Results 1 – 25 of 360) sorted by relevance

12345678910>>...15

/frameworks/base/libs/hwui/
DCaches.cpp170 textureCache.getSize(), textureCache.getMaxSize()); in dumpMemoryUsage()
172 layerCache.getSize(), layerCache.getMaxSize(), layerCache.getCount()); in dumpMemoryUsage()
189 renderBufferCache.getSize(), renderBufferCache.getMaxSize()); in dumpMemoryUsage()
191 gradientCache.getSize(), gradientCache.getMaxSize()); in dumpMemoryUsage()
193 pathCache.getSize(), pathCache.getMaxSize()); in dumpMemoryUsage()
195 tessellationCache.getSize(), tessellationCache.getMaxSize()); in dumpMemoryUsage()
196 log.appendFormat(" TextDropShadowCache %8d / %8d\n", dropShadowCache.getSize(), in dumpMemoryUsage()
199 patchCache.getSize(), patchCache.getMaxSize()); in dumpMemoryUsage()
205 fboCache.getSize(), fboCache.getMaxSize()); in dumpMemoryUsage()
207 total += textureCache.getSize(); in dumpMemoryUsage()
[all …]
DRenderBufferCache.cpp55 uint32_t RenderBufferCache::getSize() { in getSize() function in android::uirenderer::RenderBufferCache
85 mSize -= buffer->getSize(); in deleteBuffer()
108 mSize -= buffer->getSize(); in get()
128 const uint32_t size = buffer->getSize(); in put()
DGammaFontRenderer.h59 uint32_t getSize() const { in getSize() function
60 return mRenderer ? mRenderer->getSize() : 0; in getSize()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DNativeFrame.java38 int capacity = format.getSize(); in NativeFrame()
111 if (ints.length * nativeIntSize() > getFormat().getSize()) { in setInts()
114 (getFormat().getSize() / nativeIntSize()) + " integers)."); in setInts()
122 return getNativeInts(getFormat().getSize()); in getInts()
128 if (floats.length * nativeFloatSize() > getFormat().getSize()) { in setFloats()
131 (getFormat().getSize() / nativeFloatSize()) + " floats)."); in setFloats()
139 return getNativeFloats(getFormat().getSize()); in getFloats()
152 } else if (getFormat().getSize() != length) { in setData()
154 "Frame size is " + getFormat().getSize() + " bytes, but " + in setData()
163 byte[] data = getNativeData(getFormat().getSize()); in getData()
[all …]
DVertexFrame.java36 if (getFormat().getSize() <= 0) { in VertexFrame()
39 if (!nativeAllocate(getFormat().getSize())) { in VertexFrame()
91 if (getFormat().getSize() != bytes.length) { in setData()
DGLFrame.java87 } else if (getFormat().getSize() < 0) { in init()
211 if (getFormat().getSize() != bytes.length) { in setData()
258 if (getFormat().getSize() < frame.getFormat().getSize()) { in setDataFromFrame()
260 "Attempting to assign frame of size " + frame.getFormat().getSize() + " to " + in setDataFromFrame()
261 "smaller GL frame of size " + getFormat().getSize() + "!"); in setDataFromFrame()
DCachedFrameManager.java101 int frameSize = frame.getFormat().getSize(); in storeFrame()
125 mStorageSize -= frame.getFormat().getSize(); in dropOldestFrame()
146 mStorageSize -= format.getSize(); in findAvailableFrame()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerWrapContentWithAspectRatioTest.java150 int parentDim = getSize((View) recyclerView.getParent(), testOrientation); in wrapContentAffectsOtherOrientation()
153 assertThat("first child test size", getSize(itemView1, testOrientation), in wrapContentAffectsOtherOrientation()
155 assertThat("first child dependant size", getSize(itemView1, mConfig.mOrientation), in wrapContentAffectsOtherOrientation()
159 assertThat("second child test size", getSize(itemView2, testOrientation), in wrapContentAffectsOtherOrientation()
161 assertThat("second child dependant size", getSize(itemView2, mConfig.mOrientation), in wrapContentAffectsOtherOrientation()
165 assertThat("third child test size", getSize(itemView3, testOrientation), in wrapContentAffectsOtherOrientation()
167 assertThat("third child dependant size", getSize(itemView3, mConfig.mOrientation), in wrapContentAffectsOtherOrientation()
201 final int totalScrollSize = getSize(itemView1, mConfig.mOrientation) in wrapContentAffectsOtherOrientation()
202 + getSize(itemView2, mConfig.mOrientation) in wrapContentAffectsOtherOrientation()
203 + getSize(itemView3, mConfig.mOrientation); in wrapContentAffectsOtherOrientation()
[all …]
DGridLayoutManagerWrapContentWithAspectRatioTest.java136 final int parentSize = getSize((View) mRecyclerView.getParent(), mTestOrientation); in testChildWithMultipleSpans()
180 assertThat(getSize(child0, mTestOrientation), is(15)); in testChildWithMultipleSpans()
183 assertThat(getSize(child1, mTestOrientation), is(30)); in testChildWithMultipleSpans()
196 assertThat(getSize(mRecyclerView, mTestOrientation), is(45)); in testChildWithMultipleSpans()
197 assertThat(getSize(mRecyclerView, 1 - mTestOrientation), is(Math.max(10, mBehavior1Size))); in testChildWithMultipleSpans()
215 final int parentSize = getSize((View) mRecyclerView.getParent(), mTestOrientation); in testChildWithMatchParentInOtherDirection()
258 assertThat(getSize(child0, mTestOrientation), is(15)); in testChildWithMatchParentInOtherDirection()
261 assertThat(getSize(child1, mTestOrientation), is(15)); in testChildWithMatchParentInOtherDirection()
274 assertThat(getSize(mRecyclerView, mTestOrientation), is(45)); in testChildWithMatchParentInOtherDirection()
275 assertThat(getSize(mRecyclerView, 1 - mTestOrientation), is(Math.max(10, mBehavior1Size))); in testChildWithMatchParentInOtherDirection()
[all …]
/frameworks/base/tools/aapt/
DZipFile.cpp794 size_t getSize; in compressFpToFp() local
801 getSize = size > kBufSize ? kBufSize : size; in compressFpToFp()
802 memcpy(inBuf, data, getSize); in compressFpToFp()
803 data = ((const char*)data) + getSize; in compressFpToFp()
804 size -= getSize; in compressFpToFp()
806 getSize = fread(inBuf, 1, kBufSize, srcFp); in compressFpToFp()
812 if (getSize < kBufSize) { in compressFpToFp()
814 (int)getSize); in compressFpToFp()
818 crc = crc32(crc, inBuf, getSize); in compressFpToFp()
821 zstream.avail_in = getSize; in compressFpToFp()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DGradientCacheTests.cpp36 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize()); in RENDERTHREAD_TEST()
37 ASSERT_TRUE(cache.getSize()); in RENDERTHREAD_TEST()
39 ASSERT_EQ(cache.getSize(), 0u); in RENDERTHREAD_TEST()
DTextDropShadowCacheTests.cpp51 ASSERT_EQ((uint32_t) texture->objectSize(), cache.getSize()); in RENDERTHREAD_TEST()
52 ASSERT_TRUE(cache.getSize()); in RENDERTHREAD_TEST()
54 ASSERT_EQ(cache.getSize(), 0u); in RENDERTHREAD_TEST()
DOffscreenBufferPoolTests.cpp63 EXPECT_EQ(0u, pool.getSize()) << "pool must be created empty"; in RENDERTHREAD_TEST()
78 ASSERT_EQ(layer->getSizeInBytes(), pool.getSize()); in RENDERTHREAD_TEST()
82 ASSERT_EQ(0u, pool.getSize()) << "pool should have been emptied by removing only layer"; in RENDERTHREAD_TEST()
87 EXPECT_EQ(0u, pool.getSize()); in RENDERTHREAD_TEST()
121 EXPECT_EQ(layer->getSizeInBytes(), pool.getSize()); in RENDERTHREAD_TEST()
/frameworks/base/libs/androidfw/
DZipUtils.cpp100 unsigned long getSize; in inflateToBuffer() local
104 getSize = (compRemaining > kReadBufSize) ? in inflateToBuffer()
107 getSize, compRemaining); in inflateToBuffer()
110 const unsigned long nextSize = reader.read(&nextBuffer, getSize); in inflateToBuffer()
112 if (nextSize < getSize || nextBuffer == NULL) { in inflateToBuffer()
113 ALOGD("inflate read failed (%ld vs %ld)\n", nextSize, getSize); in inflateToBuffer()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DSingleRow.java118 edge = mProvider.getEdge(index - 1) - mProvider.getSize(index - 1) - mMargin; in appendVisibleItems()
120 edge = mProvider.getEdge(index - 1) + mProvider.getSize(index - 1) + mMargin; in appendVisibleItems()
148 return mReversedFlow ? mProvider.getEdge(indexLimit) - mProvider.getSize(indexLimit) in findRowMin()
159 : mProvider.getEdge(indexLimit) + mProvider.getSize(indexLimit); in findRowMax()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameManager.java127 public int getSize() { in getSize() method in FrameManager.BackingCache
149 public int getSize() { in getSize() method in FrameManager.BackingCacheNone
182 mSize -= backing.getSize(); in fetchBacking()
193 if (reserve(backing.getSize())) { in cacheBacking()
225 mSize -= dropped.getSize(); in reserve()
303 return mCache.getSize(); in getCacheSize()
DBackingStore.java357 public abstract int getSize(); in getSize() method in BackingStore.Backing
476 public int getSize() { in getSize() method in BackingStore.ObjectBacking
565 public int getSize() { in getSize() method in BackingStore.BitmapBacking
627 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncToAllocationBacking()
672 public int getSize() { in getSize() method in BackingStore.TextureBacking
753 float[] floats = new float[getSize() / 4]; in syncToAllocationBacking()
789 public int getSize() { in getSize() method in BackingStore.ByteBufferBacking
846 ByteBuffer pixels = ByteBuffer.allocateDirect(getSize()); in syncTo()
862 bytes = new byte[getSize()]; in syncTo()
902 public int getSize() { in getSize() method in BackingStore.AllocationBacking
/frameworks/av/media/libstagefright/
DCallbackDataSource.cpp88 status_t CallbackDataSource::getSize(off64_t *size) { in getSize() function in android::CallbackDataSource
89 status_t err = mIDataSource->getSize(size); in getSize()
178 status_t TinyCacheSource::getSize(off64_t *size) { in getSize() function in android::TinyCacheSource
179 return mSource->getSize(size); in getSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java97 private float getSize(long now) { in getSize() method in DeadZone
134 int size = (int) getSize(event.getEventTime()); in onTouchEvent()
164 Slog.v(TAG, "poked! size=" + getSize(mLastPokeTime));
183 final int size = (int) getSize(SystemClock.uptimeMillis());
/frameworks/base/core/java/android/util/jar/
DStrictJarFile.java187 return new JarFileInputStream(is, ze.getSize(), entry); in getInputStream()
206 ze.getDataOffset() + ze.getSize()); in getZipInputStream()
211 int bufSize = Math.max(1024, (int) Math.min(ze.getSize(), 65535L)); in getZipInputStream()
365 if (entry.getSize() != bytesRead) { in read()
367 + entry.getSize()); in read()
382 return super.available() == 0 ? 0 : (int) (entry.getSize() - bytesRead); in available()
/frameworks/av/media/img_utils/src/
DTiffIfd.cpp120 valueOffset += mEntries[i]->getSize(); in writeData()
124 uint32_t footer = (mNextIfd != NULL) ? offset + getSize() : 0; in writeData()
136 if (mEntries[i]->getSize() > OFFSET_SIZE) { in writeData()
141 size_t actual = mEntries[i]->getSize(); in writeData()
148 assert(out->getCurrentOffset() == offset + getSize()); in writeData()
153 size_t TiffIfd::getSize() const { in getSize() function in android::img_utils::TiffIfd
158 total += mEntries[i]->getSize(); in getSize()
/frameworks/base/core/java/android/os/health/
DHealthStatsWriter.java66 final int timerCount = constants.getSize(HealthKeys.TYPE_TIMER); in HealthStatsWriter()
72 final int measurementCount = constants.getSize(HealthKeys.TYPE_MEASUREMENT); in HealthStatsWriter()
77 final int statsCount = constants.getSize(HealthKeys.TYPE_STATS); in HealthStatsWriter()
81 final int timersCount = constants.getSize(HealthKeys.TYPE_TIMERS); in HealthStatsWriter()
85 final int measurementsCount = constants.getSize(HealthKeys.TYPE_MEASUREMENTS); in HealthStatsWriter()
/frameworks/base/core/java/android/hardware/camera2/params/
DStreamConfigurationMap.java146 configurationDuration.getWidth() == config.getSize().getWidth() && in StreamConfigurationMap()
147 configurationDuration.getHeight() == config.getSize().getHeight()) { in StreamConfigurationMap()
180 Size size = config.getSize(); in StreamConfigurationMap()
423 if (config.getSize().equals(surfaceSize)) { in isOutputSupportedFor()
426 … (config.getSize().getWidth() <= LegacyCameraDevice.MAX_DIMEN_FOR_ROUNDING)) { in isOutputSupportedFor()
569 if (size.equals(config.getSize())) { in getHighSpeedVideoFpsRangesFor()
650 sizes[i++] = config.getSize(); in getHighSpeedVideoSizesFor()
1308 d.getWidth() == config.getSize().getWidth() && in getInternalFormatSizes()
1309 d.getHeight() == config.getSize().getHeight()) { in getInternalFormatSizes()
1319 sizes[sizeIndex++] = config.getSize(); in getInternalFormatSizes()
[all …]
/frameworks/av/media/img_utils/include/img_utils/
DTiffEntryImpl.h48 size_t getSize() const;
96 size_t TiffEntryImpl<T>::getSize() const { in getSize() function
198 total += mData[i]->getSize(); in getActualSize()
208 offset += mData[i]->getSize(); in writeData()
/frameworks/multidex/library/test/src/android/support/multidex/
DZipUtilTest.java104 Assert.assertEquals(refEntry.getSize(), checkEntry.getSize()); in testCrcRange()
118 if (refEntry.getSize() > 0) { in testCrcValue()
148 if (refEntry.getSize() > 0) { in testInvalidCrcValue()

12345678910>>...15