/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 59 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 …]
|
D | SupplicantStaIfaceHalTest.java | 127 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 …]
|
D | WifiNativeInterfaceManagementTest.java | 78 @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 …]
|
D | SupplicantStaNetworkHalTest.java | 83 @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 …]
|
D | WificondControlTest.java | 93 @Mock private WifiMonitor mWifiMonitor; field in WificondControlTest 223 mWificondControl = new WificondControl(mWifiInjector, mWifiMonitor, mCarrierNetworkConfig, in setUp() 835 verify(mWifiMonitor).broadcastScanResultEvent(any(String.class)); in testScanResultEvent() 851 verify(mWifiMonitor).broadcastScanFailedEvent(any(String.class)); in testScanFailedEvent() 865 verify(mWifiMonitor).broadcastPnoScanResultEvent(any(String.class)); in testPnoScanResultEvent()
|
D | ScanOnlyModeManagerTest.java | 67 @Mock WifiMonitor mWifiMonitor; field in ScanOnlyModeManagerTest
|
D | WifiNativeTest.java | 169 @Mock private WifiMonitor mWifiMonitor; field in WifiNativeTest 186 mWifiMonitor, mNwService, mPropertyService, mWifiMetrics, mHandler, mRandom); in setUp()
|
D | ClientModeManagerTest.java | 65 @Mock WifiMonitor mWifiMonitor; field in ClientModeManagerTest
|
D | ClientModeImplTest.java | 334 MockWifiMonitor mWifiMonitor; field in ClientModeImplTest 407 mWifiMonitor = new MockWifiMonitor(); in setUp() 422 when(mWifiInjector.getWifiMonitor()).thenReturn(mWifiMonitor); in setUp()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WificondScannerTest.java | 58 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()
|
D | WificondPnoScannerTest.java | 60 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()
|
D | HalWifiScannerTest.java | 38 mWifiNative, mWifiMonitor, mLooper.getLooper(), mClock); in setUp()
|
D | BaseWifiScannerImplTest.java | 67 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/ |
D | WificondScannerImpl.java | 65 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/ |
D | SupplicantStaIfaceHal.java | 135 private final WifiMonitor mWifiMonitor; field in SupplicantStaIfaceHal 184 mWifiMonitor = monitor; in SupplicantStaIfaceHal() 561 mWifiMonitor.broadcastSupplicantDisconnectionEvent(ifaceName); in supplicantServiceDiedHandler() 1224 mWifiMonitor); in getStaNetworkMockable() 2548 mWifiMonitor.broadcastNetworkConnectionEvent( in onStateChanged() 2551 mWifiMonitor.broadcastSupplicantStateChangeEvent( in onStateChanged() 2575 mWifiMonitor.broadcastAnqpDoneEvent( in onAnqpQueryDone() 2585 mWifiMonitor.broadcastIconDoneEvent( in onHs20IconQueryDone() 2596 mWifiMonitor.broadcastWnmEvent( in onHs20SubscriptionRemediation() 2607 mWifiMonitor.broadcastWnmEvent( in onHs20DeauthImminentNotice() [all …]
|
D | WifiInjector.java | 93 private final WifiMonitor mWifiMonitor; field in WifiInjector 204 mWifiMonitor = new WifiMonitor(this); in WifiInjector() 209 new SupplicantStaIfaceHal(mContext, mWifiMonitor, mPropertyService, in WifiInjector() 212 mWificondControl = new WificondControl(this, mWifiMonitor, mCarrierNetworkConfig, in WifiInjector() 219 mWifiMonitor, mNwManagementService, mPropertyService, mWifiMetrics, in WifiInjector() 706 return mWifiMonitor; in getWifiMonitor()
|
D | WificondControl.java | 88 private WifiMonitor mWifiMonitor; field in WificondControl 121 mWifiMonitor.broadcastScanResultEvent(mIfaceName); in OnScanResultReady() 127 mWifiMonitor.broadcastScanFailedEvent(mIfaceName); in OnScanFailed() 135 mWifiMonitor = wifiMonitor; in WificondControl() 152 mWifiMonitor.broadcastPnoScanResultEvent(mIfaceName); in OnPnoNetworkFound()
|
D | ClientModeImpl.java | 195 private final WifiMonitor mWifiMonitor; field in ClientModeImpl 805 mWifiMonitor = mWifiInjector.getWifiMonitor(); in ClientModeImpl() 923 mWifiMonitor.registerHandler(mInterfaceName, CMD_TARGET_BSSID, getHandler()); in registerForWifiMonitorEvents() 924 mWifiMonitor.registerHandler(mInterfaceName, CMD_ASSOCIATED_BSSID, getHandler()); in registerForWifiMonitorEvents() 925 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.ANQP_DONE_EVENT, getHandler()); in registerForWifiMonitorEvents() 926 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.ASSOCIATION_REJECTION_EVENT, in registerForWifiMonitorEvents() 928 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.AUTHENTICATION_FAILURE_EVENT, in registerForWifiMonitorEvents() 930 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.GAS_QUERY_DONE_EVENT, in registerForWifiMonitorEvents() 932 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.GAS_QUERY_START_EVENT, in registerForWifiMonitorEvents() 934 mWifiMonitor.registerHandler(mInterfaceName, WifiMonitor.HS20_REMEDIATION_EVENT, in registerForWifiMonitorEvents() [all …]
|
D | WifiNative.java | 78 private final WifiMonitor mWifiMonitor; field in WifiNative 96 mWifiMonitor = wifiMonitor; in WifiNative() 462 mWifiMonitor.stopMonitoring(iface.name); in onClientInterfaceForConnectivityDestroyed() 480 mWifiMonitor.stopMonitoring(iface.name); in onClientInterfaceForScanDestroyed() 967 mWifiMonitor.startMonitoring(iface.name); in setupInterfaceForClientInConnectivityMode() 1021 mWifiMonitor.startMonitoring(iface.name); in setupInterfaceForClientInScanMode()
|
D | SupplicantStaNetworkHal.java | 92 private final WifiMonitor mWifiMonitor; field in SupplicantStaNetworkHal 138 mWifiMonitor = monitor; in SupplicantStaNetworkHal() 3121 mWifiMonitor.broadcastNetworkGsmAuthRequestEvent( in onNetworkEapSimGsmAuthRequest() 3134 mWifiMonitor.broadcastNetworkUmtsAuthRequestEvent( in onNetworkEapSimUmtsAuthRequest() 3143 mWifiMonitor.broadcastNetworkIdentityRequestEvent( in onNetworkEapIdentityRequest()
|
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/util/ |
D | ConnectionUtil.java | 71 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/ |
D | WifiP2pServiceImpl.java | 748 private WifiP2pMonitor mWifiMonitor = mWifiInjector.getWifiP2pMonitor(); field in WifiP2pServiceImpl.P2pStateMachine 870 mWifiMonitor.enableVerboseLogging(verbose); in enableVerboseLogging() 874 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 876 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 878 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 880 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 882 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 884 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 886 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() 888 mWifiMonitor.registerHandler(mInterfaceName, in registerForWifiMonitorEvents() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 149 @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()
|
D | SupplicantP2pIfaceHalTest.java | 86 private @Mock WifiP2pMonitor mWifiMonitor; field in SupplicantP2pIfaceHalTest 155 super(mWifiMonitor); in SupplicantP2pIfaceHalSpy()
|