/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | BluetoothPowerStatsProcessor.java | 53 public long rxBytes; field in BluetoothPowerStatsProcessor.Intermediates 232 cdseIntermediates.rxBytes += intermediates.rxBytes; in combineDeviceStateEstimates() 254 intermediates.rxBytes += mStatsLayout.getUidRxBytes(mTmpUidStatsArray); in computeUidActivityTotals() 284 if (intermediates.rxBytes != 0) { in computeUidPowerEstimates() 286 / intermediates.rxBytes; in computeUidPowerEstimates()
|
D | WifiPowerStatsCollector.java | 235 long rxBytes = uidDelta.getRxBytes(); in collectNetworkStats() local 239 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats() 248 mLayout.setUidRxBytes(stats, rxBytes); in collectNetworkStats() 253 mLayout.setUidRxBytes(stats, mLayout.getUidRxBytes(stats) + rxBytes); in collectNetworkStats()
|
D | MobileRadioPowerStatsCollector.java | 309 long rxBytes = uidDelta.getRxBytes(); in collectNetworkStats() local 313 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats() 322 mLayout.setUidRxBytes(stats, rxBytes); in collectNetworkStats() 327 mLayout.setUidRxBytes(stats, mLayout.getUidRxBytes(stats) + rxBytes); in collectNetworkStats()
|
D | BatteryStatsImpl.java | 13360 final long rxBytes = traffic.getRxBytes() - mLastBluetoothActivityInfo.uidRxBytes.get( in updateBluetoothStateLocked() local 13366 mNetworkByteActivityCounters[NETWORK_BT_RX_DATA].addCountLocked(rxBytes); in updateBluetoothStateLocked() 13371 u.noteNetworkActivityLocked(NETWORK_BT_RX_DATA, rxBytes, 0); in updateBluetoothStateLocked() 13375 totalRxBytes += rxBytes; in updateBluetoothStateLocked() 13384 final long rxBytes = in updateBluetoothStateLocked() local 13393 if (totalRxBytes > 0 && rxBytes > 0) { in updateBluetoothStateLocked() 13394 final long timeRxMs = (leftOverRxTimeMs * rxBytes) / totalRxBytes; in updateBluetoothStateLocked()
|
/frameworks/base/core/tests/benchmarks/src/android/net/ |
D | NetworkStatsBenchmark.java | 52 recycle.rxBytes = 60000; in setUp() 68 recycle.rxBytes = 90000 * mSize; in setUp()
|
/frameworks/base/core/java/android/net/netstats/ |
D | NetworkStatsDataMigrationUtils.java | 364 final long[] rxBytes; in readPlatformHistory() local 377 rxBytes = readFullLongArray(in); in readPlatformHistory() 392 rxBytes = 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 300 when(traffic.getRxBytes()).thenReturn(rxBytes); in mockUidTraffic() 306 uidTrafficParcel.writeLong(rxBytes); in mockUidTraffic()
|
D | BluetoothPowerCalculatorTest.java | 343 private UidTraffic createUidTraffic(int appUid, long rxBytes, long txBytes) { in createUidTraffic() argument 347 when(uidTraffic.getRxBytes()).thenReturn(rxBytes); in createUidTraffic() 353 uidTrafficParcel.writeLong(rxBytes); in createUidTraffic()
|
D | WifiPowerStatsCollectorTest.java | 395 private void mockNetworkStatsEntry(int uid, long rxBytes, long rxPackets, long txBytes, in mockNetworkStatsEntry() argument 403 when(entry.getRxBytes()).thenReturn(rxBytes); in mockNetworkStatsEntry() 412 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, rxPackets, in mockNetworkStatsEntry()
|
D | WifiPowerCalculatorTest.java | 93 private NetworkStats buildNetworkStats(long elapsedRealtime, long rxBytes, long rxPackets, in buildNetworkStats() argument 105 when(entry1.getRxBytes()).thenReturn(rxBytes); in buildNetworkStats() 129 METERED_NO, ROAMING_NO, DEFAULT_NETWORK_NO, rxBytes, rxPackets, in buildNetworkStats()
|
D | BluetoothPowerStatsProcessorTest.java | 521 private UidTraffic mockUidTraffic(int uid, long rxBytes, long txBytes) { in mockUidTraffic() argument 525 when(traffic.getRxBytes()).thenReturn(rxBytes); in mockUidTraffic() 531 uidTrafficParcel.writeLong(rxBytes); in mockUidTraffic()
|
D | MobileRadioPowerStatsProcessorTest.java | 511 int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, in mockNetworkStatsEntry() argument 519 when(entry.getRxBytes()).thenReturn(rxBytes); in mockNetworkStatsEntry() 527 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
|
D | WifiPowerStatsProcessorTest.java | 571 int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, in mockNetworkStatsEntry() argument 579 when(entry.getRxBytes()).thenReturn(rxBytes); in mockNetworkStatsEntry() 587 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
|
D | MobileRadioPowerStatsCollectorTest.java | 468 private static NetworkStats.Entry mockNetworkStatsEntry(int uid, long rxBytes, long rxPackets, in mockNetworkStatsEntry() argument 475 when(entry.getRxBytes()).thenReturn(rxBytes); in mockNetworkStatsEntry()
|
D | MobileRadioPowerCalculatorTest.java | 1071 int set, int tag, int metered, int roaming, int defaultNetwork, long rxBytes, in mockNetworkStatsEntry() argument 1079 when(entry.getRxBytes()).thenReturn(rxBytes); 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 863 when(uidTraffic.getRxBytes()).thenReturn(rxBytes); in createUidTraffic() 869 parcel.writeLong(rxBytes); // mRxBytes in createUidTraffic()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
D | BandwidthTest.java | 333 totalStats.rxBytes += statsEntry.rxBytes; in addStatsToResults() 340 results.putLong(label + "rx", totalStats.rxBytes); in addStatsToResults()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | AggregatedMobileDataStatsPuller.java | 112 public void addRxBytes(long rxBytes) { in addRxBytes() argument 113 mRxBytes += rxBytes; in addRxBytes()
|
/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 140 when(ret.getRxBytes()).thenReturn(rxBytes); in makeMockBucket()
|
/frameworks/base/core/tests/utillib/src/android/test/ |
D | BandwidthTestCase.java | 149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | LinkBandwidthEstimatorTest.java | 138 private void addRxBytes(long rxBytes) { in addRxBytes() argument 139 mRxBytes += rxBytes; in addRxBytes() 143 private void subtractRxBytes(long rxBytes) { in subtractRxBytes() argument 144 mRxBytes -= rxBytes; in subtractRxBytes()
|
/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 424 when(bucket.getRxBytes()).thenReturn(rxBytes); 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() 2770 TAG_NONE, METERED_YES, ROAMING_NO, DEFAULT_NETWORK_YES, rxBytes, 0L, in assertVtDataUsageUpdated()
|