Home
last modified time | relevance | path

Searched refs:signalLevel (Results 1 – 5 of 5) 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/location/java/com/android/internal/location/gnssmetrics/
DGnssMetrics.java573 int signalLevel = getSignalLevel(avgCn0); in reportSignalQuality() local
574 if (signalLevel != mLastSignalLevel) { in reportSignalQuality()
575 StatsLog.write(StatsLog.GPS_SIGNAL_QUALITY_CHANGED, signalLevel); in reportSignalQuality()
576 mLastSignalLevel = signalLevel; in reportSignalQuality()
579 mBatteryStats.noteGpsSignalQuality(signalLevel); in reportSignalQuality()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl98 void noteGpsSignalQuality(int signalLevel); in noteGpsSignalQuality() argument
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java639 public void noteGpsSignalQuality(int signalLevel) { in noteGpsSignalQuality() argument
641 mStats.noteGpsSignalQualityLocked(signalLevel); in noteGpsSignalQuality()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java4697 public void noteGpsSignalQualityLocked(int signalLevel) { in noteGpsSignalQualityLocked() argument
4701 if (signalLevel < 0 || signalLevel >= GnssMetrics.NUM_GPS_SIGNAL_QUALITY_LEVELS) { in noteGpsSignalQualityLocked()
4707 if (mGpsSignalQualityBin != signalLevel) { in noteGpsSignalQualityLocked()
4711 if(!mGpsSignalQualityTimer[signalLevel].isRunningLocked()) { in noteGpsSignalQualityLocked()
4712 mGpsSignalQualityTimer[signalLevel].startRunningLocked(elapsedRealtime); in noteGpsSignalQualityLocked()
4715 | (signalLevel << HistoryItem.STATE2_GPS_SIGNAL_QUALITY_SHIFT); in noteGpsSignalQualityLocked()
4717 mGpsSignalQualityBin = signalLevel; in noteGpsSignalQualityLocked()