From 0f7b1e25b16a5feb1e9bb58fc573943c004831ae Mon Sep 17 00:00:00 2001 From: Lee Campbell Date: Wed, 20 Jan 2016 23:31:46 -0800 Subject: peripheralman: Add dummy aidl service Set up all the boilerplate to setup the IPC interface using AIDL. Also add an example CLI tool. Change-Id: Icd2837b99deb016f8b70e9823ba96c44fd36286f TEST: service registers and example runs. --- include/peripheralmanager/peripheral_manager_client.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/peripheralmanager/peripheral_manager_client.h b/include/peripheralmanager/peripheral_manager_client.h index e54f234..9eabb8c 100644 --- a/include/peripheralmanager/peripheral_manager_client.h +++ b/include/peripheralmanager/peripheral_manager_client.h @@ -14,13 +14,18 @@ * limitations under the License. */ -#ifndef SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ -#define SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ +#ifndef SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ +#define SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ #include +#include namespace android { +namespace os { +class IPeripheralManager; +} + // Used to communicate with the peripheral manager. class PeripheralManagerClient { public: @@ -31,10 +36,15 @@ class PeripheralManagerClient { // any other methods. bool Init(); + // Dummy method to test IPC + int AddInts(int a, int b); + private: + sp pmanager_; + DISALLOW_COPY_AND_ASSIGN(PeripheralManagerClient); }; } // namespace android -#endif // SYSTEM_PERIPHERALMANAGER_INCLUDE_PERIPHERAL_MANAGER_H_ +#endif // SYSTEM_PERIPHERALMANAGER_PERIPHERAL_MANAGER_CLIENT_H_ -- cgit v1.2.3