summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorTim Kilbourn <tkilbourn@google.com>2015-03-31 20:22:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-31 20:22:44 +0000
commit943f0a45d055a9f9ddce4d2628647d9114dcaa86 (patch)
tree0b020f057f6ff0e96e038c6d295165fc9d4c6c23 /services
parenta053c841df11c4b8b2e89724a55bc4fd428ca013 (diff)
parent8943ce38a65cc852d49a141d654a4f149ce57c34 (diff)
downloadframeworks_native-943f0a45d055a9f9ddce4d2628647d9114dcaa86.zip
frameworks_native-943f0a45d055a9f9ddce4d2628647d9114dcaa86.tar.gz
frameworks_native-943f0a45d055a9f9ddce4d2628647d9114dcaa86.tar.bz2
Merge "Stub implementations of HAL usage callbacks."
Diffstat (limited to 'services')
-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);
}