You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
839 B
27 lines
839 B
7 months ago
|
/*
|
||
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2012-2020. All rights reserved.
|
||
|
* Description:
|
||
|
* Author:
|
||
|
* create:
|
||
|
*/
|
||
|
|
||
|
#define LOG_TAG "vendor.huanglong.hardware.hwtvmw@1.0-service"
|
||
|
|
||
|
#include <vendor/huanglong/hardware/hwtvmw/1.0/IHwtvmw.h>
|
||
|
#include <hidl/LegacySupport.h>
|
||
|
#include <android/log.h>
|
||
|
#include <binder/ProcessState.h>
|
||
|
#include <binder/IPCThreadState.h>
|
||
|
#include <binder/IServiceManager.h>
|
||
|
|
||
|
using vendor::huanglong::hardware::hwtvmw::V1_0::IHwtvmw;
|
||
|
using android::hardware::defaultPassthroughServiceImplementation;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
android::ProcessState::initWithDriver("/dev/vndbinder");
|
||
|
android::ProcessState::self()->setThreadPoolMaxThreadCount(4); // Thread pool size 4
|
||
|
android::ProcessState::self()->startThreadPool();
|
||
|
return defaultPassthroughServiceImplementation<IHwtvmw>(4); // start 4 composer Hal
|
||
|
}
|