Converting SAP from protobuf to hidl.
Test: Basic SAP sanity.
Bug: 32020264
Change-Id: I87dd2bd320736d06e10733dd40743c83e548d3c9
diff --git a/libril/RilSapSocket.cpp b/libril/RilSapSocket.cpp
index 7dbad93..47af0b5 100644
--- a/libril/RilSapSocket.cpp
+++ b/libril/RilSapSocket.cpp
@@ -26,6 +26,7 @@
#include <utils/Log.h>
#include <arpa/inet.h>
#include <errno.h>
+#include <sap_service.h>
static RilSapSocket::RilSapSocketList *head = NULL;
@@ -285,11 +286,13 @@
pendingResponseQueue.enqueue(currRequest);
if (uimFuncs) {
- RLOGI("[%d] > SAP REQUEST type: %d. id: %d. error: %d",
- req->token,
- req->type,
- req->id,
- req->error );
+ RLOGI("RilSapSocket::dispatchRequest [%d] > SAP REQUEST type: %d. id: %d. error: %d, \
+ token 0x%p",
+ req->token,
+ req->type,
+ req->id,
+ req->error,
+ currRequest );
#if defined(ANDROID_MULTI_SIM)
uimFuncs->onRequest(req->id, req->payload->bytes, req->payload->size, currRequest, id);
@@ -320,9 +323,10 @@
rsp.payload->size = 0;
}
- RLOGE("Token:%d, MessageId:%d", hdr->token, hdr->id);
+ RLOGE("RilSapSocket::onRequestComplete: Token:%d, MessageId:%d ril token 0x%p",
+ hdr->token, hdr->id, t);
- sendResponse(&rsp);
+ sap::processResponse(&rsp, this);
free(rsp.payload);
}
@@ -399,7 +403,7 @@
rsp.type = MsgType_UNSOL_RESPONSE;
rsp.id = (MsgId)unsolResponse;
rsp.error = Error_RIL_E_SUCCESS;
- sendResponse(&rsp);
+ sap::processUnsolResponse(&rsp, this);
free(payload);
}
}