/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/http/ |
D | HttpClientUtil.java | 116 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/ |
D | TopLevelStoragePreferenceController.java | 79 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()
|
D | PublicVolumeSettings.java | 178 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()
|
D | StorageCategoryFragment.java | 215 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()
|
D | StorageDashboardFragment.java | 389 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/ |
D | telemetry_stats_and_connectivity_script.lua | 78 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/ |
D | NetworkStatsHistory.java | 107 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/ |
D | AbstractPublicApiTest.java | 177 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/ |
D | BluetoothOppObexClientSessionTest.java | 101 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()
|
D | BluetoothOppShareInfoTest.java | 44 private int totalBytes = 1023; field in BluetoothOppShareInfoTest 63 totalBytes, in setUp() 79 assertThat(mBluetoothOppShareInfo.mTotalBytes).isEqualTo(totalBytes); in testConstructor()
|
D | BluetoothOppObexServerSessionTest.java | 142 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/ |
D | AppDataUsagePreferenceController.java | 133 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/ |
D | BluetoothLeAdvertiser.java | 133 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();
|
D | TransportDiscoveryData.java | 161 ByteBuffer buffer = ByteBuffer.allocate(totalBytes()); in toByteArray() 181 public int totalBytes() { in totalBytes() method in TransportDiscoveryData 184 size += transportBlock.totalBytes(); in totalBytes()
|
D | TransportBlock.java | 154 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/ |
D | DumpDatabaseAction.java | 65 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/ |
D | NetworkStatsMetricsLogger.java | 122 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/ |
D | BluetoothOppTransferAdapter.java | 100 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()
|
D | BluetoothOppShareInfo.java | 82 long totalBytes, in BluetoothOppShareInfo() argument 96 mTotalBytes = totalBytes; in BluetoothOppShareInfo()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadInfo.java | 308 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/ |
D | ManageCachePage.java | 368 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/ |
D | StorageSettingsManager.java | 97 long privateUsedBytes = mPrivateStorageInfo.totalBytes - mPrivateStorageInfo.freeBytes; in onReceivedSizes() 100 mPrivateStorageInfo.totalBytes); in onReceivedSizes()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/ |
D | LowStorageSlice.java | 63 final double usedPercentage = (double) (info.totalBytes - info.freeBytes) / info.totalBytes; in getSlice()
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | bufferCopy.cpp | 46 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local 49 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | bufferCopy.cpp | 58 const unsigned totalBytes = sizeY + sizeColor; in fillNV21FromNV21() local 61 memcpy(tgt, imgData, totalBytes); in fillNV21FromNV21()
|