/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BluetoothPowerStatsProcessor.java | 65 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()
|
D | WifiPowerStatsCollector.java | 236 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()
|
D | MobileRadioPowerStatsCollector.java | 310 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()
|
D | BatteryStatsImpl.java | 13362 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/ |
D | NetworkStatsBenchmark.java | 54 recycle.txBytes = 150000; in setUp() 70 recycle.txBytes = 180000 * mSize; in setUp()
|
/frameworks/base/core/java/android/net/netstats/ |
D | NetworkStatsDataMigrationUtils.java | 366 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/ |
D | BluetoothPowerStatsCollectorTest.java | 296 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()
|
D | BluetoothPowerCalculatorTest.java | 343 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()
|
D | WifiPowerStatsCollectorTest.java | 395 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()
|
D | WifiPowerCalculatorTest.java | 94 long txBytes, long txPackets) { in buildNetworkStats() argument 107 when(entry1.getTxBytes()).thenReturn(txBytes); in buildNetworkStats() 130 txBytes, txPackets, 100)) in buildNetworkStats()
|
D | BluetoothPowerStatsProcessorTest.java | 521 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()
|
D | MobileRadioPowerStatsProcessorTest.java | 512 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()
|
D | WifiPowerStatsProcessorTest.java | 572 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()
|
D | MobileRadioPowerStatsCollectorTest.java | 469 long txBytes, long txPackets) { in mockNetworkStatsEntry() argument 477 when(entry.getTxBytes()).thenReturn(txBytes); in mockNetworkStatsEntry()
|
D | MobileRadioPowerCalculatorTest.java | 1072 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()
|
D | BatteryStatsImplTest.java | 859 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/ |
D | BandwidthTest.java | 334 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/ |
D | AggregatedMobileDataStatsPuller.java | 116 public void addTxBytes(long txBytes) { in addTxBytes() argument 117 mTxBytes += txBytes; in addTxBytes()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoaderTest.java | 136 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/ |
D | BandwidthTestCase.java | 150 bundle.putLong(REPORT_KEY_BYTES_SENT, entry.txBytes); in getBandwidthStats()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | LinkBandwidthEstimatorTest.java | 133 private void addTxBytes(long txBytes) { in addTxBytes() argument 134 mTxBytes += txBytes; in addTxBytes()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 421 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/ |
D | ImsPhoneCallTrackerTest.java | 2751 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()
|