/* * SPDX-FileCopyrightText: 2025 The LineageOS Project * SPDX-License-Identifier: Apache-2.0 */ #define LOG_TAG "vendor.lineage.touch-service.xiaomi" #include "HighTouchPollingRate.h" #include #include #include using aidl::vendor::lineage::touch::HighTouchPollingRate; int main() { binder_status_t status = STATUS_OK; ABinderProcess_setThreadPoolMaxThreadCount(0); std::shared_ptr htpr = ndk::SharedRefBase::make(); const std::string htpr_instance = std::string(HighTouchPollingRate::descriptor) + "/default"; status = AServiceManager_addService(htpr->asBinder().get(), htpr_instance.c_str()); CHECK_EQ(status, STATUS_OK) << "Failed to add service " << htpr_instance << " " << status; ABinderProcess_joinThreadPool(); return EXIT_FAILURE; // should not reach }