Searched defs:totalBytes (Results 1 - 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageSummaryPreference.java40 public void setPercent(long usedBytes, long totalBytes) { argument
41 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes),
H A DStorageVolumePreference.java51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument
73 if (totalBytes <= 0) {
74 totalBytes = path.getTotalSpace();
77 final long usedBytes = totalBytes - freeBytes;
80 final String total = Formatter.formatFileSize(context, totalBytes);
82 if (totalBytes > 0) {
83 mUsedPercent = (int) ((usedBytes * 100) / totalBytes);
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
H A DStorageSummaryDonutPreference.java63 public void setPercent(long usedBytes, long totalBytes) { argument
64 if (totalBytes == 0) {
68 mPercent = usedBytes / (double) 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 DBluetoothOppUtility.java273 public static String formatProgressText(long totalBytes, long currentBytes) { argument
274 if (totalBytes <= 0) {
277 long progress = currentBytes * 100 / totalBytes;
/packages/services/Car/evs/sampleDriver/
H A DbufferCopy.cpp78 const unsigned totalBytes = sizeY + sizeColor; local
81 memcpy(tgt, imgData, 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;
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
H A DTunerRecordingSessionWorker.java589 long totalBytes, long startTime, long endTime) {
596 .setDataBytes(totalBytes)
588 insertRecordedProgram(Program program, long channelId, String storageUri, long totalBytes, long startTime, long endTime) argument

Completed in 242 milliseconds