Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DAccessPoint.java140 @IntDef({Speed.NONE, Speed.SLOW, Speed.MODERATE, Speed.FAST, Speed.VERY_FAST})
142 public @interface Speed { annotation in AccessPoint
267 @Speed private int mSpeed = Speed.NONE;
536 if (mSpeed != Speed.NONE) { in toString()
632 @Speed private int generateAverageSpeedForSsid() { in generateAverageSpeedForSsid()
634 return Speed.NONE; in generateAverageSpeedForSsid()
650 if (speed != Speed.NONE) { in generateAverageSpeedForSsid()
655 int speed = count == 0 ? Speed.NONE : totalSpeed / count; in generateAverageSpeedForSsid()
1595 @Speed
1597 if (speed < Speed.SLOW) { in roundToClosestSpeedEnum()
[all …]
DTestAccessPointBuilder.java31 import com.android.settingslib.wifi.AccessPoint.Speed;
50 private int mSpeed = Speed.NONE;
DWifiUtils.kt231 if (accessPoint.speed != AccessPoint.Speed.NONE) { in <lambda>()
350 if (speed != AccessPoint.Speed.NONE) { in <lambda>()
360 @AccessPoint.Speed in <lambda>()
365 val timedScore = scoredNetworkCache[result.BSSID] ?: return AccessPoint.Speed.NONE in <lambda>()
DAccessPointPreference.java42 import com.android.settingslib.wifi.AccessPoint.Speed;
79 private int mWifiSpeed = Speed.NONE;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTronUtils.java21 import com.android.settingslib.wifi.AccessPoint.Speed;
30 public static void logWifiSettingsSpeed(Context context, @Speed int speedEnum) { in logWifiSettingsSpeed()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java66 import com.android.settingslib.wifi.AccessPoint.Speed;
94 new RssiCurve(-150, 10, new byte[]{Speed.FAST});
187 AccessPoint fastAp = new TestAccessPointBuilder(mContext).setSpeed(Speed.FAST).build(); in testCompareTo_GivesHighSpeedBeforeLowSpeed()
188 AccessPoint slowAp = new TestAccessPointBuilder(mContext).setSpeed(Speed.SLOW).build(); in testCompareTo_GivesHighSpeedBeforeLowSpeed()
384 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST);
389 assertThat(ap.getSpeed()).isEqualTo(AccessPoint.Speed.VERY_FAST);
400 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.FAST);
405 assertThat(ap.getSpeed()).isEqualTo(AccessPoint.Speed.FAST);
416 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.MODERATE);
421 assertThat(ap.getSpeed()).isEqualTo(AccessPoint.Speed.MODERATE);
[all …]
DWifiTrackerTest.java104 private static final int BADGE_1 = AccessPoint.Speed.MODERATE;
114 private static final int BADGE_2 = AccessPoint.Speed.FAST;
655 assertEquals(AccessPoint.Speed.NONE, ap.getSpeed()); in noSpeedsShouldBeInsertedIntoAccessPointWhenScoringUiDisabled()
657 assertEquals(AccessPoint.Speed.NONE, ap.getSpeed()); in noSpeedsShouldBeInsertedIntoAccessPointWhenScoringUiDisabled()
/frameworks/base/services/core/jni/gnss/
DUtils.cpp179 SET(Speed, (float)location.speedMetersPerSec); in translateGnssLocation()
230 SET(Speed, location.speedMetersPerSec); in translateGnssLocation()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DWifiUtilsTest.java95 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST); in testVerboseSummaryString_showsScanResultSpeedLabel()