/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageVolumePreference.java | 50 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 D | PublicVolumeSettings.java | 160 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 D | BluetoothOppShareInfo.java | 73 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 D | BluetoothOppTransferAdapter.java | 102 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); 112 mContext, totalBytes)); 115 mContext, totalBytes));
|
H A D | BluetoothOppUtility.java | 269 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 D | DumpDatabaseAction.java | 65 int totalBytes = 0; 74 totalBytes += bytesRead; 97 ", copy size: " + totalBytes);
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
H A D | AbstractPublicApiTest.java | 176 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 D | ManageCachePage.java | 368 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 D | DownloadInfo.java | 303 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 D | DownloadNotifier.java | 278 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 D | AppDataUsage.java | 320 final long totalBytes = backgroundBytes + foregroundBytes; 323 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes));
|
H A D | DataUsageList.java | 307 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 D | TunerRecordingSessionWorker.java | 495 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 D | InstalledAppDetails.java | 619 long totalBytes = mChartData.detail.getTotalBytes(); 620 if (totalBytes == 0) { 625 Formatter.formatFileSize(context, totalBytes),
|