/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 | 94 @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()
|
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 | 341 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/ |
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 | 140 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 …]
|
D | WifiInjector.java | 95 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()
|
D | WificondControl.java | 90 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()
|
D | ClientModeImpl.java | 202 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 …]
|
D | WifiNative.java | 79 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()
|
D | SupplicantStaNetworkHal.java | 92 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/ |
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 | 767 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/ |
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()
|