Searched refs:SapMessage (Results 1 – 8 of 8) sorted by relevance
104 @VisibleForTesting int mTestMode = SapMessage.INVALID_VALUE; // used to set the RIL in test mode150 SapMessage fakeConReq = new SapMessage(SapMessage.ID_CONNECT_REQ); in onReceive()159 SapServer.SAP_DISCONNECT_TYPE_EXTRA, SapMessage.DISC_GRACEFULL); in onReceive()162 if (disconnectType == SapMessage.DISC_RFCOMM) { in onReceive()183 if (SapMessage.TEST || Utils.isInstrumentationTestMode()) { in setTestMode()192 if (discType != SapMessage.DISC_FORCED) { in sendDisconnectInd()195 SapMessage discInd = new SapMessage(SapMessage.ID_DISCONNECT_IND); in sendDisconnectInd()200 if (discType == SapMessage.DISC_GRACEFULL) { in sendDisconnectInd()203 SapMessage.DISC_IMMEDIATE, in sendDisconnectInd()206 } else if (discType == SapMessage.DISC_IMMEDIATE) { in sendDisconnectInd()[all …]
187 private void sendSapMessage(SapMessage sapMessage) { in sendSapMessage()188 if (sapMessage.getMsgType() < SapMessage.ID_RIL_BASE) { in sendSapMessage()195 private void removeOngoingReqAndSendMessage(int token, SapMessage sapMessage) { in removeOngoingReqAndSendMessage()196 Integer reqType = SapMessage.sOngoingRequests.remove(token); in removeOngoingReqAndSendMessage()202 + (reqType == null ? "null" : SapMessage.getMsgTypeName(reqType))); in removeOngoingReqAndSendMessage()231 SapMessage sapMessage = new SapMessage(SapMessage.ID_CONNECT_RESP); in connectResponse()233 if (sapConnectRsp == SapMessage.CON_STATUS_ERROR_MAX_MSG_SIZE_UNSUPPORTED) { in connectResponse()236 sapMessage.setResultCode(SapMessage.INVALID_VALUE); in connectResponse()244 SapMessage sapMessage = new SapMessage(SapMessage.ID_DISCONNECT_RESP); in disconnectResponse()245 sapMessage.setResultCode(SapMessage.INVALID_VALUE); in disconnectResponse()[all …]
178 private void sendSapMessage(SapMessage sapMessage) { in sendSapMessage()179 if (sapMessage.getMsgType() < SapMessage.ID_RIL_BASE) { in sendSapMessage()186 private void removeOngoingReqAndSendMessage(int token, SapMessage sapMessage) { in removeOngoingReqAndSendMessage()187 Integer reqType = SapMessage.sOngoingRequests.remove(token); in removeOngoingReqAndSendMessage()193 + (reqType == null ? "null" : SapMessage.getMsgTypeName(reqType))); in removeOngoingReqAndSendMessage()209 SapMessage sapMessage = new SapMessage(SapMessage.ID_CONNECT_RESP); in connectResponse()211 if (sapConnectRsp == SapMessage.CON_STATUS_ERROR_MAX_MSG_SIZE_UNSUPPORTED) { in connectResponse()214 sapMessage.setResultCode(SapMessage.INVALID_VALUE); in connectResponse()222 SapMessage sapMessage = new SapMessage(SapMessage.ID_DISCONNECT_RESP); in disconnectResponse()223 sapMessage.setResultCode(SapMessage.INVALID_VALUE); in disconnectResponse()[all …]
36 public class SapMessage { class194 public SapMessage(int msgType) { in SapMessage() method in SapMessage378 public static SapMessage readMessage(int requestType, InputStream is) { in readMessage()379 SapMessage newMessage = new SapMessage(requestType); in readMessage()849 public static SapMessage newInstance(MsgHeader msg) throws IOException { in newInstance()850 return new SapMessage(msg); in newInstance()853 private SapMessage(MsgHeader msg) throws IOException { in SapMessage() method in SapMessage
19 import static com.android.bluetooth.sap.SapMessage.CON_STATUS_OK;20 import static com.android.bluetooth.sap.SapMessage.DISC_GRACEFULL;21 import static com.android.bluetooth.sap.SapMessage.ID_CONNECT_RESP;22 import static com.android.bluetooth.sap.SapMessage.ID_DISCONNECT_RESP;23 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_OFF_REQ;24 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_OFF_RESP;25 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_ON_REQ;26 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_ON_RESP;27 import static com.android.bluetooth.sap.SapMessage.ID_RESET_SIM_RESP;28 import static com.android.bluetooth.sap.SapMessage.ID_RIL_UNKNOWN;[all …]
19 import static com.android.bluetooth.sap.SapMessage.CON_STATUS_ERROR_CONNECTION;20 import static com.android.bluetooth.sap.SapMessage.CON_STATUS_OK;21 import static com.android.bluetooth.sap.SapMessage.CON_STATUS_OK_ONGOING_CALL;22 import static com.android.bluetooth.sap.SapMessage.DISC_GRACEFULL;23 import static com.android.bluetooth.sap.SapMessage.ID_CONNECT_REQ;24 import static com.android.bluetooth.sap.SapMessage.ID_CONNECT_RESP;25 import static com.android.bluetooth.sap.SapMessage.ID_DISCONNECT_IND;26 import static com.android.bluetooth.sap.SapMessage.ID_DISCONNECT_RESP;27 import static com.android.bluetooth.sap.SapMessage.ID_ERROR_RESP;28 import static com.android.bluetooth.sap.SapMessage.ID_RIL_UNSOL_DISCONNECT_IND;[all …]
19 import static com.android.bluetooth.sap.SapMessage.CON_STATUS_OK;20 import static com.android.bluetooth.sap.SapMessage.DISC_GRACEFULL;21 import static com.android.bluetooth.sap.SapMessage.ID_CONNECT_REQ;22 import static com.android.bluetooth.sap.SapMessage.ID_DISCONNECT_REQ;23 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_OFF_REQ;24 import static com.android.bluetooth.sap.SapMessage.ID_POWER_SIM_ON_REQ;25 import static com.android.bluetooth.sap.SapMessage.ID_RESET_SIM_REQ;26 import static com.android.bluetooth.sap.SapMessage.ID_SET_TRANSPORT_PROTOCOL_REQ;27 import static com.android.bluetooth.sap.SapMessage.ID_TRANSFER_APDU_REQ;28 import static com.android.bluetooth.sap.SapMessage.ID_TRANSFER_ATR_REQ;[all …]