Searched refs:totalBytes (Results 1 - 14 of 14) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreference.java50 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument
72 if (totalBytes <= 0) {
73 totalBytes = path.getTotalSpace();
76 final long usedBytes = totalBytes - freeBytes;
79 final String total = Formatter.formatFileSize(context, totalBytes);
81 if (totalBytes > 0) {
82 mUsedPercent = (int) ((usedBytes * 100) / totalBytes);
H A DPublicVolumeSettings.java160 final long totalBytes = file.getTotalSpace();
162 final long usedBytes = totalBytes - freeBytes;
168 Formatter.formatFileSize(context, totalBytes)));
169 mSummary.setPercent((int) ((usedBytes * 100) / totalBytes));
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) {
84 mTotalBytes = totalBytes;
71 BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, int direction, String destination, int visibility, int confirm, int status, long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) argument
H A DBluetoothOppTransferAdapter.java102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES));
112 mContext, totalBytes));
115 mContext, totalBytes));
H A DBluetoothOppUtility.java269 public static String formatProgressText(long totalBytes, long currentBytes) { argument
270 if (totalBytes <= 0) {
273 long progress = currentBytes * 100 / totalBytes;
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DDumpDatabaseAction.java65 int totalBytes = 0;
74 totalBytes += bytesRead;
97 ", copy size: " + totalBytes);
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractPublicApiTest.java176 int totalBytes = 0;
185 totalBytes = cursor.getInt(
191 numBytesReceivedSoFar + ", totalBytes: " + totalBytes);
192 if (totalBytes == 0) {
196 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) {
205 numBytesReceivedSoFar + ", totalBytes: " + totalBytes);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DManageCachePage.java368 long totalBytes = mCacheStorageInfo.getTotalBytes();
374 if (totalBytes == 0) {
382 progressBar.setProgress((int) (usedBytes * PROGRESS_BAR_MAX / totalBytes));
384 (int) (expectedBytes * PROGRESS_BAR_MAX / totalBytes));
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadInfo.java303 public int getRequiredNetworkType(long totalBytes) { argument
310 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) {
313 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile()
371 public boolean isMeteredAllowed(long totalBytes) { argument
372 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED;
H A DDownloadNotifier.java278 final long totalBytes = cursor.getLong(UpdateQuery.TOTAL_BYTES);
280 if (totalBytes != -1) {
282 total += totalBytes;
/packages/apps/Settings/src/com/android/settings/datausage/
H A DAppDataUsage.java320 final long totalBytes = backgroundBytes + foregroundBytes;
323 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes));
H A DDataUsageList.java307 final long totalBytes = entry != null ? entry.rxBytes + entry.txBytes : 0;
308 final String totalPhrase = Formatter.formatFileSize(context, totalBytes);
/packages/apps/TV/usbtuner/src/com/android/usbtuner/tvinput/
H A DTunerRecordingSessionWorker.java495 long totalBytes, long startTime, long endTime) {
501 .setDataBytes(totalBytes)
494 insertRecordedProgram(Program program, long channelId, String storageUri, long totalBytes, long startTime, long endTime) argument
/packages/apps/Settings/src/com/android/settings/applications/
H A DInstalledAppDetails.java619 long totalBytes = mChartData.detail.getTotalBytes();
620 if (totalBytes == 0) {
625 Formatter.formatFileSize(context, totalBytes),

Completed in 551 milliseconds