Home
last modified time | relevance | path

Searched refs:apConfig (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSoftApManagerTest.java212 SoftApModeConfiguration apConfig = in startSoftApWithoutConfig() local
215 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithoutConfig()
224 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithConfig() local
227 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithConfig()
240 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithHiddenSsidTrueInConfig() local
243 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithHiddenSsidTrueInConfig()
257 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithPassphraseInConfig() local
260 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithPassphraseInConfig()
867 SoftApModeConfiguration apConfig = in updatesMetricsOnChannelSwitchedEvent() local
870 startSoftApAndVerifyEnabled(apConfig); in updatesMetricsOnChannelSwitchedEvent()
[all …]
DWifiServiceImplTest.java1007 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationNotSavedWithoutPermission() local
1009 mWifiServiceImpl.setWifiApConfiguration(apConfig, TEST_PACKAGE_NAME); in testSetWifiApConfigurationNotSavedWithoutPermission()
1058 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testSetSoftApConfigurationNotSavedWithoutPermission() local
1060 mWifiServiceImpl.setSoftApConfiguration(apConfig, TEST_PACKAGE_NAME); in testSetSoftApConfigurationNotSavedWithoutPermission()
1073 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testSetSoftApConfigurationSuccess() local
1075 assertTrue(mWifiServiceImpl.setSoftApConfiguration(apConfig, TEST_PACKAGE_NAME)); in testSetSoftApConfigurationSuccess()
1077 verify(mWifiApConfigStore).setApConfiguration(eq(apConfig)); in testSetSoftApConfigurationSuccess()
1078 verify(mActiveModeWarden).updateSoftApConfiguration(apConfig); in testSetSoftApConfigurationSuccess()
1137 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testGetSoftApConfigurationSuccess() local
1138 when(mWifiApConfigStore.getApConfiguration()).thenReturn(apConfig); in testGetSoftApConfigurationSuccess()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java409 static boolean validateApWifiConfiguration(@NonNull SoftApConfiguration apConfig, in validateApWifiConfiguration() argument
412 if (!validateApConfigSsid(apConfig.getSsid())) { in validateApWifiConfiguration()
418 if (apConfig.getBssid() != null && !isPrivileged) { in validateApWifiConfiguration()
423 String preSharedKey = apConfig.getPassphrase(); in validateApWifiConfiguration()
428 authType = apConfig.getSecurityType(); in validateApWifiConfiguration()
DSoftApManager.java171 @NonNull SoftApModeConfiguration apConfig, in SoftApManager() argument
183 SoftApConfiguration softApConfig = apConfig.getSoftApConfiguration(); in SoftApManager()
184 mCurrentSoftApCapability = apConfig.getCapability(); in SoftApManager()
194 mApConfig = new SoftApModeConfiguration(apConfig.getTargetMode(), in SoftApManager()
DWifiServiceImpl.java973 private boolean startSoftApInternal(SoftApModeConfiguration apConfig) { in startSoftApInternal() argument
977 .c(uid).c(apConfig.getTargetMode()).flush(); in startSoftApInternal()
981 SoftApConfiguration softApConfig = apConfig.getSoftApConfiguration(); in startSoftApInternal()
989 mActiveModeWarden.startSoftAp(apConfig); in startSoftApInternal()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java1292 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationSuccessReturnsTrue() local
1294 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationSuccessReturnsTrue()
1296 assertTrue(mWifiManager.setWifiApConfiguration(apConfig)); in testSetWifiApConfigurationSuccessReturnsTrue()
1304 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationFailureReturnsFalse() local
1306 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationFailureReturnsFalse()
1308 assertFalse(mWifiManager.setWifiApConfiguration(apConfig)); in testSetWifiApConfigurationFailureReturnsFalse()
1329 SoftApConfiguration apConfig = generatorTestSoftApConfig(); in testSetSoftApConfigurationSuccessReturnsTrue() local
1331 when(mWifiService.setSoftApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetSoftApConfigurationSuccessReturnsTrue()
1333 assertTrue(mWifiManager.setSoftApConfiguration(apConfig)); in testSetSoftApConfigurationSuccessReturnsTrue()
1341 SoftApConfiguration apConfig = generatorTestSoftApConfig(); in testSetSoftApConfigurationFailureReturnsFalse() local
[all …]