Home
last modified time | relevance | path

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

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java45 private WifiP2pMonitor mWifiP2pMonitor;
52 mWifiP2pMonitor = new WifiP2pMonitor(); in setUp()
65 P2P_IFACE_NAME, WifiP2pMonitor.SUP_DISCONNECTION_EVENT, mHandlerSpy); in testBroadcastSupplicantDisconnectionEvent()
71 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastSupplicantDisconnectionEvent()
79 P2P_IFACE_NAME, WifiP2pMonitor.SUP_CONNECTION_EVENT, mHandlerSpy); in testBroadcastEventToTwoHandlers()
81 P2P_IFACE_NAME, WifiP2pMonitor.SUP_CONNECTION_EVENT, mSecondHandlerSpy); in testBroadcastEventToTwoHandlers()
87 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
89 assertEquals(WifiP2pMonitor.SUP_CONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventToTwoHandlers()
97 P2P_IFACE_NAME, WifiP2pMonitor.SUP_DISCONNECTION_EVENT, mHandlerSpy); in testBroadcastEventWhenIfaceIsNull()
103 assertEquals(WifiP2pMonitor.SUP_DISCONNECTION_EVENT, messageCaptor.getValue().what); in testBroadcastEventWhenIfaceIsNull()
[all …]
DSupplicantP2pIfaceCallbackHidlImplTest.java67 private WifiP2pMonitor mMonitor;
85 SupplicantP2pIfaceHalHidlImpl ifaceHal, String iface, WifiP2pMonitor monitor) { in SupplicantP2pIfaceCallbackImplSpy()
93 mMonitor = mock(WifiP2pMonitor.class); in setUp()
502 WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT); in testOnProvisionDiscoveryTimeout()
512 WifiP2pMonitor.PROV_DISC_STATUS_REJECTED); in testOnProvisionDiscoveryRejection()
522 WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT_JOIN); in testOnProvisionDiscoveryJoinTimeout()
532 WifiP2pMonitor.PROV_DISC_STATUS_INFO_UNAVAILABLE); in testOnProvisionDiscoveryInfoUnavailable()
DSupplicantP2pIfaceCallbackAidlImplTest.java82 private WifiP2pMonitor mMonitor;
105 SupplicantP2pIfaceCallbackImplSpy(String iface, WifiP2pMonitor monitor, in SupplicantP2pIfaceCallbackImplSpy()
114 mMonitor = mock(WifiP2pMonitor.class); in setUp()
893 WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT); in testOnProvisionDiscoveryTimeout()
903 WifiP2pMonitor.PROV_DISC_STATUS_REJECTED); in testOnProvisionDiscoveryRejection()
913 WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT_JOIN); in testOnProvisionDiscoveryJoinTimeout()
923 WifiP2pMonitor.PROV_DISC_STATUS_INFO_UNAVAILABLE); in testOnProvisionDiscoveryInfoUnavailable()
DMockWifiP2pMonitor.java33 public class MockWifiP2pMonitor extends WifiP2pMonitor {
DWifiP2pServiceImplTest.java595 msg.what = WifiP2pMonitor.P2P_GO_NEGOTIATION_REQUEST_EVENT; in sendNegotiationRequestEvent()
646 msg.what = WifiP2pMonitor.P2P_GROUP_STARTED_EVENT; in sendGroupStartedMsg()
657 msg.what = WifiP2pMonitor.P2P_GROUP_REMOVED_EVENT; in sendGroupRemovedMsg()
669 msg.what = WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT; in sendDeviceFoundEventMsg()
683 msg.what = WifiP2pMonitor.P2P_INVITATION_RESULT_EVENT; in sendInvitationResultMsg()
696 msg.what = WifiP2pMonitor.P2P_INVITATION_RECEIVED_EVENT; in sendInvitationReceivedMsg()
709 msg.what = WifiP2pMonitor.AP_STA_CONNECTED_EVENT; in sendApStaConnectedEvent()
722 msg.what = WifiP2pMonitor.AP_STA_DISCONNECTED_EVENT; in sendApStaDisConnectedEvent()
1012 msg.what = WifiP2pMonitor.P2P_GO_NEGOTIATION_FAILURE_EVENT; in sendGoNegotiationFailureEvent()
1604 sendP2pStateMachineMessage(WifiP2pMonitor.SUP_DISCONNECTION_EVENT); in mockEnterDisabledState()
[all …]
DSupplicantP2pIfaceHalTest.java64 private @Mock WifiP2pMonitor mMonitor;
DSupplicantP2pIfaceHalAidlImplTest.java110 private @Mock WifiP2pMonitor mWifiMonitor;
DSupplicantP2pIfaceHalHidlImplTest.java96 private @Mock WifiP2pMonitor mWifiMonitor;
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java1402 private final WifiP2pMonitor mWifiMonitor = mWifiInjector.getWifiP2pMonitor();
1611 case WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT: in recordLogRec()
1612 case WifiP2pMonitor.P2P_DEVICE_LOST_EVENT: in recordLogRec()
1756 case WifiP2pMonitor.AP_STA_CONNECTED_EVENT: in getWhatToString()
1758 case WifiP2pMonitor.AP_STA_DISCONNECTED_EVENT: in getWhatToString()
1760 case WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT: in getWhatToString()
1762 case WifiP2pMonitor.P2P_DEVICE_LOST_EVENT: in getWhatToString()
1764 case WifiP2pMonitor.P2P_FIND_STOPPED_EVENT: in getWhatToString()
1766 case WifiP2pMonitor.P2P_GO_NEGOTIATION_FAILURE_EVENT: in getWhatToString()
1768 case WifiP2pMonitor.P2P_GO_NEGOTIATION_REQUEST_EVENT: in getWhatToString()
[all …]
DSupplicantP2pIfaceCallbackHidlImpl.java49 private final WifiP2pMonitor mMonitor;
53 @NonNull String iface, @NonNull WifiP2pMonitor monitor) { in SupplicantP2pIfaceCallbackHidlImpl()
386 private @WifiP2pMonitor.P2pProvDiscStatus int convertHalProvDiscStatusToFrameworkStatus( in convertHalProvDiscStatusToFrameworkStatus()
390 return WifiP2pMonitor.PROV_DISC_STATUS_SUCCESS; in convertHalProvDiscStatusToFrameworkStatus()
392 return WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT; in convertHalProvDiscStatusToFrameworkStatus()
394 return WifiP2pMonitor.PROV_DISC_STATUS_REJECTED; in convertHalProvDiscStatusToFrameworkStatus()
396 return WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT_JOIN; in convertHalProvDiscStatusToFrameworkStatus()
398 return WifiP2pMonitor.PROV_DISC_STATUS_INFO_UNAVAILABLE; in convertHalProvDiscStatusToFrameworkStatus()
400 return WifiP2pMonitor.PROV_DISC_STATUS_UNKNOWN; in convertHalProvDiscStatusToFrameworkStatus()
DSupplicantP2pIfaceCallbackAidlImpl.java68 private final WifiP2pMonitor mMonitor;
72 @NonNull String iface, @NonNull WifiP2pMonitor monitor, int serviceVersion) { in SupplicantP2pIfaceCallbackAidlImpl()
477 private @WifiP2pMonitor.P2pProvDiscStatus int convertHalProvDiscStatusToFrameworkStatus( in convertHalProvDiscStatusToFrameworkStatus()
481 return WifiP2pMonitor.PROV_DISC_STATUS_SUCCESS; in convertHalProvDiscStatusToFrameworkStatus()
483 return WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT; in convertHalProvDiscStatusToFrameworkStatus()
485 return WifiP2pMonitor.PROV_DISC_STATUS_REJECTED; in convertHalProvDiscStatusToFrameworkStatus()
487 return WifiP2pMonitor.PROV_DISC_STATUS_TIMEOUT_JOIN; in convertHalProvDiscStatusToFrameworkStatus()
489 return WifiP2pMonitor.PROV_DISC_STATUS_INFO_UNAVAILABLE; in convertHalProvDiscStatusToFrameworkStatus()
491 return WifiP2pMonitor.PROV_DISC_STATUS_UNKNOWN; in convertHalProvDiscStatusToFrameworkStatus()
DSupplicantP2pIfaceCallbackHidlV1_4Impl.java39 private final WifiP2pMonitor mMonitor;
44 @NonNull String iface, @NonNull WifiP2pMonitor monitor) { in SupplicantP2pIfaceCallbackHidlV1_4Impl()
DSupplicantP2pIfaceHal.java45 private final WifiP2pMonitor mMonitor;
52 public SupplicantP2pIfaceHal(WifiP2pMonitor monitor, WifiGlobals wifiGlobals, in SupplicantP2pIfaceHal()
DWifiP2pMonitor.java47 public class WifiP2pMonitor { class
DSupplicantP2pIfaceHalAidlImpl.java114 private final WifiP2pMonitor mMonitor;
119 public SupplicantP2pIfaceHalAidlImpl(WifiP2pMonitor monitor, WifiInjector wifiInjector) { in SupplicantP2pIfaceHalAidlImpl()
DSupplicantP2pIfaceHalHidlImpl.java122 private final WifiP2pMonitor mMonitor;
125 public SupplicantP2pIfaceHalHidlImpl(WifiP2pMonitor monitor) { in SupplicantP2pIfaceHalHidlImpl()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiInjector.java66 import com.android.server.wifi.p2p.WifiP2pMonitor;
169 private final WifiP2pMonitor mWifiP2pMonitor;
356 mWifiP2pMonitor = new WifiP2pMonitor(); in WifiInjector()
1034 public WifiP2pMonitor getWifiP2pMonitor() { in getWifiP2pMonitor()
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp1121 "com.android.server.wifi.p2p.WifiP2pMonitor",
1122 "com.android.server.wifi.p2p.WifiP2pMonitor$*",
1123 "com.android.server.wifi.p2p.WifiP2pMonitor.**",