Home
last modified time | relevance | path

Searched refs:mWifiMonitor (Results 1 – 24 of 24) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java59 private WifiMonitor mWifiMonitor; field in WifiMonitorTest
66 mWifiMonitor = new WifiMonitor(mock(WifiInjector.class)); in setUp()
70 mWifiMonitor.setMonitoring(WLAN_IFACE_NAME, true); in setUp()
78 mWifiMonitor.registerHandler( in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
80 mWifiMonitor.broadcastWpsFailEvent( in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
96 mWifiMonitor.registerHandler( in testBroadcastWpsEventFailDueToErrorWepProhibhited()
98 mWifiMonitor.broadcastWpsFailEvent( in testBroadcastWpsEventFailDueToErrorWepProhibhited()
114 mWifiMonitor.registerHandler( in testBroadcastWpsEventFailDueToConfigAuthError()
116 mWifiMonitor.broadcastWpsFailEvent( in testBroadcastWpsEventFailDueToConfigAuthError()
132 mWifiMonitor.registerHandler( in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
[all …]
DSupplicantStaIfaceHalTest.java127 private @Mock WifiMonitor mWifiMonitor; field in SupplicantStaIfaceHalTest
158 super(mContext, mWifiMonitor, mPropertyService, mLooper.getLooper()); in SupplicantStaIfaceHalSpy()
1085 verify(mWifiMonitor).broadcastAnqpDoneEvent( in testAnqpDoneCallback()
1108 verify(mWifiMonitor).broadcastIconDoneEvent( in testIconDoneCallback()
1132 verify(mWifiMonitor).broadcastWnmEvent(eq(WLAN0_IFACE_NAME), wnmDataCaptor.capture()); in testHs20SubscriptionRemediationCallback()
1172 verify(mWifiMonitor).broadcastSupplicantStateChangeEvent( in testStateChangeCallbackWithNoConfiguredNetwork()
1192 verify(mWifiMonitor).broadcastSupplicantStateChangeEvent( in testStateChangeToAssociatedCallback()
1202 InOrder wifiMonitorInOrder = inOrder(mWifiMonitor); in testStateChangeToCompletedCallback()
1213 wifiMonitorInOrder.verify(mWifiMonitor).broadcastNetworkConnectionEvent( in testStateChangeToCompletedCallback()
1215 wifiMonitorInOrder.verify(mWifiMonitor).broadcastSupplicantStateChangeEvent( in testStateChangeToCompletedCallback()
[all …]
DWifiNativeInterfaceManagementTest.java78 @Mock private WifiMonitor mWifiMonitor; field in WifiNativeInterfaceManagementTest
165 mWifiMonitor, mNwManagementService, mIfaceCallback0, mIfaceCallback1, mWifiMetrics); in setUp()
169 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in setUp()
182 mHostapdHal, mWifiMonitor, mNwManagementService, mIfaceCallback0, mIfaceCallback1, in tearDown()
387 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_1); in testTeardownAllInterfaces()
497 mInOrder.verify(mWifiMonitor).startMonitoring(IFACE_NAME_0); in testSetupSoftApAndClientInterfaceCausesSoftApInterfaceTeardown()
1167 mInOrder.verify(mWifiMonitor).startMonitoring(IFACE_NAME_0); in testSetupClientAndSoftApInterfaceCausesClientInterfaceTeardownWithNoVendorHal()
1185 verify(mWifiMonitor).stopMonitoring(IFACE_NAME_0); in testSetupClientAndSoftApInterfaceCausesClientInterfaceTeardownWithNoVendorHal()
1250 mInOrder.verify(mWifiMonitor).startMonitoring(IFACE_NAME_0); in testSetupSoftApAndClientInterfaceCausesSoftApInterfaceTeardownWithNoVendorHal()
1314 mInOrder.verify(mWifiMonitor).startMonitoring(ifaceName); in validateSetupClientInterface()
[all …]
DSupplicantStaNetworkHalTest.java83 @Mock private WifiMonitor mWifiMonitor; field in SupplicantStaNetworkHalTest
127 IFACE_NAME, mContext, mWifiMonitor); in testOweNetworkWifiConfigurationSaveLoad()
151 IFACE_NAME, mContext, mWifiMonitor); in testSaePasswordNetworkWifiConfigurationSaveLoad()
274 IFACE_NAME, mContext, mWifiMonitor); in testEapSuiteBRsaNetworkWifiConfigurationSaveLoad()
301 IFACE_NAME, mContext, mWifiMonitor); in testEapSuiteBEcdsaNetworkWifiConfigurationSaveLoad()
736 IFACE_NAME, mContext, mWifiMonitor); in testSendNetworkEapIdentityResponse()
804 IFACE_NAME, mContext, mWifiMonitor); in testAddPskSha256Flags()
828 IFACE_NAME, mContext, mWifiMonitor); in testAddEapSha256Flags()
934 verify(mWifiMonitor).broadcastNetworkGsmAuthRequestEvent( in testNetworkEapGsmAuthCallback()
959 verify(mWifiMonitor).broadcastNetworkUmtsAuthRequestEvent( in testNetworkEapUmtsAuthCallback()
[all …]
DWificondControlTest.java94 @Mock private WifiMonitor mWifiMonitor; field in WificondControlTest
224 mWificondControl = new WificondControl(mWifiInjector, mWifiMonitor, mCarrierNetworkConfig, in setUp()
836 verify(mWifiMonitor).broadcastScanResultEvent(any(String.class)); in testScanResultEvent()
852 verify(mWifiMonitor).broadcastScanFailedEvent(any(String.class)); in testScanFailedEvent()
866 verify(mWifiMonitor).broadcastPnoScanResultEvent(any(String.class)); in testPnoScanResultEvent()
DScanOnlyModeManagerTest.java67 @Mock WifiMonitor mWifiMonitor; field in ScanOnlyModeManagerTest
DWifiNativeTest.java169 @Mock private WifiMonitor mWifiMonitor; field in WifiNativeTest
186 mWifiMonitor, mNwService, mPropertyService, mWifiMetrics, mHandler, mRandom); in setUp()
DClientModeManagerTest.java65 @Mock WifiMonitor mWifiMonitor; field in ClientModeManagerTest
DClientModeImplTest.java341 MockWifiMonitor mWifiMonitor; field in ClientModeImplTest
414 mWifiMonitor = new MockWifiMonitor(); in setUp()
429 when(mWifiInjector.getWifiMonitor()).thenReturn(mWifiMonitor); in setUp()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java58 mWifiMonitorSpy = spy(mWifiMonitor); in setup()
78 mWifiNative, mWifiMonitor, channelHelper, mLooper.getLooper(), mClock); in singleScanNotIssuedIfNoAvailableChannels()
99 mWifiMonitor.sendMessage(IFACE_NAME, WifiMonitor.SCAN_RESULTS_EVENT); in externalScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
124 mWifiMonitor.sendMessage(IFACE_NAME, WifiMonitor.SCAN_RESULTS_EVENT); in externalScanResultsAfterOurScanDoNotCauseSpuriousTimerCancellationOrCrash()
154 mWifiMonitor.sendMessage(IFACE_NAME, WifiMonitor.SCAN_RESULTS_EVENT); in lateScanResultsDoNotCauseSpuriousTimerCancellationOrCrash()
DWificondPnoScannerTest.java60 MockWifiMonitor mWifiMonitor; field in WificondPnoScannerTest
73 mWifiMonitor = new MockWifiMonitor(); in setup()
140 mScanner = new WificondScannerImpl(mContext, IFACE_NAME, mWifiNative, mWifiMonitor, in createScannerWithHwPnoScanSupport()
221 mWifiMonitor.sendMessage(IFACE_NAME, WifiMonitor.PNO_SCAN_RESULTS_EVENT); in expectSuccessfulHwDisconnectedPnoScan()
DHalWifiScannerTest.java38 mWifiNative, mWifiMonitor, mLooper.getLooper(), mClock); in setUp()
DBaseWifiScannerImplTest.java67 MockWifiMonitor mWifiMonitor; field in BaseWifiScannerImplTest
84 mWifiMonitor = new MockWifiMonitor(); in setUpBase()
333 mWifiMonitor.sendMessage(eq(IFACE_NAME), WifiMonitor.SCAN_FAILED_EVENT); in singleScanFailOnFailedEvent()
464 mWifiMonitor.sendMessage(eq(IFACE_NAME), WifiMonitor.SCAN_RESULTS_EVENT); in singleScanWhereSupplicantReturnsSomeOldResults()
527 mWifiMonitor.sendMessage(eq(IFACE_NAME), WifiMonitor.SCAN_RESULTS_EVENT); in expectSuccessfulSingleScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java65 private final WifiMonitor mWifiMonitor; field in WificondScannerImpl
102 mWifiMonitor = wifiMonitor; in WificondScannerImpl()
126 mWifiMonitor.deregisterHandler(mIfaceName, in cleanup()
128 mWifiMonitor.deregisterHandler(mIfaceName, in cleanup()
130 mWifiMonitor.deregisterHandler(mIfaceName, in cleanup()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceHal.java140 private final WifiMonitor mWifiMonitor; field in SupplicantStaIfaceHal
189 mWifiMonitor = monitor; in SupplicantStaIfaceHal()
567 mWifiMonitor.broadcastSupplicantDisconnectionEvent(ifaceName); in supplicantServiceDiedHandler()
1248 mWifiMonitor); in getStaNetworkMockable()
2572 mWifiMonitor.broadcastNetworkConnectionEvent( in onStateChanged()
2575 mWifiMonitor.broadcastSupplicantStateChangeEvent( in onStateChanged()
2599 mWifiMonitor.broadcastAnqpDoneEvent( in onAnqpQueryDone()
2609 mWifiMonitor.broadcastIconDoneEvent( in onHs20IconQueryDone()
2620 mWifiMonitor.broadcastWnmEvent( in onHs20SubscriptionRemediation()
2631 mWifiMonitor.broadcastWnmEvent( in onHs20DeauthImminentNotice()
[all …]
DWifiInjector.java95 private final WifiMonitor mWifiMonitor; field in WifiInjector
212 mWifiMonitor = new WifiMonitor(this); in WifiInjector()
217 new SupplicantStaIfaceHal(mContext, mWifiMonitor, mPropertyService, in WifiInjector()
220 mWificondControl = new WificondControl(this, mWifiMonitor, mCarrierNetworkConfig, in WifiInjector()
227 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in WifiInjector()
739 return mWifiMonitor; in getWifiMonitor()
DWificondControl.java90 private WifiMonitor mWifiMonitor; field in WificondControl
123 mWifiMonitor.broadcastScanResultEvent(mIfaceName); in OnScanResultReady()
129 mWifiMonitor.broadcastScanFailedEvent(mIfaceName); in OnScanFailed()
137 mWifiMonitor = wifiMonitor; in WificondControl()
154 mWifiMonitor.broadcastPnoScanResultEvent(mIfaceName); in OnPnoNetworkFound()
DClientModeImpl.java202 private final WifiMonitor mWifiMonitor; field in ClientModeImpl
818 mWifiMonitor = mWifiInjector.getWifiMonitor(); in ClientModeImpl()
937 mWifiMonitor.registerHandler(mInterfaceName, CMD_TARGET_BSSID, getHandler()); in registerForWifiMonitorEvents()
938 mWifiMonitor.registerHandler(mInterfaceName, CMD_ASSOCIATED_BSSID, getHandler()); in registerForWifiMonitorEvents()
939 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.ANQP_DONE_EVENT, getHandler()); in registerForWifiMonitorEvents()
940 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.ASSOCIATION_REJECTION_EVENT, in registerForWifiMonitorEvents()
942 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.AUTHENTICATION_FAILURE_EVENT, in registerForWifiMonitorEvents()
944 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.GAS_QUERY_DONE_EVENT, in registerForWifiMonitorEvents()
946 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.GAS_QUERY_START_EVENT, in registerForWifiMonitorEvents()
948 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.HS20_REMEDIATION_EVENT, in registerForWifiMonitorEvents()
[all …]
DWifiNative.java79 private final WifiMonitor mWifiMonitor; field in WifiNative
97 mWifiMonitor = wifiMonitor; in WifiNative()
463 mWifiMonitor.stopMonitoring(iface.name); in onClientInterfaceForConnectivityDestroyed()
481 mWifiMonitor.stopMonitoring(iface.name); in onClientInterfaceForScanDestroyed()
968 mWifiMonitor.startMonitoring(iface.name); in setupInterfaceForClientInConnectivityMode()
1022 mWifiMonitor.startMonitoring(iface.name); in setupInterfaceForClientInScanMode()
DSupplicantStaNetworkHal.java92 private final WifiMonitor mWifiMonitor; field in SupplicantStaNetworkHal
138 mWifiMonitor = monitor; in SupplicantStaNetworkHal()
3113 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent( in onNetworkEapSimGsmAuthRequest()
3126 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent( in onNetworkEapSimUmtsAuthRequest()
3135 mWifiMonitor.broadcastNetworkIdentityRequestEvent( in onNetworkEapIdentityRequest()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/
DConnectionUtil.java71 private Object mWifiMonitor = new Object(); field in ConnectionUtil
328 synchronized (mWifiMonitor) { in notifyWifiState()
330 mWifiMonitor.notify(); in notifyWifiState()
498 synchronized (mWifiMonitor) { in waitForWifiState()
500 mWifiMonitor.wait(SHORT_TIMEOUT); in waitForWifiState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java767 private WifiP2pMonitor mWifiMonitor = mWifiInjector.getWifiP2pMonitor(); field in WifiP2pServiceImpl.P2pStateMachine
889 mWifiMonitor.enableVerboseLogging(verbose); in enableVerboseLogging()
893 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
895 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
897 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
899 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
901 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
903 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
905 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
907 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java149 @Spy MockWifiP2pMonitor mWifiMonitor; field in WifiP2pServiceImplTest
609 verify(mWifiMonitor, atLeastOnce()).registerHandler(anyString(), anyInt(), any()); in checkIsP2pInitWhenClientConnected()
613 verify(mWifiMonitor, never()).registerHandler(anyString(), anyInt(), any()); in checkIsP2pInitWhenClientConnected()
630 verify(mWifiMonitor).stopMonitoring(anyString()); in checkIsP2pTearDownWhenClientDisconnected()
633 verify(mWifiMonitor, never()).stopMonitoring(anyString()); in checkIsP2pTearDownWhenClientDisconnected()
723 when(mWifiInjector.getWifiP2pMonitor()).thenReturn(mWifiMonitor); in setUpWifiP2pServiceImpl()
837 verify(mWifiMonitor).stopMonitoring(anyString()); in checkIsP2pInitForWifiChanges()
845 verify(mWifiMonitor, atLeastOnce()).registerHandler(anyString(), anyInt(), any()); in checkIsP2pInitForWifiChanges()
DSupplicantP2pIfaceHalTest.java86 private @Mock WifiP2pMonitor mWifiMonitor; field in SupplicantP2pIfaceHalTest
155 super(mWifiMonitor); in SupplicantP2pIfaceHalSpy()