Home
last modified time | relevance | path

Searched refs:cacheSize (Results 1 – 25 of 47) sorted by relevance

12

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
H A DDiskStatsFileLoggerTest.java102 firstPackage.cacheSize = 20; in testAppsReported()
108 secondPackage.cacheSize = 2; in testAppsReported()
144 app.cacheSize = 20; in testEmulatedExternalStorageCounted()
162 app.cacheSize = 20; in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
169 secondApp.cacheSize = 2; in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers()
204 public long cacheSize; field in DiskStatsFileLoggerTest.AppSizeGrouping
206 public AppSizeGrouping(String packageName, long appSize, long cacheSize) { in AppSizeGrouping() argument
209 this.cacheSize = cacheSize; in AppSizeGrouping()
216 result = 37 * result + (int)(cacheSize ^ (cacheSize >>> 32)); in hashCode()
231 cacheSize == grouping.cacheSize; in equals()
[all …]
/aosp12/frameworks/base/core/java/android/content/pm/
H A DPackageStats.java56 public long cacheSize; field in PackageStats
107 if (cacheSize != 0) { in toString()
109 sb.append(cacheSize); in toString()
151 cacheSize = source.readLong(); in PackageStats()
164 cacheSize = pStats.cacheSize; in PackageStats()
181 dest.writeLong(cacheSize); in writeToParcel()
200 && cacheSize == otherStats.cacheSize in equals()
211 cacheSize, externalCodeSize, externalDataSize, externalCacheSize, externalMediaSize, in hashCode()
/aosp12/frameworks/native/opengl/libs/EGL/
H A DFileBlobCache.cpp92 size_t cacheSize = fileSize - headerSize; in FileBlobCache() local
99 if (crc32c(buf + headerSize, cacheSize) != *crc) { in FileBlobCache()
105 int err = unflatten(buf + headerSize, cacheSize); in FileBlobCache()
121 size_t cacheSize = getFlattenedSize(); in writeToFile() local
147 size_t fileSize = headerSize + cacheSize; in writeToFile()
158 int err = flatten(buf + headerSize, cacheSize); in writeToFile()
171 *crc = crc32c(buf + headerSize, cacheSize); in writeToFile()
/aosp12/frameworks/base/services/core/java/com/android/server/storage/
H A DDiskStatsFileLogger.java130 long cacheSize = stat.cacheSize; in addAppsToJson() local
134 cacheSize += stat.externalCacheSize; in addAppsToJson()
138 cacheSizeSum += cacheSize; in addAppsToJson()
143 cacheSizeList.put(cacheSize); in addAppsToJson()
168 existingStats.cacheSize += stat.cacheSize; in filterOnlyPrimaryUser()
/aosp12/packages/modules/NeuralNetworks/driver/cache/nnCache/
H A DnnCache.cpp164 size_t cacheSize = mBlobCache->getFlattenedSize(); in saveBlobCacheLocked() local
188 size_t fileSize = headerSize + cacheSize; in saveBlobCacheLocked()
198 int err = mBlobCache->flatten(buf + headerSize, cacheSize); in saveBlobCacheLocked()
210 *crc = crc32c(buf + headerSize, cacheSize); in saveBlobCacheLocked()
263 size_t cacheSize = fileSize - headerSize; in loadBlobCacheLocked() local
270 if (crc32c(buf + headerSize, cacheSize) != *crc) { in loadBlobCacheLocked()
276 int err = mBlobCache->unflatten(buf + headerSize, cacheSize); in loadBlobCacheLocked()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStorageSizesController.java84 long cacheSize = (mDataCleared || mCachedCleared) ? 0 : mLastResult.getCacheBytes(); in updateUi() local
85 if (mLastCacheSize != cacheSize) { in updateUi()
86 mLastCacheSize = cacheSize; in updateUi()
87 mCacheSize.setSummary(getSizeStr(context, cacheSize)); in updateUi()
90 long totalSize = codeSize + dataSize + cacheSize; in updateUi()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DAlbumSetDataLoader.java77 public AlbumSetDataLoader(AbstractGalleryActivity activity, MediaSet albumSet, int cacheSize) { in AlbumSetDataLoader() argument
79 mCoverItem = new MediaItem[cacheSize]; in AlbumSetDataLoader()
80 mData = new MediaSet[cacheSize]; in AlbumSetDataLoader()
81 mTotalCount = new int[cacheSize]; in AlbumSetDataLoader()
82 mItemVersion = new long[cacheSize]; in AlbumSetDataLoader()
83 mSetVersion = new long[cacheSize]; in AlbumSetDataLoader()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
H A DClientCompositionRequestCache.h42 explicit ClientCompositionRequestCache(uint32_t cacheSize) : mMaxCacheSize(cacheSize){}; in ClientCompositionRequestCache() argument
/aosp12/packages/apps/Car/Radio/src/com/android/car/radio/platform/
H A DImageMemoryCache.java34 public ImageMemoryCache(@NonNull RadioManagerExt radioManager, int cacheSize) { in ImageMemoryCache() argument
36 mCache = new CacheMap<>(cacheSize); in ImageMemoryCache()
/aosp12/frameworks/base/core/tests/coretests/src/android/view/
H A DBigCache.java41 final int cacheSize = ViewConfiguration.getMaximumDrawingCacheSize(); in onCreate() local
55 final int height = 2 * (cacheSize / 2) / screenWidth; in onCreate()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
H A DClearCachePreference.java46 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh()
47 setEnabled(!mClearingCache && mEntry.cacheSize > 0); in refresh()
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/resources/
H A DComposerResources.cpp124 uint32_t cacheSize) in ComposerHandleCache() argument
125 : mImporter(importer), mHandleType(type), mHandles(cacheSize, nullptr) {} in ComposerHandleCache()
151 bool ComposerHandleCache::initCache(HandleType type, uint32_t cacheSize) { in initCache() argument
158 mHandles.resize(cacheSize, nullptr); in initCache()
223 bool ComposerDisplayResource::initClientTargetCache(uint32_t cacheSize) { in initClientTargetCache() argument
224 return mClientTargetCache.initCache(ComposerHandleCache::HandleType::BUFFER, cacheSize); in initClientTargetCache()
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
H A DComposerClient.h335 size_t cacheSize; in cleanDisplayResources() local
336 Error err = resources->getDisplayClientTargetCacheSize(display, &cacheSize); in cleanDisplayResources()
338 for (int slot = 0; slot < cacheSize; slot++) { in cleanDisplayResources()
360 err = resources->getDisplayOutputBufferCacheSize(display, &cacheSize); in cleanDisplayResources()
362 for (int slot = 0; slot < cacheSize; slot++) { in cleanDisplayResources()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DStorageMeasurement.java53 public long cacheSize; field in StorageMeasurement.MeasurementDetails
87 + " cacheSize: " + cacheSize + " mediaSize: " + mediaSize in toString()
222 details.cacheSize += stats.getCacheBytes(); in measureExactStorage()
/aosp12/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
H A DNsdManagerTest.java567 int cacheSize = mEventCache.size(); in checkCacheSize() local
568 if (cacheSize != size) { in checkCacheSize()
569 Log.d(TAG, "id = " + mWaitId + ": event cache size = " + cacheSize); in checkCacheSize()
570 for (int i = 0; i < cacheSize; i++) { in checkCacheSize()
576 return (cacheSize == size); in checkCacheSize()
/aosp12/hardware/interfaces/graphics/composer/2.1/utils/resources/include/composer-resources/2.1/
H A DComposerResources.h66 ComposerHandleCache(ComposerHandleImporter& importer, HandleType type, uint32_t cacheSize);
76 bool initCache(HandleType type, uint32_t cacheSize);
123 bool initClientTargetCache(uint32_t cacheSize);
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
H A DBitmapCachingAsset.java75 private static int cacheSize = 100 * 1024 * 1024; // 100MiB field in BitmapCachingAsset
76 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
H A DStorageAsyncLoaderTest.java211 private ApplicationInfo addPackage(String packageName, long cacheSize, long codeSize, in addPackage() argument
216 when(storageStats.getDataBytes()).thenReturn(dataSize + cacheSize); in addPackage()
217 when(storageStats.getCacheBytes()).thenReturn(cacheSize); in addPackage()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DStorageApplicationActionButtonsPreferenceController.java224 long cacheSize = data.getCacheBytes(); in onDataLoaded() local
225 long dataSize = data.getDataBytes() - cacheSize; in onDataLoaded()
228 mClearCacheButton.setEnabled(cacheSize > 0 && !mCacheCleared); in onDataLoaded()
H A DStorageAsyncLoader.java229 public void setCacheSize(long cacheSize) { in setCacheSize() argument
230 this.mCacheSize = cacheSize; in setCacheSize()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
H A DDisplay.h57 virtual void createClientCompositionCache(uint32_t cacheSize) = 0;
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
H A DStorageAsyncLoaderTest.java259 private ApplicationInfo createAppInfo(String packageName, long cacheSize, long codeSize, in createAppInfo() argument
263 stats.dataBytes = dataSize + cacheSize; in createAppInfo()
264 stats.cacheBytes = cacheSize; in createAppInfo()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DInstallerTest.java193 checkEquals(msg + " cacheSize", a.cacheSize, b.cacheSize); in checkEquals()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java537 legacy.cacheSize = Math.min(stats.getCacheBytes(), cacheQuota); in requestSize()
563 sum += mAppEntries.get(i).cacheSize; in sumCacheSizes()
738 return ps.codeSize + ps.dataSize - ps.cacheSize; in getTotalInternalSize()
1305 legacy.cacheSize = stats.getCacheBytes(); in handleMessage()
1380 entry.cacheSize != stats.cacheSize ||
1387 entry.cacheSize = stats.cacheSize;
1525 public long cacheSize; field in ApplicationsState.SizeInfo
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DDisplay.cpp155 void Display::createClientCompositionCache(uint32_t cacheSize) { in createClientCompositionCache() argument
156 cacheClientCompositionRequests(cacheSize); in createClientCompositionCache()

12