Home
last modified time | relevance | path

Searched refs:getTotalBytes (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/storage/
DStorageSettingsManagerTest.java85 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
110 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
130 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
151 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
DVolumeSizesLoaderTest.java46 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in getVolumeSize_getsValidSizes()
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/
DStorageStatsManagerCompat.java40 public long getTotalBytes(String fsUuid) throws IOException { in getTotalBytes() method in StorageStatsManagerCompat
41 return mManager.getTotalBytes(fsUuid); in getTotalBytes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStorageSizesControllerTest.java81 when(result.getTotalBytes()).thenReturn(101L); in properlyPopulatedAfterValidEntry()
98 when(result.getTotalBytes()).thenReturn(101L); in fakeCacheFlagSetsCacheToZero()
116 when(result.getTotalBytes()).thenReturn(101L); in fakeDataFlagSetsDataAndCacheToZero()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/
DStorageMeasurement.java164 details.totalSize = mStats.getTotalBytes(mVolume.fsUuid); in measureExactStorage()
189 addValue(details.usersSize, user.id, stats.getTotalBytes()); in measureExactStorage()
196 final long miscBytes = stats.getTotalBytes() - stats.getAudioBytes() in measureExactStorage()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsCollection.java183 public long getTotalBytes() { in getTotalBytes() method in NetworkStatsCollection
345 final long beforeTotal = combined.getTotalBytes(); in getHistory()
362 final long deltaTotal = combined.getTotalBytes() - beforeTotal; in getHistory()
451 noteRecordedHistory(history.getStart(), history.getEnd(), history.getTotalBytes()); in recordHistory()
1031 if (migrated.getTotalBytes() != legacy.getTotalBytes()) { in compareStats()
1032 return "Total bytes " + migrated.getTotalBytes() + " and " + legacy.getTotalBytes() in compareStats()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAppStoragePreferenceControllerTest.java157 when(stats.getTotalBytes()).thenReturn(1L); in getStorageSummary_shouldWorkForExternal()
167 when(stats.getTotalBytes()).thenReturn(1L); in getStorageSummary_shouldWorkForInternal()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DAutomaticStorageManagementJobServiceTest.java106 when(mStorageVolumeProvider.getTotalBytes( in setUp()
231 when(mStorageVolumeProvider.getTotalBytes( in testNonPrivateDrivesIgnoredForFreeSpaceCalculation()
254 when(mStorageVolumeProvider.getTotalBytes( in testMultiplePrivateVolumesCountedForASMActivationThreshold()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsTest.java300 assertEquals(4L, result.getTotalBytes()); in testSubtractMissingRows()
308 assertEquals(384L, iface.getTotalBytes()); in testTotalBytes()
314 assertEquals(96L, uidSet.getTotalBytes()); in testTotalBytes()
323 assertEquals(64L, uidTag.getTotalBytes()); in testTotalBytes()
332 assertEquals(96L, uidMetered.getTotalBytes()); in testTotalBytes()
341 assertEquals(96L, uidRoaming.getTotalBytes()); in testTotalBytes()
578 assertEquals(128L + 512L + 128L, original.getTotalBytes()); in testClone()
579 assertEquals(128L + 512L, clone.getTotalBytes()); in testClone()
DNetworkStatsCollectionTest.java349 assertEquals(0L, history.getTotalBytes()); in testAugmentPlan()
403 assertEquals(200000L, history.getTotalBytes()); in testAugmentPlan()
460 assertEquals(400000L, history.getTotalBytes()); in testAugmentPlan()
520 assertEquals(12_730_893_164L, getHistory(large, null, TIME_A, TIME_C).getTotalBytes()); in testAugmentPlanGigantic()
526 assertEquals(4_939_212_386L, getHistory(large, plan, TIME_A, TIME_C).getTotalBytes()); in testAugmentPlanGigantic()
DNetworkStatsHistoryTest.java555 assertEquals(1024L + 2048L, stats.getTotalBytes()); in testSetValues()
562 assertEquals(512L + 4096L, stats.getTotalBytes()); in testSetValues()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DVolumeSizesLoader.java57 long privateTotalBytes = mVolumeProvider.getTotalBytes(mStats, mVolume); in getVolumeSize()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DVolumeSizesLoaderTest.java40 when(storageVolumeProvider.getTotalBytes(any(), any())).thenReturn(10000L); in getVolumeSize_getsValidSizes()
DStorageUsageProgressBarPreferenceControllerTest.java80 when(mStorageStatsManager.getTotalBytes(defaultInternalStorageEntry.getFsUuid())) in setSelectedStorageEntry_primaryStorage_getPrimaryStorageBytes()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsRecorder.java319 final long pendingBytes = mPending.getTotalBytes(); in maybePersistLocked()
539 pw.print("Pending bytes: "); pw.println(mPending.getTotalBytes()); in dumpLocked()
554 mPending.getTotalBytes()); in dumpDebugLocked()
DNetworkStatsObservers.java406 return stats.getTotalBytes(); in getTotalBytesForNetwork()
452 return history.getTotalBytes(); in getTotalBytesForNetworkUid()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DVolumeSizesLoader.java65 long privateTotalBytes = storageVolumeProvider.getTotalBytes(stats, info); in getVolumeSize()
DStorageUsageProgressBarPreferenceController.java94 mTotalBytes = mStorageStatsManager.getTotalBytes(mStorageEntry.getFsUuid()); in getStorageStatsAndUpdateUi()
DStorageAsyncLoader.java157 return mStatsManager.getTotalBytes(StorageManager.UUID_DEFAULT) in getSystemSize()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCacheStorageUsageInfo.java74 public long getTotalBytes() { in getTotalBytes() method in CacheStorageUsageInfo
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMigrateEstimateTask.java89 size += s.getTotalBytes(); in doInBackground()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
DTopLevelStoragePreferenceControllerTest.java81 .getTotalBytes(nullable(StorageStatsManager.class), nullable(VolumeInfo.class))) in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppStoragePreferenceController.java94 Formatter.formatFileSize(mContext, stats.getTotalBytes()), in getStorageSummary()
/packages/apps/TV/common/src/com/android/tv/common/recording/
DRecordingStorageStatusManager.java255 storageMountedCapacity = statFs.getTotalBytes(); in getStorageStatusInternal()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java368 long totalBytes = mCacheStorageInfo.getTotalBytes(); in refreshCacheStorageInfo()

12