Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSoftApManagerTest.java489 SoftApModeConfiguration apConfig = in startSoftApWithoutConfig() local
492 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithoutConfig()
501 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithConfig() local
504 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithConfig()
513 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithUserApproval() local
516 startSoftApAndVerifyEnabledWithUserApproval(apConfig); in startSoftApWithUserApproval()
525 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithUserRejection() local
532 mSoftApManager = createSoftApManager(apConfig, ROLE_SOFTAP_TETHERED); in startSoftApWithUserRejection()
549 SoftApModeConfiguration apConfig = new SoftApModeConfiguration( in startSoftApWithUserApprovalSkippedForTethering() local
552 startSoftApAndVerifyEnabled(apConfig); in startSoftApWithUserApprovalSkippedForTethering()
[all …]
DWifiServiceImplTest.java1789 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationNotSavedWithoutPermission() local
1791 mWifiServiceImpl.setWifiApConfiguration(apConfig, TEST_PACKAGE_NAME); in testSetWifiApConfigurationNotSavedWithoutPermission()
1837 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testSetSoftApConfigurationNotSavedWithoutPermission() local
1839 mWifiServiceImpl.setSoftApConfiguration(apConfig, TEST_PACKAGE_NAME); in testSetSoftApConfigurationNotSavedWithoutPermission()
1850 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testSetSoftApConfigurationSuccessWithSettingPermission() local
1852 assertTrue(mWifiServiceImpl.setSoftApConfiguration(apConfig, TEST_PACKAGE_NAME)); in testSetSoftApConfigurationSuccessWithSettingPermission()
1853 verify(mWifiApConfigStore).setApConfiguration(eq(apConfig)); in testSetSoftApConfigurationSuccessWithSettingPermission()
1854 verify(mActiveModeWarden).updateSoftApConfiguration(apConfig); in testSetSoftApConfigurationSuccessWithSettingPermission()
1864 SoftApConfiguration apConfig = createValidSoftApConfiguration(); in testSetSoftApConfigurationSuccessWithOverridePermission() local
1866 assertTrue(mWifiServiceImpl.setSoftApConfiguration(apConfig, TEST_PACKAGE_NAME)); in testSetSoftApConfigurationSuccessWithOverridePermission()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java750 private void persistApConfiguration(final SoftApConfiguration apConfig) { in persistApConfiguration() argument
752 if (apConfig.equals(mApConfiguration)) { in persistApConfiguration()
755 mApConfiguration = apConfig; in persistApConfiguration()
760 .putString(KEY_AP_CONFIG_SSID, apConfig.getSsid()) in persistApConfiguration()
761 .putString(KEY_AP_CONFIG_BSSID, macAddressToString(apConfig.getBssid())) in persistApConfiguration()
762 .putString(KEY_AP_CONFIG_PASSPHRASE, apConfig.getPassphrase()) in persistApConfiguration()
763 .putInt(KEY_AP_CONFIG_SECURITY_TYPE, apConfig.getSecurityType()) in persistApConfiguration()
786 SoftApConfiguration apConfig = new SoftApConfiguration.Builder() in restoreApConfiguration() local
796 mApConfiguration = apConfig; in restoreApConfiguration()
798 return Optional.of(apConfig); in restoreApConfiguration()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java621 static boolean validateApWifiConfiguration(@NonNull SoftApConfiguration apConfig, in validateApWifiConfiguration() argument
624 WifiSsid ssid = apConfig.getWifiSsid(); in validateApWifiConfiguration()
631 if (apConfig.getBssid() != null && !isPrivileged) { in validateApWifiConfiguration()
636 String preSharedKey = apConfig.getPassphrase(); in validateApWifiConfiguration()
641 authType = apConfig.getSecurityType(); in validateApWifiConfiguration()
680 if (!isBandsSupported(apConfig.getBands(), context)) { in validateApWifiConfiguration()
685 for (int band : apConfig.getBands()) { in validateApWifiConfiguration()
702 } else if (apConfig.getBands().length > 1) { in validateApWifiConfiguration()
DSoftApManager.java433 @NonNull SoftApModeConfiguration apConfig, in SoftApManager() argument
465 mCountryCode = apConfig.getCountryCode(); in SoftApManager()
469 mCurrentSoftApConfiguration = apConfig.getSoftApConfiguration(); in SoftApManager()
470 mCurrentSoftApCapability = apConfig.getCapability(); in SoftApManager()
479 apConfig.getTargetMode(), in SoftApManager()
483 apConfig.getTetheringRequest()); in SoftApManager()
DWifiServiceImpl.java1854 private boolean startSoftApInternal(SoftApModeConfiguration apConfig, WorkSource requestorWs, in startSoftApInternal() argument
1859 .c(uid).c(apConfig.getTargetMode()).flush(); in startSoftApInternal()
1863 SoftApConfiguration softApConfig = apConfig.getSoftApConfiguration(); in startSoftApInternal()
1872 apConfig.getTetheringRequest(), null)); in startSoftApInternal()
1879 if (apConfig.getTargetMode() == IFACE_IP_MODE_TETHERED) { in startSoftApInternal()
1882 mActiveModeWarden.startSoftAp(apConfig, requestorWs); in startSoftApInternal()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java543 SoftApConfiguration apConfig = generatorTestSoftApConfig(); in testValidateSoftApConfigurationCallsService() local
545 assertTrue(mWifiManager.validateSoftApConfiguration(apConfig)); in testValidateSoftApConfigurationCallsService()
548 assertFalse(mWifiManager.validateSoftApConfiguration(apConfig)); in testValidateSoftApConfigurationCallsService()
2117 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationSuccessReturnsTrue() local
2119 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationSuccessReturnsTrue()
2121 assertTrue(mWifiManager.setWifiApConfiguration(apConfig)); in testSetWifiApConfigurationSuccessReturnsTrue()
2129 WifiConfiguration apConfig = new WifiConfiguration(); in testSetWifiApConfigurationFailureReturnsFalse() local
2131 when(mWifiService.setWifiApConfiguration(eq(apConfig), eq(TEST_PACKAGE_NAME))) in testSetWifiApConfigurationFailureReturnsFalse()
2133 assertFalse(mWifiManager.setWifiApConfiguration(apConfig)); in testSetWifiApConfigurationFailureReturnsFalse()
2154 SoftApConfiguration apConfig = generatorTestSoftApConfig(); in testSetSoftApConfigurationSuccessReturnsTrue() local
[all …]