Home
last modified time | relevance | path

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

12345678910>>...87

/frameworks/native/libs/ui/include/ui/fuzzer/
DFuzzableDataspaces.h20 constexpr ui::Dataspace kDataspaces[] = {
21 ui::Dataspace::UNKNOWN,
22 ui::Dataspace::ARBITRARY,
23 ui::Dataspace::STANDARD_UNSPECIFIED,
24 ui::Dataspace::STANDARD_BT709,
25 ui::Dataspace::STANDARD_BT601_625,
26 ui::Dataspace::STANDARD_BT601_625_UNADJUSTED,
27 ui::Dataspace::STANDARD_BT601_525,
28 ui::Dataspace::STANDARD_BT601_525_UNADJUSTED,
29 ui::Dataspace::STANDARD_BT2020,
[all …]
/frameworks/av/media/libstagefright/renderfright/fuzzer/
DREADME.md17ui::Dataspace::UNKNOWN`<br/>1. `ui::Dataspace::ARBITRARY`<br/>2. `ui::Dataspace::STANDARD_SHIFT`<b…
Dlibstagefright_renderfright_fuzzer.cpp36 static constexpr ui::Dataspace kDataSpace[] = {
37 ui::Dataspace::UNKNOWN,
38 ui::Dataspace::ARBITRARY,
39 ui::Dataspace::STANDARD_SHIFT,
40 ui::Dataspace::STANDARD_MASK,
41 ui::Dataspace::STANDARD_UNSPECIFIED,
42 ui::Dataspace::STANDARD_BT709,
43 ui::Dataspace::STANDARD_BT601_625,
44 ui::Dataspace::STANDARD_BT601_625_UNADJUSTED,
45 ui::Dataspace::STANDARD_BT601_525,
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DDisplayDevice_GetBestColorModeTest.cpp36 void addHwcColorModesMapping(ui::ColorMode colorMode, in addHwcColorModesMapping()
37 std::vector<ui::RenderIntent> renderIntents) { in addHwcColorModesMapping()
41 void setInputDataspace(ui::Dataspace dataspace) { mInputDataspace = dataspace; } in setInputDataspace()
43 void setInputRenderIntent(ui::RenderIntent renderIntent) { mInputRenderIntent = renderIntent; } in setInputRenderIntent()
59 ui::Dataspace mOutDataspace;
60 ui::ColorMode mOutColorMode;
61 ui::RenderIntent mOutRenderIntent;
64 ui::Dataspace mInputDataspace;
65 ui::RenderIntent mInputRenderIntent;
67 std::unordered_map<ui::ColorMode, std::vector<ui::RenderIntent>> mHwcColorModes;
[all …]
DActiveDisplayRotationFlagsTest.cpp41 mFlinger.mutableActiveDisplayRotationFlags() = ui::Transform::ROT_0; in SetUp()
46 ui::Transform::RotationFlags mOldRotationFlags;
50 ASSERT_EQ(ui::Transform::ROT_0, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
55 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
57 ui::ROTATION_90; in TEST_F()
60 ASSERT_EQ(ui::Transform::ROT_90, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
65 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
67 ui::ROTATION_90; in TEST_F()
70 ASSERT_EQ(ui::Transform::ROT_0, SurfaceFlinger::getActiveDisplayRotationFlags()); in TEST_F()
75 mFlinger.mutableDrawingState().displays.editValueFor(displayToken).orientation = ui::ROTATION_0; in TEST_F()
[all …]
DSurfaceFlinger_ExcludeDolbyVisionTest.cpp49 createDisplayMode(modeId1080p60, 60_Hz, 0, ui::Size(1920, 1080));
51 createDisplayMode(modeId4k30, 30_Hz, 1, ui::Size(3840, 2160));
53 createDisplayMode(modeId4k30, 30.1_Hz, 1, ui::Size(3840, 2160));
55 createDisplayMode(modeId4k60, 60_Hz, 2, ui::Size(3840, 2160));
57 const std::vector<ui::Hdr> types = {ui::Hdr::DOLBY_VISION, ui::Hdr::DOLBY_VISION_4K30,
58 ui::Hdr::HDR10_PLUS};
63 ui::DynamicDisplayInfo info; in TEST_F()
66 std::vector<ui::DisplayMode> displayModes = info.supportedDisplayModes; in TEST_F()
71 [](ui::Hdr type) { return type == ui::Hdr::HDR10_PLUS; })); in TEST_F()
77 ui::DynamicDisplayInfo info; in TEST_F()
[all …]
DDisplayDevice_SetProjectionTest.cpp42 DisplayDeviceSetProjectionTest(ui::Size flingerDisplaySize, ui::Size hardwareDisplaySize, in DisplayDeviceSetProjectionTest()
43 ui::Rotation physicalOrientation) in DisplayDeviceSetProjectionTest()
55 ui::Size swapWH(const ui::Size size) const { return ui::Size(size.height, size.width); } in swapWH()
59 mDisplayDevice->setProjection(ui::ROTATION_0, Rect::INVALID_RECT, Rect::INVALID_RECT); in setDefaultProjection()
64 mDisplayDevice->setProjection(ui::ROTATION_0, Rect(mFlingerDisplaySize), in setProjectionForRotation0()
71 mDisplayDevice->setProjection(ui::ROTATION_90, Rect(swapWH(mFlingerDisplaySize)), in setProjectionForRotation90()
77 mDisplayDevice->setProjection(ui::ROTATION_180, Rect(mFlingerDisplaySize), in setProjectionForRotation180()
84 mDisplayDevice->setProjection(ui::ROTATION_270, Rect(swapWH(mFlingerDisplaySize)), in setProjectionForRotation270()
90 EXPECT_EQ(ui::Transform(ui::Transform::toRotationFlags(mPhysicalOrientation), in expectDefaultState()
99 const ui::Size expectedLogicalSize = (mPhysicalOrientation == ui::ROTATION_270 || in expectDefaultState()
[all …]
DFramebufferSurfaceTest.cpp26 ui::Size limitSize(const ui::Size& size, const ui::Size maxSize) { in limitSize()
32 const ui::Size kMaxSize(1920, 1080); in TEST_F()
33 EXPECT_EQ(ui::Size(1920, 1080), limitSize({3840, 2160}, kMaxSize)); in TEST_F()
34 EXPECT_EQ(ui::Size(1920, 1080), limitSize({1920, 1080}, kMaxSize)); in TEST_F()
35 EXPECT_EQ(ui::Size(1920, 1012), limitSize({4096, 2160}, kMaxSize)); in TEST_F()
36 EXPECT_EQ(ui::Size(1080, 1080), limitSize({3840, 3840}, kMaxSize)); in TEST_F()
37 EXPECT_EQ(ui::Size(1280, 720), limitSize({1280, 720}, kMaxSize)); in TEST_F()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DUserInfoTest.java34 final UserInfo ui = new UserInfo(10, "Test", UserInfo.FLAG_GUEST); in testSimple() local
36 assertThat(ui.getUserHandle()).isEqualTo(UserHandle.of(10)); in testSimple()
37 assertThat(ui.name).isEqualTo("Test"); in testSimple()
40 assertThat(ui.isManagedProfile()).isEqualTo(false); in testSimple()
41 assertThat(ui.isGuest()).isEqualTo(true); in testSimple()
42 assertThat(ui.isRestricted()).isEqualTo(false); in testSimple()
43 assertThat(ui.isDemo()).isEqualTo(false); in testSimple()
44 assertThat(ui.isCloneProfile()).isEqualTo(false); in testSimple()
45 assertThat(ui.isCommunalProfile()).isEqualTo(false); in testSimple()
46 assertThat(ui.isPrivateProfile()).isEqualTo(false); in testSimple()
[all …]
/frameworks/native/libs/ui/tests/
DHdrRenderTypeUtils_test.cpp28 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_ITU_HLG, std::nullopt), in TEST_F()
30 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_ITU_PQ, std::nullopt), in TEST_F()
32 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_PQ, std::nullopt), HdrRenderType::GENERIC_HDR); in TEST_F()
33 EXPECT_EQ(getHdrRenderType(ui::Dataspace::BT2020_HLG, std::nullopt), in TEST_F()
35 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB, in TEST_F()
36 std::optional<ui::PixelFormat>(ui::PixelFormat::RGBA_FP16)), in TEST_F()
38 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB, in TEST_F()
39 std::optional<ui::PixelFormat>(ui::PixelFormat::RGBA_8888), 2.f), in TEST_F()
41 EXPECT_EQ(getHdrRenderType(ui::Dataspace::V0_SCRGB_LINEAR, in TEST_F()
42 std::optional<ui::PixelFormat>(ui::PixelFormat::RGBA_8888), 2.f), in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/transitions/
DDeviceEntryIconTransitionModule.kt16 package com.android.systemui.keyguard.ui.transitions
18 import com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerToAodTransitionViewModel
19 import com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerToDozingTransitionViewModel
20 import com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerToGoneTransitionViewModel
21 import com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerToOccludedTransitionViewModel
22 import com.android.systemui.keyguard.ui.viewmodel.AlternateBouncerToPrimaryBouncerTransitionViewMod…
23 import com.android.systemui.keyguard.ui.viewmodel.AodToGoneTransitionViewModel
24 import com.android.systemui.keyguard.ui.viewmodel.AodToLockscreenTransitionViewModel
25 import com.android.systemui.keyguard.ui.viewmodel.AodToOccludedTransitionViewModel
26 import com.android.systemui.keyguard.ui.viewmodel.AodToPrimaryBouncerTransitionViewModel
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/
DSharedNotificationContainerViewModelKosmos.kt17 package com.android.systemui.statusbar.notification.stack.ui.viewmodel
22 import com.android.systemui.keyguard.ui.viewmodel.alternateBouncerToGoneTransitionViewModel
23 import com.android.systemui.keyguard.ui.viewmodel.aodBurnInViewModel
24 import com.android.systemui.keyguard.ui.viewmodel.aodToGoneTransitionViewModel
25 import com.android.systemui.keyguard.ui.viewmodel.aodToLockscreenTransitionViewModel
26 import com.android.systemui.keyguard.ui.viewmodel.aodToOccludedTransitionViewModel
27 import com.android.systemui.keyguard.ui.viewmodel.dozingToLockscreenTransitionViewModel
28 import com.android.systemui.keyguard.ui.viewmodel.dozingToOccludedTransitionViewModel
29 import com.android.systemui.keyguard.ui.viewmodel.dreamingToLockscreenTransitionViewModel
30 import com.android.systemui.keyguard.ui.viewmodel.glanceableHubToLockscreenTransitionViewModel
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DProjectionSpace.h34 ProjectionSpace(ui::Size size, Rect content) : mBounds(size), mContent(std::move(content)) {} in ProjectionSpace()
38 ui::Transform getTransform(const ProjectionSpace& destination) const { in getTransform()
39 ui::Rotation rotation = destination.getOrientation() - mOrientation; in getTransform()
43 const uint32_t inverseRotationFlags = ui::Transform::toRotationFlags(-rotation); in getTransform()
44 ui::Transform inverseRotatingTransform; in getTransform()
53 ui::Transform sourceTranslation; in getTransform()
58 ui::Transform scale; in getTransform()
66 ui::Transform destTranslation; in getTransform()
70 const uint32_t orientationFlags = ui::Transform::toRotationFlags(rotation); in getTransform()
73 if (rotation == ui::ROTATION_90 || rotation == ui::ROTATION_270) { in getTransform()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/
DDisplayColorProfile.h41 bool hasRenderIntent(ui::RenderIntent intent) const override;
42 bool hasLegacyHdrSupport(ui::Dataspace dataspace) const override;
43 void getBestColorMode(ui::Dataspace dataspace, ui::RenderIntent intent,
44 ui::Dataspace* outDataspace, ui::ColorMode* outMode,
45 ui::RenderIntent* outIntent) const override;
57 bool isDataspaceSupported(ui::Dataspace) const override;
64 const ui::ColorMode mode, const ui::RenderIntent intent);
70 ui::Dataspace dataspace;
71 ui::ColorMode colorMode;
72 ui::RenderIntent renderIntent;
[all …]
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DPunchHole.kt20 import androidx.compose.ui.Modifier
21 import androidx.compose.ui.geometry.Offset
22 import androidx.compose.ui.geometry.Size
23 import androidx.compose.ui.graphics.BlendMode
24 import androidx.compose.ui.graphics.Color
25 import androidx.compose.ui.graphics.CompositingStrategy
26 import androidx.compose.ui.graphics.Outline
27 import androidx.compose.ui.graphics.RectangleShape
28 import androidx.compose.ui.graphics.Shape
29 import androidx.compose.ui.graphics.drawOutline
[all …]
/frameworks/base/packages/SettingsLib/Spa/testutils/src/com/android/settingslib/spa/testutils/
DComposeContentTestRuleExt.kt23 import androidx.compose.ui.Modifier
24 import androidx.compose.ui.platform.testTag
25 import androidx.compose.ui.test.ComposeTimeoutException
26 import androidx.compose.ui.test.SemanticsMatcher
27 import androidx.compose.ui.test.SemanticsNodeInteraction
28 import androidx.compose.ui.test.getUnclippedBoundsInRoot
29 import androidx.compose.ui.test.hasAnyAncestor
30 import androidx.compose.ui.test.hasText
31 import androidx.compose.ui.test.isDialog
32 import androidx.compose.ui.test.junit4.ComposeContentTestRule
[all …]
/frameworks/native/services/inputflinger/
DPointerChoreographer.h58 virtual void setDefaultMouseDisplayId(ui::LogicalDisplayId displayId) = 0;
61 ui::LogicalDisplayId associatedDisplayId = ui::LogicalDisplayId::INVALID) = 0;
62 virtual FloatPoint getMouseCursorPosition(ui::LogicalDisplayId displayId) = 0;
71 ui::LogicalDisplayId displayId, DeviceId deviceId) = 0;
76 virtual void setPointerIconVisibility(ui::LogicalDisplayId displayId, bool visible) = 0;
81 virtual void setFocusedDisplay(ui::LogicalDisplayId displayId) = 0;
95 void setDefaultMouseDisplayId(ui::LogicalDisplayId displayId) override;
98 ui::LogicalDisplayId associatedDisplayId) override;
99 FloatPoint getMouseCursorPosition(ui::LogicalDisplayId displayId) override;
103 ui::LogicalDisplayId displayId, DeviceId deviceId) override;
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DProjectionSpaceTest.cpp28 Rect getSideStrip(const Rect& rect, ui::Rotation rotation) { in getSideStrip()
30 if (rotation == ui::ROTATION_90 || rotation == ui::ROTATION_270) { in getSideStrip()
38 if (rotation == ui::ROTATION_0 || rotation == ui::ROTATION_270) { in getSideStrip()
42 if (rotation == ui::ROTATION_90) { in getSideStrip()
46 if (rotation == ui::ROTATION_180) { in getSideStrip()
57 space.setBounds(ui::Size(100, 200)); in TEST()
59 const ui::Transform identity; in TEST()
61 space.setOrientation(ui::Rotation(rotation)); in TEST()
69 source.setBounds(ui::Size(100, 200)); in TEST()
82 source.setBounds(ui::Size(100, 200)); in TEST()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/bouncer/ui/composable/
DPasswordBouncer.kt19 package com.android.systemui.bouncer.ui.composable in <lambda>()
32 import androidx.compose.ui.ExperimentalComposeUiApi in <lambda>()
33 import androidx.compose.ui.Modifier in <lambda>()
34 import androidx.compose.ui.draw.drawBehind in <lambda>()
35 import androidx.compose.ui.focus.FocusRequester in <lambda>()
36 import androidx.compose.ui.focus.focusRequester in <lambda>()
37 import androidx.compose.ui.focus.onFocusChanged in <lambda>()
38 import androidx.compose.ui.geometry.Offset in <lambda>()
39 import androidx.compose.ui.graphics.Color in <lambda>()
40 import androidx.compose.ui.input.key.Key in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/modifiers/
DFadingBackground.kt19 import androidx.compose.ui.Modifier
20 import androidx.compose.ui.draw.DrawModifier
21 import androidx.compose.ui.geometry.Size
22 import androidx.compose.ui.graphics.Brush
23 import androidx.compose.ui.graphics.Color
24 import androidx.compose.ui.graphics.Outline
25 import androidx.compose.ui.graphics.RectangleShape
26 import androidx.compose.ui.graphics.Shape
27 import androidx.compose.ui.graphics.SolidColor
28 import androidx.compose.ui.graphics.drawOutline
[all …]
/frameworks/native/libs/input/tests/
DTouchVideoFrame_test.cpp76 frame.rotate(ui::ROTATION_90); in TEST()
83 frame.rotate(ui::ROTATION_90); in TEST()
90 frame.rotate(ui::ROTATION_90); in TEST()
97 frame.rotate(ui::ROTATION_90); in TEST()
104 frame.rotate(ui::ROTATION_90); in TEST()
105 frame.rotate(ui::ROTATION_90); in TEST()
106 frame.rotate(ui::ROTATION_90); in TEST()
107 frame.rotate(ui::ROTATION_90); in TEST()
116 frame.rotate(ui::ROTATION_180); in TEST()
123 frame.rotate(ui::ROTATION_180); in TEST()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/blueprints/
DSplitShadeKeyguardBlueprint.kt18 package com.android.systemui.keyguard.ui.view.layout.blueprints
20 import com.android.systemui.communal.ui.view.layout.sections.CommunalTutorialIndicatorSection
24 import com.android.systemui.keyguard.ui.view.layout.sections.AccessibilityActionsSection
25 import com.android.systemui.keyguard.ui.view.layout.sections.AodBurnInSection
26 import com.android.systemui.keyguard.ui.view.layout.sections.AodNotificationIconsSection
27 import com.android.systemui.keyguard.ui.view.layout.sections.ClockSection
28 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultDeviceEntrySection
29 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultIndicationAreaSection
30 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultSettingsPopupMenuSection
31 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultShortcutsSection
[all …]
DShortcutsBesideUdfpsKeyguardBlueprint.kt18 package com.android.systemui.keyguard.ui.view.layout.blueprints
20 import com.android.systemui.communal.ui.view.layout.sections.CommunalTutorialIndicatorSection
24 import com.android.systemui.keyguard.ui.view.layout.sections.AccessibilityActionsSection
25 import com.android.systemui.keyguard.ui.view.layout.sections.AlignShortcutsToUdfpsSection
26 import com.android.systemui.keyguard.ui.view.layout.sections.AodBurnInSection
27 import com.android.systemui.keyguard.ui.view.layout.sections.AodNotificationIconsSection
28 import com.android.systemui.keyguard.ui.view.layout.sections.ClockSection
29 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultDeviceEntrySection
30 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultIndicationAreaSection
31 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultNotificationStackScrollLayoutSe…
[all …]
DDefaultKeyguardBlueprint.kt18 package com.android.systemui.keyguard.ui.view.layout.blueprints
20 import com.android.systemui.communal.ui.view.layout.sections.CommunalTutorialIndicatorSection
24 import com.android.systemui.keyguard.ui.view.layout.sections.AccessibilityActionsSection
25 import com.android.systemui.keyguard.ui.view.layout.sections.AodBurnInSection
26 import com.android.systemui.keyguard.ui.view.layout.sections.AodNotificationIconsSection
27 import com.android.systemui.keyguard.ui.view.layout.sections.ClockSection
28 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultDeviceEntrySection
29 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultIndicationAreaSection
30 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultNotificationStackScrollLayoutSe…
31 import com.android.systemui.keyguard.ui.view.layout.sections.DefaultSettingsPopupMenuSection
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/anc/ui/composable/
DAncButtonComponent.kt17 package com.android.systemui.volume.panel.component.anc.ui.composable
36 import androidx.compose.ui.Alignment
37 import androidx.compose.ui.Modifier
38 import androidx.compose.ui.graphics.Color
39 import androidx.compose.ui.layout.onGloballyPositioned
40 import androidx.compose.ui.platform.LocalConfiguration
41 import androidx.compose.ui.platform.LocalDensity
42 import androidx.compose.ui.res.stringResource
43 import androidx.compose.ui.semantics.LiveRegionMode
44 import androidx.compose.ui.semantics.clearAndSetSemantics
[all …]

12345678910>>...87