Home
last modified time | relevance | path

Searched refs:txBytes (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/core/tests/benchmarks/src/android/net/
H A DNetworkStatsBenchmark.java54 recycle.txBytes = 150000; in setUp()
70 recycle.txBytes = 180000 * mSize; in setUp()
/aosp14/frameworks/base/core/java/android/net/netstats/
H A DNetworkStatsDataMigrationUtils.java366 final long[] txBytes; in readPlatformHistory() local
379 txBytes = readFullLongArray(in); in readPlatformHistory()
394 txBytes = readVarLongArray(in); in readPlatformHistory()
410 rxBytes[i], rxPackets[i], txBytes[i], txPackets[i], operations[i]); in readPlatformHistory()
/aosp14/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DBandwidthTest.java333 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults()
338 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
H A DNetworkCycleDataLoaderTest.java135 private NetworkStats.Bucket makeMockBucket(int uid, long rxBytes, long txBytes, in makeMockBucket() argument
140 when(ret.getTxBytes()).thenReturn(txBytes); in makeMockBucket()
/aosp14/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DWifiPowerCalculatorTest.java82 int txBytes, int txPackets) { in buildNetworkStats() argument
86 txBytes, txPackets, 100)) in buildNetworkStats()
H A DBatteryStatsImplTest.java665 private UidTraffic createUidTraffic(int appUid, long rxBytes, long txBytes) { in createUidTraffic() argument
669 parcel.writeLong(txBytes); // mTxBytes in createUidTraffic()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkPolicyManagerServiceTest.java391 private void setMockedTotalBytes(int uid, long rxBytes, long txBytes) { in setMockedTotalBytes() argument
395 when(bucket.getTxBytes()).thenReturn(txBytes); in setMockedTotalBytes()
399 private void increaseMockedTotalBytes(int uid, long rxBytes, long txBytes) { in increaseMockedTotalBytes() argument
401 setMockedTotalBytes(uid, bucket.getRxBytes() + rxBytes, bucket.getTxBytes() + txBytes); in increaseMockedTotalBytes()
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/
H A DBatteryStatsImpl.java12843 final long txBytes = traffic.getTxBytes() - mLastBluetoothActivityInfo.uidTxBytes.get( in updateBluetoothStateLocked() local
12848 mNetworkByteActivityCounters[NETWORK_BT_TX_DATA].addCountLocked(txBytes); in updateBluetoothStateLocked()
12853 u.noteNetworkActivityLocked(NETWORK_BT_TX_DATA, txBytes, 0); in updateBluetoothStateLocked()
12857 totalTxBytes += txBytes; in updateBluetoothStateLocked()
12867 final long txBytes = in updateBluetoothStateLocked() local
12879 if (totalTxBytes > 0 && txBytes > 0) { in updateBluetoothStateLocked()
12880 final long timeTxMs = (leftOverTxTimeMs * txBytes) / totalTxBytes; in updateBluetoothStateLocked()