Searched refs:multiplySafeByRational (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkStatsHistory.java | 31 import static com.android.internal.net.NetworkUtilsInternal.multiplySafeByRational; 369 final long fracRxBytes = multiplySafeByRational(rxBytes, overlap, duration); in recordData() 370 final long fracRxPackets = multiplySafeByRational(rxPackets, overlap, duration); in recordData() 371 final long fracTxBytes = multiplySafeByRational(txBytes, overlap, duration); in recordData() 372 final long fracTxPackets = multiplySafeByRational(txPackets, overlap, duration); in recordData() 373 final long fracOperations = multiplySafeByRational(operations, overlap, duration); in recordData() 575 entry.activeTime += multiplySafeByRational(activeTime[i], overlap, bucketSpan); in getValues() 578 entry.rxBytes += multiplySafeByRational(rxBytes[i], overlap, bucketSpan); in getValues() 581 entry.rxPackets += multiplySafeByRational(rxPackets[i], overlap, bucketSpan); in getValues() 584 entry.txBytes += multiplySafeByRational(txBytes[i], overlap, bucketSpan); in getValues() [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkUtilsInternal.java | 85 public static long multiplySafeByRational(long value, long num, long den) { in multiplySafeByRational() method in NetworkUtilsInternal
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsCollection.java | 33 import static com.android.internal.net.NetworkUtilsInternal.multiplySafeByRational; 298 final long targetRxBytes = multiplySafeByRational(targetBytes, rawRxBytes, rawBytes); in getHistory() 299 final long targetTxBytes = multiplySafeByRational(targetBytes, rawTxBytes, rawBytes); in getHistory() 308 entry.rxBytes = multiplySafeByRational( in getHistory() 310 entry.txBytes = multiplySafeByRational( in getHistory()
|