Home
last modified time | relevance | path

Searched refs:mHostapdHal (Results 1 – 8 of 8) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DHostapdHalTest.java52 private HostapdHalSpy mHostapdHal; field in HostapdHalTest
75 mHostapdHal = new HostapdHalSpy(); in setUp()
85 assertEquals(mHostapdHal.initialize(), shouldSucceed); in initializeWithAidlImp()
93 assertEquals(mHostapdHal.initialize(), shouldSucceed); in initializeWithHidlImp()
99 mHostapdHal = new HostapdHalSpy(); in resetHostapdHal()
141 assertFalse(mHostapdHal.initialize()); in testInitFailure_null()
153 assertFalse(mHostapdHal.isApInfoCallbackSupported()); in testCallAfterInitFailure()
164 assertTrue(mHostapdHal.isApInfoCallbackSupported()); in testIsApInfoCallbackSupported()
178 assertTrue(mHostapdHal.registerApCallback(IFACE_NAME, mSoftApHalCallback)); in testRegisterApCallback()
195 assertTrue(mHostapdHal.addAccessPoint(IFACE_NAME, config, in testAddAccessPoint()
[all …]
DHostapdHalAidlImpTest.java119 private HostapdHalAidlImp mHostapdHal; field in HostapdHalAidlImpTest
167 eq(mHostapdHal.mapHalChannelBandwidthToSoftApInfo(TEST_BANDWIDTH)), in mockApInfoChangedAndVerify()
168 eq(mHostapdHal.mapHalGenerationToWifiStandard(TEST_GENERATION)), in mockApInfoChangedAndVerify()
175 eq(mHostapdHal.mapHalChannelBandwidthToSoftApInfo(TEST_BANDWIDTH)), in mockApInfoChangedAndVerify()
176 eq(mHostapdHal.mapHalGenerationToWifiStandard(TEST_GENERATION)), in mockApInfoChangedAndVerify()
198 mHostapdHal = new HostapdHalSpy(); in setUp()
224 mHostapdHal.registerDeathHandler(mHostapdHalDeathHandler); in testDeathHandling()
236 mHostapdHal.registerDeathHandler(mHostapdHalDeathHandler); in testDeathHandlingIgnore()
242 ((HostapdHalSpy) mHostapdHal).setServiceBinderOverride(new Binder()); in testDeathHandlingIgnore()
243 assertTrue(mHostapdHal.initialize()); in testDeathHandlingIgnore()
[all …]
DHostapdHalHidlImpTest.java95 private HostapdHalHidlImp mHostapdHal; field in HostapdHalHidlImpTest
193 mHostapdHal = new HostapdHalSpy(); in setUp()
253 mHostapdHal.registerDeathHandler(mHostapdHalDeathHandler); in testDeathHandling()
266 mHostapdHal.registerDeathHandler(mHostapdHalDeathHandler); in testStaleDeathHandling()
287 assertTrue(mHostapdHal.addAccessPoint(IFACE_NAME, in testAddAccessPointSuccess_Psk_Band2G()
320 assertTrue(mHostapdHal.addAccessPoint(IFACE_NAME, in testAddAccessPointSuccess_Open_Band5G()
355 assertTrue(mHostapdHal.addAccessPoint(IFACE_NAME, in testAddAccessPointSuccess_Psk_Band5G_Hidden()
382 mHostapdHal = new HostapdHalSpy(); in testAddAccessPointSuccess_Psk_Band2G_WithACS()
394 assertTrue(mHostapdHal.addAccessPoint(IFACE_NAME, in testAddAccessPointSuccess_Psk_Band2G_WithACS()
422 mHostapdHal = new HostapdHalSpy(); in testAddAccessPointSuccess_Psk_Band2G_WithIeee80211AC()
[all …]
DWifiNativeInterfaceManagementTest.java105 @Mock private HostapdHal mHostapdHal; field in WifiNativeInterfaceManagementTest
206 when(mHostapdHal.registerDeathHandler(mHostapdDeathHandlerCaptor.capture())) in setUp()
208 when(mHostapdHal.deregisterDeathHandler()).thenReturn(true); in setUp()
209 when(mHostapdHal.initialize()).thenReturn(true); in setUp()
210 when(mHostapdHal.isInitializationStarted()).thenReturn(false); in setUp()
211 when(mHostapdHal.isInitializationComplete()).thenReturn(true); in setUp()
212 when(mHostapdHal.startDaemon()).thenReturn(true); in setUp()
213 when(mHostapdHal.addAccessPoint(any(), any(), anyBoolean(), any())).thenReturn(true); in setUp()
214 when(mHostapdHal.removeAccessPoint(any())).thenReturn(true); in setUp()
215 when(mHostapdHal.registerApCallback(any(), any())).thenReturn(true); in setUp()
[all …]
DWifiNativeTest.java266 @Mock private HostapdHal mHostapdHal; field in WifiNativeTest
320 when(mHostapdHal.isInitializationStarted()).thenReturn(true); in setUp()
321 when(mHostapdHal.startDaemon()).thenReturn(true); in setUp()
322 when(mHostapdHal.isInitializationComplete()).thenReturn(true); in setUp()
323 when(mHostapdHal.registerDeathHandler(any())).thenReturn(true); in setUp()
350 mWifiVendorHal, mStaIfaceHal, mHostapdHal, mWificondControl, in setUp()
1647 verify(mHostapdHal).isSoftApInstanceDiedHandlerSupported(); in testIsSoftApInstanceDiedHandlerSupported()
1723 mHostapdHal, in testConfigWifiUnknownAkmToKnownAkmMapping()
1741 mHostapdHal, in testConfigWifiUnknownAkmToKnownAkmMapping()
1760 mHostapdHal, in testConfigWifiUnknownAkmToKnownAkmMapping()
[all …]
DWifiShellCommandTest.java97 @Mock HostapdHal mHostapdHal; field in WifiShellCommandTest
126 when(mWifiInjector.getHostapdHal()).thenReturn(mHostapdHal); in setUp()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNative.java123 private final HostapdHal mHostapdHal; field in WifiNative
167 mHostapdHal = hostapdHal; in WifiNative()
251 mHostapdHal.enableVerboseLogging(verboseEnabled, halVerboseEnabled); in enableVerboseLogging()
755 if (!mHostapdHal.registerDeathHandler( in startHostapd()
769 if (!mHostapdHal.deregisterDeathHandler()) { in stopHostapdIfNecessary()
772 mHostapdHal.terminate(); in stopHostapdIfNecessary()
850 if (!mHostapdHal.removeAccessPoint(iface.name)) { in onSoftApInterfaceDestroyed()
2328 if (!mHostapdHal.isInitializationStarted()
2329 && !mHostapdHal.initialize()) {
2332 if (!mHostapdHal.startDaemon()) {
[all …]
DWifiInjector.java172 private final HostapdHal mHostapdHal; field in WifiInjector
349 mHostapdHal = new HostapdHal(mContext, wifiHandler); in WifiInjector()
353 mWifiVendorHal, mSupplicantStaIfaceHal, mHostapdHal, mWifiCondManager, in WifiInjector()
1074 return mHostapdHal; in getHostapdHal()