ril: import Oreo AOSP libril
Change-Id: I00750bad812dc263e9c74a504b48512a892376c8
diff --git a/ril/libril/RilSapSocket.h b/ril/libril/RilSapSocket.h
index 75c3965..1f6163e 100644
--- a/ril/libril/RilSapSocket.h
+++ b/ril/libril/RilSapSocket.h
@@ -99,9 +99,20 @@
static void printList();
/**
- * Clean up method to be called on command close.
+ * Dispatches the request to the lower layers.
+ * It calls the on request function.
+ *
+ * @param request The request message.
*/
- void onCommandsSocketClosed(void);
+ void dispatchRequest(MsgHeader *request);
+
+ /**
+ * Class method to get the socket from the socket list.
+ *
+ * @param socketId Socket id.
+ * @return the sap socket.
+ */
+ static RilSapSocket* getSocketById(RIL_SOCKET_ID socketId);
/**
* Datatype to handle the socket list.
@@ -113,16 +124,6 @@
protected:
/**
- * Process each record read from the socket and
- * push a new request created from that record to
- * the dispatch request queue.
- *
- * @param The record data.
- * @param The record length.
- */
- void pushRecord(void *record, size_t recordlen);
-
- /**
* Socket handler to be called when a request has
* been completed.
*
@@ -146,27 +147,6 @@
void *data, size_t datalen);
/**
- * Class method to get the socket from the socket list.
- *
- * @param Socket id.
- * @return the sap socket.
- */
- static RilSapSocket* getSocketById(RIL_SOCKET_ID socketId);
-
- /**
- * Method to send response to SAP. It does an atomic write operation on the
- * socket.
- *
- * @param the response header with the payload.
- */
- void sendResponse(MsgHeader *hdr);
-
- /**
- * A loop for processing the requests in the request dispatch queue.
- */
- void *processRequestsLoop(void);
-
- /**
* Class method to add the sap socket to the list of sockets.
* Does nothing if the socket is already present in the list.
* Otherwise, calls the constructor of the parent class(To startlistening)
@@ -183,18 +163,6 @@
*/
static bool SocketExists(const char *socketName);
- /**
- * Send a clean up SAP DISCONNECT if the socket disconnects before doing a SAP
- * disconnect.
- */
- void sendDisconnect(void);
-
- /**
- * Dispatch the clean up disconnect request.
- */
- void dispatchDisconnect(MsgHeader *req);
-
-
private:
/**
* Constructor.
@@ -208,14 +176,6 @@
RIL_RadioFunctions *inputUimFuncs);
/**
- * Dispatches the request to the lower layers.
- * It calls the on request function.
- *
- * @param The request message.
- */
- void dispatchRequest(MsgHeader *request);
-
- /**
* Class method that selects the socket on which the onRequestComplete
* is called.
*