/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkRequestStoreDataTest.java | 29 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 115 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromSingleApp() 117 AccessPoint accessPoint = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromSingleApp() 120 Set<AccessPoint> accessPoints = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromSingleApp() 133 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 135 AccessPoint accessPoint1 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 138 Set<AccessPoint> accessPoints1 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps() 143 AccessPoint accessPoint2 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 146 Set<AccessPoint> accessPoints2 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps() 159 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 | 67 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 1143 Set<AccessPoint> userApprovedAccessPoints = mWifiNetworkFactory.mUserApprovedAccessPointMap in testNetworkSpecifierHandleUserSelectionConnectToNetworkExceedApprovedListCapacity() 2346 Map<String, Set<AccessPoint>> approvedAccessPointsMapToWrite = mDataSource.toSerialize(); in testNetworkSpecifierUserApprovalConfigStoreSave() 2349 Set<AccessPoint> approvedAccessPointsToWrite = in testNetworkSpecifierUserApprovalConfigStoreSave() 2351 Set<AccessPoint> expectedApprovedAccessPoints = in testNetworkSpecifierUserApprovalConfigStoreSave() 2352 new HashSet<AccessPoint>() {{ in testNetworkSpecifierUserApprovalConfigStoreSave() 2353 add(new AccessPoint(TEST_SSID_1, MacAddress.fromString(TEST_BSSID_1), in testNetworkSpecifierUserApprovalConfigStoreSave() 2367 Map<String, Set<AccessPoint>> approvedAccessPointsMapToRead = new HashMap<>(); in testNetworkSpecifierUserApprovalConfigStoreLoad() 2368 Set<AccessPoint> approvedAccessPoints = in testNetworkSpecifierUserApprovalConfigStoreLoad() 2369 new HashSet<AccessPoint>() {{ in testNetworkSpecifierUserApprovalConfigStoreLoad() [all …]
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 66 import com.android.settingslib.wifi.AccessPoint.Speed; 106 @Mock private AccessPoint.AccessPointListener mMockAccessPointListener; 143 final AccessPoint ap = new AccessPoint(InstrumentationRegistry.getTargetContext(), bundle); in testSsidIsSpannableString_returnFalse() 151 AccessPoint activeAp = new TestAccessPointBuilder(mContext).setActive(true).build(); in testCompareTo_GivesActiveBeforeInactive() 152 AccessPoint inactiveAp = new TestAccessPointBuilder(mContext).setActive(false).build(); in testCompareTo_GivesActiveBeforeInactive() 159 AccessPoint nearAp = new TestAccessPointBuilder(mContext).setReachable(true).build(); in testCompareTo_GivesReachableBeforeUnreachable() 160 AccessPoint farAp = new TestAccessPointBuilder(mContext).setReachable(false).build(); in testCompareTo_GivesReachableBeforeUnreachable() 167 AccessPoint savedAp = new TestAccessPointBuilder(mContext).setSaved(true).build(); in testCompareTo_GivesSavedBeforeUnsaved() 168 AccessPoint notSavedAp = new TestAccessPointBuilder(mContext).setSaved(false).build(); in testCompareTo_GivesSavedBeforeUnsaved() 175 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 | 135 private final List<AccessPoint> mInternalAccessPoints = new ArrayList<>(); 423 public List<AccessPoint> getAccessPoints() { in getAccessPoints() 453 for (AccessPoint accessPoint : getAccessPoints()) { in dump() 480 String apKey = AccessPoint.getKey(mContext, result); in updateScanResultCache() 565 List<AccessPoint> cachedAccessPoints; in updateAccessPoints() 568 ArrayList<AccessPoint> accessPoints = new ArrayList<>(); in updateAccessPoints() 580 AccessPoint accessPoint = in updateAccessPoints() 619 for (AccessPoint ap : accessPoints) { in updateAccessPoints() 627 AccessPoint activeAp = new AccessPoint(mContext, connectionConfig); in updateAccessPoints() 634 for (AccessPoint ap : accessPoints) { 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() 265 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle() 273 static CharSequence buildContentDescription(Context context, Preference pref, AccessPoint ap) { in buildContentDescription() [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 | 87 public class AccessPoint implements Comparable<AccessPoint> { class 271 public AccessPoint(Context context, Bundle savedState) { in AccessPoint() method in AccessPoint 346 public AccessPoint(Context context, WifiConfiguration config) { in AccessPoint() method in AccessPoint 356 public AccessPoint(Context context, PasspointConfiguration config) { in AccessPoint() method in AccessPoint 366 public AccessPoint(@NonNull Context context, @NonNull WifiConfiguration config, in AccessPoint() method in AccessPoint 380 public AccessPoint(@NonNull Context context, @NonNull OsuProvider provider, in AccessPoint() method in AccessPoint 388 AccessPoint(Context context, Collection<ScanResult> results) { in AccessPoint() method in AccessPoint 432 public int compareTo(@NonNull AccessPoint other) { in compareTo() 469 if (!(other instanceof AccessPoint)) return false; in equals() 470 return (this.compareTo((AccessPoint) other) == 0); in equals() [all …]
|
D | WifiStatusTracker.java | 181 ? null : AccessPoint.getSpeedLabel(mContext, scoredNetwork, rssi); in updateStatusLabel()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | NetworkRequestStoreData.java | 23 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 65 Map<String, Set<AccessPoint>> toSerialize(); in toSerialize() 72 void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPoints); in fromDeserialized() 138 XmlSerializer out, final Map<String, Set<AccessPoint>> approvedAccessPointsMap) in serializeApprovedAccessPointsMap() 143 for (Entry<String, Set<AccessPoint>> entry : approvedAccessPointsMap.entrySet()) { in serializeApprovedAccessPointsMap() 160 XmlSerializer out, final Set<AccessPoint> approvedAccessPoints) in serializeApprovedAccessPoints() 162 for (AccessPoint approvedAccessPoint : approvedAccessPoints) { in serializeApprovedAccessPoints() 174 AccessPoint approvedAccessPoint) in serializeApprovedAccessPoint() 191 private Map<String, Set<AccessPoint>> parseApprovedAccessPointsMap(XmlPullParser in, in parseApprovedAccessPointsMap() 194 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in parseApprovedAccessPointsMap() [all …]
|
D | WifiNetworkFactory.java | 127 public final Map<String, LinkedHashSet<AccessPoint>> mUserApprovedAccessPointMap; 159 public static class AccessPoint { class in WifiNetworkFactory 164 AccessPoint(@NonNull String ssid, @NonNull MacAddress bssid, in AccessPoint() method in WifiNetworkFactory.AccessPoint 181 if (!(obj instanceof AccessPoint)) { in equals() 184 AccessPoint other = (AccessPoint) obj; in equals() 325 public Map<String, Set<AccessPoint>> toSerialize() { in toSerialize() 332 public void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPointMap) { in fromDeserialized() 1259 Set<AccessPoint> approvedAccessPoints = in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() 1264 AccessPoint accessPoint = in findUserApprovedAccessPointForActiveRequestFromActiveMatchedScanResults() 1265 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; 118 int getIcon(AccessPoint ap); in getIcon() 119 boolean connect(AccessPoint ap); in connect() 123 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
|