Home
last modified time | relevance | path

Searched refs:totalBytes (Results 1 – 25 of 64) sorted by relevance

123

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DStorageStatsSource.java67 public long totalBytes; field in StorageStatsSource.ExternalStorageStats
76 long totalBytes, long audioBytes, long videoBytes, long imageBytes, long appBytes) { in ExternalStorageStats() argument
77 this.totalBytes = totalBytes; in ExternalStorageStats()
90 totalBytes = stats.getTotalBytes(); in ExternalStorageStats()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
H A DPrivateStorageInfo.java34 public final long totalBytes; field in PrivateStorageInfo
36 public PrivateStorageInfo(long freeBytes, long totalBytes) { in PrivateStorageInfo() argument
38 this.totalBytes = totalBytes; in PrivateStorageInfo()
/aosp12/frameworks/base/core/java/android/app/usage/
H A DExternalStorageStats.java31 /** {@hide} */ public long totalBytes; field in ExternalStorageStats
47 return totalBytes; in getTotalBytes()
111 this.totalBytes = in.readLong(); in ExternalStorageStats()
126 dest.writeLong(totalBytes); in writeToParcel()
/aosp12/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
H A DAbstractPublicApiTest.java177 int totalBytes = 0; in runUntilProgress() local
186 totalBytes = cursor.getInt( in runUntilProgress()
192 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
193 if (totalBytes == 0) { in runUntilProgress()
197 if (numBytesReceivedSoFar * 100 / totalBytes >= progress) { in runUntilProgress()
206 numBytesReceivedSoFar + ", totalBytes: " + totalBytes); in runUntilProgress()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/appinfo/
H A DAppDataUsagePreferenceController.java117 long totalBytes = 0; in getDataSummary() local
120 totalBytes += data.getTotalUsage(); in getDataSummary()
126 if (totalBytes == 0) { in getDataSummary()
130 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS), in getDataSummary()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DDumpDatabaseAction.java65 int totalBytes = 0; in executeAction() local
74 totalBytes += bytesRead; in executeAction()
97 ", copy size: " + totalBytes); in executeAction()
/aosp12/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeAdvertiser.java127 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES in startAdvertising()
128 || totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { in startAdvertising()
379 if (totalBytes(advertiseData, isConnectable) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
383 if (totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
401 if (totalBytes(advertiseData, isConnectable) > maxData) {
405 if (totalBytes(scanResponse, false) > maxData) {
409 if (totalBytes(periodicData, false) > maxData) {
512 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
/aosp12/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java90 private long totalBytes; field in NetworkStatsHistory
130 totalBytes = 0; in NetworkStatsHistory()
149 totalBytes = in.readLong(); in NetworkStatsHistory()
162 out.writeLong(totalBytes); in writeToParcel()
255 return totalBytes; in getTotalBytes()
306 if (rxBytes != null) totalBytes -= rxBytes[i]; in setValues()
307 if (txBytes != null) totalBytes -= txBytes[i]; in setValues()
318 if (rxBytes != null) totalBytes += rxBytes[i]; in setValues()
319 if (txBytes != null) totalBytes += txBytes[i]; in setValues()
386 totalBytes += entry.rxBytes + entry.txBytes; in recordData()
[all …]
H A DNetworkPolicy.java155 public boolean isOverWarning(long totalBytes) { in isOverWarning() argument
156 return warningBytes != WARNING_DISABLED && totalBytes >= warningBytes; in isOverWarning()
164 public boolean isOverLimit(long totalBytes) { in isOverLimit() argument
167 totalBytes += 2 * DEFAULT_MTU; in isOverLimit()
168 return limitBytes != LIMIT_DISABLED && totalBytes >= limitBytes; in isOverLimit()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPublicVolumeSettings.java161 final long totalBytes = file.getTotalSpace(); in update() local
163 final long usedBytes = totalBytes - freeBytes; in update()
170 Formatter.formatFileSize(context, totalBytes))); in update()
171 mSummary.setPercent(usedBytes, totalBytes); in update()
H A DStorageSummaryPreference.java41 public void setPercent(long usedBytes, long totalBytes) { in setPercent() argument
42 mPercent = MathUtils.constrain((int) ((usedBytes * 100) / totalBytes), in setPercent()
H A DTopLevelStoragePreferenceController.java66 final double privateUsedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread()
70 percentageFormat.format(privateUsedBytes / info.totalBytes), in refreshSummaryThread()
H A DStorageCategoryFragment.java197 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
200 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
205 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java73 long totalBytes, long currentBytes, long timestamp, boolean mediaScanned) { in BluetoothOppShareInfo() argument
84 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
H A DBluetoothOppTransferAdapter.java101 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local
111 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
114 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadInfo.java308 public int getRequiredNetworkType(long totalBytes) { in getRequiredNetworkType() argument
315 if (totalBytes > mSystemFacade.getMaxBytesOverMobile()) { in getRequiredNetworkType()
318 if (totalBytes > mSystemFacade.getRecommendedMaxBytesOverMobile() in getRequiredNetworkType()
376 public boolean isMeteredAllowed(long totalBytes) { in isMeteredAllowed() argument
377 return getRequiredNetworkType(totalBytes) != JobInfo.NETWORK_TYPE_UNMETERED; in isMeteredAllowed()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DManageCachePage.java368 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/storage/
H A DStorageSettingsManager.java97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
100 mPrivateStorageInfo.totalBytes); in onReceivedSizes()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java135 final long totalBytes = getUsageLevel(template, start, end); in getDataUsageInfo() local
136 if (totalBytes < 0L) { in getDataUsageInfo()
141 usage.usageLevel = totalBytes; in getDataUsageInfo()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
H A DLowStorageSlice.java63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()
/aosp12/frameworks/base/startop/iorap/functional_tests/src/com/google/android/startop/iorap/
H A DIorapWorkFlowTest.java318 int totalBytes = Integer.parseInt(m.group(5));
323 totalFilePath, totalFilePathGoodRate, totalEntries, totalEntriesGoodRate, totalBytes,
328 totalBytes > 0 &&
/aosp12/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/
H A DSettingsBackupAgentTest.java217 int totalBytes = 0; in generateBackupData() local
219 totalBytes += 2 * Integer.BYTES + key.getBytes().length in generateBackupData()
223 ByteBuffer buffer = ByteBuffer.allocate(totalBytes); in generateBackupData()
/aosp12/packages/services/Car/cpp/evs/sampleDriver/
H A DbufferCopy.cpp62 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local
65 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
/aosp12/frameworks/native/cmds/dumpsys/
H A Ddumpsys.cpp431 size_t totalBytes = 0; in writeDump() local
479 totalBytes += rc; in writeDump()
489 bytesWritten = totalBytes; in writeDump()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
H A DVolumeSizesLoaderTest.java47 assertThat(storageInfo.totalBytes).isEqualTo(10000L); in getVolumeSize_getsValidSizes()

123