Home
last modified time | relevance | path

Searched refs:toArgb (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/chart/
DPieChart.kt34 import androidx.compose.ui.graphics.toArgb in <lambda>()
59 ColorPalette.blue.toArgb(),
60 ColorPalette.red.toArgb(),
61 ColorPalette.yellow.toArgb(),
62 ColorPalette.green.toArgb(),
63 ColorPalette.orange.toArgb(),
64 ColorPalette.cyan.toArgb(),
65 Color.Blue.toArgb()
102 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in PieChart()
120 this.setHoleColor(Color.Transparent.toArgb()) in PieChart()
[all …]
DBarChart.kt35 import androidx.compose.ui.graphics.toArgb in <lambda>()
123 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in BarChart()
171 gridColor = colorScheme.divider.toArgb() in BarChart()
209 colors = colorList.map(Color::toArgb) in updateBarChartWithData()
212 highLightColor = colorScheme.primary.toArgb() in updateBarChartWithData()
DLineChart.kt34 import androidx.compose.ui.graphics.toArgb in <lambda>()
135 val labelTextColor = colorScheme.onSurfaceVariant.toArgb() in LineChart()
162 this.axisRight.gridColor = colorScheme.divider.toArgb() in LineChart()
202 ds.colors = arrayListOf(colorScheme.primary.toArgb()) in updateLineChartWithData()
210 ds.fillColor = colorScheme.primary.toArgb() in updateLineChartWithData()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
DAppHeaderViewHolder.kt35 import androidx.compose.ui.graphics.toArgb
263 HeaderStyle.Background.Opaque(lightColors.secondaryContainer.toArgb()) in getHeaderBackground()
265 HeaderStyle.Background.Opaque(lightColors.surfaceContainerLow.toArgb()) in getHeaderBackground()
270 HeaderStyle.Background.Opaque(darkColors.surfaceContainerHigh.toArgb()) in getHeaderBackground()
272 HeaderStyle.Background.Opaque(darkColors.surfaceDim.toArgb()) in getHeaderBackground()
288 color = lightColors.onSecondaryContainer.toArgb(), in getHeaderForeground()
293 color = lightColors.onSecondaryContainer.toArgb(), in getHeaderForeground()
301 color = darkColors.onSurface.toArgb(), in getHeaderForeground()
306 color = darkColors.onSurface.toArgb(), in getHeaderForeground()
316 color = lightColors.onSecondaryContainer.toArgb(), in getHeaderForeground()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DMaximizeMenu.kt56 import androidx.compose.ui.graphics.toArgb in <lambda>()
423 val menuBackgroundColor = colorScheme.surfaceContainerLow.toArgb() in calculateMenuStyle()
426 textColor = colorScheme.onSurface.toArgb(), in calculateMenuStyle()
431 inactiveSnapSideColor = colorScheme.outlineVariant.toArgb(), in calculateMenuStyle()
432 semiActiveSnapSideColor = colorScheme.primary.toArgb().withAlpha(OPACITY_40), in calculateMenuStyle()
433 activeSnapSideColor = colorScheme.primary.toArgb(), in calculateMenuStyle()
434 inactiveStrokeColor = colorScheme.outlineVariant.toArgb(), in calculateMenuStyle()
435 activeStrokeColor = colorScheme.primary.toArgb(), in calculateMenuStyle()
437 activeBackgroundColor = colorScheme.primary.toArgb().withAlpha(OPACITY_12) in calculateMenuStyle()
499 val activeStrokeAndFill = colorScheme.primary.toArgb() in createMaximizeDrawable()
[all …]
DResizeVeil.kt40 import androidx.compose.ui.graphics.toArgb in <lambda>()
211 .setColor(background, Color.valueOf(backgroundColor.toArgb()).components) in showVeil()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryDrawableState.kt109 override val bg: Int = Color.valueOf(1f, 1f, 1f, 0.22f).toArgb()
128 override val bg: Int = Color.valueOf(0f, 0f, 0f, 0.18f).toArgb()
/frameworks/native/libs/bufferstreams/examples/app/java/com/android/graphics/bufferstreamsdemoapp/ui/
DTheme.kt13 import androidx.compose.ui.graphics.toArgb
50 window.statusBarColor = colorScheme.primary.toArgb() in JetpackTheme()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/
DSystemUiController.kt31 import androidx.compose.ui.graphics.toArgb in <lambda>()
220 }.toArgb() in setStatusBarColor()
241 }.toArgb() in setNavigationBarColor()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java143 return mColor.toArgb(); in getInt()
173 return mPopulation == swatch.mPopulation && mColor.toArgb() == swatch.mColor.toArgb(); in equals()
178 return 31 * mColor.toArgb() + mPopulation; in hashCode()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
DLottie.kt26 import androidx.compose.ui.graphics.toArgb in <lambda>()
68 val color = colorResource(colorRes).toArgb() in getDefaultPropertiesList()
/frameworks/base/core/java/android/app/
DWallpaperColors.java272 ColorUtils.colorToHSL(primaryColor.toArgb(), tmpHsl); in WallpaperColors()
300 mAllColors.put(primaryColor.toArgb(), 0); in WallpaperColors()
303 mAllColors.put(secondaryColor.toArgb(), 0); in WallpaperColors()
311 mAllColors.put(tertiaryColor.toArgb(), 0); in WallpaperColors()
450 dest.writeInt(color.toArgb()); in writeToParcel()
645 colors.append(Integer.toHexString(mMainColors.get(i).toArgb())).append(" "); in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DDeviceEntryIconViewBinder.kt26 import androidx.compose.ui.graphics.toArgb in <lambda>()
176 ColorStateList.valueOf(overrideColor?.toArgb() ?: viewModel.tint) in <lambda>()
/frameworks/native/services/inputflinger/reader/controller/
DPeripheralController.cpp46 static inline int32_t toArgb(int32_t brightness, int32_t red, int32_t green, int32_t blue) { in toArgb() function
161 return toArgb(brightness.value(), /*red=*/0, /*green=*/0, /*blue=*/0); in getLightColor()
196 return toArgb(brightness, red, green, blue); in getLightColor()
206 int32_t color = toArgb(/*brightness=*/0, intensities.at(LightColor::RED), in getLightColor()
211 return toArgb(/*brightness=*/brightness.value(), 0, 0, 0) | color; in getLightColor()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/
DFloatingRotationButtonView.java86 Color.green(darkColor), Color.blue(darkColor), BACKGROUND_ALPHA).toArgb(); in setColors()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDragLayout.java280 int bgColor1 = getResizingBackgroundColor(taskInfo1).toArgb(); in prepare()
300 int topOrLeftColor = getResizingBackgroundColor(topOrLeftTask).toArgb(); in prepare()
303 int bottomOrRightColor = getResizingBackgroundColor(bottomOrRightTask).toArgb(); in prepare()
/frameworks/base/graphics/java/android/graphics/
DColor.java470 public int toArgb() { in toArgb() method in Color
841 public static int toArgb(@ColorLong long color) { in toArgb() method in Color
/frameworks/libs/systemui/monet/src/com/android/systemui/monet/
DColorScheme.java222 .map(Color::toArgb) in getSeedColors()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java323 return mState.mOvalBackgroundColor.toArgb(); in getDrawableBackgroundColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java319 return mState.mOvalBackgroundColor.toArgb(); in getDrawableBackgroundColor()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/
DCommunalContainer.kt267 modifier = Modifier.matchParentSize().background(Color(backgroundColor.toArgb())), in BoxScope()
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java128 int colorValue = bestColor.toArgb(); in runTonalExtraction()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DDividerPresenterTest.java626 new ColorDrawable(activityBackgroundColor.toArgb()); in testGetContainerBackgroundColor()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingGroup.java248 alpha).toArgb(); in calculateSendingTextColor()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDataParser.java545 out.attributeInt(null, "colorValue" + i, wc.toArgb()); in writeWallpaperAttributes()

12