Home
last modified time | relevance | path

Searched refs:ColorScheme (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/animation/
DMediaColorSchemes.kt19 import com.android.systemui.monet.ColorScheme
22 internal fun surfaceFromScheme(scheme: ColorScheme) = scheme.accent2.s800 // A2-800
25 internal fun accentPrimaryFromScheme(scheme: ColorScheme) = scheme.accent1.s100 // A1-100
28 internal fun accentSecondaryFromScheme(scheme: ColorScheme) = scheme.accent1.s200 // A1-200
31 internal fun textPrimaryFromScheme(scheme: ColorScheme) = scheme.neutral1.s50 // N1-50
34 internal fun textPrimaryInverseFromScheme(scheme: ColorScheme) = scheme.neutral1.s900 // N1-900
37 internal fun textSecondaryFromScheme(scheme: ColorScheme) = scheme.neutral2.s200 // N2-200
40 internal fun textTertiaryFromScheme(scheme: ColorScheme) = scheme.neutral2.s400 // N2-400
43 internal fun backgroundStartFromScheme(scheme: ColorScheme) = scheme.accent2.s700 // A2-700
46 internal fun backgroundEndFromScheme(scheme: ColorScheme) = scheme.accent1.s700 // A1-700
DColorSchemeTransition.kt31 import com.android.systemui.monet.ColorScheme in <lambda>()
41 fun updateColorScheme(scheme: ColorScheme?): Boolean in <lambda>()
53 private val extractColor: (ColorScheme) -> Int,
69 override fun updateColorScheme(scheme: ColorScheme?): Boolean { in updateColorScheme()
95 (Int, (ColorScheme) -> Int, (Int) -> Unit) -> AnimatingColorTransition
161 { colorScheme: ColorScheme -> in colorScheme()
235 fun updateColorScheme(colorScheme: ColorScheme?): Boolean { in updateColorScheme()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/framework/theme/
DMaterialColors.kt20 import androidx.compose.material3.ColorScheme
31 internal fun materialColorScheme(isDarkTheme: Boolean): ColorScheme { in materialColorScheme()
45 val ColorScheme.divider: Color constant
48 val ColorScheme.surfaceTone: Color constant
52 val ColorScheme.settingsBackground: Color constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/util/
DMediaArtworkHelper.kt30 import com.android.systemui.monet.ColorScheme in <lambda>()
88 colorScheme: ColorScheme, in <lambda>()
106 ): ColorScheme? { in <lambda>()
110 ColorScheme(WallpaperColors.fromDrawable(icon), true, style) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/viewmodel/
DMediaPlayerViewModel.kt21 import com.android.systemui.monet.ColorScheme
34 val colorScheme: ColorScheme,
DMediaRecommendationsViewModel.kt48 import com.android.systemui.monet.ColorScheme in <lambda>()
220 scheme: ColorScheme in <lambda>()
258 ColorScheme(wallpaperColors, true, Style.CONTENT), in <lambda>()
268 mutableColorScheme: ColorScheme, in <lambda>()
DMediaControlViewModel.kt41 import com.android.systemui.monet.ColorScheme in <lambda>()
96 wallpaperColors?.let { ColorScheme(it, true, Style.CONTENT) } in <lambda>()
253 private fun toGutsViewModel(model: MediaControlModel, scheme: ColorScheme): GutsViewModel { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DGutsViewHolder.kt28 import com.android.systemui.monet.ColorScheme
47 var colorScheme: ColorScheme? = null
68 fun setColors(scheme: ColorScheme) { in setColors()
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java47 public class ColorScheme { class
65 public ColorScheme(@ColorInt int seed, boolean isDark, Style style, double contrastLevel) { in ColorScheme() method in ColorScheme
101 public ColorScheme(@ColorInt int seed, boolean darkTheme) { in ColorScheme() method in ColorScheme
105 public ColorScheme(@ColorInt int seed, boolean darkTheme, Style style) { in ColorScheme() method in ColorScheme
109 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme, Style style) { in ColorScheme() method in ColorScheme
113 public ColorScheme(WallpaperColors wallpaperColors, boolean darkTheme) { in ColorScheme() method in ColorScheme
348 .map(ColorScheme::stringForColor) in humanReadable()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DDynamicRenderResources.java27 import com.android.systemui.monet.ColorScheme;
167 int seed = ColorScheme.getSeedColor(wallpaperColors); in createDynamicColorMap()
168 ColorScheme scheme = new ColorScheme(seed, isNightMode); in createDynamicColorMap()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt25 import androidx.compose.material3.ColorScheme
90 fun getColorScheme(task: RunningTaskInfo): ColorScheme = when (getAppTheme(task)) { in isLight()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/animation/
DColorSchemeTransitionTest.kt27 import com.android.systemui.monet.ColorScheme in <lambda>()
51 private interface ExtractCB : (ColorScheme) -> Int in <lambda>()
58 @Mock private lateinit var colorScheme: ColorScheme in <lambda>()
/frameworks/libs/systemui/monet/tests/com/android/systemui/monet/
DColorSchemeTest.kt22 import com.android.systemui.monet.ColorScheme.GOOGLE_BLUE in <lambda>()
110 val colorScheme = ColorScheme(sourceColor.toInt(), false, styleValue) in generateThemeStyles()
142 val colorScheme = ColorScheme(GOOGLE_BLUE, false) in generateDefaultValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java79 import com.android.systemui.monet.ColorScheme;
140 protected ColorScheme mColorScheme;
166 private ColorScheme mDarkColorScheme;
167 private ColorScheme mLightColorScheme;
262 List<Integer> seedColors = ColorScheme.getSeedColors(newWallpaperColors); in isSeedColorSet()
573 return ColorScheme.getSeedColor(wallpaperColors); in getNeutralColor()
577 return ColorScheme.getSeedColor(wallpaperColors); in getAccentColor()
598 mDarkColorScheme = new ColorScheme(color, true /* isDark */, mThemeStyle, mContrast); in createOverlays()
599 mLightColorScheme = new ColorScheme(color, false /* isDark */, mThemeStyle, mContrast); in createOverlays()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/chart/
DBarChart.kt29 import androidx.compose.material3.ColorScheme in <lambda>()
202 colorScheme: ColorScheme in updateBarChartWithData()
DLineChart.kt29 import androidx.compose.material3.ColorScheme in <lambda>()
192 colorScheme: ColorScheme, in updateLineChartWithData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanel.java114 import com.android.systemui.monet.ColorScheme;
899 ColorScheme mutableColorScheme = null; in bindArtworkAndColors()
905 mutableColorScheme = new ColorScheme(wallpaperColors, true, Style.CONTENT); in bindArtworkAndColors()
916 mutableColorScheme = new ColorScheme(WallpaperColors.fromDrawable(icon), true, in bindArtworkAndColors()
923 final ColorScheme colorScheme = mutableColorScheme; in bindArtworkAndColors()
1005 ColorScheme mutableColorScheme = null; in bindRecommendationArtwork()
1010 mutableColorScheme = new ColorScheme(wallpaperColors, true, Style.CONTENT); in bindRecommendationArtwork()
1071 ColorScheme mutableColorScheme, int width, int height) { in addGradientToPlayerAlbum()
1081 ColorScheme mutableColorScheme, int width, int height) { in addGradientToRecommendationAlbum()
1095 ColorScheme mutableColorScheme, float startAlpha, float endAlpha) { in setupGradientColorOnDrawable()
[all …]
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/shade/ui/composable/
DShadeHeader.kt39 import androidx.compose.material3.ColorScheme in <lambda>()
111 val ColorScheme.shadeHeaderText: Color in <lambda>() constant
113 val ColorScheme.onScrimDim: Color in <lambda>() constant
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DMaximizeMenu.kt55 import androidx.compose.material3.ColorScheme in <lambda>()
497 colorScheme: ColorScheme in createMaximizeDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/binder/
DMediaControlViewBinder.kt58 import com.android.systemui.monet.ColorScheme in <lambda>()
516 mutableColorScheme: ColorScheme, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/
DKeyguardPreviewRenderer.kt79 import com.android.systemui.monet.ColorScheme in <lambda>()
640 val wallpaperColorScheme = ColorScheme(colors, false, style) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputController.java89 import com.android.systemui.monet.ColorScheme;
560 ColorScheme mCurrentColorScheme = new ColorScheme(wallpaperColors, in setCurrentColorScheme()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanelTest.kt88 import com.android.systemui.monet.ColorScheme in <lambda>()
710 val redColorScheme = ColorScheme(redWallpaperColor, true, Style.CONTENT) in <lambda>()
715 val greenColorScheme = ColorScheme(greenWallpaperColor, true, Style.CONTENT) in <lambda>()
2373 val redColorScheme = ColorScheme(redWallpaperColor, true, Style.CONTENT) in <lambda>()
2378 val greenColorScheme = ColorScheme(greenWallpaperColor, true, Style.CONTENT) in <lambda>()