Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkRequestStoreDataTest.java29 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 …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiUtils.java22 import com.android.settingslib.wifi.AccessPoint;
38 return AccessPoint.SECURITY_WEP; in getAccessPointSecurity()
40 return AccessPoint.SECURITY_SAE; in getAccessPointSecurity()
42 return AccessPoint.SECURITY_PSK; in getAccessPointSecurity()
44 return AccessPoint.SECURITY_EAP_SUITE_B; in getAccessPointSecurity()
46 return AccessPoint.SECURITY_EAP; in getAccessPointSecurity()
48 return AccessPoint.SECURITY_OWE; in getAccessPointSecurity()
51 return AccessPoint.SECURITY_NONE; in getAccessPointSecurity()
71 public static WifiConfiguration getWifiConfig(AccessPoint accessPoint, ScanResult scanResult, in getWifiConfig()
82 config.SSID = AccessPoint.convertToQuotedString(scanResult.SSID); in getWifiConfig()
[all …]
DNetworkRequestDialogFragment.java52 import com.android.settingslib.wifi.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()
346 private class AccessPointAdapter extends ArrayAdapter<AccessPoint> {
351 AccessPointAdapter(Context context, int resourceId, List<AccessPoint> objects) { in AccessPointAdapter()
367 final AccessPoint accessPoint = getItem(position); in getView()
437 final List<AccessPoint> list = getAccessPointList(); in renewAccessPointList()
484 final String key = AccessPoint.getKey(mContext, scanResult); in updateKeys()
[all …]
DWifiDetailsFragment.java42 import com.android.settingslib.wifi.AccessPoint;
78 private AccessPoint mAccessPoint;
80 public static void prepareArgs(@NonNull Bundle args, AccessPoint accessPoint) { in prepareArgs()
91 mAccessPoint = new AccessPoint(getContext(), in onCreate()
131 final List<AccessPoint> accessPoints = mConnectivityListener.getAvailableNetworks(); in onWifiListChanged()
132 for (final AccessPoint accessPoint : accessPoints) { in onWifiListChanged()
287 private AccessPoint mAccessPoint;
289 public static void prepareArgs(@NonNull Bundle args, AccessPoint accessPoint) { in prepareArgs()
297 mAccessPoint = new AccessPoint(getContext(), in onCreate()
DWifiConfigHelper.java35 import com.android.settingslib.wifi.AccessPoint;
78 config.SSID = AccessPoint.convertToQuotedString(ssid); in setConfigSsid()
89 case AccessPoint.SECURITY_NONE: in setConfigKeyManagementBySecurity()
92 case AccessPoint.SECURITY_WEP: in setConfigKeyManagementBySecurity()
97 case AccessPoint.SECURITY_PSK: in setConfigKeyManagementBySecurity()
100 case AccessPoint.SECURITY_EAP: in setConfigKeyManagementBySecurity()
DNetworkFragment.java49 import com.android.settingslib.wifi.AccessPoint;
70 AccessPoint.AccessPointListener {
381 final Collection<AccessPoint> accessPoints = mConnectivityListener.getAvailableNetworks(); in updateWifiList()
384 for (final AccessPoint accessPoint : accessPoints) { in updateWifiList()
429 private boolean isCaptivePortal(AccessPoint accessPoint) { in isCaptivePortal()
463 public void onAccessPointChanged(AccessPoint accessPoint) { in onAccessPointChanged()
470 public void onLevelChanged(AccessPoint accessPoint) { in onLevelChanged()
DConnectivityListener.java47 import com.android.settingslib.wifi.AccessPoint;
210 public String getWifiMacAddress(AccessPoint ap) { in getWifiMacAddress()
239 public int getWifiMacRandomizationSetting(AccessPoint ap) { in getWifiMacRandomizationSetting()
247 public void applyMacRandomizationSetting(AccessPoint ap, boolean enable) { in applyMacRandomizationSetting()
354 public List<AccessPoint> getAvailableNetworks() { in getAvailableNetworks()
DWifiConnectionActivity.java33 import com.android.settingslib.wifi.AccessPoint;
60 public static Intent createIntent(Context context, AccessPoint result, int security) { in createIntent()
66 public static Intent createIntent(Context context, AccessPoint result) { in createIntent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/util/
DWifiSecurityUtil.java23 import com.android.settingslib.wifi.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_PSK; in getSecurity()
59 return AccessPoint.SECURITY_EAP; in getSecurity()
61 return (config.wepKeys[0] != null) ? AccessPoint.SECURITY_WEP : AccessPoint.SECURITY_NONE; in getSecurity()
73 case AccessPoint.SECURITY_WEP: in getName()
75 case AccessPoint.SECURITY_PSK: in getName()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DNetworkRequestStoreData.java23 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 …]
DWifiNetworkFactory.java141 public final Map<String, LinkedHashSet<AccessPoint>> mUserApprovedAccessPointMap;
188 public static class AccessPoint { class in WifiNetworkFactory
193 AccessPoint(@NonNull String ssid, @NonNull MacAddress bssid, in AccessPoint() method in WifiNetworkFactory.AccessPoint
210 if (!(obj instanceof AccessPoint)) { in equals()
213 AccessPoint other = (AccessPoint) obj; in equals()
410 public Map<String, Set<AccessPoint>> toSerialize() { in toSerialize()
417 public void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPointMap) { in fromDeserialized()
1589 Set<AccessPoint> approvedAccessPoints = in isAccessPointApprovedInInternalApprovalList()
1592 AccessPoint accessPoint = in isAccessPointApprovedInInternalApprovalList()
1593 new AccessPoint(ssid, bssid, networkType); in isAccessPointApprovedInInternalApprovalList()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/security/
DWifiSecurityHelper.java28 import com.android.settingslib.wifi.AccessPoint;
46 .id(AccessPoint.SECURITY_NONE) in getSecurityTypes()
51 .id(AccessPoint.SECURITY_OWE) in getSecurityTypes()
56 .id(AccessPoint.SECURITY_WEP) in getSecurityTypes()
60 .id(AccessPoint.SECURITY_PSK) in getSecurityTypes()
65 .id(AccessPoint.SECURITY_SAE) in getSecurityTypes()
106 config.SSID = AccessPoint.convertToQuotedString( in getConfig()
114 case AccessPoint.SECURITY_NONE: in getConfig()
118 case AccessPoint.SECURITY_WEP: in getConfig()
131 case AccessPoint.SECURITY_PSK: in getConfig()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController.java77 import com.android.settingslib.wifi.AccessPoint;
105 private final AccessPoint mAccessPoint;
220 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController()
225 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController()
240 public WifiConfigController(WifiConfigUiBase parent, View view, AccessPoint accessPoint, in WifiConfigController()
251 private void initWifiConfigController(AccessPoint accessPoint, int mode) { in initWifiConfigController()
253 mAccessPointSecurity = (accessPoint == null) ? AccessPoint.SECURITY_NONE : in initWifiConfigController()
295 mSecurityInPosition = new Integer[AccessPoint.SECURITY_MAX_VAL]; in initWifiConfigController()
396 String summary = AccessPoint.getSummary( in initWifiConfigController()
421 if (frequency >= AccessPoint.LOWER_FREQ_24GHZ in initWifiConfigController()
[all …]
DWifiDialogActivity.java46 import com.android.settingslib.wifi.AccessPoint;
99 private AccessPoint mAccessPoint;
146 mAccessPoint = new AccessPoint(this, accessPointState); in onCreate()
228 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onForget()
235 AccessPoint.convertToQuotedString(accessPoint.getSsidStr())); in onForget()
276 final AccessPoint accessPoint = dialog.getController().getAccessPoint(); in onSubmit()
301 protected Intent createResultData(WifiConfiguration config, AccessPoint accessPoint) { in createResultData()
DWifiDialog.java33 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()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DAccessPointPreference.java26 import com.android.settingslib.wifi.AccessPoint;
27 import com.android.settingslib.wifi.AccessPoint.Speed;
60 private AccessPoint mAccessPoint;
87 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
93 public AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
100 AccessPointPreference(AccessPoint accessPoint, Context context, UserBadgeCache cache, in AccessPointPreference()
122 public AccessPoint getAccessPoint() { in getAccessPoint()
187 if ((mAccessPoint.getSecurity() != AccessPoint.SECURITY_NONE) in bindFrictionImage()
188 && (mAccessPoint.getSecurity() != AccessPoint.SECURITY_OWE)) { in bindFrictionImage()
247 static void setTitle(AccessPointPreference preference, AccessPoint ap) { in setTitle()
[all …]
DTvAccessPointPreference.java25 import com.android.settingslib.wifi.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/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/connectivity/setup/
DAddStartStateTest.java26 import com.android.settingslib.wifi.AccessPoint;
63 mUserChoiceInfo.setWifiSecurity(AccessPoint.SECURITY_WEP); in testForward_WEP_NeedPassword()
72 mUserChoiceInfo.setWifiSecurity(AccessPoint.SECURITY_PSK); in testForward_WPA_NeedPassword()
81 mUserChoiceInfo.setWifiSecurity(AccessPoint.SECURITY_EAP); in testForward_EAP_NeedPassword()
90 mUserChoiceInfo.setWifiSecurity(AccessPoint.SECURITY_PSK); in testForward_AlreadyHasPassword()
101 mUserChoiceInfo.setWifiSecurity(AccessPoint.SECURITY_NONE); in testForward_DoNotNeedPassword()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigControllerTest.java51 import com.android.settingslib.wifi.AccessPoint;
76 private AccessPoint mAccessPoint;
99 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_PSK); in setUp()
211 mController.onItemSelected(securitySpinner, null, AccessPoint.SECURITY_EAP, 0); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue()
212 mController.onItemSelected(securitySpinner, null, AccessPoint.SECURITY_PSK, 0); in isSubmittable_EapToPskWithValidPassword_shouldReturnTrue()
222 mController.mAccessPointSecurity = AccessPoint.SECURITY_EAP; in isSubmittable_EapWithAkaMethod_shouldReturnTrue()
230 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithoutDomain_shouldReturnFalse()
244 when(mAccessPoint.getSecurity()).thenReturn(AccessPoint.SECURITY_EAP); in isSubmittable_caCertWithDomain_shouldReturnTrue()
384 WifiConfigUiBase parent, View view, AccessPoint accessPoint, int mode) { in TestWifiConfigController()
389 WifiConfigUiBase parent, View view, AccessPoint accessPoint, int mode, in TestWifiConfigController()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/service/network/
DNetworkModule.java27 import com.android.settingslib.wifi.AccessPoint;
126 AccessPoint getAccessPoint(Bundle extras) { in getAccessPoint()
127 AccessPoint accessPoint = new AccessPoint(mContext, extras); in getAccessPoint()
136 return matched == null ? accessPoint : new AccessPoint(mContext, matched.getExtras()); in getAccessPoint()
DNetworkMainState.java34 import com.android.settingslib.wifi.AccessPoint;
49 public class NetworkMainState implements State, AccessPoint.AccessPointListener,
159 final Collection<AccessPoint> accessPoints = in updateWifiList()
162 for (final AccessPoint accessPoint : accessPoints) { in updateWifiList()
308 public void onAccessPointChanged(AccessPoint accessPoint) { in onAccessPointChanged()
320 public void onLevelChanged(AccessPoint accessPoint) { in onLevelChanged()
342 private boolean isCaptivePortal(AccessPoint accessPoint) { in isCaptivePortal()
DWifiDetailsState.java31 import com.android.settingslib.wifi.AccessPoint;
51 private AccessPoint mAccessPoint;
165 final List<AccessPoint> accessPoints = mNetworkModule in onWifiListChanged()
167 for (final AccessPoint accessPoint : accessPoints) { in onWifiListChanged()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DConnectState.java44 import com.android.settingslib.wifi.AccessPoint;
203 List<AccessPoint> accessPointList = mConnectivityListener.getAvailableNetworks(); in onWifiListChanged()
205 for (AccessPoint accessPoint : accessPointList) { in onWifiListChanged()
206 if (accessPoint != null && AccessPoint.convertToQuotedString( in onWifiListChanged()
214 private void inferConnectionStatus(AccessPoint accessPoint) { in inferConnectionStatus()
DAddStartState.java26 import com.android.settingslib.wifi.AccessPoint;
51 if ((wifiSecurity == AccessPoint.SECURITY_WEP in processForward()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowAccessPoint.java19 import com.android.settingslib.wifi.AccessPoint;
24 @Implements(AccessPoint.class)

12