Home
last modified time | relevance | path

Searched refs:Color (Results 1 – 25 of 359) sorted by relevance

12345678910>>...15

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/theme/
DWearPermissionTonalPalette.kt11 import androidx.compose.ui.graphics.Color
28 val neutral100: Color,
29 val neutral99: Color,
30 val neutral95: Color,
31 val neutral90: Color,
32 val neutral80: Color,
33 val neutral70: Color,
34 val neutral60: Color,
35 val neutral50: Color,
36 val neutral40: Color,
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/
DFakeColorPickerRepository.kt20 import android.graphics.Color in <lambda>()
150 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
152 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
166 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
168 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
182 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
184 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
198 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
200 intArrayOf(Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT, Color.TRANSPARENT) in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/theme/
DAccentColorHelper.kt22 import androidx.compose.ui.graphics.Color
39 private var accentColor = Color.Unspecified
41 private var textColorForAccentComponents = Color.Unspecified
63 if (accentColor != Color.Unspecified) { in <lambda>()
64 textColorForAccentComponents = Color( in <lambda>()
65 android.graphics.Color.parseColor( in <lambda>()
83 private fun checkColorValidityAndGetColor(color: Long): Color { in checkColorValidityAndGetColor()
87 val inputColor = android.graphics.Color.parseColor(hexColor) in checkColorValidityAndGetColor()
88 if (!isColorFeasibleForBothBackgrounds(Color(inputColor).luminance())) { in checkColorValidityAndGetColor()
89 return Color.Unspecified in checkColorValidityAndGetColor()
[all …]
DAccentColorScheme.kt20 import androidx.compose.ui.graphics.Color
46 fun getAccentColorIfDefinedOrElse(fallbackColor: Color): Color { in getAccentColorIfDefinedOrElse()
62 fun getTextColorForAccentComponentsIfDefinedOrElse(fallbackColor: Color): Color { in getTextColorForAccentComponentsIfDefinedOrElse()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModelTest.kt27 import android.graphics.Color
295 Color.valueOf(Color.RED), in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
296 Color.valueOf(Color.GREEN), in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
297 Color.valueOf(Color.BLUE) in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
330 Color.valueOf(Color.CYAN), in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
331 Color.valueOf(Color.MAGENTA), in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
332 Color.valueOf(Color.YELLOW) in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
364 Color.valueOf(Color.RED), in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
365 Color.valueOf(Color.GREEN), in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
366 Color.valueOf(Color.BLUE) in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DParameterColor.java19 import android.graphics.Color;
32 Color.RED & 0x80FFFFFF,
33 Color.GREEN & 0x80FFFFFF,
34 Color.BLUE & 0x80FFFFFF,
35 Color.BLACK & 0x80FFFFFF,
36 Color.WHITE & 0x80FFFFFF
41 Color.colorToHSV(defaultColor, mHSVO); in ParameterColor()
52 mValue = Color.HSVToColor((int) (hsvo[3] * 255), mHSVO); in setColor()
90 Color.colorToHSV(mValue, mHSVO); in setValue()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java26 import android.graphics.Color;
148 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, in setColorScaleOnMatrix()
149 Color.blue(color) / 255f, Color.alpha(color) / 255f); in setColorScaleOnMatrix()
165 target.getArray()[4] = Color.red(dstColor) - Color.red(srcColor); in setColorChangeOnMatrix()
166 target.getArray()[9] = Color.green(dstColor) - Color.green(srcColor); in setColorChangeOnMatrix()
167 target.getArray()[14] = Color.blue(dstColor) - Color.blue(srcColor); in setColorChangeOnMatrix()
168 target.getArray()[19] = Color.alpha(dstColor) - Color.alpha(srcColor); in setColorChangeOnMatrix()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DTopLevelIconTest.java32 import android.graphics.Color;
51 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in createIcon_shouldSetBackgroundAndInset()
59 TopLevelIcon icon = spy(new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK))); in setBackgroundColor_shouldUpdateTintList()
62 icon.setBackgroundColor(Color.BLUE); in setBackgroundColor_shouldUpdateTintList()
71 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithBackgroundColorRawValue_shouldSetColor()
80 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
91 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in injectedPreferenceWithBackgroundColorHintValue_shouldSetColor()
100 TopLevelIcon icon = new TopLevelIcon(mContext, new ColorDrawable(Color.BLACK)); in getConstantState_returnCorrectState()
101 icon.setBackgroundColor(Color.YELLOW); in getConstantState_returnCorrectState()
106 assertThat(state.mColor).isEqualTo(Color.YELLOW); in getConstantState_returnCorrectState()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/theme/
DAccentColorHelperTest.kt21 import androidx.compose.ui.graphics.Color
54 assertThat(accentColorHelperPickImagesMode.getAccentColor()).isNotEqualTo(Color.Unspecified) in testAccentColorHelper_differentIntentActions_accentColorsNotSet()
92 .isNotEqualTo(Color.Unspecified) in testAccentColorHelper_validInputColor_accentColorsSet()
112 .isNotEqualTo(Color.Unspecified) in testAccentColorHelper_textColorForDifferentLuminance_changesAccordingly()
117 Color.White, in testAccentColorHelper_textColorForDifferentLuminance_changesAccordingly()
126 .isNotEqualTo(Color.Unspecified) in testAccentColorHelper_textColorForDifferentLuminance_changesAccordingly()
131 Color.Black, in testAccentColorHelper_textColorForDifferentLuminance_changesAccordingly()
135 private fun createColorFromLongFormat(color: Long): Color { in createColorFromLongFormat()
139 val inputColor = android.graphics.Color.parseColor(hexColor) in createColorFromLongFormat()
140 return Color(inputColor) in createColorFromLongFormat()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/touch/
DTouchPointView.java21 import android.graphics.Color;
41 Color.RED,
42 Color.GREEN,
43 Color.BLUE,
44 Color.YELLOW,
45 Color.MAGENTA,
46 Color.BLACK,
47 Color.DKGRAY
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
DAbstractTouchPointView.java21 import android.graphics.Color;
42 Color.RED,
43 Color.GREEN,
44 Color.BLUE,
45 Color.YELLOW,
46 Color.MAGENTA,
47 Color.BLACK,
48 Color.DKGRAY
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerAccentColorParameters.java21 import android.graphics.Color;
44 mAccentColorLuminance = Color.luminance(color); in PickerAccentColorParameters()
63 ? Color.parseColor(darkThemeVariant) : Color.parseColor(lightThemeVariant); in getThemeBasedColor()
82 int inputColor = Color.parseColor(hexColor); in checkColorValidityAndGetColor()
98 float luminance = Color.luminance(color); in isColorFeasibleForBothBackgrounds()
/packages/apps/Settings/src/com/android/settings/accessibility/
DColorPreference.java20 import android.graphics.Color;
65 return Color.alpha(getValue()) == 0 || super.shouldDisableDependents(); in shouldDisableDependents()
77 final int r = Color.red(value); in getTitleAt()
78 final int g = Color.green(value); in getTitleAt()
79 final int b = Color.blue(value); in getTitleAt()
90 if (Color.alpha(argb) < 255) { in onBindViewHolder()
117 final int alpha = Color.alpha(argb); in onBindListItem()
DCaptionUtils.java19 import android.graphics.Color;
37 colorValue = Color.TRANSPARENT; in parseColor()
78 value = 0x00FFFF00 | Color.alpha(opacityValue); in mergeColorOpacity()
79 } else if (colorValue == Color.TRANSPARENT) { in mergeColorOpacity()
81 value = Color.alpha(opacityValue); in mergeColorOpacity()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DListHeader.kt35 import androidx.compose.ui.graphics.Color
60 backgroundColor: Color = Color.Transparent, in ListHeader()
61 contentColor: Color = MaterialTheme.colors.onBackground, in ListHeader()
96 backgroundColor: Color = Color.Transparent, in ListSubheader()
97 contentColor: Color = MaterialTheme.colors.onBackground, in ListSubheader()
DChip.kt32 import androidx.compose.ui.graphics.Color
66 textColor: Color = MaterialTheme.colors.onSurface, in Chip()
67 iconColor: Color = Color.Unspecified, in Chip()
142 textColor: Color = MaterialTheme.colors.onSurface, in Chip()
143 iconColor: Color = Color.Unspecified, in Chip()
179 textColor: Color = MaterialTheme.colors.onSurface, in Chip()
180 secondaryTextColor: Color = MaterialTheme.colors.primary, in Chip()
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DWallpaperModelUtils.kt22 import android.graphics.Color
47 Color.valueOf(Color.RED),
48 Color.valueOf(Color.GREEN),
49 Color.valueOf(Color.BLUE)
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/data/
DDockAppItemTest.kt19 import android.graphics.Color
102 val item1: DockAppItem = TestUtils.createAppItem(id = id, iconColor = Color.WHITE) in compareAppItems_notEqual_differentIconColor()
103 val item2: DockAppItem = TestUtils.createAppItem(id = id, iconColor = Color.BLACK) in compareAppItems_notEqual_differentIconColor()
113 iconColor = Color.WHITE, in compareAppItems_notEqual_differentIconColorScrim()
114 iconColorScrim = Color.argb( in compareAppItems_notEqual_differentIconColorScrim()
123 iconColor = Color.WHITE, in compareAppItems_notEqual_differentIconColorScrim()
124 iconColorScrim = Color.argb( in compareAppItems_notEqual_differentIconColorScrim()
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/task/thumbnail/
DTaskThumbnailViewModelTest.kt22 import android.graphics.Color
96 .isEqualTo(BackgroundOnly(backgroundColor = Color.rgb(2, 2, 2))) in bindRunningTaskThenStoppedTaskWithoutThumbnail_thenStateChangesToBackgroundOnly()
106 .isEqualTo(BackgroundOnly(backgroundColor = Color.rgb(2, 2, 2))) in <lambda>()
118 .isEqualTo(BackgroundOnly(backgroundColor = Color.rgb(2, 2, 2))) in <lambda>()
133 backgroundColor = Color.rgb(2, 2, 2), in <lambda>()
149 .isEqualTo(BackgroundOnly(backgroundColor = Color.rgb(2, 2, 2))) in <lambda>()
154 backgroundColor = Color.rgb(2, 2, 2), in <lambda>()
163 colorBackground = Color.argb(taskId, taskId, taskId, taskId) in createTaskWithId()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DFadeBackground.java23 import android.graphics.Color;
60 Color.argb(0, Color.red(color), Color.green(color), Color.blue(color)); in createAnimator()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java22 import android.graphics.Color;
52 int r = Color.red(pixels[index]); in doInBackground()
53 int g = Color.green(pixels[index]); in doInBackground()
54 int b = Color.blue(pixels[index]); in doInBackground()
140 drawHistogram(canvas, redHistogram, Color.RED, PorterDuff.Mode.SCREEN); in onDraw()
141 drawHistogram(canvas, greenHistogram, Color.GREEN, PorterDuff.Mode.SCREEN); in onDraw()
142 drawHistogram(canvas, blueHistogram, Color.BLUE, PorterDuff.Mode.SCREEN); in onDraw()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DDoubleShadowBubbleTextView.java24 import android.graphics.Color;
59 int alpha = Color.alpha(getCurrentTextColor()); in onDraw()
109 int textAlpha = Color.alpha(textView.getCurrentTextColor()); in skipDoubleShadow()
110 int keyShadowAlpha = Color.alpha(keyShadowColor); in skipDoubleShadow()
111 int ambientShadowAlpha = Color.alpha(ambientShadowColor); in skipDoubleShadow()
135 Math.round(Color.alpha(shadowColor) * textAlpha / 255f)); in getTextShadowColor()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ui/
DThemeUiTest.java22 import android.graphics.Color;
52 Color.WHITE); in themeNightModeDisable_actionBarColorShouldBeLight()
71 Color.WHITE); in themeNightModeDisable_navigationBarColorShouldBeLight()
78 Color.WHITE); in themeNightModeDisable_windowBackgroundColorShouldBeLight()
85 Color.WHITE); in themeNightModeDisable_statusBarColorShouldBeLight()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/ui/composable/
DShareouselCardComposable.kt32 import androidx.compose.ui.graphics.Color
72 tint = Color.White, in TypeIcon()
88 spotColor = Color(0x40000000), in SelectionIcon()
89 ambientColor = Color(0x40000000) in SelectionIcon()
102 spotColor = Color(0x40000000), in SelectionIcon()
103 ambientColor = Color(0x40000000), in SelectionIcon()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DCanvasView.java21 import android.graphics.Color;
66 mPaint.setColor(Color.WHITE); in onDraw()
69 mPaint.setColor(Color.GRAY); in onDraw()
76 mPaint.setColor(Color.GRAY); in onDraw()
97 mPointPaint.setColor(Color.BLUE); in onDraw()
103 mPointPaint.setColor(Color.RED); in onDraw()
109 mPointPaint.setColor(Color.BLUE); in onDraw()

12345678910>>...15