aboutsummaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
Diffstat (limited to 'daemon')
-rw-r--r--daemon/peripheral_manager.cc7
-rw-r--r--daemon/peripheral_manager.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/daemon/peripheral_manager.cc b/daemon/peripheral_manager.cc
index d24cbe0..c946932 100644
--- a/daemon/peripheral_manager.cc
+++ b/daemon/peripheral_manager.cc
@@ -18,6 +18,7 @@
#include <base/logging.h>
#include <binderwrapper/binder_wrapper.h>
+#include <binderwrapper/stub_binder_wrapper.h>
#include <hardware/hardware.h>
#include <hardware/peripheral_io.h>
@@ -113,12 +114,6 @@ bool PeripheralManager::Init() {
return BinderWrapper::Get()->RegisterService(interface_desc.string(), this);
}
-bool PeripheralManager::InitForTest() {
- BinderWrapper::Create();
- String8 interface_desc(getInterfaceDescriptor());
- return BinderWrapper::Get()->RegisterService(interface_desc.string(), this);
-}
-
Status PeripheralManager::GetClient(const sp<IBinder>& lifeline,
sp<os::IPeripheralManagerClient>* client) {
sp<PeripheralManagerClient> c = new PeripheralManagerClient;
diff --git a/daemon/peripheral_manager.h b/daemon/peripheral_manager.h
index a1e354f..2c97a56 100644
--- a/daemon/peripheral_manager.h
+++ b/daemon/peripheral_manager.h
@@ -38,8 +38,6 @@ class PeripheralManager : public BnPeripheralManager,
bool Init();
- bool InitForTest();
-
// IPeripheralManager Interface
Status GetClient(const sp<IBinder>& lifeline,
sp<os::IPeripheralManagerClient>* _aidl_return);