Home
last modified time | relevance | path

Searched refs:formatFileSize (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/Settings/tests/unit/src/com/android/settings/utils/
DFileSizeFormatterTest.java46 FileSizeFormatter.formatFileSize( in formatFileSize_zero()
57 FileSizeFormatter.formatFileSize( in formatFileSize_smallSize()
68 FileSizeFormatter.formatFileSize( in formatFileSize_lessThanOneSize()
79 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanOneSize()
91 FileSizeFormatter.formatFileSize( in formatFileSize_greaterThanTen()
102 FileSizeFormatter.formatFileSize( in formatFileSize_handlesNegativeFileSizes()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummary.java267 mSummaryPreference.setLabels(Formatter.formatFileSize(context, 0), in updateState()
268 Formatter.formatFileSize(context, limit)); in updateState()
274 String warning = Formatter.formatFileSize(context, info.warningLevel); in updateState()
275 String limit = Formatter.formatFileSize(context, info.limitLevel); in updateState()
439 used = Formatter.formatFileSize(mActivity, 0); in setListening()
441 used = Formatter.formatFileSize(mActivity, info.usageLevel); in setListening()
DAppDataUsage.java309 mTotalUsage.setSummary(Formatter.formatFileSize(context, totalBytes)); in bindData()
310 mForegroundUsage.setSummary(Formatter.formatFileSize(context, foregroundBytes)); in bindData()
311 mBackgroundUsage.setSummary(Formatter.formatFileSize(context, backgroundBytes)); in bindData()
DBillingCycleSettings.java107 mDataWarning.setSummary(Formatter.formatFileSize(getContext(), policy.warningBytes)); in updatePrefs()
116 mDataLimit.setSummary(Formatter.formatFileSize(getContext(), policy.limitBytes)); in updatePrefs()
DDataUsagePreference.java48 Formatter.formatFileSize(getContext(), usageInfo.usageLevel), usageInfo.period)); in setTemplate()
DAppDataUsagePreference.java45 setSummary(Formatter.formatFileSize(context, item.total)); in AppDataUsagePreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageVolumePreference.java79 final String used = Formatter.formatFileSize(context, usedBytes); in StorageVolumePreference()
80 final String total = Formatter.formatFileSize(context, totalBytes); in StorageVolumePreference()
DStorageItemPreference.java49 FileSizeFormatter.formatFileSize( in setStorageSize()
DStorageSettings.java223 Formatter.formatFileSize(context, privateTotalBytes))); in refresh()
538 Formatter.formatFileSize(mContext, info.freeBytes))); in updateSummary()
DMigrateEstimateTask.java113 final String size = Formatter.formatFileSize(mContext, mSizeBytes); in onPostExecute()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java111 completeText = r.getString(R.string.download_success, Formatter.formatFileSize( in bindView()
114 completeText = r.getString(R.string.upload_success, Formatter.formatFileSize( in bindView()
DBluetoothOppTransferActivity.java273 tmp = getString(R.string.download_line3, Formatter.formatFileSize(this, in customizeViewContent()
292 tmp = getString(R.string.upload_line3, mTransInfo.mFileType, Formatter.formatFileSize( in customizeViewContent()
311 tmp = getString(R.string.bt_sm_2_2, Formatter.formatFileSize(this, in customizeViewContent()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsDeletionPreferenceGroup.java147 Formatter.formatFileSize(context, bytes))); in updatePreferenceText()
150 Formatter.formatFileSize(context, bytes))); in updatePreferenceText()
DNestedDeletionPreference.java64 return Formatter.formatFileSize(getContext(), mAppSize); in getItemSize()
DPhotosDeletionPreference.java58 Formatter.formatFileSize(context, bytes), in updatePreferenceText()
DConfirmDeletionDialog.java65 Formatter.formatFileSize(context, mFreeableBytes))) in onCreateDialog()
DStorageManagerUpsellDialog.java77 Formatter.formatFileSize(context, freedBytes))) in onCreateDialog()
DAppDeletionPreferenceGroup.java162 Formatter.formatFileSize(app, freeableBytes), in updateText()
/packages/apps/Settings/src/com/android/settings/utils/
DFileSizeFormatter.java53 public static String formatFileSize( in formatFileSize() method in FileSizeFormatter
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DClearDataPreference.java42 Formatter.formatFileSize(context, mEntry.dataSize + mEntry.externalDataSize)); in refresh()
DClearCachePreference.java42 : Formatter.formatFileSize(context, mEntry.cacheSize + mEntry.externalCacheSize)); in refresh()
/packages/apps/Settings/src/com/android/settings/applications/
DMusicViewHolderController.java76 holder.summary.setText(Formatter.formatFileSize(mContext, mMusicSize)); in setupView()
DAppStorageSizesController.java132 return Formatter.formatFileSize(context, size); in getSizeStr()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
DStorageSettingsTest.java94 final String freeSpace = Formatter.formatFileSize(RuntimeEnvironment.application, 0); in updateSummary_shouldDisplayUsedPercentAndFreeSpace()
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DRootItem.java91 Formatter.formatFileSize(context, root.availableBytes)); in bindView()

12