Home
last modified time | relevance | path

Searched refs:SapMessage (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DSapServerTest.java21 import com.android.bluetooth.sap.SapMessage;
43 SapMessage connectReq = new SapMessage(SapMessage.ID_CONNECT_REQ); in buildDefaultInitSeq()
46 SapMessage connectResp = new SapMessage(SapMessage.ID_CONNECT_RESP); in buildDefaultInitSeq()
47 connectResp.setConnectionStatus(SapMessage.CON_STATUS_OK); in buildDefaultInitSeq()
50 SapMessage statusInd = new SapMessage(SapMessage.ID_STATUS_IND); in buildDefaultInitSeq()
51 statusInd.setStatusChange(SapMessage.STATUS_CARD_RESET); in buildDefaultInitSeq()
71 SapMessage disconnectReq = new SapMessage(SapMessage.ID_DISCONNECT_REQ); in testSapServerConnectSimple()
72 SapMessage disconnectResp = new SapMessage(SapMessage.ID_DISCONNECT_RESP); in testSapServerConnectSimple()
74 SapMessage resetResp = new SapMessage(SapMessage.ID_RESET_SIM_RESP); in testSapServerConnectSimple()
75 resetResp.setResultCode(SapMessage.RESULT_OK); in testSapServerConnectSimple()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapServer.java101 private int mTestMode = SapMessage.INVALID_VALUE; // used to set the RIL in test mode
141 SapMessage fakeConReq = new SapMessage(SapMessage.ID_CONNECT_REQ);
149 SapMessage.DISC_GRACEFULL);
152 if(disconnectType == SapMessage.DISC_RFCOMM) {
173 if(SapMessage.TEST) { in setTestMode()
181 if(discType != SapMessage.DISC_FORCED){ in sendDisconnectInd()
184 SapMessage discInd = new SapMessage(SapMessage.ID_DISCONNECT_IND); in sendDisconnectInd()
189 if (discType == SapMessage.DISC_GRACEFULL) in sendDisconnectInd()
192 setNotification(SapMessage.DISC_IMMEDIATE, PendingIntent.FLAG_CANCEL_CURRENT); in sendDisconnectInd()
194 } else if (discType == SapMessage.DISC_IMMEDIATE){ in sendDisconnectInd()
[all …]
DSapRilReceiver.java213 SapMessage sapMsg = null; in run()
233 sapMsg = SapMessage.newInstance(rilMsg); in run()
235 if (sapMsg != null && sapMsg.getMsgType() != SapMessage.INVALID_VALUE) in run()
237 if (sapMsg.getMsgType() < SapMessage.ID_RIL_BASE) { in run()
267 private void sendClientMessage(SapMessage sapMsg) { in sendClientMessage()
285 private void sendRilIndMessage(SapMessage sapMsg) { in sendRilIndMessage()
DSapMessage.java26 public class SapMessage { class
185 public SapMessage(int msgType){ in SapMessage() method in SapMessage
355 public static SapMessage readMessage(int requestType, InputStream is) { in readMessage()
356 SapMessage newMessage = new SapMessage(requestType); in readMessage()
846 public static SapMessage newInstance(MsgHeader msg) throws IOException { in newInstance()
847 return new SapMessage(msg); in newInstance()
850 private SapMessage(MsgHeader msg) throws IOException { in SapMessage() method in SapMessage