From 8943ce38a65cc852d49a141d654a4f149ce57c34 Mon Sep 17 00:00:00 2001 From: Tim Kilbourn Date: Fri, 27 Feb 2015 15:09:34 -0800 Subject: [PATCH] Stub implementations of HAL usage callbacks. Change-Id: I5c7effddb7fce85d7d33ea79ff7005d37943f520 --- services/inputflinger/host/InputDriver.cpp | 7 +++++++ services/inputflinger/host/InputDriver.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/services/inputflinger/host/InputDriver.cpp b/services/inputflinger/host/InputDriver.cpp index ce84a6a82..3beb5ae9c 100644 --- a/services/inputflinger/host/InputDriver.cpp +++ b/services/inputflinger/host/InputDriver.cpp @@ -43,6 +43,8 @@ static input_host_callbacks_t kCallbacks = { .input_report_definition_declare_usages_bool = input_report_definition_declare_usages_bool, .register_device = register_device, .input_allocate_report = input_allocate_report, + .input_report_set_usage_int = input_report_set_usage_int, + .input_report_set_usage_bool = input_report_set_usage_bool, .report_event = report_event, }; @@ -105,6 +107,11 @@ input_device_handle_t* register_device(input_host_t* host, input_report_t* input_allocate_report(input_host_t* host, input_report_definition_t* r) { return nullptr; } +void input_report_set_usage_int(input_host_t* host, input_report_t* r, + input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index) { } + +void input_report_set_usage_bool(input_host_t* host, input_report_t* r, + input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index) { } void report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report) { } diff --git a/services/inputflinger/host/InputDriver.h b/services/inputflinger/host/InputDriver.h index c2268e255..781017316 100644 --- a/services/inputflinger/host/InputDriver.h +++ b/services/inputflinger/host/InputDriver.h @@ -90,6 +90,12 @@ void unregister_device(input_host_t* host, input_device_handle_t* handle); input_report_t* input_allocate_report(input_host_t* host, input_report_definition_t* r); +void input_report_set_usage_int(input_host_t* host, input_report_t* r, + input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index); + +void input_report_set_usage_bool(input_host_t* host, input_report_t* r, + input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index); + void report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report); }