Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DAccessPointTest.java70 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsTelephoneSpan()
88 AccessPoint originalAccessPoint = new AccessPoint(mContext, configuration); in testCopyAccessPoint_dataShouldMatch()
93 AccessPoint copy = new AccessPoint(mContext, originalAccessPoint); in testCopyAccessPoint_dataShouldMatch()
105 AccessPoint original = createAccessPointWithScanResultCache(); in testThatCopyAccessPoint_scanCacheShouldMatch()
107 AccessPoint copy = new AccessPoint(mContext, createWifiConfiguration()); in testThatCopyAccessPoint_scanCacheShouldMatch()
108 assertThat(copy.getRssi()).isEqualTo(AccessPoint.UNREACHABLE_RSSI); in testThatCopyAccessPoint_scanCacheShouldMatch()
115 AccessPoint activeAp = new TestAccessPointBuilder(mContext).setActive(true).build(); in testCompareTo_GivesActiveBeforeInactive()
116 AccessPoint inactiveAp = new TestAccessPointBuilder(mContext).setActive(false).build(); in testCompareTo_GivesActiveBeforeInactive()
123 AccessPoint nearAp = new TestAccessPointBuilder(mContext).setReachable(true).build(); in testCompareTo_GivesReachableBeforeUnreachable()
124 AccessPoint farAp = new TestAccessPointBuilder(mContext).setReachable(false).build(); in testCompareTo_GivesReachableBeforeUnreachable()
[all …]
DTestAccessPointBuilder.java39 private int mRssi = AccessPoint.UNREACHABLE_RSSI;
54 public AccessPoint build() { in build()
60 bundle.putString(AccessPoint.KEY_SSID, ssid); in build()
61 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build()
62 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build()
63 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build()
65 bundle.putString(AccessPoint.KEY_FQDN, mFqdn); in build()
68 bundle.putString(AccessPoint.KEY_PROVIDER_FRIENDLY_NAME, mProviderFriendlyName); in build()
70 AccessPoint ap = new AccessPoint(mContext, bundle); in build()
98 } else if (level >= AccessPoint.SIGNAL_LEVELS) { in setLevel()
[all …]
DWifiTrackerTest.java356 AccessPoint result = tracker.getCachedOrCreate(scanResult, new ArrayList<AccessPoint>()); in testAccessPointListenerSetWhenLookingUpUsingScanResults()
372 AccessPoint result = tracker.getCachedOrCreate(configuration, new ArrayList<AccessPoint>()); in testAccessPointListenerSetWhenLookingUpUsingWifiConfiguration()
432 List<AccessPoint> aps = tracker.getAccessPoints(); in startTrackingShouldSetConnectedAccessPointAsActive()
479 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldNotChangeSortOrder()
501 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldNotChangeSortOrderWhenSortingDisabled()
520 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldNotInsertBadgeIntoAccessPoint()
522 for (AccessPoint ap : aps) { in scoreCacheUpdateScoresShouldNotInsertBadgeIntoAccessPoint()
537 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
539 for (AccessPoint ap : aps) { in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering()
559 List<AccessPoint> aps = tracker.getAccessPoints(); in noBadgesShouldBeInsertedIntoAccessPointWhenScoringUiDisabled()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiTracker.java107 private final List<AccessPoint> mAccessPoints = new ArrayList<>();
115 private final List<AccessPoint> mInternalAccessPoints = new ArrayList<>();
372 public List<AccessPoint> getAccessPoints() { in getAccessPoints()
400 for (AccessPoint accessPoint : getAccessPoints()) { in dump()
469 List<AccessPoint> cachedAccessPoints = new ArrayList<>(mInternalAccessPoints); in updateAccessPoints()
470 ArrayList<AccessPoint> accessPoints = new ArrayList<>(); in updateAccessPoints()
473 for (AccessPoint accessPoint : cachedAccessPoints) { in updateAccessPoints()
479 Multimap<String, AccessPoint> apMap = new Multimap<String, AccessPoint>(); in updateAccessPoints()
493 AccessPoint accessPoint = getCachedOrCreate(config, cachedAccessPoints); in updateAccessPoints()
535 for (AccessPoint accessPoint : apMap.getAll(result.SSID)) { 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()
59 savedConfigs.add(new AccessPoint(context, config)); in getAllConfigs()
DAccessPointPreference.java58 private AccessPoint mAccessPoint;
80 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
105 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
130 public AccessPoint getAccessPoint() { in getAccessPoint()
183 if (mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) { in bindFrictionImage()
DAccessPoint.java62 public class AccessPoint implements Comparable<AccessPoint> { class
164 public AccessPoint(Context context, Bundle savedState) { in AccessPoint() method in AccessPoint
203 public AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() method in AccessPoint
213 public AccessPoint(Context context, PasspointConfiguration config) { in AccessPoint() method in AccessPoint
220 AccessPoint(Context context, AccessPoint other) { in AccessPoint() method in AccessPoint
225 AccessPoint(Context context, ScanResult result) { in AccessPoint() method in AccessPoint
236 void copyFrom(AccessPoint that) { in copyFrom()
272 public int compareTo(@NonNull AccessPoint other) { in compareTo()
302 if (!(other instanceof AccessPoint)) return false; in equals()
303 return (this.compareTo((AccessPoint) other) == 0); in equals()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkController.java24 import com.android.settingslib.wifi.AccessPoint;
107 int getIcon(AccessPoint ap); in getIcon()
108 boolean connect(AccessPoint ap); in connect()
112 void onAccessPointsChanged(List<AccessPoint> accessPoints); in onAccessPointsChanged()
DAccessPointControllerImpl.java29 import com.android.settingslib.wifi.AccessPoint;
105 public int getIcon(AccessPoint ap) { in getIcon()
110 public boolean connect(AccessPoint ap) { in connect()
117 if (ap.getSecurity() != AccessPoint.SECURITY_NONE) { in connect()
137 private void fireAcccessPointsCallback(List<AccessPoint> aps) { in fireAcccessPointsCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DWifiTile.java32 import com.android.settingslib.wifi.AccessPoint;
275 private AccessPoint[] mAccessPoints;
318 public void onAccessPointsChanged(final List<AccessPoint> accessPoints) { in onAccessPointsChanged()
319 mAccessPoints = accessPoints.toArray(new AccessPoint[accessPoints.size()]); in onAccessPointsChanged()
334 final AccessPoint ap = (AccessPoint) item.tag; in onDetailItemClick()
373 final AccessPoint ap = mAccessPoints[i]; in updateItems()
379 item.icon2 = ap.getSecurity() != AccessPoint.SECURITY_NONE in updateItems()