Home
last modified time | relevance | path

Searched refs:AccessPoint (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java66 import com.android.settingslib.wifi.AccessPoint.Speed;
106 @Mock private AccessPoint.AccessPointListener mMockAccessPointListener;
144 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsSpannableString_returnFalse()
156 AccessPoint passpointAp = new AccessPoint(mContext, spyConfig); in testCompareTo_GivesNull()
163 AccessPoint activeAp = new TestAccessPointBuilder(mContext).setActive(true).build(); in testCompareTo_GivesActiveBeforeInactive()
164 AccessPoint inactiveAp = new TestAccessPointBuilder(mContext).setActive(false).build(); in testCompareTo_GivesActiveBeforeInactive()
171 AccessPoint nearAp = new TestAccessPointBuilder(mContext).setReachable(true).build(); in testCompareTo_GivesReachableBeforeUnreachable()
172 AccessPoint farAp = new TestAccessPointBuilder(mContext).setReachable(false).build(); in testCompareTo_GivesReachableBeforeUnreachable()
179 AccessPoint savedAp = new TestAccessPointBuilder(mContext).setSaved(true).build(); in testCompareTo_GivesSavedBeforeUnsaved()
180 AccessPoint notSavedAp = new TestAccessPointBuilder(mContext).setSaved(false).build(); in testCompareTo_GivesSavedBeforeUnsaved()
[all …]
DWifiTrackerTest.java104 private static final int BADGE_1 = AccessPoint.Speed.MODERATE;
114 private static final int BADGE_2 = AccessPoint.Speed.FAST;
513 List<AccessPoint> aps = tracker.getAccessPoints(); in startTrackingShouldSetConnectedAccessPointAsActive()
571 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldChangeSortOrder()
593 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldNotChangeSortOrderWhenSortingDisabled()
612 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldInsertSpeedIntoAccessPoint()
614 for (AccessPoint ap : aps) { in scoreCacheUpdateScoresShouldInsertSpeedIntoAccessPoint()
629 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
631 for (AccessPoint ap : aps) { in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
651 List<AccessPoint> aps = tracker.getAccessPoints(); in noSpeedsShouldBeInsertedIntoAccessPointWhenScoringUiDisabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java31 import com.android.settingslib.wifi.AccessPoint.Speed;
51 private int mRssi = AccessPoint.UNREACHABLE_RSSI;
57 private int mSecurity = AccessPoint.SECURITY_NONE;
71 public AccessPoint build() { in build()
82 bundle.putString(AccessPoint.KEY_SSID, ssid); in build()
83 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build()
84 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build()
85 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build()
87 bundle.putString(AccessPoint.KEY_PASSPOINT_UNIQUE_ID, mFqdn); in build()
90 bundle.putString(AccessPoint.KEY_PROVIDER_FRIENDLY_NAME, mProviderFriendlyName); in build()
[all …]
DWifiTracker.java144 private final List<AccessPoint> mInternalAccessPoints = new ArrayList<>();
433 public List<AccessPoint> getAccessPoints() { in getAccessPoints()
463 for (AccessPoint accessPoint : getAccessPoints()) { in dump()
490 String apKey = AccessPoint.getKey(mContext, result); in updateScanResultCache()
574 List<AccessPoint> cachedAccessPoints; in updateAccessPoints()
577 ArrayList<AccessPoint> accessPoints = new ArrayList<>(); in updateAccessPoints()
589 AccessPoint accessPoint = in updateAccessPoints()
628 for (AccessPoint ap : accessPoints) { in updateAccessPoints()
636 AccessPoint activeAp = new AccessPoint(mContext, connectionConfig); in updateAccessPoints()
643 for (AccessPoint ap : accessPoints) { in updateAccessPoints()
[all …]
DWifiSavedConfigUtils.java38 public static List<AccessPoint> getAllConfigs(Context context, WifiManager wifiManager) { in getAllConfigs()
39 List<AccessPoint> savedConfigs = new ArrayList<>(); in getAllConfigs()
53 savedConfigs.add(new AccessPoint(context, network)); in getAllConfigs()
60 savedConfigs.add(new AccessPoint(context, config)); in getAllConfigs()
DAccessPointPreference.java42 import com.android.settingslib.wifi.AccessPoint.Speed;
74 private AccessPoint mAccessPoint;
108 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
114 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
121 AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
143 public AccessPoint getAccessPoint() { in getAccessPoint()
210 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in bindFrictionImage()
211 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in bindFrictionImage()
272 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle()
280 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { in buildContentDescription()
[all …]
DWifiUtils.kt162 fun buildLoggingSummary(accessPoint: AccessPoint, config: WifiConfiguration?): String { in <lambda>()
215 fun getVisibilityStatus(accessPoint: AccessPoint): String { in <lambda>()
231 if (accessPoint.speed != AccessPoint.Speed.NONE) { in <lambda>()
254 if (result.frequency >= AccessPoint.LOWER_FREQ_5GHZ && in <lambda>()
255 result.frequency <= AccessPoint.HIGHER_FREQ_5GHZ in <lambda>()
270 } else if (result.frequency >= AccessPoint.LOWER_FREQ_24GHZ && in <lambda>()
271 result.frequency <= AccessPoint.HIGHER_FREQ_24GHZ in <lambda>()
286 } else if (result.frequency >= AccessPoint.LOWER_FREQ_60GHZ && in <lambda>()
287 result.frequency <= AccessPoint.HIGHER_FREQ_60GHZ in <lambda>()
337 accessPoint: AccessPoint, in <lambda>()
[all …]
DAccessPoint.java96 public class AccessPoint implements Comparable<AccessPoint> { class
291 public AccessPoint(Context context, Bundle savedState) { in AccessPoint() method in AccessPoint
367 public AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() method in AccessPoint
377 public AccessPoint(Context context, PasspointConfiguration config) { in AccessPoint() method in AccessPoint
394 public AccessPoint(@NonNull Context context, @NonNull WifiConfiguration config, in AccessPoint() method in AccessPoint
409 public AccessPoint(@NonNull Context context, @NonNull OsuProvider provider, in AccessPoint() method in AccessPoint
417 AccessPoint(Context context, Collection<ScanResult> results) { in AccessPoint() method in AccessPoint
461 public int compareTo(@NonNull AccessPoint other) { in compareTo()
499 if (!(other instanceof AccessPoint)) return false; in equals()
500 return (this.compareTo((AccessPoint) other) == 0); in equals()
[all …]
DWifiStatusTracker.java343 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java46 private AccessPoint mockAccessPoint;
52 private AccessPointPreference createWithAccessPoint(AccessPoint accessPoint) { in createWithAccessPoint()
70 final int security = AccessPoint.SECURITY_WEP; in refresh_openNetwork_updateContentDescription()
71 final AccessPoint ap = new TestAccessPointBuilder(mContext) in refresh_openNetwork_updateContentDescription()
100 final int security = AccessPoint.SECURITY_WEP; in refresh_setTitle_shouldUseSsidString()
101 final AccessPoint ap = new TestAccessPointBuilder(mContext) in refresh_setTitle_shouldUseSsidString()
DWifiUtilsTest.java72 private AccessPoint mAccessPoint;
89 bundle.putParcelableArray(AccessPoint.KEY_SCANRESULTS, in testVerboseSummaryString_showsScanResultSpeedLabel()
91 AccessPoint ap = new AccessPoint(mContext, bundle); in testVerboseSummaryString_showsScanResultSpeedLabel()
95 when(mockBadgeCurve.lookupScore(anyInt())).thenReturn((byte) AccessPoint.Speed.VERY_FAST); in testVerboseSummaryString_showsScanResultSpeedLabel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DTronUtils.java21 import com.android.settingslib.wifi.AccessPoint.Speed;