summaryrefslogtreecommitdiff
path: root/libs/ftl/enum_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ftl: add enum_string_full which includes the enum class nameAdy Abraham2023-09-231-0/+38
| | | | | | Bug: 300701739 Test: presubmit Change-Id: I235275b5d299efea779851434c392ca4e07ca4fd
* FTL: Remove libutils dependency of FlagsDominik Laskowski2022-03-231-0/+10
| | | | | | | | | Also, fix the __builtin type suffix in flag_string to avoid truncation of upper bits for 64-bit flags on platforms with 32-bit unsigned long. Bug: 185536303 Test: ftl_test Change-Id: I1719255cc4dd60ec3203e111c37d6851471c631d
* FTL: Tidy up APIDominik Laskowski2022-01-141-1/+1
| | | | | | | | | Move array_traits.h to details, and rename enum_cast to its proposed C++23 counterpart. Bug: 185536303 Test: ftl_test Change-Id: I432448d388d388491066ef37db05c5b9d67550bc
* FTL: Extend enum utilities imported from IFDominik Laskowski2021-09-091-0/+164
Generalize compile-time and run-time lookup of enumerator names by recognizing ftl_first and ftl_last to customize the range. Add enum_range<E>() for iteration using range-based `for` loop. Bug: 185536303 Test: Check assembly for small LUT in .rodata, and unrolled loops. Test: ftl_test, libinput_tests, inputflinger_tests Test: m libinputflinger Change-Id: I0581611f4cfcf5837b0293867cb323742afb2c87