/frameworks/native/libs/ui/tests/ |
D | DisplayId_test.cpp | 36 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/ |
D | SurfaceFlinger_CreateDisplayTest.cpp | 49 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()
|
D | SurfaceFlinger_InitializeDisplaysTest.cpp | 49 : ui::LayerStack::fromValue(ui::DEFAULT_LAYER_STACK.id + 1); in TEST_F()
|
D | TransactionProtoParserTest.cpp | 128 ASSERT_TRUE(displayInfos.contains(ui::LayerStack::fromValue(layerStack))); in TEST() 129 frontend::DisplayInfo d2 = displayInfos.get(ui::LayerStack::fromValue(layerStack))->get(); in TEST()
|
D | LayerHierarchyTest.cpp | 696 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()
|
D | LayerSnapshotTest.cpp | 152 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/ |
D | Fps.h | 43 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/ |
D | DisplayId.h | 48 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/ |
D | DisplayId.h | 48 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()
|
D | LayerStack.h | 33 static constexpr LayerStack fromValue(T v) { in fromValue() function
|
/frameworks/base/core/java/android/view/ |
D | ViewPropertyAnimator.java | 238 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()
|
D | MenuItem.java | 319 return BlendMode.fromValue(mode.nativeInt); in getIconTintBlendMode()
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | AnimateSharedAsState.kt | 376 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/ |
D | PropertyValuesHolder.cpp | 29 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/ |
D | FrameRateOverrideMappings.cpp | 139 Fps::fromValue(frameRateOverride.frameRateHz); in setGameModeRefreshRateForUid() 149 Fps::fromValue(frameRateOverride.frameRateHz); in setPreferredRefreshRateForUid()
|
D | LayerHistory.cpp | 432 mGameFrameRateOverride[uid].first = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameModeFrameRateOverride() 446 mGameFrameRateOverride[uid].second = Fps::fromValue(frameRateOverride.frameRateHz); in updateGameDefaultFrameRateOverride()
|
D | RefreshRateSelector.cpp | 762 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/ |
D | Swipeable.kt | 622 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/ |
D | AutomotiveDisplayProxyService.cpp | 37 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/ |
D | KeyboardBacklightController.java | 624 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/ |
D | BlendMode.java | 506 public static @Nullable BlendMode fromValue(int value) { in fromValue() method in BlendMode
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DimmerAnimationHelper.java | 253 AnimationExtremes(T fromValue, T toValue) { in AnimationExtremes() argument 254 mStartValue = fromValue; in AnimationExtremes()
|
/frameworks/native/services/surfaceflinger/ |
D | Client.cpp | 116 std::optional<DisplayId> id = DisplayId::fromValue(static_cast<uint64_t>(displayId)); in mirrorDisplay()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_display_DisplayControl.cpp | 175 const auto id = DisplayId::fromValue<PhysicalDisplayId>(physicalDisplayId); in nativeGetPhysicalDisplayToken()
|
/frameworks/base/cmds/screencap/ |
D | screencap.cpp | 279 displayIdOpt = DisplayId::fromValue(id); in main()
|