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.java480 SoftApConfiguration softApConfig = softapConfigCaptor.getValue(); in deserializeSoftAp() local
481 assertNotNull(softApConfig); in deserializeSoftAp()
482 assertEquals(softApConfig.getWifiSsid(), TEST_WIFI_SSID); in deserializeSoftAp()
483 assertEquals(softApConfig.getBssid().toString(), TEST_BSSID); in deserializeSoftAp()
484 assertEquals(softApConfig.getPassphrase(), TEST_PASSPHRASE); in deserializeSoftAp()
485 assertEquals(softApConfig.getSecurityType(), SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in deserializeSoftAp()
486 assertEquals(softApConfig.isHiddenSsid(), TEST_HIDDEN); in deserializeSoftAp()
488 assertEquals(softApConfig.getBand(), TEST_BAND_2G); in deserializeSoftAp()
489 assertEquals(softApConfig.getChannel(), TEST_CHANNEL_2G); in deserializeSoftAp()
491 assertEquals(softApConfig.getBand(), TEST_BAND); in deserializeSoftAp()
[all …]
DSoftApManagerTest.java547 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn5GhzFailGeneralErrorForNoCountryCode() local
551 mSoftApManager = createSoftApManager(softApConfig, null, ROLE_SOFTAP_TETHERED); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
562 softApConfig.getTargetMode()); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
565 softApConfig.getTargetMode()); in startSoftApOn5GhzFailGeneralErrorForNoCountryCode()
578 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn6GhzFailGeneralErrorForNoCountryCode() local
582 mSoftApManager = createSoftApManager(softApConfig, null, ROLE_SOFTAP_TETHERED); in startSoftApOn6GhzFailGeneralErrorForNoCountryCode()
593 softApConfig.getTargetMode()); in startSoftApOn6GhzFailGeneralErrorForNoCountryCode()
596 softApConfig.getTargetMode()); in startSoftApOn6GhzFailGeneralErrorForNoCountryCode()
608 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure() local
616 mSoftApManager = createSoftApManager(softApConfig, TEST_COUNTRY_CODE, ROLE_SOFTAP_TETHERED); in startSoftApOn5GhzFailGeneralErrorForCountryCodeSetFailure()
[all …]
DWifiApConfigStoreTest.java635 SoftApConfiguration softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomBand() local
637 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_5GHZ); in generateLohsConfig_forwardsCustomBand()
641 softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomBand()
643 assertThat(softApConfig.getBand()).isEqualTo(SoftApConfiguration.BAND_6GHZ); in generateLohsConfig_forwardsCustomBand()
656 SoftApConfiguration softApConfig = store.generateLocalOnlyHotspotConfig( in generateLohsConfig_forwardsCustomMac() local
658 assertThat(softApConfig.getBssid().toString()).isNotEmpty(); in generateLohsConfig_forwardsCustomMac()
659 assertThat(softApConfig.getBssid()).isEqualTo(TEST_SAP_BSSID_MAC); in generateLohsConfig_forwardsCustomMac()
DActiveModeWardenTest.java411 private void enterSoftApActiveMode(SoftApModeConfiguration softApConfig) throws Exception { in enterSoftApActiveMode() argument
413 SoftApRole softApRole = softApConfig.getTargetMode() == WifiManager.IFACE_IP_MODE_TETHERED in enterSoftApActiveMode()
415 mActiveModeWarden.startSoftAp(softApConfig, TEST_WORKSOURCE); in enterSoftApActiveMode()
418 when(mSoftApManager.getSoftApModeConfiguration()).thenReturn(softApConfig); in enterSoftApActiveMode()
423 assertThat(softApConfig).isEqualTo(mSoftApConfig); in enterSoftApActiveMode()
1016 SoftApModeConfiguration softApConfig = new SoftApModeConfiguration( in testConfigIsPassedToWifiInjector() local
1018 enterSoftApActiveMode(softApConfig); in testConfigIsPassedToWifiInjector()
DWifiServiceImplTest.java3482 public void onHotspotStarted(SoftApConfiguration softApConfig) { in onHotspotStarted() argument
3484 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()
105 SoftApConfiguration softApConfig = XmlUtil.SoftApConfigurationXmlUtil.parseFromXml( in deserializeData() local
107 if (softApConfig != null) { in deserializeData()
108 mDataSource.fromDeserialized(softApConfig); in deserializeData()
DActiveModeWarden.java679 public void startSoftAp(SoftApModeConfiguration softApConfig, WorkSource requestorWs) { in startSoftAp() argument
681 Pair.create(softApConfig, requestorWs)); in startSoftAp()
1037 @NonNull SoftApModeConfiguration softApConfig, @NonNull WorkSource requestorWs) { in startSoftApModeManager()
1038 Log.d(TAG, "Starting SoftApModeManager config = " + softApConfig.getSoftApConfiguration()); in startSoftApModeManager()
1039 Preconditions.checkState(softApConfig.getTargetMode() == IFACE_IP_MODE_LOCAL_ONLY in startSoftApModeManager()
1040 || softApConfig.getTargetMode() == IFACE_IP_MODE_TETHERED); in startSoftApModeManager()
1043 softApConfig.getTargetMode() == IFACE_IP_MODE_LOCAL_ONLY in startSoftApModeManager()
1046 new SoftApListener(), callback, softApConfig, requestorWs, in startSoftApModeManager()
1047 getRoleForSoftApIpMode(softApConfig.getTargetMode()), mVerboseLoggingEnabled); in startSoftApModeManager()
1767 SoftApModeConfiguration softApConfig = softApConfigAndWs.first; in processMessageInEmergencyMode() local
[all …]
DWifiServiceImpl.java1537 SoftApConfiguration softApConfig = null; in startSoftAp() local
1539 softApConfig = ApConfigUtil.fromWifiConfiguration(wifiConfig); in startSoftAp()
1540 if (softApConfig == null) { in startSoftAp()
1558 WifiManager.IFACE_IP_MODE_TETHERED, softApConfig, in startSoftAp()
1575 public boolean startTetheredHotspot(@Nullable SoftApConfiguration softApConfig, in startTetheredHotspot() argument
1603 WifiManager.IFACE_IP_MODE_TETHERED, softApConfig, in startTetheredHotspot()
1625 SoftApConfiguration softApConfig = apConfig.getSoftApConfiguration(); in startSoftApInternal() local
1626 if (softApConfig != null in startSoftApInternal()
1628 softApConfig, privileged, mContext))) { in startSoftApInternal()
2188 SoftApConfiguration softApConfig = mWifiApConfigStore.generateLocalOnlyHotspotConfig( in startForFirstRequestLocked() local
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherPreferenceController.java160 final SoftApConfiguration softApConfig = mWifiManager.getSoftApConfiguration(); in handleWifiApStateChanged() local
161 updateConfigSummary(softApConfig); in handleWifiApStateChanged()
178 private void updateConfigSummary(@NonNull SoftApConfiguration softApConfig) { in updateConfigSummary() argument
179 if (softApConfig == null) { in updateConfigSummary()
184 BidiFormatter.getInstance().unicodeWrap(softApConfig.getSsid()))); in updateConfigSummary()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java1945 @NonNull SoftApConfiguration softApConfig) in writeSoftApConfigurationToXml() argument
1947 XmlUtil.writeNextValue(out, XML_TAG_WIFI_SSID, softApConfig.getWifiSsid().toString()); in writeSoftApConfigurationToXml()
1948 if (softApConfig.getBssid() != null) { in writeSoftApConfigurationToXml()
1949 XmlUtil.writeNextValue(out, XML_TAG_BSSID, softApConfig.getBssid().toString()); in writeSoftApConfigurationToXml()
1953 XmlUtil.writeNextValue(out, XML_TAG_AP_BAND, softApConfig.getBand()); in writeSoftApConfigurationToXml()
1954 XmlUtil.writeNextValue(out, XML_TAG_CHANNEL, softApConfig.getChannel()); in writeSoftApConfigurationToXml()
1956 XmlUtil.writeNextValue(out, XML_TAG_HIDDEN_SSID, softApConfig.isHiddenSsid()); in writeSoftApConfigurationToXml()
1957 XmlUtil.writeNextValue(out, XML_TAG_SECURITY_TYPE, softApConfig.getSecurityType()); in writeSoftApConfigurationToXml()
1958 if (!ApConfigUtil.isNonPasswordAP(softApConfig.getSecurityType())) { in writeSoftApConfigurationToXml()
1960 softApConfig.getPassphrase()); 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.java214 SoftApConfiguration softApConfig, WifiConfiguration wifiConfig) { in compareWifiAndSoftApConfiguration() argument
218 if (!Objects.equals(wifiConfig.SSID, softApConfig.getWifiSsid().getUtf8Text())) { in compareWifiAndSoftApConfiguration()
221 if (!Objects.equals(wifiConfig.BSSID, softApConfig.getBssid())) { in compareWifiAndSoftApConfiguration()
224 if (!Objects.equals(wifiConfig.preSharedKey, softApConfig.getPassphrase())) { in compareWifiAndSoftApConfiguration()
228 if (wifiConfig.hiddenSSID != softApConfig.isHiddenSsid()) { in compareWifiAndSoftApConfiguration()
231 switch (softApConfig.getSecurityType()) { in compareWifiAndSoftApConfiguration()
520 SoftApConfiguration softApConfig = generatorTestSoftApConfig(); in testStartTetheredHotspotCallsServiceWithSoftApConfig() local
521 when(mWifiService.startTetheredHotspot(softApConfig, TEST_PACKAGE_NAME)) in testStartTetheredHotspotCallsServiceWithSoftApConfig()
523 assertTrue(mWifiManager.startTetheredHotspot(softApConfig)); in testStartTetheredHotspotCallsServiceWithSoftApConfig()
525 when(mWifiService.startTetheredHotspot(softApConfig, TEST_PACKAGE_NAME)) in testStartTetheredHotspotCallsServiceWithSoftApConfig()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowWifiManager.java50 protected boolean setSoftApConfiguration(SoftApConfiguration softApConfig) { in setSoftApConfiguration() argument
51 mSavedApConfig = softApConfig; in setSoftApConfiguration()
/packages/modules/Wifi/framework/java/android/net/wifi/
DIWifiManager.aidl203 boolean startTetheredHotspot(in SoftApConfiguration softApConfig, String packageName); in startTetheredHotspot() argument
230 boolean setSoftApConfiguration(in SoftApConfiguration softApConfig, String packageName); in setSoftApConfiguration() argument
DBaseWifiService.java421 public boolean startTetheredHotspot(SoftApConfiguration softApConfig, String packageName) { in startTetheredHotspot() argument
482 public boolean setSoftApConfiguration(SoftApConfiguration softApConfig, String packageName) { in setSoftApConfiguration() argument
DWifiManager.java4644 public boolean startTetheredHotspot(@Nullable SoftApConfiguration softApConfig) { in startTetheredHotspot() argument
4646 return mService.startTetheredHotspot(softApConfig, mContext.getOpPackageName()); in startTetheredHotspot()
5127 public boolean setSoftApConfiguration(@NonNull SoftApConfiguration softApConfig) { in setSoftApConfiguration() argument
5130 softApConfig, mContext.getOpPackageName()); in setSoftApConfiguration()