Files
2024-05-29 15:18:09 +08:00

33 lines
912 B
C++

/*
* Copyright (C) 2024 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_TAG "vendor.lineage.touch@1.0-service.xiaomi_sm8475"
#include <android-base/logging.h>
#include <hidl/HidlTransportSupport.h>
#include "HighTouchPollingRate.h"
using ::vendor::lineage::touch::V1_0::IHighTouchPollingRate;
using ::vendor::lineage::touch::V1_0::implementation::HighTouchPollingRate;
int main() {
android::sp<IHighTouchPollingRate> highTouchPollingRate = new HighTouchPollingRate();
android::hardware::configureRpcThreadpool(1, true);
if (highTouchPollingRate->registerAsService() != android::OK) {
LOG(ERROR) << "Cannot register touch high polling rate HAL service.";
return 1;
}
LOG(INFO) << "Touch HAL service ready.";
android::hardware::joinRpcThreadpool();
LOG(ERROR) << "Touch HAL service failed to join thread pool.";
return 1;
}