Loading tests/Input/src/com/android/test/input/PointerIconLoadingTest.kt +10 −1 Original line number Diff line number Diff line Loading @@ -136,11 +136,20 @@ class PointerIconLoadingTest { assumeTrue(enableVectorCursors()) assumeTrue(enableVectorCursorA11ySettings()) val theme: Resources.Theme = context.getResources().newTheme() theme.setTo(context.getTheme()) theme.applyStyle( PointerIcon.vectorFillStyleToResource(PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_BLACK), /* force= */ true) theme.applyStyle( PointerIcon.vectorStrokeStyleToResource( PointerIcon.POINTER_ICON_VECTOR_STYLE_STROKE_WHITE), /* force= */ true) val pointerScale = 2f val pointerIcon = PointerIcon.getLoadedSystemIcon( context, ContextThemeWrapper(context, theme), PointerIcon.TYPE_ARROW, /* useLargeIcons= */ false, pointerScale) Loading Loading
tests/Input/src/com/android/test/input/PointerIconLoadingTest.kt +10 −1 Original line number Diff line number Diff line Loading @@ -136,11 +136,20 @@ class PointerIconLoadingTest { assumeTrue(enableVectorCursors()) assumeTrue(enableVectorCursorA11ySettings()) val theme: Resources.Theme = context.getResources().newTheme() theme.setTo(context.getTheme()) theme.applyStyle( PointerIcon.vectorFillStyleToResource(PointerIcon.POINTER_ICON_VECTOR_STYLE_FILL_BLACK), /* force= */ true) theme.applyStyle( PointerIcon.vectorStrokeStyleToResource( PointerIcon.POINTER_ICON_VECTOR_STYLE_STROKE_WHITE), /* force= */ true) val pointerScale = 2f val pointerIcon = PointerIcon.getLoadedSystemIcon( context, ContextThemeWrapper(context, theme), PointerIcon.TYPE_ARROW, /* useLargeIcons= */ false, pointerScale) Loading