Home
last modified time | relevance | path

Searched refs:configBuilder (Results 1 – 15 of 15) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiApConfigStore.java170 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(config); in resetToDefaultForUnsupportedConfig() local
176 configBuilder.setClientControlByUserEnabled(false); in resetToDefaultForUnsupportedConfig()
177 configBuilder.setBlockedClientList(new ArrayList<>()); in resetToDefaultForUnsupportedConfig()
185 configBuilder.setMaxNumberOfClients(0); in resetToDefaultForUnsupportedConfig()
193 configBuilder.setPassphrase(generatePassword(), in resetToDefaultForUnsupportedConfig()
203 configBuilder.setBand(config.getBand() | SoftApConfiguration.BAND_2GHZ); in resetToDefaultForUnsupportedConfig()
224 configBuilder.setBand(newBand | SoftApConfiguration.BAND_2GHZ); in resetToDefaultForUnsupportedConfig()
229 configBuilder.setHiddenSsid(false); in resetToDefaultForUnsupportedConfig()
236 configBuilder.setShutdownTimeoutMillis(0); in resetToDefaultForUnsupportedConfig()
240 mWifiMetrics.noteSoftApConfigReset(config, configBuilder.build()); in resetToDefaultForUnsupportedConfig()
[all …]
DSoftApBackupRestore.java113 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in retrieveSoftApConfigurationFromBackupData() local
123 configBuilder.setSsid(BackupUtils.readString(in)); in retrieveSoftApConfigurationFromBackupData()
134 configBuilder.setBand(band); in retrieveSoftApConfigurationFromBackupData()
136 configBuilder.setChannel(channel, band); in retrieveSoftApConfigurationFromBackupData()
141 configBuilder.setPassphrase(passphrase, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in retrieveSoftApConfigurationFromBackupData()
143 configBuilder.setPassphrase(passphrase, securityType); in retrieveSoftApConfigurationFromBackupData()
146 configBuilder.setHiddenSsid(in.readBoolean()); in retrieveSoftApConfigurationFromBackupData()
149 configBuilder.setMaxNumberOfClients(in.readInt()); in retrieveSoftApConfigurationFromBackupData()
151 configBuilder.setShutdownTimeoutMillis(in.readLong()); in retrieveSoftApConfigurationFromBackupData()
153 configBuilder.setShutdownTimeoutMillis(Long.valueOf(in.readInt())); in retrieveSoftApConfigurationFromBackupData()
[all …]
DWifiShellCommand.java728 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in buildSoftApConfiguration() local
729 configBuilder.setSsid("\"" + ssid + "\""); in buildSoftApConfiguration()
731 configBuilder.setPassphrase(getNextArgRequired(), in buildSoftApConfiguration()
734 configBuilder.setPassphrase(null, SoftApConfiguration.SECURITY_TYPE_OPEN); in buildSoftApConfiguration()
743 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in buildSoftApConfiguration()
745 configBuilder.setBand(SoftApConfiguration.BAND_5GHZ); in buildSoftApConfiguration()
747 configBuilder.setBand(SoftApConfiguration.BAND_6GHZ); in buildSoftApConfiguration()
749 configBuilder.setBand(SoftApConfiguration.BAND_ANY); in buildSoftApConfiguration()
758 return configBuilder.build(); in buildSoftApConfiguration()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSoftApManagerTest.java221 Builder configBuilder = new SoftApConfiguration.Builder(); in startSoftApWithConfig() local
222 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithConfig()
223 configBuilder.setSsid(TEST_SSID); in startSoftApWithConfig()
225 WifiManager.IFACE_IP_MODE_TETHERED, configBuilder.build(), in startSoftApWithConfig()
236 Builder configBuilder = new SoftApConfiguration.Builder(); in startSoftApWithHiddenSsidTrueInConfig() local
237 configBuilder.setBand(SoftApConfiguration.BAND_2GHZ); in startSoftApWithHiddenSsidTrueInConfig()
238 configBuilder.setSsid(TEST_SSID); in startSoftApWithHiddenSsidTrueInConfig()
239 configBuilder.setHiddenSsid(true); in startSoftApWithHiddenSsidTrueInConfig()
241 WifiManager.IFACE_IP_MODE_TETHERED, configBuilder.build(), in startSoftApWithHiddenSsidTrueInConfig()
252 Builder configBuilder = new SoftApConfiguration.Builder(); in startSoftApWithPassphraseInConfig() local
[all …]
DWifiApConfigStoreTest.java149 Builder configBuilder = new SoftApConfiguration.Builder(); in setupApConfig() local
150 configBuilder.setSsid(ssid); in setupApConfig()
151 configBuilder.setPassphrase(preSharedKey, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in setupApConfig()
153 configBuilder.setBand(band); in setupApConfig()
155 configBuilder.setChannel(channel, band); in setupApConfig()
157 configBuilder.setHiddenSsid(hiddenSSID); in setupApConfig()
158 return configBuilder.build(); in setupApConfig()
569 Builder configBuilder = new SoftApConfiguration.Builder(); in testSsidVerificationInValidateApWifiConfigurationCheck() local
570 configBuilder.setSsid(null); in testSsidVerificationInValidateApWifiConfigurationCheck()
571 assertFalse(WifiApConfigStore.validateApWifiConfiguration(configBuilder.build(), true)); in testSsidVerificationInValidateApWifiConfigurationCheck()
[all …]
DActiveModeWardenTest.java744 Builder configBuilder = new SoftApConfiguration.Builder(); in testConfigIsPassedToWifiInjector() local
745 configBuilder.setSsid("ThisIsAConfig"); in testConfigIsPassedToWifiInjector()
747 WifiManager.IFACE_IP_MODE_TETHERED, configBuilder.build(), mSoftApCapability); in testConfigIsPassedToWifiInjector()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DApConfigUtilTest.java353 Builder configBuilder = new SoftApConfiguration.Builder(); in updateApChannelConfigWithoutHal() local
354 configBuilder.setChannel(36, SoftApConfiguration.BAND_5GHZ); in updateApChannelConfigWithoutHal()
359 configBuilder, configBuilder.build(), false)); in updateApChannelConfigWithoutHal()
361 assertEquals(ApConfigUtil.DEFAULT_AP_BAND, configBuilder.build().getBand()); in updateApChannelConfigWithoutHal()
362 assertEquals(ApConfigUtil.DEFAULT_AP_CHANNEL, configBuilder.build().getChannel()); in updateApChannelConfigWithoutHal()
371 Builder configBuilder = new SoftApConfiguration.Builder(); in updateApChannelConfig5GBandNoCountryCode() local
372 configBuilder.setBand(SoftApConfiguration.BAND_5GHZ); in updateApChannelConfig5GBandNoCountryCode()
376 configBuilder, configBuilder.build(), false)); in updateApChannelConfig5GBandNoCountryCode()
384 Builder configBuilder = new SoftApConfiguration.Builder(); in updateApChannelConfigWithChannelSpecified() local
385 configBuilder.setChannel(36, SoftApConfiguration.BAND_5GHZ); in updateApChannelConfigWithChannelSpecified()
[all …]
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/
DViewerConfigBuilderTest.kt41 private val configBuilder = ViewerConfigBuilder(Mockito.mock(ProtoLogCallProcessor::class.java)) constant
49 configBuilder.addLogCalls(listOf( in processClass()
54 val parsedConfig = parseConfig(configBuilder.build()) in processClass()
66 configBuilder.addLogCalls(listOf( in processClass_nonUnique()
71 val parsedConfig = parseConfig(configBuilder.build()) in processClass_nonUnique()
79 configBuilder.addLogCalls(listOf( in processClass_disabled()
85 val parsedConfig = parseConfig(configBuilder.build()) in processClass_disabled()
/frameworks/base/wifi/tests/src/android/net/wifi/
DSoftApConfToXmlMigrationUtilTest.java88 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in setupApConfig() local
89 configBuilder.setSsid(ssid); in setupApConfig()
90 configBuilder.setPassphrase(preSharedKey, SoftApConfiguration.SECURITY_TYPE_WPA2_PSK); in setupApConfig()
92 configBuilder.setBand(band); in setupApConfig()
94 configBuilder.setChannel(channel, band); in setupApConfig()
96 configBuilder.setHiddenSsid(hiddenSSID); in setupApConfig()
97 return configBuilder.build(); in setupApConfig()
DSoftApConfigurationTest.java267 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in testSetClientListExceptionWhenExistMacAddressInBothList() local
268 configBuilder.setBlockedClientList(testBlockedClientList) in testSetClientListExceptionWhenExistMacAddressInBothList()
/frameworks/base/wifi/java/android/net/wifi/
DSoftApConfToXmlMigrationUtil.java115 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in loadFromLegacyFile() local
123 configBuilder.setSsid(in.readUTF()); in loadFromLegacyFile()
129 configBuilder.setBand( in loadFromLegacyFile()
132 configBuilder.setChannel(channel, in loadFromLegacyFile()
137 configBuilder.setHiddenSsid(in.readBoolean()); in loadFromLegacyFile()
141 configBuilder.setPassphrase(in.readUTF(), in loadFromLegacyFile()
144 config = configBuilder.build(); in loadFromLegacyFile()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DApConfigUtil.java353 SoftApConfiguration.Builder configBuilder, in updateApChannelConfig() argument
358 configBuilder.setChannel(DEFAULT_AP_CHANNEL, DEFAULT_AP_BAND); in updateApChannelConfig()
377 configBuilder.setChannel( in updateApChannelConfig()
397 SoftApConfiguration.Builder configBuilder = new SoftApConfiguration.Builder(); in fromWifiConfiguration() local
399 configBuilder.setSsid(wifiConfig.SSID); in fromWifiConfiguration()
401 configBuilder.setPassphrase(wifiConfig.preSharedKey, in fromWifiConfiguration()
404 configBuilder.setHiddenSsid(wifiConfig.hiddenSSID); in fromWifiConfiguration()
420 configBuilder.setBand(band); in fromWifiConfiguration()
422 configBuilder.setChannel(wifiConfig.apChannel, band); in fromWifiConfiguration()
431 return configBuilder.build(); in fromWifiConfiguration()
/frameworks/native/libs/gui/tests/
DSurfaceParcelable_test.cpp48 dvr::ProducerQueueConfigBuilder configBuilder; in SurfaceParcelableTestService() local
49 mProducerQueue = dvr::ProducerQueue::Create(configBuilder.SetDefaultWidth(kBufferWidth) in SurfaceParcelableTestService()
/frameworks/native/libs/gui/
DBufferQueue.cpp139 dvr::ProducerQueueConfigBuilder configBuilder; in createBufferHubQueue() local
141 dvr::ProducerQueue::Create(configBuilder.Build(), dvr::UsagePolicy{}); in createBufferHubQueue()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java2130 final NetworkAgentConfig.Builder configBuilder = new NetworkAgentConfig.Builder(); in enter() local
2131 configBuilder.setLegacyType(ConnectivityManager.TYPE_MOBILE); in enter()
2132 configBuilder.setLegacyTypeName(NETWORK_TYPE); in enter()
2133 configBuilder.setLegacyExtraInfo(mApnSetting.getApnName()); in enter()
2138 configBuilder.disableProvisioningNotification(); in enter()
2143 configBuilder.setSubscriberId(subscriberId); in enter()
2148 configBuilder.disableNat64Detection(); in enter()
2206 mPhone, mNetworkInfo, mScore, configBuilder.build(), provider, in enter()