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
814 B
27 lines
814 B
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd. 2012-2020. All rights reserved.
|
|
* Description: dtv service
|
|
*/
|
|
#define LOG_TAG "vendor.huanglong.hardware.hwdtv@1.0-service"
|
|
|
|
#include <vendor/huanglong/hardware/hwdtv/1.0/IHwdtv.h>
|
|
#include <hidl/LegacySupport.h>
|
|
#include <android/log.h>
|
|
#include <binder/ProcessState.h>
|
|
#include <binder/IPCThreadState.h>
|
|
#include <binder/IServiceManager.h>
|
|
#include "cutils/properties.h"
|
|
|
|
using vendor::huanglong::hardware::hwdtv::V1_0::IHwdtv;
|
|
using android::hardware::defaultPassthroughServiceImplementation;
|
|
|
|
int main()
|
|
{
|
|
android::ProcessState::initWithDriver("/dev/vndbinder");
|
|
|
|
android::ProcessState::self()->setThreadPoolMaxThreadCount(1);
|
|
android::ProcessState::self()->startThreadPool();
|
|
|
|
return defaultPassthroughServiceImplementation<IHwdtv>(1);
|
|
}
|