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

Commit 4a2dac35 authored by Lloyd Pique's avatar Lloyd Pique
Browse files

CE: Remove now redundant hidl value writers

A change landed to hidl-gen so that these are now generated
automatically.

Bug: None
Test: atest libcompositionengine_test
Change-Id: I08e303494ff5cf34f3489d9db3c90ad3b0cc7895
parent cb6af747
Loading
Loading
Loading
Loading
+0 −29
Original line number Diff line number Diff line
@@ -19,35 +19,6 @@
#include <compositionengine/mock/CompositionEngine.h>
#include <gtest/gtest.h>

namespace android::hardware::graphics::common::V1_1 {

// Note: These operator overloads need to be defined in the same namespace as
// the values they print.

std::ostream& operator<<(std::ostream& os, const RenderIntent& value) {
    return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value)
              << ")";
}

} // namespace android::hardware::graphics::common::V1_1

namespace android::hardware::graphics::common::V1_2 {

// Note: These operator overloads need to be defined in the same namespace as
// the values they print.

std::ostream& operator<<(std::ostream& os, const Dataspace& value) {
    return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value)
              << ")";
}

std::ostream& operator<<(std::ostream& os, const ColorMode& value) {
    return os << toString(value) << " (" << static_cast<std::underlying_type_t<Dataspace>>(value)
              << ")";
}

} // namespace android::hardware::graphics::common::V1_2

namespace android::compositionengine {
namespace {