/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
D | AbstractPublicApiTest.java | 176 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/ |
D | StorageVolumePreference.java | 72 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()
|
D | PublicVolumeSettings.java | 160 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()
|
D | PrivateVolumeSettings.java | 233 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/ |
D | DumpDatabaseAction.java | 65 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/ |
D | BluetoothOppTransferAdapter.java | 102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local 112 mContext, totalBytes)); in bindView() 115 mContext, totalBytes)); in bindView()
|
D | BluetoothOppShareInfo.java | 73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { in BluetoothOppShareInfo() argument 84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
|
D | BluetoothOppUtility.java | 269 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/ |
D | DownloadInfo.java | 303 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()
|
D | DownloadNotifier.java | 276 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/ |
D | ManageCachePage.java | 368 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/ |
D | AppDataUsage.java | 301 final long totalBytes = backgroundBytes + foregroundBytes; in bindData() local 304 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes)); in bindData()
|
D | DataUsageList.java | 307 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/ |
D | TunerRecordingSessionWorker.java | 495 long totalBytes, long startTime, long endTime) { in insertRecordedProgram() argument 501 .setDataBytes(totalBytes) in insertRecordedProgram()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | InstalledAppDetails.java | 614 long totalBytes = mChartData.detail.getTotalBytes(); in getDataSummary() local 615 if (totalBytes == 0) { in getDataSummary() 620 Formatter.formatFileSize(context, totalBytes), in getDataSummary()
|