Home
last modified time | relevance | path

Searched refs:to_underlying (Results 1 – 25 of 25) sorted by relevance

/frameworks/native/include/ftl/
Denum.h110 constexpr auto to_underlying(E v) {
156 static constexpr E value = E{to_underlying(E::ftl_last) + 1};
163 inline constexpr E enum_last_v = E{to_underlying(enum_end_v<E>) - 1};
167 static constexpr auto kBegin = to_underlying(enum_begin_v<E>);
168 static constexpr auto kEnd = to_underlying(enum_end_v<E>);
193 static constexpr auto kBegin = to_underlying(enum_begin_v<E>);
218 static constexpr E V{U{1} << to_underlying(I)};
273 const auto value = to_underlying(v);
275 constexpr auto kBegin = to_underlying(enum_begin_v<E>);
276 constexpr auto kLast = to_underlying(enum_last_v<E>);
[all …]
Dmixins.h88 constexpr const T& to_underlying(const Constructible<Self, T>& c) { in to_underlying() function
96 return to_underlying(this->self()) == to_underlying(other);
106 return to_underlying(this->self()) < to_underlying(other);
133 this->mut() += to_underlying(other);
Dflags.h216 return static_cast<F>(~to_underlying(f));
221 return static_cast<F>(to_underlying(lhs) | to_underlying(rhs));
/frameworks/native/libs/gui/include/gui/
DPidUid.h31 constexpr auto val() const { return ftl::to_underlying(*this); } in val()
47 constexpr auto val() const { return ftl::to_underlying(*this); } in val()
/frameworks/native/libs/ftl/
Dmixins_test.cpp43 static_assert(ftl::to_underlying(Color(-1)) == 255u);
69 static_assert(ftl::to_underlying(Id(-42)) == -42);
70 static_assert(ftl::to_underlying(kSequence) == -1);
Denum_test.cpp84 constexpr Planet kPluto{ftl::to_underlying(Planet::kNeptune) + 1}; // Honorable mention.
/frameworks/native/services/stats/
DStatsAidl.cpp46 constexpr typename std::underlying_type<E>::type to_underlying(E e) noexcept { in to_underlying() function
56 AStatsEvent_addBoolAnnotation(event, to_underlying(annotation.annotationId), in write_annotation()
61 AStatsEvent_addInt32Annotation(event, to_underlying(annotation.annotationId), in write_annotation()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/
DMockDisplayModeSpecs.h29 specs.defaultMode = ftl::to_underlying(defaultMode); in createDisplayModeSpecs()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFrameRateMode.h41 ftl::to_underlying(mode.modePtr->getId()), in to_string()
/frameworks/native/libs/ui/include/ui/
DLogicalDisplayId.h33 constexpr auto val() const { return ftl::to_underlying(*this); } in val()
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/
DMockDisplayMode.h27 return DisplayMode::Builder(hal::HWConfigId(ftl::to_underlying(modeId)))
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_DisplayModeSwitching.cpp35 ftl::to_underlying(modeId)), \
327 *result_listener << "Unexpected desired mode " << ftl::to_underlying(modeId);
346 << ftl::to_underlying(desiredOpt->mode.modePtr->getId());
353 *result_listener << "Settled to unexpected active mode " << ftl::to_underlying(modeId);
DMessageQueueTest.cpp165 .WillOnce(Return(ftl::to_underlying(vsyncId))); in TEST_F()
DRefreshRateSelectorTest.cpp302 << ftl::to_underlying(testCase.expectedModeId) in testFrameRateCategoryWithMultipleLayers()
2051 << ftl::to_underlying(testCase.expectedModeId) in TEST_P()
/frameworks/native/services/surfaceflinger/Scheduler/src/
DFrameTargeter.cpp93 ATRACE_FORMAT("%s %" PRId64 " vsyncIn %.2fms%s", __func__, ftl::to_underlying(args.vsyncId), in beginFrame()
/frameworks/native/services/inputflinger/
DInputDeviceMetricsCollector.h137 return std::to_string(ftl::to_underlying(id)); in toString()
DInputDeviceMetricsCollector.cpp79 sources.push_back(ftl::to_underlying(src)); in logInputDeviceUsageReported()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayMode.h193 ftl::to_underlying(mode.getId()), mode.getHwcId(), mode.getWidth(), in to_string()
/frameworks/native/libs/ui/
DGralloc5.cpp381 constexpr std::underlying_type_t<EnumT> to_underlying(EnumT e) noexcept { in to_underlying() function
392 << to_underlying(bufferDump.usage) << std::dec in writeDumpToStream()
393 << ", req fmt:" << to_underlying(bufferDump.pixelFormatRequested) in writeDumpToStream()
396 << to_underlying(bufferDump.dataspace) << std::dec << ", compressed: "; in writeDumpToStream()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp1164 outMode.id = ftl::to_underlying(id); in getDynamicDisplayInfoInternal()
1213 info->activeDisplayModeId = ftl::to_underlying(mode.modePtr->getId()); in getDynamicDisplayInfoInternal()
1229 info->preferredBootDisplayMode = ftl::to_underlying(*modeId); in getDynamicDisplayInfoInternal()
1394 ALOGE("%s: Invalid mode %d for display %s", whence, ftl::to_underlying(modeId), in setActiveModeFromBackdoor()
1499 ftl::to_underlying(desiredModeId)); in initiateDisplayModeChanges()
1504 ftl::to_underlying(desiredModeId), in initiateDisplayModeChanges()
1701 ALOGE("%s: Invalid mode %d for display %s", whence, ftl::to_underlying(modeId), in setBootDisplayMode()
2327 mTransactionTracing->addCommittedTransactions(ftl::to_underlying(vsyncId), frameTimeNs, in updateLayerSnapshotsLegacy()
2451 mTransactionTracing->addCommittedTransactions(ftl::to_underlying(vsyncId), frameTimeNs, in updateLayerSnapshots()
2606 ATRACE_NAME(ftl::Concat(__func__, ' ', ftl::to_underlying(vsyncId)).c_str()); in commit()
[all …]
/frameworks/native/services/inputflinger/tests/
DTestEventMatchers.h595 *os << "with eventId from source 0x" << std::hex << ftl::to_underlying(mEventIdSource); in DescribeTo()
/frameworks/native/services/surfaceflinger/Scheduler/
DEventThread.cpp151 event.modeChange.modeId = ftl::to_underlying(mode.modePtr->getId()); in makeModeChanged()
DRefreshRateSelector.cpp289 ftl::to_underlying(defaultMode), in toString()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumerNoResampling_test.cpp386 Message msg{ftl::to_underlying(message)}; in sendMessage()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2335 vec.push_back(ftl::to_underlying(it)); in nativeGetLights()