Home
last modified time | relevance | path

Searched refs:WifiP2pMonitor (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java43 private WifiP2pMonitor mWifiP2pMonitor;
50 mWifiP2pMonitor = new WifiP2pMonitor(mock(WifiInjector.class)); in setUp()
63 P2P_IFACE_NAME, WifiP2pMonitor.SUP_DISCONNECTION_EVENT, mHandlerSpy); in testBroadcastSupplicantDisconnectionEvent()
69 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastSupplicantDisconnectionEvent()
77 P2P_IFACE_NAME, WifiP2pMonitor.SUP_CONNECTION_EVENT, mHandlerSpy); in testBroadcastEventToTwoHandlers()
79 P2P_IFACE_NAME, WifiP2pMonitor.SUP_CONNECTION_EVENT, mSecondHandlerSpy); in testBroadcastEventToTwoHandlers()
85 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
87 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
95 P2P_IFACE_NAME, WifiP2pMonitor.SUP_DISCONNECTION_EVENT, mHandlerSpy); in testBroadcastEventWhenIfaceIsNull()
101 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventWhenIfaceIsNull()
[all …]
DMockWifiP2pMonitor.java36 public class MockWifiP2pMonitor extends WifiP2pMonitor {
DSupplicantP2pIfaceCallbackTest.java61 private WifiP2pMonitor mMonitor;
76 SupplicantP2pIfaceCallbackSpy(String iface, WifiP2pMonitor monitor) { in SupplicantP2pIfaceCallbackSpy()
84 mMonitor = mock(WifiP2pMonitor.class); in setUp()
DWifiP2pServiceImplTest.java378 msg.what = WifiP2pMonitor.P2P_GROUP_STARTED_EVENT; in sendGroupStartedMsg()
389 msg.what = WifiP2pMonitor.P2P_GROUP_REMOVED_EVENT; in sendGroupRemovedMsg()
401 msg.what = WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT; in sendDeviceFoundEventMsg()
415 msg.what = WifiP2pMonitor.P2P_INVITATION_RESULT_EVENT; in sendInvitationResultMsg()
775 msg.what = WifiP2pMonitor.SUP_DISCONNECTION_EVENT; in mockEnterDisabledState()
2071 sendSimpleMsg(null, WifiP2pMonitor.P2P_PROV_DISC_FAILURE_EVENT); in testEndConnectionEventWhenProvDiscFailure()
2092 sendSimpleMsg(null, WifiP2pMonitor.P2P_GROUP_REMOVED_EVENT); in testEndConnectionEventWhenGroupRemoval()
DSupplicantP2pIfaceHalTest.java86 private @Mock WifiP2pMonitor mWifiMonitor;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java767 private WifiP2pMonitor mWifiMonitor = mWifiInjector.getWifiP2pMonitor();
894 WifiP2pMonitor.AP_STA_CONNECTED_EVENT, getHandler()); in registerForWifiMonitorEvents()
896 WifiP2pMonitor.AP_STA_DISCONNECTED_EVENT, getHandler()); in registerForWifiMonitorEvents()
898 WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT, getHandler()); in registerForWifiMonitorEvents()
900 WifiP2pMonitor.P2P_DEVICE_LOST_EVENT, getHandler()); in registerForWifiMonitorEvents()
902 WifiP2pMonitor.P2P_FIND_STOPPED_EVENT, getHandler()); in registerForWifiMonitorEvents()
904 WifiP2pMonitor.P2P_GO_NEGOTIATION_FAILURE_EVENT, getHandler()); in registerForWifiMonitorEvents()
906 WifiP2pMonitor.P2P_GO_NEGOTIATION_REQUEST_EVENT, getHandler()); in registerForWifiMonitorEvents()
908 WifiP2pMonitor.P2P_GO_NEGOTIATION_SUCCESS_EVENT, getHandler()); in registerForWifiMonitorEvents()
910 WifiP2pMonitor.P2P_GROUP_FORMATION_FAILURE_EVENT, getHandler()); in registerForWifiMonitorEvents()
[all …]
DWifiP2pMonitor.java46 public class WifiP2pMonitor { class
86 public WifiP2pMonitor(WifiInjector wifiInjector) { in WifiP2pMonitor() method in WifiP2pMonitor
DSupplicantP2pIfaceCallback.java45 private final WifiP2pMonitor mMonitor;
47 public SupplicantP2pIfaceCallback(String iface, WifiP2pMonitor monitor) { in SupplicantP2pIfaceCallback()
DSupplicantP2pIfaceHal.java115 private final WifiP2pMonitor mMonitor;
118 public SupplicantP2pIfaceHal(WifiP2pMonitor monitor) { in SupplicantP2pIfaceHal()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiInjector.java62 import com.android.server.wifi.p2p.WifiP2pMonitor;
97 private final WifiP2pMonitor mWifiP2pMonitor;
229 mWifiP2pMonitor = new WifiP2pMonitor(this); in WifiInjector()
746 public WifiP2pMonitor getWifiP2pMonitor() { in getWifiP2pMonitor()