/frameworks/native/include/ftl/ |
D | enum.h | 110 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 …]
|
D | mixins.h | 88 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);
|
D | flags.h | 216 return static_cast<F>(~to_underlying(f)); 221 return static_cast<F>(to_underlying(lhs) | to_underlying(rhs));
|
/frameworks/native/libs/gui/include/gui/ |
D | PidUid.h | 31 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/ |
D | mixins_test.cpp | 43 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);
|
D | enum_test.cpp | 84 constexpr Planet kPluto{ftl::to_underlying(Planet::kNeptune) + 1}; // Honorable mention.
|
/frameworks/native/services/stats/ |
D | StatsAidl.cpp | 46 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/ |
D | MockDisplayModeSpecs.h | 29 specs.defaultMode = ftl::to_underlying(defaultMode); in createDisplayModeSpecs()
|
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/ |
D | FrameRateMode.h | 41 ftl::to_underlying(mode.modePtr->getId()), in to_string()
|
/frameworks/native/libs/ui/include/ui/ |
D | LogicalDisplayId.h | 33 constexpr auto val() const { return ftl::to_underlying(*this); } in val()
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockDisplayMode.h | 27 return DisplayMode::Builder(hal::HWConfigId(ftl::to_underlying(modeId)))
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_DisplayModeSwitching.cpp | 35 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);
|
D | MessageQueueTest.cpp | 165 .WillOnce(Return(ftl::to_underlying(vsyncId))); in TEST_F()
|
D | RefreshRateSelectorTest.cpp | 302 << ftl::to_underlying(testCase.expectedModeId) in testFrameRateCategoryWithMultipleLayers() 2051 << ftl::to_underlying(testCase.expectedModeId) in TEST_P()
|
/frameworks/native/services/surfaceflinger/Scheduler/src/ |
D | FrameTargeter.cpp | 93 ATRACE_FORMAT("%s %" PRId64 " vsyncIn %.2fms%s", __func__, ftl::to_underlying(args.vsyncId), in beginFrame()
|
/frameworks/native/services/inputflinger/ |
D | InputDeviceMetricsCollector.h | 137 return std::to_string(ftl::to_underlying(id)); in toString()
|
D | InputDeviceMetricsCollector.cpp | 79 sources.push_back(ftl::to_underlying(src)); in logInputDeviceUsageReported()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | DisplayMode.h | 193 ftl::to_underlying(mode.getId()), mode.getHwcId(), mode.getWidth(), in to_string()
|
/frameworks/native/libs/ui/ |
D | Gralloc5.cpp | 381 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/ |
D | SurfaceFlinger.cpp | 1164 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/ |
D | TestEventMatchers.h | 595 *os << "with eventId from source 0x" << std::hex << ftl::to_underlying(mEventIdSource); in DescribeTo()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.cpp | 151 event.modeChange.modeId = ftl::to_underlying(mode.modePtr->getId()); in makeModeChanged()
|
D | RefreshRateSelector.cpp | 289 ftl::to_underlying(defaultMode), in toString()
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumerNoResampling_test.cpp | 386 Message msg{ftl::to_underlying(message)}; in sendMessage()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 2335 vec.push_back(ftl::to_underlying(it)); in nativeGetLights()
|