Home
last modified time | relevance | path

Searched refs:txPackets (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DWifiPowerStatsProcessor.java88 public long txPackets; field in WifiPowerStatsProcessor.Intermediates
323 intermediates.txPackets += mStatsLayout.getUidTxPackets(mTmpUidStatsArray); in computeUidActivityTotals()
343 if (intermediates.txPackets != 0) { in computeUidPowerEstimates()
345 / intermediates.txPackets; in computeUidPowerEstimates()
355 long totalPackets = intermediates.rxPackets + intermediates.txPackets; in computeUidPowerEstimates()
387 + " tx-packets: " + intermediates.txPackets in computeUidPowerEstimates()
DMobileRadioPowerStatsProcessor.java145 public long txPackets; field in MobileRadioPowerStatsProcessor.Intermediates
360 intermediates.txPackets += mStatsLayout.getUidTxPackets(mTmpUidStatsArray); in computeUidRxTxTotals()
379 if (intermediates.txPackets != 0) { in computeUidPowerEstimates()
381 / intermediates.txPackets; in computeUidPowerEstimates()
396 + " tx-packets: " + intermediates.txPackets in computeUidPowerEstimates()
DWifiPowerStatsCollector.java238 long txPackets = uidDelta.getTxPackets(); in collectNetworkStats() local
239 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats()
251 mLayout.setUidTxPackets(stats, txPackets); in collectNetworkStats()
256 mLayout.setUidTxPackets(stats, mLayout.getUidTxPackets(stats) + txPackets); in collectNetworkStats()
DMobileRadioPowerStatsCollector.java312 long txPackets = uidDelta.getTxPackets(); in collectNetworkStats() local
313 if (rxBytes == 0 && txBytes == 0 && rxPackets == 0 && txPackets == 0) { in collectNetworkStats()
325 mLayout.setUidTxPackets(stats, txPackets); in collectNetworkStats()
330 mLayout.setUidTxPackets(stats, mLayout.getUidTxPackets(stats) + txPackets); in collectNetworkStats()
DWifiPowerCalculator.java313 public double calcPowerWithoutControllerDataMah(long rxPackets, long txPackets, in calcPowerWithoutControllerDataMah() argument
316 (rxPackets + txPackets) * mWifiPowerPerPacket in calcPowerWithoutControllerDataMah()
DBatteryStatsImpl.java12342 SparseLongArray txPackets = new SparseLongArray(); in updateWifiState() local
12395 txPackets.incrementValue(uid, entry.getTxPackets()); in updateWifiState()
12559 for (int i = 0; i < txPackets.size(); i++) { in updateWifiState()
12560 final int uid = txPackets.keyAt(i); in updateWifiState()
12561 final long myTxTimeMs = (txPackets.valueAt(i) * leftOverTxTimeMs) in updateWifiState()
13136 long rxPackets, long txPackets, long totalRxPackets, long totalTxPackets) { in smearModemActivityInfoRxTxConsumptionMah() argument
13154 txPackets + rxTxConsumption.txToTotalRatio * rxPackets; in smearModemActivityInfoRxTxConsumptionMah()
/frameworks/base/core/tests/benchmarks/src/android/net/
DNetworkStatsBenchmark.java55 recycle.txPackets = 1500; in setUp()
71 recycle.txPackets = 1200 * mSize; in setUp()
/frameworks/base/core/java/android/net/netstats/
DNetworkStatsDataMigrationUtils.java367 final long[] txPackets; in readPlatformHistory() local
380 txPackets = new long[bucketStart.length]; in readPlatformHistory()
395 txPackets = readVarLongArray(in); in readPlatformHistory()
410 rxBytes[i], rxPackets[i], txBytes[i], txPackets[i], operations[i]); in readPlatformHistory()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DAggregatedMobileDataStatsPuller.java108 public void addTxPackets(long txPackets) { in addTxPackets() argument
109 mTxPackets += txPackets; in addTxPackets()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DWifiPowerStatsCollectorTest.java396 long txPackets) { in mockNetworkStatsEntry() argument
406 when(entry.getTxPackets()).thenReturn(txPackets); in mockNetworkStatsEntry()
413 txBytes, txPackets, 100)); in mockNetworkStatsEntry()
DWifiPowerCalculatorTest.java94 long txBytes, long txPackets) { in buildNetworkStats() argument
108 when(entry1.getTxPackets()).thenReturn(txPackets); in buildNetworkStats()
130 txBytes, txPackets, 100)) in buildNetworkStats()
DMobileRadioPowerStatsProcessorTest.java512 long rxPackets, long txBytes, long txPackets, long operations) { in mockNetworkStatsEntry() argument
522 when(entry.getTxPackets()).thenReturn(txPackets); 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
582 when(entry.getTxPackets()).thenReturn(txPackets); in mockNetworkStatsEntry()
587 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
DMobileRadioPowerStatsCollectorTest.java469 long txBytes, long txPackets) { in mockNetworkStatsEntry() argument
478 when(entry.getTxPackets()).thenReturn(txPackets); in mockNetworkStatsEntry()
DMobileRadioPowerCalculatorTest.java1072 long rxPackets, long txBytes, long txPackets, long operations) { in mockNetworkStatsEntry() argument
1082 when(entry.getTxPackets()).thenReturn(txPackets); in mockNetworkStatsEntry()
1087 roaming, defaultNetwork, rxBytes, rxPackets, txBytes, txPackets, operations); in mockNetworkStatsEntry()
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java152 bundle.putLong(REPORT_KEY_PACKETS_SENT, entry.txPackets); in getBandwidthStats()
/frameworks/base/core/java/android/os/
DBatteryStats.java5921 sb.append(mrs.rxPackets + mrs.txPackets); in dumpLocked()
8999 public final long txPackets; field in UidMobileRadioStats
9004 private UidMobileRadioStats(int uid, long rxPackets, long txPackets, long radioActiveMs, in UidMobileRadioStats() argument
9007 this.txPackets = txPackets; in UidMobileRadioStats()
9029 final long txPackets = u.getNetworkActivityPackets( in getUidMobileRadioStats() local
9031 if (rxPackets == 0 && txPackets == 0) { in getUidMobileRadioStats()
9036 final double msPerPacket = (double) radioActiveMs / (rxPackets + txPackets); in getUidMobileRadioStats()
9041 new UidMobileRadioStats(uid, rxPackets, txPackets, radioActiveMs, in getUidMobileRadioStats()