Home
last modified time | relevance | path

Searched refs:WifiMonitor (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java59 private WifiMonitor mWifiMonitor;
66 mWifiMonitor = new WifiMonitor(mock(WifiInjector.class)); in setUp()
79 WLAN_IFACE_NAME, WifiMonitor.WPS_FAIL_EVENT, mHandlerSpy); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
87 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
97 WLAN_IFACE_NAME, WifiMonitor.WPS_FAIL_EVENT, mHandlerSpy); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
105 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
115 WLAN_IFACE_NAME, WifiMonitor.WPS_FAIL_EVENT, mHandlerSpy); in testBroadcastWpsEventFailDueToConfigAuthError()
123 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigAuthError()
133 WLAN_IFACE_NAME, WifiMonitor.WPS_FAIL_EVENT, mHandlerSpy); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
141 assertEquals(WifiMonitor.WPS_FAIL_EVENT, messageCaptor.getValue().what); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
[all …]
DSupplicantStateTrackerTest.java69 return Message.obtain(null, WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in getSupplicantStateChangeMessage()
129 mSupplicantStateTracker.sendMessage(WifiMonitor.AUTHENTICATION_FAILURE_EVENT); in testAuthPassInSupplicantStateChangeIntent()
153 mSupplicantStateTracker.sendMessage(WifiMonitor.AUTHENTICATION_FAILURE_EVENT); in testAuthFailedInSupplicantStateChangeIntent()
183 mSupplicantStateTracker.sendMessage(WifiMonitor.AUTHENTICATION_FAILURE_EVENT, in testReasonCodeInSupplicantStateChangeIntent()
DClientModeImplTest.java1011 mCmi.sendMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, sBSSID); in connect()
1014 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in connect()
1081 mCmi.sendMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, sBSSID); in testSetAnonymousIdentityWhenConnectionIsEstablishedNoPseudonym()
1130 mCmi.sendMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, sBSSID); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithPseudonym()
1180 mCmi.sendMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, sBSSID); in testSetAnonymousIdentityWhenConnectionIsEstablishedWithNonDecoratedPseudonym()
1209 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in connectPasspointAp()
1238 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in testResetWifiInfoPasspointFields()
1243 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in testResetWifiInfoPasspointFields()
1271 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in connectOsuAp()
1302 mCmi.sendMessage(WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0, in testResetWifiInfoOsuFields()
[all …]
DMockWifiMonitor.java34 public class MockWifiMonitor extends WifiMonitor {
DScanOnlyModeManagerTest.java67 @Mock WifiMonitor mWifiMonitor;
DClientModeManagerTest.java65 @Mock WifiMonitor mWifiMonitor;
DWifiLastResortWatchdogTest.java2186 handler.obtainMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, null)); in testAbnormalConnectionTimeTriggersBugreport()
2196 handler.obtainMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, null)); in testAbnormalConnectionTimeTriggersBugreport()
2205 handler.obtainMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, null)); in testAbnormalConnectionTimeTriggersBugreport()
2229 handler.obtainMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, null)); in testGServicesSetDuration()
2253 handler.obtainMessage(WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0, null)); in testGServicesFlagDisable()
DWifiMetricsTest.java1810 {WifiMonitor.ASSOCIATION_REJECTION_EVENT, ASSOC_TIMEOUT, ASSOC_STATUS},
1811 {WifiMonitor.AUTHENTICATION_FAILURE_EVENT, AUTH_FAILURE_REASON, -1},
1812 {WifiMonitor.NETWORK_CONNECTION_EVENT, 0, 0},
1813 {WifiMonitor.NETWORK_DISCONNECTION_EVENT, LOCAL_GEN, DEAUTH_REASON},
1814 {WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0},
1817 {WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0},
1818 {WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT, 0, 0}
1916 if (mia[0] != WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT) { in verifyDeserializedStaEvents()
DWifiNativeTest.java169 @Mock private WifiMonitor mWifiMonitor;
DSupplicantStaNetworkHalTest.java83 @Mock private WifiMonitor mWifiMonitor;
96 Context context, WifiMonitor monitor) { in SupplicantStaNetworkHalSpyV1_2()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondScannerTest.java32 import com.android.server.wifi.WifiMonitor;
51 WifiMonitor mWifiMonitorSpy;
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()
177 eq(WifiMonitor.SCAN_FAILED_EVENT), any()); in cleanupDeregistersHandlers()
179 eq(WifiMonitor.PNO_SCAN_RESULTS_EVENT), any()); in cleanupDeregistersHandlers()
181 eq(WifiMonitor.SCAN_RESULTS_EVENT), any()); in cleanupDeregistersHandlers()
DBaseWifiScannerImplTest.java42 import com.android.server.wifi.WifiMonitor;
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()
DWificondPnoScannerTest.java38 import com.android.server.wifi.WifiMonitor;
221 mWifiMonitor.sendMessage(IFACE_NAME, WifiMonitor.PNO_SCAN_RESULTS_EVENT); in expectSuccessfulHwDisconnectedPnoScan()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java31 import com.android.server.wifi.WifiMonitor;
65 private final WifiMonitor mWifiMonitor;
97 WifiMonitor wifiMonitor, ChannelHelper channelHelper, in WificondScannerImpl()
113 WifiMonitor.SCAN_FAILED_EVENT, mEventHandler); in WificondScannerImpl()
115 WifiMonitor.PNO_SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl()
117 WifiMonitor.SCAN_RESULTS_EVENT, mEventHandler); in WificondScannerImpl()
127 WifiMonitor.SCAN_FAILED_EVENT, mEventHandler); in cleanup()
129 WifiMonitor.PNO_SCAN_RESULTS_EVENT, mEventHandler); in cleanup()
131 WifiMonitor.SCAN_RESULTS_EVENT, mEventHandler); in cleanup()
267 case WifiMonitor.SCAN_FAILED_EVENT: in handleMessage()
[all …]
DWifiScannerImpl.java27 import com.android.server.wifi.WifiMonitor;
53 WifiMonitor wifiMonitor = WifiInjector.getInstance().getWifiMonitor();
DHalWifiScannerImpl.java27 import com.android.server.wifi.WifiMonitor;
48 WifiMonitor wifiMonitor, Looper looper, Clock clock) { in HalWifiScannerImpl()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeImpl.java202 private final WifiMonitor mWifiMonitor;
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()
950 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.NETWORK_CONNECTION_EVENT, in registerForWifiMonitorEvents()
952 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.NETWORK_DISCONNECTION_EVENT, in registerForWifiMonitorEvents()
954 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.RX_HS20_ANQP_ICON_EVENT, in registerForWifiMonitorEvents()
[all …]
DSupplicantStateTracker.java242 case WifiMonitor.AUTHENTICATION_FAILURE_EVENT: in processMessage()
246 case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: in processMessage()
261 case WifiMonitor.ASSOCIATION_REJECTION_EVENT: in processMessage()
338 case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: in processMessage()
380 case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: in processMessage()
DWifiMonitor.java45 public class WifiMonitor { class
109 public WifiMonitor(WifiInjector wifiInjector) { in WifiMonitor() method in WifiMonitor
DWifiInjector.java95 private final WifiMonitor mWifiMonitor;
212 mWifiMonitor = new WifiMonitor(this); in WifiInjector()
738 public WifiMonitor getWifiMonitor() { in getWifiMonitor()
DWificondControl.java90 private WifiMonitor mWifiMonitor;
133 WificondControl(WifiInjector wifiInjector, WifiMonitor wifiMonitor, in WificondControl()
DWifiLastResortWatchdog.java178 case WifiMonitor.NETWORK_CONNECTION_EVENT: in processMessage()
DWifiNative.java79 private final WifiMonitor mWifiMonitor;
89 WificondControl condControl, WifiMonitor wifiMonitor, in WifiNative()
DWifiMetrics.java3699 case WifiMonitor.ASSOCIATION_REJECTION_EVENT: in processMessage()
3704 case WifiMonitor.AUTHENTICATION_FAILURE_EVENT: in processMessage()
3723 case WifiMonitor.NETWORK_CONNECTION_EVENT: in processMessage()
3726 case WifiMonitor.NETWORK_DISCONNECTION_EVENT: in processMessage()
3731 case WifiMonitor.SUPPLICANT_STATE_CHANGE_EVENT: in processMessage()
DSupplicantStaNetworkHal.java92 private final WifiMonitor mWifiMonitor;
135 Context context, WifiMonitor monitor) { in SupplicantStaNetworkHal()

12