Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DBluetoothPowerStatsProcessor.java65 public long txBytes; field in BluetoothPowerStatsProcessor.Intermediates
235 cdseIntermediates.txBytes += intermediates.txBytes; in combineDeviceStateEstimates()
255 intermediates.txBytes += mStatsLayout.getUidTxBytes(mTmpUidStatsArray); in computeUidActivityTotals()
295 if (intermediates.txBytes != 0) { in computeUidPowerEstimates()
297 / intermediates.txBytes; in computeUidPowerEstimates()
DWifiPowerStatsCollector.java236 long txBytes = uidDelta.getTxBytes(); in collectNetworkStats() local
239 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats()
249 mLayout.setUidTxBytes(stats, txBytes); in collectNetworkStats()
254 mLayout.setUidTxBytes(stats, mLayout.getUidTxBytes(stats) + txBytes); in collectNetworkStats()
DMobileRadioPowerStatsCollector.java310 long txBytes = uidDelta.getTxBytes(); in collectNetworkStats() local
313 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats()
323 mLayout.setUidTxBytes(stats, txBytes); in collectNetworkStats()
328 mLayout.setUidTxBytes(stats, mLayout.getUidTxBytes(stats) + txBytes); in collectNetworkStats()
DBatteryStatsImpl.java13362 final long txBytes = traffic.getTxBytes() - mLastBluetoothActivityInfo.uidTxBytes.get( in updateBluetoothStateLocked() local
13367 mNetworkByteActivityCounters[NETWORK_BT_TX_DATA].addCountLocked(txBytes); in updateBluetoothStateLocked()
13372 u.noteNetworkActivityLocked(NETWORK_BT_TX_DATA, txBytes, 0); in updateBluetoothStateLocked()
13376 totalTxBytes += txBytes; in updateBluetoothStateLocked()
13386 final long txBytes = in updateBluetoothStateLocked() local
13398 if (totalTxBytes > 0 && txBytes > 0) { in updateBluetoothStateLocked()
13399 final long timeTxMs = (leftOverTxTimeMs * txBytes) / totalTxBytes; in updateBluetoothStateLocked()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java54 recycle.txBytes = 150000; in setUp()
70 recycle.txBytes = 180000 * mSize; in setUp()
/frameworks/base/core/java/android/net/netstats/
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()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBluetoothPowerStatsCollectorTest.java296 private UidTraffic mockUidTraffic(int uid, long rxBytes, long txBytes) { in mockUidTraffic() argument
301 when(traffic.getTxBytes()).thenReturn(txBytes); in mockUidTraffic()
307 uidTrafficParcel.writeLong(txBytes); in mockUidTraffic()
DBluetoothPowerCalculatorTest.java343 private UidTraffic createUidTraffic(int appUid, long rxBytes, long txBytes) { in createUidTraffic() argument
348 when(uidTraffic.getTxBytes()).thenReturn(txBytes); in createUidTraffic()
354 uidTrafficParcel.writeLong(txBytes); in createUidTraffic()
DWifiPowerStatsCollectorTest.java395 private void mockNetworkStatsEntry(int uid, long rxBytes, long rxPackets, long txBytes, in mockNetworkStatsEntry() argument
405 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
413 txBytes, txPackets, 100)); in mockNetworkStatsEntry()
DWifiPowerCalculatorTest.java94 long txBytes, long txPackets) { in buildNetworkStats() argument
107 when(entry1.getTxBytes()).thenReturn(txBytes); in buildNetworkStats()
130 txBytes, txPackets, 100)) in buildNetworkStats()
DBluetoothPowerStatsProcessorTest.java521 private UidTraffic mockUidTraffic(int uid, long rxBytes, long txBytes) { in mockUidTraffic() argument
526 when(traffic.getTxBytes()).thenReturn(txBytes); in mockUidTraffic()
532 uidTrafficParcel.writeLong(txBytes); in mockUidTraffic()
DMobileRadioPowerStatsProcessorTest.java512 long rxPackets, long txBytes, long txPackets, long operations) { in mockNetworkStatsEntry() argument
521 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
527 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
DWifiPowerStatsProcessorTest.java572 long rxPackets, long txBytes, long txPackets, long operations) { in mockNetworkStatsEntry() argument
581 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
587 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
DMobileRadioPowerStatsCollectorTest.java469 long txBytes, long txPackets) { in mockNetworkStatsEntry() argument
477 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
DMobileRadioPowerCalculatorTest.java1072 long rxPackets, long txBytes, long txPackets, long operations) { in mockNetworkStatsEntry() argument
1081 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
1087 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
DBatteryStatsImplTest.java859 private UidTraffic createUidTraffic(int appUid, long rxBytes, long txBytes) { in createUidTraffic() argument
864 when(uidTraffic.getTxBytes()).thenReturn(txBytes); in createUidTraffic()
870 parcel.writeLong(txBytes); // mTxBytes in createUidTraffic()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java334 totalStats.txBytes += statsEntry.txBytes; in addStatsToResults()
339 results.putLong(label + "tx", totalStats.txBytes); in addStatsToResults()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DAggregatedMobileDataStatsPuller.java116 public void addTxBytes(long txBytes) { in addTxBytes() argument
117 mTxBytes += txBytes; in addTxBytes()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java136 private NetworkStats.Bucket makeMockBucket(int uid, long rxBytes, long txBytes, in makeMockBucket() argument
141 when(ret.getTxBytes()).thenReturn(txBytes); in makeMockBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DLinkBandwidthEstimatorTest.java133 private void addTxBytes(long txBytes) { in addTxBytes() argument
134 mTxBytes += txBytes; in addTxBytes()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java421 private void setMockedTotalBytes(int uid, long rxBytes, long txBytes) { in setMockedTotalBytes() argument
425 when(bucket.getTxBytes()).thenReturn(txBytes); in setMockedTotalBytes()
429 private void increaseMockedTotalBytes(int uid, long rxBytes, long txBytes) { in increaseMockedTotalBytes() argument
431 setMockedTotalBytes(uid, bucket.getRxBytes() + rxBytes, bucket.getTxBytes() + txBytes); in increaseMockedTotalBytes()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java2751 private void assertVtDataUsageUpdated(int expectedToken, long rxBytes, long txBytes) in assertVtDataUsageUpdated() argument
2767 if (rxBytes != 0 || txBytes != 0) { in assertVtDataUsageUpdated()
2771 txBytes, 0L, 0L)); in assertVtDataUsageUpdated()