Merge changes from topic 'libACRONYM' into oc-dev

* changes:
  composer: route binder traffic over vndbinder
  android.hardware.camera.provider@2.4: set up /dev/vndbinder
This commit is contained in:
TreeHugger Robot
2017-04-13 03:55:27 +00:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ cc_binary {
shared_libs: [
"libhidlbase",
"libhidltransport",
"libbinder",
"liblog",
"libutils",
"android.hardware.camera.device@1.0",

View File

@@ -19,11 +19,16 @@
#include <android/hardware/camera/provider/2.4/ICameraProvider.h>
#include <hidl/LegacySupport.h>
#include <binder/ProcessState.h>
using android::hardware::camera::provider::V2_4::ICameraProvider;
using android::hardware::defaultPassthroughServiceImplementation;
int main()
{
ALOGI("Camera provider Service is starting.");
// The camera HAL may communicate to other vendor components via
// /dev/vndbinder
android::ProcessState::initWithDriver("/dev/vndbinder");
return defaultPassthroughServiceImplementation<ICameraProvider>("legacy/0", /*maxThreads*/ 6);
}

View File

@@ -28,6 +28,7 @@ using android::hardware::defaultPassthroughServiceImplementation;
int main() {
// the conventional HAL might start binder services
android::ProcessState::initWithDriver("/dev/vndbinder");
android::ProcessState::self()->setThreadPoolMaxThreadCount(4);
android::ProcessState::self()->startThreadPool();