summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Kilbourn <tkilbourn@google.com>2015-02-27 15:09:34 -0800
committerTim Kilbourn <tkilbourn@google.com>2015-02-27 15:09:34 -0800
commit8943ce38a65cc852d49a141d654a4f149ce57c34 (patch)
treea26fab987cc190fbb8c519de8a9065b2ee394b06
parent123edd9f812c93973de923397f2a5cb6fdaa4135 (diff)
downloadframeworks_native-8943ce38a65cc852d49a141d654a4f149ce57c34.zip
frameworks_native-8943ce38a65cc852d49a141d654a4f149ce57c34.tar.gz
frameworks_native-8943ce38a65cc852d49a141d654a4f149ce57c34.tar.bz2
Stub implementations of HAL usage callbacks.
Change-Id: I5c7effddb7fce85d7d33ea79ff7005d37943f520
-rw-r--r--services/inputflinger/host/InputDriver.cpp7
-rw-r--r--services/inputflinger/host/InputDriver.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/services/inputflinger/host/InputDriver.cpp b/services/inputflinger/host/InputDriver.cpp
index ce84a6a..3beb5ae 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 c2268e2..7810173 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);
}