Home
last modified time | relevance | path

Searched refs:totalBytes (Results 1 – 15 of 15) sorted by relevance

/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java176 int totalBytes = 0; in runUntilProgress() local
185 totalBytes = cursor.getInt( in runUntilProgress()
191 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
192 if (totalBytes == 0) { in runUntilProgress()
196 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) { in runUntilProgress()
205 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageVolumePreference.java72 final long totalBytes = path.getTotalSpace(); in StorageVolumePreference() local
73 final long usedBytes = totalBytes - freeBytes; in StorageVolumePreference()
76 final String total = Formatter.formatFileSize(context, totalBytes); in StorageVolumePreference()
78 if (totalBytes > 0) { in StorageVolumePreference()
79 mUsedPercent = (int) ((usedBytes * 100) / totalBytes); in StorageVolumePreference()
DPublicVolumeSettings.java160 final long totalBytes = file.getTotalSpace(); in update() local
162 final long usedBytes = totalBytes - freeBytes; in update()
168 Formatter.formatFileSize(context, totalBytes))); in update()
169 mSummary.setPercent((int) ((usedBytes * 100) / totalBytes)); in update()
DPrivateVolumeSettings.java233 final long totalBytes = file.getTotalSpace(); in update() local
235 final long usedBytes = totalBytes - freeBytes; in update()
241 Formatter.formatFileSize(context, totalBytes))); in update()
242 mSummary.setPercent((int) ((usedBytes * 100) / totalBytes)); in update()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java65 int totalBytes = 0; in executeAction() local
74 totalBytes += bytesRead; in executeAction()
97 ", copy size: " + totalBytes); in executeAction()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local
112 mContext, totalBytes)); in bindView()
115 mContext, totalBytes)); in bindView()
DBluetoothOppShareInfo.java73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { in BluetoothOppShareInfo() argument
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
DBluetoothOppUtility.java269 public static String formatProgressText(long totalBytes, long currentBytes) { in formatProgressText() argument
270 if (totalBytes <= 0) { in formatProgressText()
273 long progress = currentBytes * 100 / totalBytes; in formatProgressText()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadInfo.java303 public int getRequiredNetworkType(long totalBytes) { in getRequiredNetworkType() argument
310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType()
313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType()
371 public boolean isMeteredAllowed(long totalBytes) { in isMeteredAllowed() argument
372 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED; in isMeteredAllowed()
DDownloadNotifier.java276 final long totalBytes = cursor.getLong(UpdateQuery.TOTAL_BYTES); in updateWithLocked() local
278 if (totalBytes != -1) { in updateWithLocked()
280 total += totalBytes; in updateWithLocked()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DManageCachePage.java368 long totalBytes = mCacheStorageInfo.getTotalBytes(); in refreshCacheStorageInfo() local
374 if (totalBytes == 0) { in refreshCacheStorageInfo()
382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()
384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes)); in refreshCacheStorageInfo()
/packages/apps/Settings/src/com/android/settings/datausage/
DAppDataUsage.java301 final long totalBytes = backgroundBytes + foregroundBytes; in bindData() local
304 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes)); in bindData()
DDataUsageList.java307 final long totalBytes = entry != null ? entry.rxBytes + entry.txBytes : 0; in updateDetailData() local
308 final String totalPhrase = Formatter.formatFileSize(context, totalBytes); in updateDetailData()
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
DTunerRecordingSessionWorker.java495 long totalBytes, long startTime, long endTime) { in insertRecordedProgram() argument
501 .setDataBytes(totalBytes) in insertRecordedProgram()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppDetails.java614 long totalBytes = mChartData.detail.getTotalBytes(); in getDataSummary() local
615 if (totalBytes == 0) { in getDataSummary()
620 Formatter.formatFileSize(context, totalBytes), in getDataSummary()