Home
last modified time | relevance | path

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

123

/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/
DHttpClientUtil.java116 long totalBytes = 0; in getTotalSentBytes() local
117 totalBytes += in getTotalSentBytes()
123 totalBytes += in getTotalSentBytes()
130 totalBytes += Long.parseLong(request.getExtraHeaders().get(CONTENT_LENGTH_HDR)); in getTotalSentBytes()
132 return totalBytes; in getTotalSentBytes()
137 long totalBytes = 0; in getTotalReceivedBytes() local
144 totalBytes += header.getKey().length() + ": ".length(); in getTotalReceivedBytes()
145 totalBytes += headerValue == null ? 0 : headerValue.length(); in getTotalReceivedBytes()
150 totalBytes += Long.parseLong(header.getValue().get(0)); in getTotalReceivedBytes()
155 totalBytes += response.getPayload().length; in getTotalReceivedBytes()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DTopLevelStoragePreferenceController.java79 long usedBytes = info.totalBytes - info.freeBytes; in refreshSummaryThread()
83 getSummary(usedBytes, info.totalBytes)); in refreshSummaryThread()
93 private String getSummary(long usedBytes, long totalBytes) { in getSummary() argument
97 totalBytes == 0L ? "0" : percentageFormat.format(((double) usedBytes) / totalBytes), in getSummary()
98 Formatter.formatFileSize(mContext, totalBytes - usedBytes)); in getSummary()
DPublicVolumeSettings.java178 final long totalBytes = file.getTotalSpace(); in update() local
180 final long usedBytes = totalBytes - freeBytes; in update()
185 context, R.string.storage_total_summary, totalBytes)); in update()
186 mSummary.setPercent(usedBytes, totalBytes); in update()
DStorageCategoryFragment.java215 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
218 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
221 .cacheTotalSizeAndTotalUsedSize(mStorageInfo.totalBytes, privateUsedBytes); in onReceivedSizes()
223 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
DStorageDashboardFragment.java389 final long privateUsedBytes = mStorageInfo.totalBytes - mStorageInfo.freeBytes; in onReceivedSizes()
392 mPreferenceController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
395 .cacheTotalSizeAndTotalUsedSize(mStorageInfo.totalBytes, privateUsedBytes); in onReceivedSizes()
397 userController.setTotalSize(mStorageInfo.totalBytes); in onReceivedSizes()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/res/raw/
Dtelemetry_stats_and_connectivity_script.lua78 local totalBytes = data['conn.rxBytes'][i] + data['conn.txBytes'][i]
80 ["totalBytes"] = totalBytes,
87 return a.totalBytes > b.totalBytes
92 "totalBytes=" .. sortedTable[i].totalBytes ..
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsHistory.java107 private long totalBytes; field in NetworkStatsHistory
112 long[] operations, int bucketCount, long totalBytes) { in NetworkStatsHistory() argument
122 this.totalBytes = totalBytes; in NetworkStatsHistory()
306 totalBytes = 0; in NetworkStatsHistory()
327 totalBytes = in.readLong(); in NetworkStatsHistory()
340 out.writeLong(totalBytes); in writeToParcel()
356 totalBytes = CollectionUtils.total(rxBytes) + CollectionUtils.total(txBytes); in NetworkStatsHistory()
371 totalBytes = CollectionUtils.total(rxBytes) + CollectionUtils.total(txBytes); in NetworkStatsHistory()
440 return totalBytes; in getTotalBytes()
511 if (rxBytes != null) totalBytes -= rxBytes[i]; in setValues()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
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()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppObexClientSessionTest.java101 int totalBytes = 1023; in startThenStop_startsAndStopsClientThread() local
117 totalBytes, in startThenStop_startsAndStopsClientThread()
122 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in startThenStop_startsAndStopsClientThread()
169 int totalBytes = 1023; in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError() local
185 totalBytes, in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
190 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
DBluetoothOppShareInfoTest.java44 private int totalBytes = 1023; field in BluetoothOppShareInfoTest
63 totalBytes, in setUp()
79 assertThat(mBluetoothOppShareInfo.mTotalBytes).isEqualTo(totalBytes); in testConstructor()
DBluetoothOppObexServerSessionTest.java142 int totalBytes = 1023; in addShare_updatesShareInfo() local
158 totalBytes, in addShare_updatesShareInfo()
255 int totalBytes = 1023; in onPut_returnsObexHttpOk() local
271 totalBytes, in onPut_returnsObexHttpOk()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DAppDataUsagePreferenceController.java133 long totalBytes = 0; in getDataSummary() local
136 totalBytes += data.getTotalUsage(); in getDataSummary()
142 if (totalBytes == 0) { in getDataSummary()
146 Formatter.formatFileSize(mContext, totalBytes, Formatter.FLAG_IEC_UNITS), in getDataSummary()
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/
DBluetoothLeAdvertiser.java133 if (totalBytes(advertiseData, hasFlags) > MAX_LEGACY_ADVERTISING_DATA_BYTES in startAdvertising()
134 || totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) { in startAdvertising()
509 if (totalBytes(advertiseData, hasFlags) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
513 if (totalBytes(scanResponse, false) > MAX_LEGACY_ADVERTISING_DATA_BYTES) {
531 if (totalBytes(advertiseData, hasFlags) > maxData) {
535 if (totalBytes(scanResponse, false) > maxData) {
539 if (totalBytes(periodicData, false) > maxData) {
648 private int totalBytes(AdvertiseData data, boolean isFlagsIncluded) {
709 size += OVERHEAD_BYTES_PER_FIELD + transportDiscoveryData.totalBytes();
DTransportDiscoveryData.java161 ByteBuffer buffer = ByteBuffer.allocate(totalBytes()); in toByteArray()
181 public int totalBytes() { in totalBytes() method in TransportDiscoveryData
184 size += transportBlock.totalBytes(); in totalBytes()
DTransportBlock.java154 ByteBuffer buffer = ByteBuffer.allocate(totalBytes()); in toByteArray()
171 public int totalBytes() { in totalBytes() method in TransportBlock
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java65 int totalBytes = 0; in executeAction() local
74 totalBytes += bytesRead; in executeAction()
97 ", copy size: " + totalBytes); in executeAction()
/packages/modules/Connectivity/service-t/src/com/android/metrics/
DNetworkStatsMetricsLogger.java122 int totalBytes = 0; in getStatsFilesAttributes() local
128 totalBytes += (int) (new File(statsDir, name).length()); in getStatsFilesAttributes()
131 return new Pair<>(totalFiles, totalBytes); in getStatsFilesAttributes()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppTransferAdapter.java100 long totalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); in bindView() local
112 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
117 Formatter.formatFileSize(mContext, totalBytes)); in bindView()
DBluetoothOppShareInfo.java82 long totalBytes, in BluetoothOppShareInfo() argument
96 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
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()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
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()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageSettingsManager.java97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes()
100 mPrivateStorageInfo.totalBytes); in onReceivedSizes()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DLowStorageSlice.java63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DbufferCopy.cpp46 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local
49 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DbufferCopy.cpp58 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local
61 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()

123