Home
last modified time | relevance | path

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

/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/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/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/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/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/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/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java129 private void computePreviewDrawingParams(int drawableSize, int totalSize) { in computePreviewDrawingParams() argument
130 if (mIntrinsicIconSize != drawableSize || mTotalWidth != totalSize || in computePreviewDrawingParams()
133 mTotalWidth = totalSize; in computePreviewDrawingParams()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java856 long totalSize = 0; in getIsMessageOverLimit() local
858 totalSize += attachment.getMinimumSizeInBytesForSending(); in getIsMessageOverLimit()
860 return totalSize > MmsConfig.get(mSelfSubId).getMaxMessageSize(); in getIsMessageOverLimit()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DComposeMessageView.java648 long totalSize = 0; in doInBackgroundTimed() local
652 totalSize += UriUtil.getContentSize(attachment.getContentUri()); in doInBackgroundTimed()
655 return totalSize; in doInBackgroundTimed()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DDownloadsDeletionTypeTest.java148 result.totalSize = 101L; in testCallbackOnFileLoad()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java170 public static int totalSize() { in totalSize() method in ApfFilter.Counter
1626 maximumApfProgramSize -= Counter.totalSize(); in installNewProgramLocked()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java4274 final long totalSize = forEachContributedMedia(packageName, null); in call() local
4276 res.putLong(Intent.EXTRA_INDEX, totalSize); in call()
4310 long totalSize = 0; in forEachContributedMedia() local
4327 totalSize += size; in forEachContributedMedia()
4333 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.java925 byte[] data = new byte[ApfFilter.Counter.totalSize()]; in testApfFilterPcapFile()