Home
last modified time | relevance | path

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

123

/frameworks/native/libs/ui/tests/
DDisplayId_test.cpp36 EXPECT_EQ(id, DisplayId::fromValue(id.value)); in TEST()
37 EXPECT_EQ(id, DisplayId::fromValue<PhysicalDisplayId>(id.value)); in TEST()
50 EXPECT_EQ(id, DisplayId::fromValue(id.value)); in TEST()
51 EXPECT_EQ(id, DisplayId::fromValue<PhysicalDisplayId>(id.value)); in TEST()
62 EXPECT_EQ(id, DisplayId::fromValue(id.value)); in TEST()
63 EXPECT_EQ(id, DisplayId::fromValue<GpuVirtualDisplayId>(id.value)); in TEST()
89 EXPECT_EQ(id, DisplayId::fromValue(id.value)); in TEST()
90 EXPECT_EQ(id, DisplayId::fromValue<GpuVirtualDisplayId>(id.value)); in TEST()
101 EXPECT_EQ(id, DisplayId::fromValue(id.value)); in TEST()
102 EXPECT_EQ(id, DisplayId::fromValue<HalVirtualDisplayId>(id.value)); in TEST()
/frameworks/native/services/surfaceflinger/tests/unittests/
DSurfaceFlinger_CreateDisplayTest.cpp49 EXPECT_EQ(display.requestedRefreshRate, Fps::fromValue(requestedRefreshRate)); in createDisplayWithRequestedRefreshRate()
53 DisplayId::fromValue<VirtualDisplayId>(displayId | DisplayId::FLAG_VIRTUAL); in createDisplayWithRequestedRefreshRate()
59 device->adjustRefreshRate(Fps::fromValue(pacesetterDisplayRefreshRate)); in createDisplayWithRequestedRefreshRate()
61 EXPECT_EQ(device->getAdjustedRefreshRate(), Fps::fromValue(expectedAdjustedRefreshRate)); in createDisplayWithRequestedRefreshRate()
64 EXPECT_GE(device->getAdjustedRefreshRate(), Fps::fromValue(requestedRefreshRate)); in createDisplayWithRequestedRefreshRate()
67 Fps::fromValue(pacesetterDisplayRefreshRate)); in createDisplayWithRequestedRefreshRate()
DSurfaceFlinger_InitializeDisplaysTest.cpp49 : ui::LayerStack::fromValue(ui::DEFAULT_LAYER_STACK.id + 1); in TEST_F()
DTransactionProtoParserTest.cpp128 ASSERT_TRUE(displayInfos.contains(ui::LayerStack::fromValue(layerStack))); in TEST()
129 frontend::DisplayInfo d2 = displayInfos.get(ui::LayerStack::fromValue(layerStack))->get(); in TEST()
DLayerHierarchyTest.cpp696 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
712 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(5)); in TEST_F()
727 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
746 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
768 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
DLayerSnapshotTest.cpp152 mFrontEndDisplayInfos.emplace_or_replace(ui::LayerStack::fromValue(1), info); in TEST_F()
388 mFrontEndDisplayInfos.emplace_or_replace(ui::LayerStack::fromValue(1), displayInfo); in TEST_F()
437 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
454 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
456 createDisplayMirrorLayer(4, ui::LayerStack::fromValue(0)); in TEST_F()
476 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
493 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
503 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
520 createDisplayMirrorLayer(3, ui::LayerStack::fromValue(0)); in TEST_F()
/frameworks/native/services/surfaceflinger/Scheduler/include/scheduler/
DFps.h43 static constexpr Fps fromValue(float frequency) { in fromValue() function
67 Fps min = Fps::fromValue(0.f);
68 Fps max = Fps::fromValue(std::numeric_limits<float>::max());
100 return Fps::fromValue(static_cast<float>(frequency));
104 return Fps::fromValue(static_cast<float>(frequency));
/frameworks/native/libs/ui/include_vndk/ui/
DDisplayId.h48 static constexpr std::optional<DisplayId> fromValue(uint64_t);
52 static constexpr std::optional<Id> fromValue(uint64_t value) { in fromValue() function
191 constexpr std::optional<DisplayId> DisplayId::fromValue(uint64_t value) { in fromValue() function
192 if (const auto id = fromValue<PhysicalDisplayId>(value)) { in fromValue()
195 if (const auto id = fromValue<VirtualDisplayId>(value)) { in fromValue()
/frameworks/native/libs/ui/include/ui/
DDisplayId.h48 static constexpr std::optional<DisplayId> fromValue(uint64_t);
52 static constexpr std::optional<Id> fromValue(uint64_t value) { in fromValue() function
191 constexpr std::optional<DisplayId> DisplayId::fromValue(uint64_t value) { in fromValue() function
192 if (const auto id = fromValue<PhysicalDisplayId>(value)) { in fromValue()
195 if (const auto id = fromValue<VirtualDisplayId>(value)) { in fromValue()
DLayerStack.h33 static constexpr LayerStack fromValue(T v) { in fromValue() function
/frameworks/base/core/java/android/view/
DViewPropertyAnimator.java238 NameValuesHolder(int nameConstant, float fromValue, float deltaValue) { in NameValuesHolder() argument
240 mFromValue = fromValue; in NameValuesHolder()
914 float fromValue = getValue(constantName); in animateProperty() local
915 float deltaValue = toValue - fromValue; in animateProperty()
916 animatePropertyBy(constantName, fromValue, deltaValue); in animateProperty()
928 float fromValue = getValue(constantName); in animatePropertyBy() local
929 animatePropertyBy(constantName, fromValue, byValue); in animatePropertyBy()
DMenuItem.java319 return BlendMode.fromValue(mode.nativeInt); in getIconTintBlendMode()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DAnimateSharedAsState.kt376 val fromValue = sharedValue[transition.fromScene] in get() constant
378 return if (fromValue != null && toValue != null) { in get()
379 if (fromValue == toValue) { in get()
382 fromValue in get()
395 sharedValue.type.lerp(fromValue, toValue, progress) in get()
397 } else fromValue ?: toValue in get()
/frameworks/base/libs/hwui/
DPropertyValuesHolder.cpp29 inline constexpr float lerp(float fromValue, float toValue, float fraction) { in lerp() argument
30 return float(fromValue * (1 - fraction) + toValue * fraction); in lerp()
/frameworks/native/services/surfaceflinger/Scheduler/
DFrameRateOverrideMappings.cpp139 Fps::fromValue(frameRateOverride.frameRateHz); in setGameModeRefreshRateForUid()
149 Fps::fromValue(frameRateOverride.frameRateHz); in setPreferredRefreshRateForUid()
DLayerHistory.cpp432 mGameFrameRateOverride[uid].first = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameModeFrameRateOverride()
446 mGameFrameRateOverride[uid].second = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameDefaultFrameRateOverride()
DRefreshRateSelector.cpp762 Fps::fromValue(mConfig.frameRateMultipleThreshold / 2); in getRankedFrameRatesLocked()
765 modePtr->getPeakFps() >= Fps::fromValue(mConfig.frameRateMultipleThreshold); in getRankedFrameRatesLocked()
811 Fps::fromValue(mConfig.frameRateMultipleThreshold); in getRankedFrameRatesLocked()
1587 return isApproxEqual(bigger, Fps::fromValue(smaller.getValue() * multiplier / kCoef)) || in isFractionalPairOrMultiple()
1588 isApproxEqual(bigger, Fps::fromValue(smaller.getValue() * multiplier * kCoef)); in isFractionalPairOrMultiple()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
DSwipeable.kt622 fun Density.computeThreshold(fromValue: Float, toValue: Float): Float in computeThreshold()
632 override fun Density.computeThreshold(fromValue: Float, toValue: Float): Float { in computeThreshold()
633 return fromValue + offset.toPx() * sign(toValue - fromValue) in computeThreshold()
647 override fun Density.computeThreshold(fromValue: Float, toValue: Float): Float { in computeThreshold()
648 return lerp(fromValue, toValue, fraction) in computeThreshold()
/frameworks/native/services/automotive/display/
DAutomotiveDisplayProxyService.cpp37 if (const auto displayId = DisplayId::fromValue<PhysicalDisplayId>(id)) { in getIGraphicBufferProducer()
164 if (const auto displayId = DisplayId::fromValue<PhysicalDisplayId>(id)) { in getDisplayInfo()
/frameworks/base/services/core/java/com/android/server/input/
DKeyboardBacklightController.java624 int fromValue = Color.alpha(mNative.getLightColor(mDeviceId, mLight.getId())); in setBacklightValue() local
625 if (fromValue == toValue) { in setBacklightValue()
629 startAnimation(fromValue, toValue); in setBacklightValue()
635 private void startAnimation(int fromValue, int toValue) { in startAnimation() argument
638 mAnimator = mAnimatorFactory.makeIntAnimator(fromValue, toValue); in startAnimation()
/frameworks/base/graphics/java/android/graphics/
DBlendMode.java506 public static @Nullable BlendMode fromValue(int value) { in fromValue() method in BlendMode
/frameworks/base/services/core/java/com/android/server/wm/
DDimmerAnimationHelper.java253 AnimationExtremes(T fromValue, T toValue) { in AnimationExtremes() argument
254 mStartValue = fromValue; in AnimationExtremes()
/frameworks/native/services/surfaceflinger/
DClient.cpp116 std::optional<DisplayId> id = DisplayId::fromValue(static_cast<uint64_t>(displayId)); in mirrorDisplay()
/frameworks/base/services/core/jni/
Dcom_android_server_display_DisplayControl.cpp175 const auto id = DisplayId::fromValue<PhysicalDisplayId>(physicalDisplayId); in nativeGetPhysicalDisplayToken()
/frameworks/base/cmds/screencap/
Dscreencap.cpp279 displayIdOpt = DisplayId::fromValue(id); in main()

123