History log of /system/chre/host/common/socket_server.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f685db3a6b34f8dd6942964ae99836bda87c8134 21-Mar-2017 Brian Duddie <bduddie@google.com> Support unicast messages from CHRE to host

Tag messages sent to CHRE with the client ID of the sender. Populate
this same value in the response to discriminate the addressee so that
responses are only delivered to the client who sent the request.

Test: run multiple instances of chre_test_client
Change-Id: I60d52944cf4e6cb2bb1fb21e9806eadd7f74b6c2
/system/chre/host/common/socket_server.cc
a2f5add27054c406f36528cf8a5cbc6d4c79d246 20-Mar-2017 Brian Duddie <bduddie@google.com> Add support for querying the list of apps

Add a new FlatBuffers message to encapsulate the list of loaded apps,
and add code to CHRE to populate it. Update the reference HAL
implementation to pass the request and response through the HAL.

Test: run chre_test_client
Change-Id: I7b470daa2f051280fdb5415cdab7297de6ab4d59
/system/chre/host/common/socket_server.cc
2760c2a2fd4ae2e402033b5261f13e83b96768b0 15-Mar-2017 Brian Duddie <bduddie@google.com> Fix client disconnection at SocketServer shutdown

Don't modify the map while we're iterating over it, as this leads to
undefined behavior.

Test: run chre daemon, and kill it with a test client connected
Change-Id: I59452415c838c18ff230e9290af2ed8d0bf5ba31
/system/chre/host/common/socket_server.cc
f972651484105181854f604e4709e32c8bf30375 14-Mar-2017 Brian Duddie <bduddie@google.com> Add SocketClient, move shareable code to common

Add a SocketClient as a helper to simplify interacting with the socket
connection, including automatically reconnecting if the remote end dies.
Another layer is expected to be added on top of this to handle
encoding/decoding messages.

Move the SocketServer and chre_test_client code from the MSM-specific
folder to common, as these can be used in any platform where there's a
userspace daemon that acts as the entry point to CHRE communications.

Test: compile, run chre and chre_test_client
Change-Id: I69c06eb823670beb0a8d018b8fe80495ced842a5
/system/chre/host/common/socket_server.cc