diff options
author | Tim Kilbourn <tkilbourn@google.com> | 2015-04-06 13:48:50 -0700 |
---|---|---|
committer | Tim Kilbourn <tkilbourn@google.com> | 2015-04-16 11:12:49 -0700 |
commit | e5364c8c02f1a943e78dee600ac45573d5cdcbbf (patch) | |
tree | e4be481f9a1295960f1545519083c04f49817ef7 | |
parent | b5b51bc4a63331797471f2775e4cc9fbfb8956ac (diff) | |
download | frameworks_native-e5364c8c02f1a943e78dee600ac45573d5cdcbbf.zip frameworks_native-e5364c8c02f1a943e78dee600ac45573d5cdcbbf.tar.gz frameworks_native-e5364c8c02f1a943e78dee600ac45573d5cdcbbf.tar.bz2 |
Add method stubs for input device properties.
Change-Id: Icd785cb55ae2b225102fa249240837a91a41aae3
-rw-r--r-- | services/inputflinger/host/InputDriver.cpp | 27 | ||||
-rw-r--r-- | services/inputflinger/host/InputDriver.h | 13 |
2 files changed, 40 insertions, 0 deletions
diff --git a/services/inputflinger/host/InputDriver.cpp b/services/inputflinger/host/InputDriver.cpp index 3beb5ae..630a596 100644 --- a/services/inputflinger/host/InputDriver.cpp +++ b/services/inputflinger/host/InputDriver.cpp @@ -46,6 +46,12 @@ static input_host_callbacks_t kCallbacks = { .input_report_set_usage_int = input_report_set_usage_int, .input_report_set_usage_bool = input_report_set_usage_bool, .report_event = report_event, + .input_get_device_property_map = input_get_device_property_map, + .input_get_device_property = input_get_device_property, + .input_get_property_key = input_get_property_key, + .input_get_property_value = input_get_property_value, + .input_free_device_property = input_free_device_property, + .input_free_device_property_map = input_free_device_property_map, }; InputDriver::InputDriver(const char* name) : mName(String8(name)) { @@ -115,5 +121,26 @@ void input_report_set_usage_bool(input_host_t* host, input_report_t* r, void report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report) { } +input_property_map_t* input_get_device_property_map(input_host_t* host, + input_device_identifier_t* id) { + return nullptr; +} + +input_property_t* input_get_device_property(input_host_t* host, input_property_map_t* map, + const char* key) { + return nullptr; +} + +const char* input_get_property_key(input_host_t* host, input_property_t* property) { + return nullptr; +} + +const char* input_get_property_value(input_host_t* host, input_property_t* property) { + return nullptr; +} + +void input_free_device_property(input_host_t* host, input_property_t* property) { } + +void input_free_device_property_map(input_host_t* host, input_property_map_t* map) { } } // namespace android diff --git a/services/inputflinger/host/InputDriver.h b/services/inputflinger/host/InputDriver.h index 7810173..7734ac2 100644 --- a/services/inputflinger/host/InputDriver.h +++ b/services/inputflinger/host/InputDriver.h @@ -98,6 +98,19 @@ void input_report_set_usage_bool(input_host_t* host, input_report_t* r, void report_event(input_host_t* host, input_device_handle_t* d, input_report_t* report); +input_property_map_t* input_get_device_property_map(input_host_t* host, + input_device_identifier_t* id); + +input_property_t* input_get_device_property(input_host_t* host, input_property_map_t* map, + const char* key); + +const char* input_get_property_key(input_host_t* host, input_property_t* property); + +const char* input_get_property_value(input_host_t* host, input_property_t* property); + +void input_free_device_property(input_host_t* host, input_property_t* property); + +void input_free_device_property_map(input_host_t* host, input_property_map_t* map); } } // namespace android |