Home
last modified time | relevance | path

Searched refs:P2pStatus (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImpl.java33 import com.android.server.wifi.p2p.WifiP2pServiceImpl.P2pStatus;
226 P2pStatus result = halStatusToP2pStatus(status); in onGoNegotiationCompleted()
228 if (result == P2pStatus.SUCCESS) { in onGoNegotiationCompleted()
545 private static P2pStatus halStatusToP2pStatus(int status) { in halStatusToP2pStatus()
546 P2pStatus result = P2pStatus.UNKNOWN; in halStatusToP2pStatus()
551 result = P2pStatus.SUCCESS; in halStatusToP2pStatus()
555 result = P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE; in halStatusToP2pStatus()
559 result = P2pStatus.INCOMPATIBLE_PARAMETERS; in halStatusToP2pStatus()
563 result = P2pStatus.LIMIT_REACHED; in halStatusToP2pStatus()
567 result = P2pStatus.INVALID_PARAMETER; in halStatusToP2pStatus()
[all …]
DSupplicantP2pIfaceCallbackAidlImpl.java227 WifiP2pServiceImpl.P2pStatus result = halStatusToP2pStatus(status); in onGoNegotiationCompleted()
229 if (result == WifiP2pServiceImpl.P2pStatus.SUCCESS) { in onGoNegotiationCompleted()
962 private static WifiP2pServiceImpl.P2pStatus halStatusToP2pStatus(int status) { in halStatusToP2pStatus()
963 WifiP2pServiceImpl.P2pStatus result = WifiP2pServiceImpl.P2pStatus.UNKNOWN; in halStatusToP2pStatus()
968 result = WifiP2pServiceImpl.P2pStatus.SUCCESS; in halStatusToP2pStatus()
972 result = WifiP2pServiceImpl.P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE; in halStatusToP2pStatus()
976 result = WifiP2pServiceImpl.P2pStatus.INCOMPATIBLE_PARAMETERS; in halStatusToP2pStatus()
980 result = WifiP2pServiceImpl.P2pStatus.LIMIT_REACHED; in halStatusToP2pStatus()
984 result = WifiP2pServiceImpl.P2pStatus.INVALID_PARAMETER; in halStatusToP2pStatus()
988 result = WifiP2pServiceImpl.P2pStatus.UNABLE_TO_ACCOMMODATE_REQUEST; in halStatusToP2pStatus()
[all …]
DWifiP2pMonitor.java34 import com.android.server.wifi.p2p.WifiP2pServiceImpl.P2pStatus;
319 public void broadcastP2pGoNegotiationFailure(String iface, P2pStatus reason) { in broadcastP2pGoNegotiationFailure()
339 P2pStatus err = P2pStatus.UNKNOWN; in broadcastP2pGroupFormationFailure()
341 err = P2pStatus.NO_COMMON_CHANNEL; in broadcastP2pGroupFormationFailure()
388 public void broadcastP2pInvitationResult(String iface, P2pStatus result) { in broadcastP2pInvitationResult()
DWifiP2pServiceImpl.java471 public enum P2pStatus { enum in WifiP2pServiceImpl
518 public static P2pStatus valueOf(int error) { in valueOf()
4693 P2pStatus status = (P2pStatus) message.obj; in processMessageImpl()
4694 if (status == P2pStatus.NO_COMMON_CHANNEL) { in processMessageImpl()
4717 status = (P2pStatus) message.obj; in processMessageImpl()
4718 if (status == P2pStatus.NO_COMMON_CHANNEL) { in processMessageImpl()
4724 status = (P2pStatus) message.obj; in processMessageImpl()
4725 if (status == P2pStatus.SUCCESS) { in processMessageImpl()
4731 if (status == P2pStatus.UNKNOWN_P2P_GROUP) { in processMessageImpl()
4751 } else if (status == P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE) { in processMessageImpl()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceCallbackHidlImplTest.java45 import com.android.server.wifi.p2p.WifiP2pServiceImpl.P2pStatus;
628 eq(mIface), eq(P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE)); in testOnGoNegotiationCompletedFailureUnavailable()
700 verify(mMonitor).broadcastP2pInvitationResult(eq(mIface), eq(P2pStatus.SUCCESS)); in testOnInvitationResult()
DSupplicantP2pIfaceCallbackAidlImplTest.java61 import com.android.server.wifi.p2p.WifiP2pServiceImpl.P2pStatus;
1047 eq(mIface), eq(P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE)); in testOnGoNegotiationCompletedFailureUnavailable()
1146 verify(mMonitor).broadcastP2pInvitationResult(eq(mIface), eq(P2pStatus.SUCCESS)); in testOnInvitationResult()
DWifiP2pServiceImplTest.java681 WifiP2pServiceImpl.P2pStatus status) throws Exception { in sendInvitationResultMsg()
1010 WifiP2pServiceImpl.P2pStatus status) throws Exception { in sendGoNegotiationFailureEvent()
3648 WifiP2pServiceImpl.P2pStatus.NO_COMMON_CHANNEL); in testAcceptFrequencyConflictDialogSendsDisconnectWifiRequest()
3717 WifiP2pServiceImpl.P2pStatus.NO_COMMON_CHANNEL); in testDeclineFrequencyConflictDialogEndsP2pConnectionEvent()
3756 WifiP2pServiceImpl.P2pStatus.NO_COMMON_CHANNEL); in testFrequencyConflictDialogDismissedOnStateExit()
3916 sendInvitationResultMsg(WifiP2pServiceImpl.P2pStatus.UNKNOWN); in testEndConnectionEventWhenInvitationFailure()
7633 sendInvitationResultMsg(WifiP2pServiceImpl.P2pStatus.UNKNOWN_P2P_GROUP); in testPbcReconnectForUnknownGroupInvitation()
7654 sendInvitationResultMsg(WifiP2pServiceImpl.P2pStatus.UNKNOWN_P2P_GROUP); in testPinReconnectForUnknownGroupInvitation()
7683 sendInvitationResultMsg(WifiP2pServiceImpl.P2pStatus.UNKNOWN_P2P_GROUP); in testInternalReconnectForUnknownP2pGroup()
7833 sendInvitationResultMsg(WifiP2pServiceImpl.P2pStatus.INFORMATION_IS_CURRENTLY_UNAVAILABLE); in testFallbackToNegotiationOnInviteStatusCodeInfoUnavailable()
[all …]