Home
last modified time | relevance | path

Searched refs:totalSize (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoader.java86 result.totalSize += currentFile.length(); in collectFiles()
107 public long totalSize; field in FetchDownloadsLoader.DownloadsResult
117 long totalSize, in DownloadsResult() argument
121 this.totalSize = totalSize; in DownloadsResult()
/packages/modules/adb/fastdeploy/deploypatchgenerator/
Ddeploy_patch_generator.cpp83 uint64_t totalSize) { in ReportSavings() argument
92 double savingPercent = (totalEqualBytes * 100.0f) / totalSize; in ReportSavings()
95 totalSize, savingPercent); in ReportSavings()
194 uint64_t totalSize = in CreatePatch() local
196 ReportSavings(identicalEntries, totalSize); in CreatePatch()
227 uint64_t totalSize = 0; in BuildIdenticalEntries() local
229 totalSize += localEntry.datasize(); in BuildIdenticalEntries()
254 return totalSize; in BuildIdenticalEntries()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleExtractor.java290 int totalSize = buffer.position(); in mayParseClosedCaption() local
293 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
295 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
325 buffer.position(totalSize); in mayParseClosedCaption()
334 int totalSize = buffer.position(); in mayParseClosedCaption() local
337 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
339 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
370 buffer.position(totalSize); in mayParseClosedCaption()
/packages/apps/StorageManager/tests/unit/src/com/android/storagemanager/deletionhelper/
DFetchDownloadsLoaderTest.java45 assertEquals(0, result.totalSize); in testEmptyDirectory()
57 assertEquals(0, result.totalSize); in testFilesInDirectory()
71 assertEquals(0, result.totalSize); in testNestedDirectories()
94 assertEquals(9, result.totalSize); in testSumFileSizes()
110 assertEquals(9, result.totalSize); in testFetchesThumbnailsForImages()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DMpegTsSampleExtractor.java302 int totalSize = buffer.position(); in mayParseClosedCaption() local
305 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
307 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
337 buffer.position(totalSize); in mayParseClosedCaption()
346 int totalSize = buffer.position(); in mayParseClosedCaption() local
349 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
351 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
382 buffer.position(totalSize); in mayParseClosedCaption()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/common/
DDBAdData.java57 int totalSize = in size() local
61 totalSize += 4 * mAdCounterKeys.size(); in size()
63 totalSize += mAdFilters.getSizeInBytes(); in size()
66 totalSize += mAdRenderId.getBytes(StandardCharsets.UTF_8).length; in size()
68 return totalSize; in size()
/packages/modules/StatsD/statsd/src/metrics/
DKllMetricProducer.cpp176 size_t totalSize = 0; in byteSizeLocked() local
178 totalSize += buckets.size() * kBucketSize; in byteSizeLocked()
181 totalSize += bucket.aggIndex.size() * kIntSize; in byteSizeLocked()
185 totalSize += bucket.aggregates.size() * kInt64Size * in byteSizeLocked()
190 return totalSize; in byteSizeLocked()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelper.java79 public void cacheTotalSizeAndTotalUsedSize(long totalSize, long totalUsedSize) { in cacheTotalSizeAndTotalUsedSize() argument
82 .putLong(TOTAL_SIZE_KEY, totalSize) in cacheTotalSizeAndTotalUsedSize()
106 result.totalSize = mSharedPreferences.getLong(TOTAL_SIZE_KEY, 0); in retrieveCachedSize()
125 public long totalSize; field in StorageCacheHelper.StorageCache
DNonCurrentUserController.java192 long totalSize = 0; in handleResult() local
194 totalSize += stats.get(id).externalStats.totalBytes; in handleResult()
196 setSize(totalSize, true /* animate */); in handleResult()
198 mStorageCacheHelper.cacheUsedSize(totalSize); in handleResult()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/
DReadableDataAnswer.java41 int totalSize = 0; in getRemainingSize() local
43 totalSize += buffer.length; in getRemainingSize()
45 return totalSize - mBufferPos; in getRemainingSize()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdvertiserSetValidator.java71 int totalSize = 0; in addValidation() local
74 totalSize += advertiserString.getBytes(StandardCharsets.UTF_8).length; in addValidation()
75 if (totalSize > MAX_TOTAL_SIZE_BYTES) { in addValidation()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStorageSizesController.java90 long totalSize = codeSize + dataSize + cacheSize; in updateUi() local
91 if (mLastTotalSize != totalSize) { in updateUi()
92 mLastTotalSize = totalSize; in updateUi()
93 mTotalSize.setSummary(getSizeStr(context, totalSize)); in updateUi()
/packages/modules/NeuralNetworks/driver/cache/BlobCache/
DBlobCache.cpp259 size_t totalSize = align_sizet(entrySize); in flatten() local
260 if (byteOffset + totalSize > size) { in flatten()
272 if (totalSize > entrySize) { in flatten()
275 memset(eheader->mData + keySize + valueSize, 0, totalSize - entrySize); in flatten()
278 byteOffset += totalSize; in flatten()
323 size_t totalSize = align_sizet(entrySize); in unflatten() local
324 if (byteOffset + totalSize > size) { in unflatten()
333 byteOffset += totalSize; in unflatten()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/
DArrayUtils.java37 int totalSize = 0; in concatByteArrays() local
39 totalSize += arrays[i].length; in concatByteArrays()
43 byte[] result = Arrays.copyOf(arrays[0], totalSize); in concatByteArrays()
/packages/modules/NeuralNetworks/runtime/
DTelemetry.cpp52 size_t totalSize = 0; in makeDeviceId() local
55 totalSize++; in makeDeviceId()
58 totalSize += names.back().size(); in makeDeviceId()
64 result.reserve(totalSize); in makeDeviceId()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/bhttp/
DBinaryHttpTestUtil.java25 int totalSize = Arrays.stream(sections).mapToInt(s -> s.length).sum(); in combineSections() local
26 byte[] result = new byte[totalSize]; in combineSections()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DStorageMeasurement.java49 public long totalSize; field in StorageMeasurement.MeasurementDetails
86 return "MeasurementDetails: [totalSize: " + totalSize + " availSize: " + availSize in toString()
158 details.totalSize = mVolume.getPath().getTotalSpace(); in measureExactStorage()
164 details.totalSize = mStats.getTotalBytes(mVolume.fsUuid); in measureExactStorage()
/packages/modules/AdServices/adservices/framework/java/android/adservices/common/
DAppInstallFilters.java104 int totalSize = 0; in getSizeInBytes() local
106 totalSize += packageName.getBytes(StandardCharsets.UTF_8).length; in getSizeInBytes()
108 return totalSize; in getSizeInBytes()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/
DDBTrustedBiddingData.java81 int totalSize = mUri.toString().getBytes(StandardCharsets.UTF_8).length; in size() local
83 totalSize += key.getBytes(StandardCharsets.UTF_8).length; in size()
86 return totalSize; in size()
/packages/modules/StatsD/statsd/src/
DFieldValue.cpp566 size_t totalSize = 0; in getSize() local
568 totalSize += fieldValue.getSize(); in getSize()
570 return totalSize; in getSize()
574 size_t totalSize = 0; in getFieldValuesSizeV2() local
576 totalSize += fieldValue.getSizeV2(); in getFieldValuesSizeV2()
578 return totalSize; in getFieldValuesSizeV2()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DUtils.java39 int totalSize = Arrays.stream(arrays).mapToInt((int[] array) -> array.length).sum(); in concatIntArrays() local
40 int[] newArray = Arrays.copyOf(arrays[0], totalSize); in concatIntArrays()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/backup/
DKitchenSinkBackupTransport.java258 int totalSize = parseKeySizes(packageDir, datastore); in performBackupInternal() local
259 Log.i(TAG, "Total size of the current data:" + totalSize); in performBackupInternal()
271 int updatedSize = totalSize; in performBackupInternal()
349 int totalSize = 0; in parseKeySizes() local
359 totalSize += size; in parseKeySizes()
366 Log.d(TAG, "TOTAL: " + totalSize); in parseKeySizes()
373 return totalSize; in parseKeySizes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelperTest.java78 assertThat(storageCache.totalSize).isEqualTo(0); in cacheSizeInfo_shouldSaveToSharedPreference()
87 assertThat(storageCache.totalSize).isEqualTo(FAKE_TOTAL_SIZE); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference()
/packages/modules/NeuralNetworks/common/cpu_operations/
DTopK_V2.cpp37 const int totalSize = getNumberOfElements(inputShape); in evalGeneric() local
41 for (int rowBegin = 0; rowBegin < totalSize; rowBegin += rowSize) { in evalGeneric()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/bhttp/
DBinaryHttpMessage.java181 int totalSize = Arrays.stream(sections).mapToInt(s -> s.length).sum() + paddingLength; in combineWithPadding() local
182 byte[] result = new byte[totalSize]; in combineWithPadding()

123