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

Commit a1e58318 authored by Ryan Prichard's avatar Ryan Prichard
Browse files

inputflinger: avoid vector<const T>

std::vector<const T> uses std::allocator<const T>, which is an
undocumented libc++ extension to the C++ standard library. The extension
was removed in llvm.org/PR96319. Use an ordinary non-const T instead.

Bug: http://b/349681543
Test: m inputflinger_tests
Test: m MODULES-IN-frameworks-native
Flag: EXEMPT bugfix
Change-Id: I3f00fa6eeedabdf72a2da01abdd8b2a0f3bddd78
parent 07889b16
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -133,8 +133,8 @@ protected:
        mDispatcher->setFocusedWindow(request);
    }

    void tapAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows,
                      Level inboundTraceLevel, Level dispatchTraceLevel, InputTraceSession& s) {
    void tapAndExpect(const std::vector<sp<FakeWindowHandle>>& windows, Level inboundTraceLevel,
                      Level dispatchTraceLevel, InputTraceSession& s) {
        const auto down = MotionArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_TOUCHSCREEN)
                                  .pointer(PointerBuilder(0, ToolType::FINGER).x(100).y(110))
                                  .build();
@@ -156,7 +156,7 @@ protected:
        }
    }

    void keypressAndExpect(const std::vector<const sp<FakeWindowHandle>>& windows,
    void keypressAndExpect(const std::vector<sp<FakeWindowHandle>>& windows,
                           Level inboundTraceLevel, Level dispatchTraceLevel,
                           InputTraceSession& s) {
        const auto down = KeyArgsBuilder(ACTION_DOWN, AINPUT_SOURCE_KEYBOARD).build();