Home
last modified time | relevance | path

Searched refs:signalLevel (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkBadging.java65 @IntRange(from=0, to=4) int signalLevel, @Badging int badging, @Nullable Theme theme) { in getWifiIcon()
66 return Resources.getSystem().getDrawable(getWifiSignalResource(signalLevel), theme); in getWifiIcon()
80 @DrawableRes private static int getWifiSignalResource(int signalLevel) { in getWifiSignalResource() argument
81 switch (signalLevel) { in getWifiSignalResource()
93 throw new IllegalArgumentException("Invalid signal level: " + signalLevel); in getWifiSignalResource()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssMetrics.java565 int signalLevel = getSignalLevel(avgCn0); in reportSignalQuality() local
566 if (signalLevel != mLastSignalLevel) { in reportSignalQuality()
567 FrameworkStatsLog.write(FrameworkStatsLog.GPS_SIGNAL_QUALITY_CHANGED, signalLevel); in reportSignalQuality()
568 mLastSignalLevel = signalLevel; in reportSignalQuality()
571 mBatteryStats.noteGpsSignalQuality(signalLevel); in reportSignalQuality()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DLinkBandwidthEstimator.java801 int signalLevel) { in getAvgUsedBandwidthAtLevel() argument
802 if (signalLevel < 0 || signalLevel >= NUM_SIGNAL_LEVEL) { in getAvgUsedBandwidthAtLevel()
805 int count = network.getCount(mLink, signalLevel); in getAvgUsedBandwidthAtLevel()
807 return (int) (network.getValue(mLink, signalLevel) / count); in getAvgUsedBandwidthAtLevel()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl145 void noteGpsSignalQuality(int signalLevel); in noteGpsSignalQuality() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java2963 int signalLevel, int bwEstExtErrPercent, int coldStartErrPercent, int bwKbps) { in writeBandwidthStats() argument
2965 stats.mBwEstErrorAcc[signalLevel] += Math.abs(bwEstExtErrPercent); in writeBandwidthStats()
2966 stats.mStaticBwErrorAcc[signalLevel] += Math.abs(coldStartErrPercent); in writeBandwidthStats()
2967 stats.mBwAccKbps[signalLevel] += bwKbps; in writeBandwidthStats()
2968 stats.mCount[signalLevel]++; in writeBandwidthStats()
3060 stats.signalLevel = level; in writeBandwidthStatsPerLevel()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistory.java1585 int signalLevel) { in recordGpsSignalQualityEvent() argument
1587 mHistoryCur.states2 = setBitField(mHistoryCur.states2, signalLevel, in recordGpsSignalQualityEvent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DTelephonyMetricsTest.java902 assertEquals(0, stats.perRatTx[0].perLevel[0].signalLevel); in testWriteBandwidthStats()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java1613 public void noteGpsSignalQuality(final int signalLevel) { in noteGpsSignalQuality() argument
1621 mStats.noteGpsSignalQualityLocked(signalLevel, elapsedRealtime, uptime); in noteGpsSignalQuality()
/frameworks/base/services/core/java/com/android/server/power/stats/
DBatteryStatsImpl.java5481 public void noteGpsSignalQualityLocked(int signalLevel, long elapsedRealtimeMs, long uptimeMs) { in noteGpsSignalQualityLocked() argument
5485 if (signalLevel < 0 || signalLevel >= mGpsSignalQualityTimer.length) { in noteGpsSignalQualityLocked()
5489 if (mGpsSignalQualityBin != signalLevel) { in noteGpsSignalQualityLocked()
5493 if(!mGpsSignalQualityTimer[signalLevel].isRunningLocked()) { in noteGpsSignalQualityLocked()
5494 mGpsSignalQualityTimer[signalLevel].startRunningLocked(elapsedRealtimeMs); in noteGpsSignalQualityLocked()
5496 mHistory.recordGpsSignalQualityEvent(elapsedRealtimeMs, uptimeMs, signalLevel); in noteGpsSignalQualityLocked()
5497 mGpsSignalQualityBin = signalLevel; in noteGpsSignalQualityLocked()