Home
last modified time | relevance | path

Searched refs:softApConfig (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApStoreDataTest.java499 SoftApConfiguration softApConfig = softapConfigCaptor.getValue(); in deserializeSoftAp() local
500 assertNotNull(softApConfig); in deserializeSoftAp()
501 assertEquals(softApConfig.getWifiSsid(), TEST_WIFI_SSID); in deserializeSoftAp()
502 assertEquals(softApConfig.getBssid().toString(), TEST_BSSID); in deserializeSoftAp()
503 assertEquals(softApConfig.getPassphrase(), TEST_PASSPHRASE); in deserializeSoftAp()
504 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeSoftAp()
505 assertEquals(softApConfig.isHiddenSsid(), TEST_HIDDEN); in deserializeSoftAp()
507 assertEquals(softApConfig.getBand(), TEST_BAND_2G); in deserializeSoftAp()
508 assertEquals(softApConfig.getChannel(), TEST_CHANNEL_2G); in deserializeSoftAp()
510 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftAp()
[all …]
DSoftApManagerTest.java748 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() local
752 mSoftApManager = createSoftApManager(softApConfig, ROLE_SOFTAP_TETHERED); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
766 softApConfig.getTargetMode()); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
783 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn6GhzFailGeneralErrorForNoCountryCode() local
787 mSoftApManager = createSoftApManager(softApConfig, ROLE_SOFTAP_TETHERED); in startSoftApOn6GhzFailGeneralErrorForNoCountryCode()
801 softApConfig.getTargetMode()); in startSoftApOn6GhzFailGeneralErrorForNoCountryCode()
813 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure() local
821 mSoftApManager = createSoftApManager(softApConfig, ROLE_SOFTAP_TETHERED); in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
836 softApConfig.getTargetMode()); in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
849 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn6GhzFailGeneralErrorForCountryCodeSetFailure() local
[all …]
DWifiApConfigStoreTest.java673 SoftApConfiguration softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomBand() local
675 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in generateLohsConfig_forwardsCustomBand()
679 softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomBand()
681 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_6GHZ); in generateLohsConfig_forwardsCustomBand()
694 SoftApConfiguration softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomMac() local
696 assertThat(softApConfig.getBssid().toString()).isNotEmpty(); in generateLohsConfig_forwardsCustomMac()
697 assertThat(softApConfig.getBssid()).isEqualTo(TEST_SAP_BSSID_MAC); in generateLohsConfig_forwardsCustomMac()
DActiveModeWardenTest.java475 private void enterSoftApActiveMode(SoftApModeConfiguration softApConfig) throws Exception { in enterSoftApActiveMode() argument
477 SoftApRole softApRole = softApConfig.getTargetMode() == WifiManager.IFACE_IP_MODE_TETHERED in enterSoftApActiveMode()
479 mActiveModeWarden.startSoftAp(softApConfig, TEST_WORKSOURCE); in enterSoftApActiveMode()
482 when(mSoftApManager.getSoftApModeConfiguration()).thenReturn(softApConfig); in enterSoftApActiveMode()
487 assertThat(softApConfig).isEqualTo(mSoftApConfig); in enterSoftApActiveMode()
1087 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in testConfigIsPassedToWifiInjector() local
1090 enterSoftApActiveMode(softApConfig); in testConfigIsPassedToWifiInjector()
DWifiServiceImplTest.java3868 public void onHotspotStarted(SoftApConfiguration softApConfig) { in onHotspotStarted() argument
3870 this.mSoftApConfig = softApConfig; in onHotspotStarted()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherUtil.java59 public static String getHotspotSubtitle(Context context, SoftApConfiguration softApConfig, in getHotspotSubtitle() argument
67 String subtitle = softApConfig.getSsid(); in getHotspotSubtitle()
72 String password = getHotspotPassword(softApConfig); in getHotspotSubtitle()
79 private static String getHotspotPassword(SoftApConfiguration softApConfig) { in getHotspotPassword() argument
80 if (softApConfig.getSecurityType() == SoftApConfiguration.SECURITY_TYPE_OPEN) { in getHotspotPassword()
83 return softApConfig.getPassphrase(); in getHotspotPassword()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSoftApStoreData.java89 SoftApConfiguration softApConfig = mDataSource.toSerialize(); in serializeData() local
90 if (softApConfig != null) { in serializeData()
91 XmlUtil.SoftApConfigurationXmlUtil.writeSoftApConfigurationToXml(out, softApConfig, in serializeData()
106 SoftApConfiguration softApConfig = XmlUtil.SoftApConfigurationXmlUtil.parseFromXml( in deserializeData() local
110 if (softApConfig != null) { in deserializeData()
111 mDataSource.fromDeserialized(softApConfig); in deserializeData()
DActiveModeWarden.java825 public void startSoftAp(SoftApModeConfiguration softApConfig, WorkSource requestorWs) { in startSoftAp() argument
827 Pair.create(softApConfig, requestorWs)); in startSoftAp()
1206 @NonNull SoftApModeConfiguration softApConfig, @NonNull WorkSource requestorWs) { in startSoftApModeManager()
1207 Log.d(TAG, "Starting SoftApModeManager config = " + softApConfig.getSoftApConfiguration()); in startSoftApModeManager()
1208 Preconditions.checkState(softApConfig.getTargetMode() == IFACE_IP_MODE_LOCAL_ONLY in startSoftApModeManager()
1209 || softApConfig.getTargetMode() == IFACE_IP_MODE_TETHERED); in startSoftApModeManager()
1212 softApConfig.getTargetMode() == IFACE_IP_MODE_LOCAL_ONLY in startSoftApModeManager()
1215 new SoftApListener(), callback, softApConfig, requestorWs, in startSoftApModeManager()
1216 getRoleForSoftApIpMode(softApConfig.getTargetMode()), mVerboseLoggingEnabled); in startSoftApModeManager()
2052 SoftApModeConfiguration softApConfig = softApConfigAndWs.first; in processMessageInEmergencyMode() local
[all …]
DWifiServiceImpl.java1707 SoftApConfiguration softApConfig = null; in startSoftAp() local
1709 softApConfig = ApConfigUtil.fromWifiConfiguration(wifiConfig); in startSoftAp()
1710 if (softApConfig == null) { in startSoftAp()
1732 WifiManager.IFACE_IP_MODE_TETHERED, softApConfig, in startSoftAp()
1750 public boolean startTetheredHotspot(@Nullable SoftApConfiguration softApConfig, in startTetheredHotspot() argument
1765 WifiManager.IFACE_IP_MODE_TETHERED, softApConfig, in startTetheredHotspot()
1863 SoftApConfiguration softApConfig = apConfig.getSoftApConfiguration(); in startSoftApInternal() local
1864 if (softApConfig != null in startSoftApInternal()
1866 softApConfig, privileged, mContext, mWifiNative))) { in startSoftApInternal()
2494 SoftApConfiguration softApConfig = mWifiApConfigStore.generateLocalOnlyHotspotConfig( in startForFirstRequestLocked() local
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPreferenceController.java190 final SoftApConfiguration softApConfig = mWifiManager.getSoftApConfiguration(); in handleWifiApStateChanged() local
191 updateConfigSummary(softApConfig); in handleWifiApStateChanged()
209 private void updateConfigSummary(@NonNull SoftApConfiguration softApConfig) { in updateConfigSummary() argument
210 if (softApConfig == null) { in updateConfigSummary()
215 BidiFormatter.getInstance().unicodeWrap(softApConfig.getSsid()))); in updateConfigSummary()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java2130 @NonNull SoftApConfiguration softApConfig, in writeSoftApConfigurationToXml() argument
2133 if (softApConfig.getWifiSsid() != null) { in writeSoftApConfigurationToXml()
2135 softApConfig.getWifiSsid().toString()); in writeSoftApConfigurationToXml()
2137 if (softApConfig.getBssid() != null) { in writeSoftApConfigurationToXml()
2138 XmlUtil.writeNextValue(out, XML_TAG_BSSID, softApConfig.getBssid().toString()); in writeSoftApConfigurationToXml()
2142 XmlUtil.writeNextValue(out, XML_TAG_AP_BAND, softApConfig.getBand()); in writeSoftApConfigurationToXml()
2143 XmlUtil.writeNextValue(out, XML_TAG_CHANNEL, softApConfig.getChannel()); in writeSoftApConfigurationToXml()
2145 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, softApConfig.isHiddenSsid()); in writeSoftApConfigurationToXml()
2146 XmlUtil.writeNextValue(out, XML_TAG_SECURITY_TYPE, softApConfig.getSecurityType()); in writeSoftApConfigurationToXml()
2147 if (!ApConfigUtil.isNonPasswordAP(softApConfig.getSecurityType())) { in writeSoftApConfigurationToXml()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DHotspotConditionController.java120 final SoftApConfiguration softApConfig = mWifiManager.getSoftApConfiguration(); in getSsid() local
121 if (softApConfig == null) { in getSsid()
125 return softApConfig.getSsid(); in getSsid()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java237 SoftApConfiguration softApConfig, WifiConfiguration wifiConfig) { in compareWifiAndSoftApConfiguration() argument
241 if (!Objects.equals(wifiConfig.SSID, softApConfig.getWifiSsid().getUtf8Text())) { in compareWifiAndSoftApConfiguration()
244 if (!Objects.equals(wifiConfig.BSSID, softApConfig.getBssid())) { in compareWifiAndSoftApConfiguration()
247 if (!Objects.equals(wifiConfig.preSharedKey, softApConfig.getPassphrase())) { in compareWifiAndSoftApConfiguration()
251 if (wifiConfig.hiddenSSID != softApConfig.isHiddenSsid()) { in compareWifiAndSoftApConfiguration()
254 switch (softApConfig.getSecurityType()) { in compareWifiAndSoftApConfiguration()
566 SoftApConfiguration softApConfig = generatorTestSoftApConfig(); in testStartTetheredHotspotCallsServiceWithSoftApConfig() local
567 when(mWifiService.startTetheredHotspot(softApConfig, TEST_PACKAGE_NAME)) in testStartTetheredHotspotCallsServiceWithSoftApConfig()
569 assertTrue(mWifiManager.startTetheredHotspot(softApConfig)); in testStartTetheredHotspotCallsServiceWithSoftApConfig()
571 when(mWifiService.startTetheredHotspot(softApConfig, TEST_PACKAGE_NAME)) in testStartTetheredHotspotCallsServiceWithSoftApConfig()
[all …]
/packages/modules/Connectivity/tests/cts/multidevices/snippet/
DConnectivityMultiDevicesSnippet.kt149 val softApConfig = SoftApConfiguration.Builder() in startHotspot() constant
155 wifiManager.setSoftApConfiguration(softApConfig) in startHotspot()
/packages/modules/Wifi/framework/java/android/net/wifi/
DIWifiManager.aidl239 boolean startTetheredHotspot(in SoftApConfiguration softApConfig, String packageName); in startTetheredHotspot() argument
272 boolean setSoftApConfiguration(in SoftApConfiguration softApConfig, String packageName); in setSoftApConfiguration() argument
DBaseWifiService.java488 public boolean startTetheredHotspot(SoftApConfiguration softApConfig, String packageName) { in startTetheredHotspot() argument
565 public boolean setSoftApConfiguration(SoftApConfiguration softApConfig, String packageName) { in setSoftApConfiguration() argument
DWifiManager.java5715 public boolean startTetheredHotspot(@Nullable SoftApConfiguration softApConfig) { in startTetheredHotspot() argument
5717 return mService.startTetheredHotspot(softApConfig, mContext.getOpPackageName()); in startTetheredHotspot()
6286 public boolean setSoftApConfiguration(@NonNull SoftApConfiguration softApConfig) { in setSoftApConfiguration() argument
6289 softApConfig, mContext.getOpPackageName()); in setSoftApConfiguration()