/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkRequestStoreDataTest.java | 29 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 112 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromSingleApp() 114 AccessPoint accessPoint = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromSingleApp() 117 Set<AccessPoint> accessPoints = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromSingleApp() 130 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 132 AccessPoint accessPoint1 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 135 Set<AccessPoint> accessPoints1 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps() 140 AccessPoint accessPoint2 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 143 Set<AccessPoint> accessPoints2 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps() 156 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeMultipleNetworkRequestFromMultipleApps() [all …]
|
D | WifiScoreCardTest.java | 32 import com.android.server.wifi.WifiScoreCardProto.AccessPoint; 296 AccessPoint ap = AccessPoint.parseFrom(serialized); in testAccessPointSerialization() 343 AccessPoint.parseFrom(serialized)); in testDeserialization() 367 AccessPoint accessPoint = network.getAccessPoints(0); in testNetworksSerialization()
|
D | WifiNetworkFactoryTest.java | 66 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 2268 Map<String, Set<AccessPoint>> approvedAccessPointsMapToWrite = mDataSource.toSerialize(); in testNetworkSpecifierUserApprovalConfigStoreSave() 2271 Set<AccessPoint> approvedAccessPointsToWrite = in testNetworkSpecifierUserApprovalConfigStoreSave() 2273 Set<AccessPoint> expectedApprovedAccessPoints = in testNetworkSpecifierUserApprovalConfigStoreSave() 2274 new HashSet<AccessPoint>() {{ in testNetworkSpecifierUserApprovalConfigStoreSave() 2275 add(new AccessPoint(TEST_SSID_1, MacAddress.fromString(TEST_BSSID_1), in testNetworkSpecifierUserApprovalConfigStoreSave() 2289 Map<String, Set<AccessPoint>> approvedAccessPointsMapToRead = new HashMap<>(); in testNetworkSpecifierUserApprovalConfigStoreLoad() 2290 Set<AccessPoint> approvedAccessPoints = in testNetworkSpecifierUserApprovalConfigStoreLoad() 2291 new HashSet<AccessPoint>() {{ in testNetworkSpecifierUserApprovalConfigStoreLoad() 2292 add(new AccessPoint(TEST_SSID_1, MacAddress.fromString(TEST_BSSID_1), in testNetworkSpecifierUserApprovalConfigStoreLoad()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 65 import com.android.settingslib.wifi.AccessPoint.Speed; 105 @Mock private AccessPoint.AccessPointListener mMockAccessPointListener; 142 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsSpannableString_returnFalse() 150 AccessPoint activeAp = new TestAccessPointBuilder(mContext).setActive(true).build(); in testCompareTo_GivesActiveBeforeInactive() 151 AccessPoint inactiveAp = new TestAccessPointBuilder(mContext).setActive(false).build(); in testCompareTo_GivesActiveBeforeInactive() 158 AccessPoint nearAp = new TestAccessPointBuilder(mContext).setReachable(true).build(); in testCompareTo_GivesReachableBeforeUnreachable() 159 AccessPoint farAp = new TestAccessPointBuilder(mContext).setReachable(false).build(); in testCompareTo_GivesReachableBeforeUnreachable() 166 AccessPoint savedAp = new TestAccessPointBuilder(mContext).setSaved(true).build(); in testCompareTo_GivesSavedBeforeUnsaved() 167 AccessPoint notSavedAp = new TestAccessPointBuilder(mContext).setSaved(false).build(); in testCompareTo_GivesSavedBeforeUnsaved() 174 AccessPoint fastAp = new TestAccessPointBuilder(mContext).setSpeed(Speed.FAST).build(); in testCompareTo_GivesHighSpeedBeforeLowSpeed() [all …]
|
D | WifiTrackerTest.java | 104 private static final int BADGE_1 = AccessPoint.Speed.MODERATE; 114 private static final int BADGE_2 = AccessPoint.Speed.FAST; 514 List<AccessPoint> aps = tracker.getAccessPoints(); in startTrackingShouldSetConnectedAccessPointAsActive() 572 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldChangeSortOrder() 594 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldNotChangeSortOrderWhenSortingDisabled() 613 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateScoresShouldInsertSpeedIntoAccessPoint() 615 for (AccessPoint ap : aps) { in scoreCacheUpdateScoresShouldInsertSpeedIntoAccessPoint() 630 List<AccessPoint> aps = tracker.getAccessPoints(); in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering() 632 for (AccessPoint ap : aps) { in scoreCacheUpdateMeteredShouldUpdateAccessPointMetering() 652 List<AccessPoint> aps = tracker.getAccessPoints(); in noSpeedsShouldBeInsertedIntoAccessPointWhenScoringUiDisabled() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TestAccessPointBuilder.java | 30 import com.android.settingslib.wifi.AccessPoint.Speed; 50 private int mRssi = AccessPoint.UNREACHABLE_RSSI; 56 private int mSecurity = AccessPoint.SECURITY_NONE; 72 public AccessPoint build() { in build() 83 bundle.putString(AccessPoint.KEY_SSID, ssid); in build() 84 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build() 85 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build() 86 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build() 88 bundle.putString(AccessPoint.KEY_FQDN, mFqdn); in build() 91 bundle.putString(AccessPoint.KEY_PROVIDER_FRIENDLY_NAME, mProviderFriendlyName); in build() [all …]
|
D | WifiTracker.java | 133 private final List<AccessPoint> mInternalAccessPoints = new ArrayList<>(); 421 public List<AccessPoint> getAccessPoints() { in getAccessPoints() 451 for (AccessPoint accessPoint : getAccessPoints()) { in dump() 478 String apKey = AccessPoint.getKey(result); in updateScanResultCache() 555 configsByKey.put(AccessPoint.getKey(config), config); in updateAccessPoints() 571 List<AccessPoint> cachedAccessPoints; in updateAccessPoints() 574 ArrayList<AccessPoint> accessPoints = new ArrayList<>(); in updateAccessPoints() 586 AccessPoint accessPoint = in updateAccessPoints() 606 for (AccessPoint ap : accessPoints) { in updateAccessPoints() 614 AccessPoint activeAp = new AccessPoint(mContext, connectionConfig); in updateAccessPoints() [all …]
|
D | WifiUtils.java | 33 public static String buildLoggingSummary(AccessPoint accessPoint, WifiConfiguration config) { in buildLoggingSummary() 84 static String getVisibilityStatus(AccessPoint accessPoint) { in getVisibilityStatus() 99 if (accessPoint.getSpeed() != AccessPoint.Speed.NONE) { in getVisibilityStatus() 121 if (result.frequency >= AccessPoint.LOWER_FREQ_5GHZ in getVisibilityStatus() 122 && result.frequency <= AccessPoint.HIGHER_FREQ_5GHZ) { in getVisibilityStatus() 134 } else if (result.frequency >= AccessPoint.LOWER_FREQ_24GHZ in getVisibilityStatus() 135 && result.frequency <= AccessPoint.HIGHER_FREQ_24GHZ) { in getVisibilityStatus() 174 /* package */ static String verboseScanResultSummary(AccessPoint accessPoint, ScanResult result, in verboseScanResultSummary() 184 if (speed != AccessPoint.Speed.NONE) { in verboseScanResultSummary() 194 @AccessPoint.Speed [all …]
|
D | AccessPointPreference.java | 42 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() 205 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE_TRANSITION)) { in bindFrictionImage() 266 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle() [all …]
|
D | WifiSavedConfigUtils.java | 38 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()
|
D | AccessPoint.java | 86 public class AccessPoint implements Comparable<AccessPoint> { class 268 public AccessPoint(Context context, Bundle savedState) { in AccessPoint() method in AccessPoint 336 public AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() method in AccessPoint 346 public AccessPoint(Context context, PasspointConfiguration config) { in AccessPoint() method in AccessPoint 356 public AccessPoint(@NonNull Context context, @NonNull WifiConfiguration config, in AccessPoint() method in AccessPoint 370 public AccessPoint(@NonNull Context context, @NonNull OsuProvider provider, in AccessPoint() method in AccessPoint 378 AccessPoint(Context context, Collection<ScanResult> results) { in AccessPoint() method in AccessPoint 422 public int compareTo(@NonNull AccessPoint other) { in compareTo() 459 if (!(other instanceof AccessPoint)) return false; in equals() 460 return (this.compareTo((AccessPoint) other) == 0); in equals() [all …]
|
D | WifiStatusTracker.java | 174 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkRequestStoreData.java | 22 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 63 Map<String, Set<AccessPoint>> toSerialize(); in toSerialize() 70 void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPoints); in fromDeserialized() 133 XmlSerializer out, final Map<String, Set<AccessPoint>> approvedAccessPointsMap) in serializeApprovedAccessPointsMap() 138 for (Entry<String, Set<AccessPoint>> entry : approvedAccessPointsMap.entrySet()) { in serializeApprovedAccessPointsMap() 155 XmlSerializer out, final Set<AccessPoint> approvedAccessPoints) in serializeApprovedAccessPoints() 157 for (AccessPoint approvedAccessPoint : approvedAccessPoints) { in serializeApprovedAccessPoints() 169 AccessPoint approvedAccessPoint) in serializeApprovedAccessPoint() 186 private Map<String, Set<AccessPoint>> parseApprovedAccessPointsMap(XmlPullParser in, in parseApprovedAccessPointsMap() 189 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in parseApprovedAccessPointsMap() [all …]
|
D | WifiNetworkFactory.java | 121 private final Map<String, Set<AccessPoint>> mUserApprovedAccessPointMap = new HashMap<>(); 153 public static class AccessPoint { class in WifiNetworkFactory 158 AccessPoint(@NonNull String ssid, @NonNull MacAddress bssid, in AccessPoint() method in WifiNetworkFactory.AccessPoint 175 if (!(obj instanceof AccessPoint)) { in equals() 178 AccessPoint other = (AccessPoint) obj; in equals() 346 public Map<String, Set<AccessPoint>> toSerialize() { in toSerialize() 353 public void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPointMap) { in fromDeserialized() 1229 Set<AccessPoint> approvedAccessPoints = in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() 1234 AccessPoint accessPoint = in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() 1235 new AccessPoint(scanResult.SSID, in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() [all …]
|
D | WifiScoreCard.java | 34 import com.android.server.wifi.WifiScoreCardProto.AccessPoint; 428 AccessPoint toAccessPoint() { in toAccessPoint() 431 AccessPoint toAccessPoint(boolean obfuscate) { in toAccessPoint() 433 AccessPoint.Builder builder = AccessPoint.newBuilder(); in toAccessPoint() 446 PerBssid merge(AccessPoint ap) { in merge() 499 AccessPoint ap; in finishPendingRead() 501 ap = AccessPoint.parseFrom(serialized); in finishPendingRead() 636 PerBssid perBssidFromAccessPoint(String ssid, AccessPoint ap) { in perBssidFromAccessPoint()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/wifi/ |
D | AccessPointPreferenceTest.java | 42 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()
|
D | WifiUtilsTest.java | 65 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/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkController.java | 24 import com.android.settingslib.wifi.AccessPoint; 96 int getIcon(AccessPoint ap); in getIcon() 97 boolean connect(AccessPoint ap); in connect() 101 void onAccessPointsChanged(List<AccessPoint> accessPoints); in onAccessPointsChanged()
|
D | AccessPointControllerImpl.java | 28 import com.android.settingslib.wifi.AccessPoint; 102 public int getIcon(AccessPoint ap) { in getIcon() 107 public boolean connect(AccessPoint ap) { in connect() 114 if (ap.getSecurity() != AccessPoint.SECURITY_NONE) { in connect() 134 private void fireAcccessPointsCallback(List<AccessPoint> aps) { in fireAcccessPointsCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | WifiTile.java | 33 import com.android.settingslib.wifi.AccessPoint; 317 private AccessPoint[] mAccessPoints; 358 public void onAccessPointsChanged(final List<AccessPoint> accessPoints) { in onAccessPointsChanged() 359 mAccessPoints = accessPoints.toArray(new AccessPoint[accessPoints.size()]); in onAccessPointsChanged() 368 for (AccessPoint ap : mAccessPoints) { in filterUnreachableAPs() 372 AccessPoint[] unfiltered = mAccessPoints; in filterUnreachableAPs() 373 mAccessPoints = new AccessPoint[numReachable]; in filterUnreachableAPs() 375 for (AccessPoint ap : unfiltered) { in filterUnreachableAPs() 389 final AccessPoint ap = (AccessPoint) item.tag; in onDetailItemClick() 434 final AccessPoint ap = mAccessPoints[i]; in updateItems() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | TronUtils.java | 21 import com.android.settingslib.wifi.AccessPoint.Speed;
|
/frameworks/opt/net/wifi/service/proto/src/ |
D | scorecard.proto | 41 repeated AccessPoint access_points = 3; // The list of related APs 51 message AccessPoint { message
|