/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/ |
D | WifiSecurityUtil.java | 23 import com.android.tv.settings.library.network.AccessPoint; 38 return AccessPoint.SECURITY_WEP; in getSecurity() 40 return AccessPoint.SECURITY_PSK; in getSecurity() 42 return AccessPoint.SECURITY_EAP; in getSecurity() 44 return AccessPoint.SECURITY_NONE; in getSecurity() 55 return AccessPoint.SECURITY_SAE; in getSecurity() 58 return AccessPoint.SECURITY_PSK; in getSecurity() 61 return AccessPoint.SECURITY_SAE; in getSecurity() 65 return AccessPoint.SECURITY_EAP; in getSecurity() 67 return (config.wepKeys[0] != null) ? AccessPoint.SECURITY_WEP : AccessPoint.SECURITY_NONE; in getSecurity() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkRequestStoreDataTest.java | 29 import com.android.server.wifi.WifiNetworkFactory.AccessPoint; 114 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromSingleApp() 116 AccessPoint accessPoint = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromSingleApp() 119 Set<AccessPoint> accessPoints = Set.of(accessPoint); in serializeDeserializeSingleNetworkRequestFromSingleApp() 131 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 133 AccessPoint accessPoint1 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 136 Set<AccessPoint> accessPoints1 = Set.of(accessPoint1); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 140 AccessPoint accessPoint2 = new AccessPoint( in serializeDeserializeSingleNetworkRequestFromMultipleApps() 143 Set<AccessPoint> accessPoints2 = Set.of(accessPoint2); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 155 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeMultipleNetworkRequestFromMultipleApps() [all …]
|
/packages/modules/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 | 157 public final Map<String, LinkedHashSet<AccessPoint>> mUserApprovedAccessPointMap; 212 public static class AccessPoint { class in WifiNetworkFactory 217 AccessPoint(@NonNull String ssid, @NonNull MacAddress bssid, in AccessPoint() method in WifiNetworkFactory.AccessPoint 234 if (!(obj instanceof AccessPoint)) { in equals() 237 AccessPoint other = (AccessPoint) obj; in equals() 466 public Map<String, Set<AccessPoint>> toSerialize() { in toSerialize() 473 public void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPointMap) { in fromDeserialized() 1814 Set<AccessPoint> approvedAccessPoints = in isAccessPointApprovedInInternalApprovalList() 1817 AccessPoint accessPoint = in isAccessPointApprovedInInternalApprovalList() 1818 new AccessPoint(ssid, bssid, networkType); in isAccessPointApprovedInInternalApprovalList() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/network/ |
D | AccessPoint.java | 40 public class AccessPoint implements Comparable<AccessPoint> { class 83 mAccessPointListener.onAccessPointChanged(AccessPoint.this); 84 mAccessPointListener.onLevelChanged(AccessPoint.this); 89 AccessPoint.AccessPointListener mAccessPointListener; 91 public AccessPoint(WifiEntry wifiEntry) { in AccessPoint() method in AccessPoint 104 public int compareTo(@NonNull AccessPoint other) { in compareTo() 110 if (!(other instanceof AccessPoint)) return false; in equals() 111 return (this.compareTo((AccessPoint) other) == 0); in equals() 252 public void setListener(AccessPoint.AccessPointListener listener) { in setListener() 292 void onAccessPointChanged(AccessPoint accessPoint); in onAccessPointChanged() [all …]
|
D | WifiTracker.java | 170 public List<AccessPoint> getAccessPoints() { in getAccessPoints() 171 List<AccessPoint> result = new ArrayList<>(); in getAccessPoints() 174 result.add(new AccessPoint(connectedEntry)); in getAccessPoints() 179 result.add(new AccessPoint(entry)); in getAccessPoints()
|
D | WifiDetailsState.java | 64 private AccessPoint mAccessPoint; 81 public static void prepareArgs(@NonNull Bundle args, AccessPoint accessPoint) { in prepareArgs() 159 final List<AccessPoint> accessPoints = mNetworkModule in onWifiListChanged() 161 for (final AccessPoint accessPoint : accessPoints) { in onWifiListChanged() 282 PreferenceCompat preferenceCompat, Context context, AccessPoint accessPoint, in updateRestrictedPreference()
|
D | AccessPointPreferenceController.java | 39 private final AccessPoint mAccessPoint; 46 PreferenceCompatManager preferenceCompatManager, AccessPoint accessPoint, in AccessPointPreferenceController() 95 private boolean isCaptivePortal(AccessPoint accessPoint) { in isCaptivePortal()
|
D | NetworkState.java | 46 AccessPoint.AccessPointListener, 174 final Collection<AccessPoint> accessPoints = in updateWifiList() 177 for (final AccessPoint accessPoint : accessPoints) { in updateWifiList() 290 public void onAccessPointChanged(AccessPoint accessPoint) { in onAccessPointChanged() 299 public void onLevelChanged(AccessPoint accessPoint) { in onLevelChanged()
|
D | ProxySettingsPreferenceController.java | 37 private final AccessPoint mAccessPoint; 41 PreferenceCompatManager preferenceCompatManager, AccessPoint accessPoint) { in ProxySettingsPreferenceController()
|
D | IpSettingsPreferenceController.java | 36 private final AccessPoint mAccessPoint; 40 PreferenceCompatManager preferenceCompatManager, AccessPoint accessPoint) { in IpSettingsPreferenceController()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | AccessPointPreference.java | 25 import com.android.tv.settings.library.network.AccessPoint; 26 import com.android.tv.settings.library.network.AccessPoint.Speed; 59 private AccessPoint mAccessPoint; 86 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference() 92 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference() 99 AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference() 120 public AccessPoint getAccessPoint() { in getAccessPoint() 185 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in bindFrictionImage() 186 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in bindFrictionImage() 242 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle() [all …]
|
D | TvAccessPointPreference.java | 25 import com.android.tv.settings.library.network.AccessPoint; 34 private AccessPoint mAccessPoint; 36 public TvAccessPointPreference(AccessPoint accessPoint, Context context, in TvAccessPointPreference() 78 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in onBindViewHolder() 79 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigController.java | 79 import com.android.settingslib.wifi.AccessPoint; 109 private final AccessPoint mAccessPoint; 229 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController() 234 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController() 249 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController() 260 private void initWifiConfigController(AccessPoint accessPoint, int mode) { in initWifiConfigController() 262 mAccessPointSecurity = (accessPoint == null) ? AccessPoint.SECURITY_NONE : in initWifiConfigController() 311 mSecurityInPosition = new Integer[AccessPoint.SECURITY_MAX_VAL]; in initWifiConfigController() 418 String summary = AccessPoint.getSummary( in initWifiConfigController() 443 if (frequency >= AccessPoint.LOWER_FREQ_24GHZ in initWifiConfigController() [all …]
|
D | WifiDialog.java | 33 import com.android.settingslib.wifi.AccessPoint; 60 private final AccessPoint mAccessPoint; 71 AccessPoint accessPoint, int mode) { in createModal() 81 AccessPoint accessPoint, int mode, @StyleRes int style) { in createModal() 86 /* package */ WifiDialog(Context context, WifiDialogListener listener, AccessPoint accessPoint, in WifiDialog()
|
D | WifiDialogActivity.java | 50 import com.android.settingslib.wifi.AccessPoint; 105 private AccessPoint mAccessPoint; 159 mAccessPoint = new AccessPoint(this, accessPointState); in onCreate() 259 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onForget() 266 AccessPoint.convertToQuotedString(accessPoint.getSsidStr())); in onForget() 309 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onSubmit() 333 protected Intent createResultData(WifiConfiguration config, AccessPoint accessPoint) { in createResultData()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | NetworkRequestDialogFragment.java | 52 import com.android.tv.settings.library.network.AccessPoint; 87 private List<AccessPoint> mAccessPointList; 178 List<AccessPoint> getAccessPointList() { in getAccessPointList() 192 final List<AccessPoint> accessPointList = getAccessPointList(); in onClick() 201 final AccessPoint selectedAccessPoint = accessPointList.get(which); in onClick() 344 private class AccessPointAdapter extends ArrayAdapter<AccessPoint> { 349 AccessPointAdapter(Context context, int resourceId, List<AccessPoint> objects) { in AccessPointAdapter() 365 final AccessPoint accessPoint = getItem(position); in getView() 435 final List<AccessPoint> list = getAccessPointList(); in renewAccessPointList() 482 final String key = AccessPoint.getKey(scanResult); in updateKeys() [all …]
|
D | WifiDetailsFragment.java | 43 import com.android.tv.settings.library.network.AccessPoint; 80 private AccessPoint mAccessPoint; 83 final AccessPoint accessPoint; 85 public AccessPointBinder(AccessPoint accessPoint) { in AccessPointBinder() 90 public static void prepareArgs(@NonNull Bundle args, AccessPoint accessPoint) { in prepareArgs() 137 final List<AccessPoint> accessPoints = mConnectivityListener.getAvailableNetworks(); in onWifiListChanged() 138 for (final AccessPoint accessPoint : accessPoints) { in onWifiListChanged() 291 private AccessPoint mAccessPoint; 293 public static void prepareArgs(@NonNull Bundle args, AccessPoint accessPoint) { in prepareArgs()
|
D | NetworkFragment.java | 56 import com.android.tv.settings.library.network.AccessPoint; 79 AccessPoint.AccessPointListener { 132 private final List<AccessPoint> mCurrentAccessPoints = new ArrayList<>(); 401 final Collection<AccessPoint> newAccessPoints = in updateWifiList() 407 for (final AccessPoint accessPoint : newAccessPoints) { in updateWifiList() 477 for (AccessPoint accessPoint : mCurrentAccessPoints) { in clearCurrentAccessPoints() 483 private boolean isCaptivePortal(AccessPoint accessPoint) { in isCaptivePortal() 512 public void onAccessPointChanged(AccessPoint accessPoint) { in onAccessPointChanged() 519 public void onLevelChanged(AccessPoint accessPoint) { in onLevelChanged()
|
D | ConnectivityListener.java | 51 import com.android.tv.settings.library.network.AccessPoint; 189 public String getWifiMacAddress(AccessPoint ap) { in getWifiMacAddress() 221 public int getWifiMacRandomizationSetting(AccessPoint ap) { in getWifiMacRandomizationSetting() 231 public boolean isWifiMacAddressRandomized(AccessPoint ap) { in isWifiMacAddressRandomized() 238 public void applyMacRandomizationSetting(AccessPoint ap, boolean enable) { in applyMacRandomizationSetting() 375 public List<AccessPoint> getAvailableNetworks() { in getAvailableNetworks()
|
D | WifiConnectionActivity.java | 46 import com.android.tv.settings.library.network.AccessPoint; 59 public static Intent createIntent(Context context, AccessPoint result) { in createIntent() 182 AccessPoint.getSecurity(wifiEntry))); in onCreate() 183 userChoiceInfo.setWifiSecurity(AccessPoint.getSecurity(wifiEntry)); in onCreate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/ |
D | WifiSecurityHelper.java | 32 import com.android.tv.settings.library.network.AccessPoint; 45 .id(AccessPoint.SECURITY_NONE) in getSecurityTypes() 50 .id(AccessPoint.SECURITY_OWE) in getSecurityTypes() 55 .id(AccessPoint.SECURITY_WEP) in getSecurityTypes() 59 .id(AccessPoint.SECURITY_PSK) in getSecurityTypes() 64 .id(AccessPoint.SECURITY_SAE) in getSecurityTypes() 90 config.SSID = AccessPoint.convertToQuotedString( in getConfig()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiConfigControllerTest.java | 56 import com.android.settingslib.wifi.AccessPoint; 80 private AccessPoint mAccessPoint; 104 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp() 216 mController.onItemSelected(securitySpinner, null, AccessPoint.SECURITY_EAP, 0); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue() 217 mController.onItemSelected(securitySpinner, null, AccessPoint.SECURITY_PSK, 0); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue() 227 mController.mAccessPointSecurity = AccessPoint.SECURITY_EAP; in isSubmittable_EapWithAkaMethod_shouldReturnTrue() 235 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithoutDomain_shouldReturnFalse() 249 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithDomain_shouldReturnTrue() 392 WifiConfigUiBase parent, View view, AccessPoint accessPoint, int mode) { in TestWifiConfigController() 397 WifiConfigUiBase parent, View view, AccessPoint accessPoint, int mode, in TestWifiConfigController() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/ |
D | ChooseSecurityState.java | 27 import com.android.tv.settings.library.network.AccessPoint; 104 … if (action.getId() == AccessPoint.SECURITY_NONE || action.getId() == AccessPoint.SECURITY_OWE) { in onGuidedActionClicked()
|
D | ConnectState.java | 51 import com.android.tv.settings.library.network.AccessPoint; 220 for (AccessPoint accessPoint : mConnectivityListener.getAvailableNetworks()) { in getEntryForNetworkId() 234 for (AccessPoint accessPoint : mConnectivityListener.getAvailableNetworks()) { in getEntryForConfiguration() 235 if (AccessPoint.convertToQuotedString(accessPoint.getSsidStr()) in getEntryForConfiguration()
|