Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1284b3a authored by Prabir Pradhan's avatar Prabir Pradhan Committed by Android (Google) Code Review
Browse files

Merge "InputManager: Cleanup after PointerChoreographer refactor" into main

parents 90d04343 657786c7
Loading
Loading
Loading
Loading
+6 −11
Original line number Diff line number Diff line
@@ -41,7 +41,6 @@ namespace {
const bool ENABLE_INPUT_DEVICE_USAGE_METRICS =
        sysprop::InputProperties::enable_input_device_usage_metrics().value_or(true);

const bool ENABLE_POINTER_CHOREOGRAPHER = input_flags::enable_pointer_choreographer();
const bool ENABLE_INPUT_FILTER_RUST = input_flags::enable_input_filter_rust_impl();

int32_t exceptionCodeFromStatusT(status_t status) {
@@ -152,12 +151,10 @@ InputManager::InputManager(const sp<InputReaderPolicyInterface>& readerPolicy,
    mTracingStages.emplace_back(
            std::make_unique<TracedInputListener>("InputProcessor", *mProcessor));

    if (ENABLE_POINTER_CHOREOGRAPHER) {
    mChoreographer =
            std::make_unique<PointerChoreographer>(*mTracingStages.back(), choreographerPolicy);
    mTracingStages.emplace_back(
            std::make_unique<TracedInputListener>("PointerChoreographer", *mChoreographer));
    }

    mBlocker = std::make_unique<UnwantedInteractionBlocker>(*mTracingStages.back());
    mTracingStages.emplace_back(
@@ -245,10 +242,8 @@ void InputManager::dump(std::string& dump) {
    dump += '\n';
    mBlocker->dump(dump);
    dump += '\n';
    if (ENABLE_POINTER_CHOREOGRAPHER) {
    mChoreographer->dump(dump);
    dump += '\n';
    }
    mProcessor->dump(dump);
    dump += '\n';
    if (ENABLE_INPUT_DEVICE_USAGE_METRICS) {