Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DBluetoothPowerStatsProcessor.java53 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()
DWifiPowerStatsCollector.java235 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()
DMobileRadioPowerStatsCollector.java309 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()
DBatteryStatsImpl.java13360 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/
DNetworkStatsBenchmark.java52 recycle.rxBytes = 60000; in setUp()
68 recycle.rxBytes = 90000 * mSize; in setUp()
/frameworks/base/core/java/android/net/netstats/
DNetworkStatsDataMigrationUtils.java364 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/
DBluetoothPowerStatsCollectorTest.java296 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()
DBluetoothPowerCalculatorTest.java343 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()
DWifiPowerStatsCollectorTest.java395 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()
DWifiPowerCalculatorTest.java93 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()
DBluetoothPowerStatsProcessorTest.java521 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()
DMobileRadioPowerStatsProcessorTest.java511 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()
DWifiPowerStatsProcessorTest.java571 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()
DMobileRadioPowerStatsCollectorTest.java468 private static NetworkStats.Entry mockNetworkStatsEntry(int uid, long rxBytes, long rxPackets, in mockNetworkStatsEntry() argument
475 when(entry.getRxBytes()).thenReturn(rxBytes); in mockNetworkStatsEntry()
DMobileRadioPowerCalculatorTest.java1071 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()
DBatteryStatsImplTest.java859 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/
DBandwidthTest.java333 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/
DAggregatedMobileDataStatsPuller.java112 public void addRxBytes(long rxBytes) { in addRxBytes() argument
113 mRxBytes += rxBytes; in addRxBytes()
/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
140 when(ret.getRxBytes()).thenReturn(rxBytes); in makeMockBucket()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java149 bundle.putLong(REPORT_KEY_BYTES_RECEIVED, entry.rxBytes); in getBandwidthStats()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DLinkBandwidthEstimatorTest.java138 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/
DNetworkPolicyManagerServiceTest.java421 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/
DImsPhoneCallTrackerTest.java2751 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()