diff options
author | 2018-05-01 16:54:17 -0700 | |
---|---|---|
committer | 2018-05-02 00:06:44 +0000 | |
commit | 3cde8755865af375f4e5bf3e5bb87d88b41cf653 (patch) | |
tree | 1776d809da81aa9bc023b5a29b9a469034bff419 /libs/ui/Gralloc2.cpp | |
parent | 09d6e4a2788cf334f77a44bbae871a0fb516172e (diff) |
rename hidl_enum_{iterator,range}
This is actually a range, not an iterator.
Bug: 78573628
Test: m
Change-Id: Ief1caed823da306398d3db5a96b7e007ed722eaf
Diffstat (limited to 'libs/ui/Gralloc2.cpp')
-rw-r--r-- | libs/ui/Gralloc2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ui/Gralloc2.cpp b/libs/ui/Gralloc2.cpp index b92cbf351e..37cf617374 100644 --- a/libs/ui/Gralloc2.cpp +++ b/libs/ui/Gralloc2.cpp @@ -39,7 +39,7 @@ uint64_t getValid10UsageBits() { static const uint64_t valid10UsageBits = []() -> uint64_t { using hardware::graphics::common::V1_0::BufferUsage; uint64_t bits = 0; - for (const auto bit : hardware::hidl_enum_iterator<BufferUsage>()) { + for (const auto bit : hardware::hidl_enum_range<BufferUsage>()) { bits = bits | bit; } // TODO(b/72323293, b/72703005): Remove these additional bits @@ -54,7 +54,7 @@ uint64_t getValid11UsageBits() { static const uint64_t valid11UsageBits = []() -> uint64_t { using hardware::graphics::common::V1_1::BufferUsage; uint64_t bits = 0; - for (const auto bit : hardware::hidl_enum_iterator<BufferUsage>()) { + for (const auto bit : hardware::hidl_enum_range<BufferUsage>()) { bits = bits | bit; } return bits; |