Home
last modified time | relevance | path

Searched refs:AccessPoint (Results 1 – 13 of 13) 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<>();
432 public List<AccessPoint> getAccessPoints() { in getAccessPoints()
462 for (AccessPoint accessPoint : getAccessPoints()) { in dump()
489 String apKey = AccessPoint.getKey(mContext, result); in updateScanResultCache()
573 List<AccessPoint> cachedAccessPoints; in updateAccessPoints()
576 ArrayList<AccessPoint> accessPoints = new ArrayList<>(); in updateAccessPoints()
588 AccessPoint accessPoint = in updateAccessPoints()
627 for (AccessPoint ap : accessPoints) { in updateAccessPoints()
635 AccessPoint activeAp = new AccessPoint(mContext, connectionConfig); in updateAccessPoints()
642 for (AccessPoint ap : accessPoints) { in updateAccessPoints()
[all …]
DWifiUtils.java55 public static String buildLoggingSummary(AccessPoint accessPoint, WifiConfiguration config) { in buildLoggingSummary()
107 static String getVisibilityStatus(AccessPoint accessPoint) { in getVisibilityStatus()
124 if (accessPoint.getSpeed() != AccessPoint.Speed.NONE) { in getVisibilityStatus()
148 if (result.frequency >= AccessPoint.LOWER_FREQ_5GHZ in getVisibilityStatus()
149 && result.frequency <= AccessPoint.HIGHER_FREQ_5GHZ) { in getVisibilityStatus()
161 } else if (result.frequency >= AccessPoint.LOWER_FREQ_24GHZ in getVisibilityStatus()
162 && result.frequency <= AccessPoint.HIGHER_FREQ_24GHZ) { in getVisibilityStatus()
174 } else if (result.frequency >= AccessPoint.LOWER_FREQ_60GHZ in getVisibilityStatus()
175 && result.frequency <= AccessPoint.HIGHER_FREQ_60GHZ) { in getVisibilityStatus()
222 /* package */ static String verboseScanResultSummary(AccessPoint accessPoint, ScanResult result, in verboseScanResultSummary()
[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;
102 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
108 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
115 AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
137 public AccessPoint getAccessPoint() { in getAccessPoint()
203 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in bindFrictionImage()
204 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in bindFrictionImage()
265 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle()
273 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { in buildContentDescription()
[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.java337 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/
DAccessPointPreferenceTest.java42 private AccessPoint mockAccessPoint;
48 private AccessPointPreference createWithAccessPoint(AccessPoint accessPoint) { in createWithAccessPoint()
64 final int security = AccessPoint.SECURITY_WEP; in refresh_openNetwork_updateContentDescription()
65 final AccessPoint ap = new TestAccessPointBuilder(mContext) in refresh_openNetwork_updateContentDescription()
94 final int security = AccessPoint.SECURITY_WEP; in refresh_setTitle_shouldUseSsidString()
95 final AccessPoint ap = new TestAccessPointBuilder(mContext) in refresh_setTitle_shouldUseSsidString()
DWifiUtilsTest.java65 private AccessPoint mAccessPoint;
81 bundle.putParcelableArray(AccessPoint.KEY_SCANRESULTS, in testVerboseSummaryString_showsScanResultSpeedLabel()
83 AccessPoint ap = new AccessPoint(mContext, bundle); in testVerboseSummaryString_showsScanResultSpeedLabel()
87 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;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWifiTile.java37 import com.android.settingslib.wifi.AccessPoint;
461 item.icon2 = ap.getSecurity() != AccessPoint.SECURITY_NONE in updateItems()