Home
last modified time | relevance | path

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

/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsSampleExtractor.java275 int totalSize = buffer.position(); in mayParseClosedCaption() local
278 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
280 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
310 buffer.position(totalSize); in mayParseClosedCaption()
319 int totalSize = buffer.position(); in mayParseClosedCaption() local
322 for (int i = 0; i < totalSize; i += mBuffer.length - PATTERN_LENGTH) { in mayParseClosedCaption()
324 int size = Math.min(totalSize - i, mBuffer.length); in mayParseClosedCaption()
355 buffer.position(totalSize); in mayParseClosedCaption()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java112 long totalSize = svp.getPrimaryStorageSize(); in updateSizes() local
114 if (totalSize <= 0) { in updateSizes()
115 totalSize = sharedDataSize; in updateSizes()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
119 updateBytes(usedBytes, totalSize); in updateSizes()
DUserProfileController.java114 public void setSize(long size, long totalSize) { in setSize() argument
116 mStoragePreference.setStorageSize(size, totalSize); in setSize()
120 public void setTotalSize(long totalSize) { in setTotalSize() argument
121 mTotalSizeBytes = totalSize; in setTotalSize()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceController.java112 long totalSize = svp.getPrimaryStorageSize(); in updateSizes() local
114 if (totalSize <= 0) { in updateSizes()
115 totalSize = sharedDataSize; in updateSizes()
118 final long usedBytes = totalSize - volume.getPath().getFreeSpace(); in updateSizes()
119 updateBytes(usedBytes, totalSize); in updateSizes()
DUserProfileController.java114 public void setSize(long size, long totalSize) { in setSize() argument
116 mStoragePreference.setStorageSize(size, totalSize); in setSize()
120 public void setTotalSize(long totalSize) { in setTotalSize() argument
121 mTotalSizeBytes = totalSize; in setTotalSize()
/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()
DDownloadsDeletionType.java135 mBytes = data.totalSize; in onLoadFinished()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/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/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/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java195 long totalSize = 0; in getTotalAttachmentsSize() local
197 totalSize += attachment.size; in getTotalAttachmentsSize()
199 return totalSize; in getTotalAttachmentsSize()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java103 private void computePreviewDrawingParams(int drawableSize, int totalSize) { in computePreviewDrawingParams() argument
104 if (mIntrinsicIconSize != drawableSize || mTotalWidth != totalSize || in computePreviewDrawingParams()
107 mTotalWidth = totalSize; in computePreviewDrawingParams()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java844 long totalSize = 0; in getIsMessageOverLimit() local
846 totalSize += attachment.getMinimumSizeInBytesForSending(); in getIsMessageOverLimit()
848 return totalSize > MmsConfig.get(mSelfSubId).getMaxMessageSize(); in getIsMessageOverLimit()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DDownloadsDeletionTypeTest.java148 result.totalSize = 101L; in testCallbackOnFileLoad()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java168 public static int totalSize() { in totalSize() method in ApfFilter.Counter
1543 maximumApfProgramSize -= Counter.totalSize(); in installNewProgramLocked()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4261 final long totalSize = forEachContributedMedia(packageName, null); in call() local
4263 res.putLong(Intent.EXTRA_INDEX, totalSize); in call()
4297 long totalSize = 0; in forEachContributedMedia() local
4314 totalSize += size; in forEachContributedMedia()
4320 return totalSize; in forEachContributedMedia()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1287 int totalSize = 0; in combine() local
1289 totalSize += array.length; in combine()
1293 totalSize)); in combine()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java915 byte[] data = new byte[ApfFilter.Counter.totalSize()]; in testApfFilterPcapFile()