mirror of
https://github.com/Evolution-X-Devices/device_motorola_rtwo
synced 2026-01-27 13:35:15 +00:00
pstar: touch: GloveMode -> HighTouchPollingRate
This commit is contained in:
@@ -19,18 +19,18 @@
|
||||
#include <android-base/logging.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
|
||||
#include "GloveMode.h"
|
||||
#include "HighTouchPollingRate.h"
|
||||
|
||||
using ::vendor::lineage::touch::V1_0::IGloveMode;
|
||||
using ::vendor::lineage::touch::V1_0::implementation::GloveMode;
|
||||
using ::vendor::lineage::touch::V1_0::IHighTouchPollingRate;
|
||||
using ::vendor::lineage::touch::V1_0::implementation::HighTouchPollingRate;
|
||||
|
||||
int main() {
|
||||
android::sp<IGloveMode> gloveMode = new GloveMode();
|
||||
android::sp<IHighTouchPollingRate> highTouchPollingRate = new HighTouchPollingRate();
|
||||
|
||||
android::hardware::configureRpcThreadpool(1, true /*callerWillJoin*/);
|
||||
|
||||
if (gloveMode->registerAsService() != android::OK) {
|
||||
LOG(ERROR) << "Cannot register touchscreen glove HAL service.";
|
||||
if (highTouchPollingRate->registerAsService() != android::OK) {
|
||||
LOG(ERROR) << "Cannot register touchscreen high polling rate HAL service.";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user