summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorPrabir Pradhan <prabirmsp@google.com>2018-11-09 12:31:21 -0800
committerPrabir Pradhan <prabirmsp@google.com>2018-12-12 11:13:51 -0800
commit3ce67d10fab060013bd2ddb3a840c92ff4c4d368 (patch)
tree8201eaedf599806855552c8dab74721225ac7723 /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parentaa38fbeee21d6b5bfef420890cf91bc5907732bb (diff)
Add InputEvent Compatibility Processor
Depending on the SDK version of applications, there may need to be changes made to InputEvents for compatibility purposes. Here, we add a InputEventCompatProcessor to refactor all compatibility adjustments to InputEvents. The compatibility processor is instantiated in ViewRootImpl using reflection, where the class name of the processor is defined in config.xml as `config_inputEventCompatProcessorClassName`. This allows for overlays to change the compatibility processor that is used for the build. The processor has two methods for processing the InputEvent before and after it is sent into the InputStages of the input pipeline in ViewRootImpl. InputEvents that are changed by the processor are marked with `FLAG_MODIFIED_FOR_COMPATIBILITY` so that they are sent back to the processor before they are finished. Bug: 119264233 Test: manual Change-Id: Ie0dc4665cb677a7ab2cc627791a0f72cdfce1cde
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions