Home
last modified time | relevance | path

Searched refs:parseColor (Results 1 – 25 of 32) sorted by relevance

12

/external/accompanist/themeadapter-material3/src/main/java/com/google/accompanist/themeadapter/material3/
DMdc3Theme.kt42 import com.google.accompanist.themeadapter.core.parseColor in <lambda>()
190 val primary = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorPrimary) in createMdc3Theme()
191 val onPrimary = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorOnPrimary) in createMdc3Theme()
192 … val primaryInverse = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorPrimaryInverse) in createMdc3Theme()
193 … val primaryContainer = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorPrimaryContainer) in createMdc3Theme()
194 …val onPrimaryContainer = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorOnPrimaryContai… in createMdc3Theme()
195 val secondary = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorSecondary) in createMdc3Theme()
196 val onSecondary = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorOnSecondary) in createMdc3Theme()
197 …val secondaryContainer = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorSecondaryContai… in createMdc3Theme()
198 …val onSecondaryContainer = ta.parseColor(R.styleable.ThemeAdapterMaterial3Theme_colorOnSecondaryCo… in createMdc3Theme()
[all …]
/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
DShadowNativeColorTest.java30 assertThat(Color.parseColor("#ffffffff")).isEqualTo(-1); in testParseColor()
31 assertThat(Color.parseColor("#00000000")).isEqualTo(0); in testParseColor()
33 assertThat(Color.parseColor("#ffaabbcc")).isEqualTo(-5588020); in testParseColor()
38 assertThat(Color.parseColor("blue")).isEqualTo(-16776961); in testParseColorWithStringName()
39 assertThat(Color.parseColor("black")).isEqualTo(-16777216); in testParseColorWithStringName()
40 assertThat(Color.parseColor("green")).isEqualTo(-16711936); in testParseColorWithStringName()
/external/robolectric/integration_tests/ctesque/src/sharedTest/java/android/graphics/
DColorTest.java26 assertThat(Color.parseColor("#ffffffff")).isEqualTo(-1); in testParseColor()
27 assertThat(Color.parseColor("#00000000")).isEqualTo(0); in testParseColor()
29 assertThat(Color.parseColor("#ffaabbcc")).isEqualTo(-5588020); in testParseColor()
34 assertThat(Color.parseColor("blue")).isEqualTo(-16776961); in testParseColorWithStringName()
35 assertThat(Color.parseColor("black")).isEqualTo(-16777216); in testParseColorWithStringName()
36 assertThat(Color.parseColor("green")).isEqualTo(-16711936); in testParseColorWithStringName()
/external/accompanist/themeadapter-material/src/main/java/com/google/accompanist/themeadapter/material/
DMdcTheme.kt44 import com.google.accompanist.themeadapter.core.parseColor in <lambda>()
199 val primary = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorPrimary) in createMdcTheme()
200 … val primaryVariant = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorPrimaryVariant) in createMdcTheme()
201 val onPrimary = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorOnPrimary) in createMdcTheme()
202 val secondary = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorSecondary) in createMdcTheme()
203 … val secondaryVariant = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorSecondaryVariant) in createMdcTheme()
204 val onSecondary = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorOnSecondary) in createMdcTheme()
205 … val background = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_android_colorBackground) in createMdcTheme()
206 … val onBackground = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorOnBackground) in createMdcTheme()
207 val surface = ta.parseColor(R.styleable.ThemeAdapterMaterialTheme_colorSurface) in createMdcTheme()
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dcolor-handler.js21 function parseColor(string) { function
52 scope.addPropertiesHandler(parseColor, mergeColors,
56 scope.consumeColor = scope.consumeParenthesised.bind(null, parseColor);
60 testing.parseColor = parseColor;
/external/accompanist/themeadapter-appcompat/src/main/java/com/google/accompanist/themeadapter/appcompat/
DAppCompatTheme.kt36 import com.google.accompanist.themeadapter.core.parseColor in <lambda>()
187 val primary = ta.parseColor(R.styleable.ThemeAdapterAppCompatTheme_colorPrimary) in createAppCompatTheme()
190 ta.parseColor(R.styleable.ThemeAdapterAppCompatTheme_colorPrimaryDark) in createAppCompatTheme()
194 val secondary = ta.parseColor(R.styleable.ThemeAdapterAppCompatTheme_colorAccent) in createAppCompatTheme()
201 val textColorPrimary = ta.parseColor( in createAppCompatTheme()
212 ta.parseColor(R.styleable.ThemeAdapterAppCompatTheme_android_colorBackground) in createAppCompatTheme()
215 val error = ta.parseColor(R.styleable.ThemeAdapterAppCompatTheme_colorError) in createAppCompatTheme()
/external/skia/modules/canvaskit/tests/
Dcanvas2d_test.js31 const parseColor = CanvasKit.parseColorString; constant
32 expectColorCloseTo(parseColor('#FED'),
34 expectColorCloseTo(parseColor('#FEDC'),
36 expectColorCloseTo(parseColor('#fed'),
38 expectColorCloseTo(parseColor('#fedc'),
42 const parseColor = CanvasKit.parseColorString; constant
43 expectColorCloseTo(parseColor('rgba(117, 33, 64, 0.75)'),
45 expectColorCloseTo(parseColor('rgb(117, 33, 64, 0.75)'),
47 expectColorCloseTo(parseColor('rgba(117,33,64)'),
49 expectColorCloseTo(parseColor('rgb(117,33, 64)'),
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/util/
DColorParserTest.java22 import static android.graphics.Color.parseColor;
66 assertThat(parseTtmlColor("#123456")).isEqualTo(parseColor("#FF123456")); in hexCodeParsing()
68 assertThat(parseTtmlColor("#FFFFFF00")).isEqualTo(parseColor("#00FFFFFF")); in hexCodeParsing()
69 assertThat(parseTtmlColor("#12345678")).isEqualTo(parseColor("#78123456")); in hexCodeParsing()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/util/
DColorParserTest.java22 import static android.graphics.Color.parseColor;
63 assertThat(parseTtmlColor("#123456")).isEqualTo(parseColor("#FF123456")); in hexCodeParsing()
65 assertThat(parseTtmlColor("#FFFFFF00")).isEqualTo(parseColor("#00FFFFFF")); in hexCodeParsing()
66 assertThat(parseTtmlColor("#12345678")).isEqualTo(parseColor("#78123456")); in hexCodeParsing()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/tracking/
DMultiBoxTracker.java63 Color.parseColor("#55FF55"), Color.parseColor("#FFA500"), Color.parseColor("#FF8888"),
64 Color.parseColor("#AAAAFF"), Color.parseColor("#FFFFAA"), Color.parseColor("#55AAAA"),
65 Color.parseColor("#AA33AA"), Color.parseColor("#0D0068")
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapTest.java133 Color.parseColor("#ff0000"), Color.parseColor("#00ff00"), Color.parseColor("#0000ff"), in shouldCreateBitmapWithColors()
134 Color.parseColor("#990000"), Color.parseColor("#009900"), Color.parseColor("#000099") in shouldCreateBitmapWithColors()
140 assertThat(bitmap.getPixel(0, 0)).isEqualTo(Color.parseColor("#ff0000")); in shouldCreateBitmapWithColors()
141 assertThat(bitmap.getPixel(0, 1)).isEqualTo(Color.parseColor("#990000")); in shouldCreateBitmapWithColors()
142 assertThat(bitmap.getPixel(1, 0)).isEqualTo(Color.parseColor("#00ff00")); in shouldCreateBitmapWithColors()
143 assertThat(bitmap.getPixel(1, 1)).isEqualTo(Color.parseColor("#009900")); in shouldCreateBitmapWithColors()
144 assertThat(bitmap.getPixel(2, 0)).isEqualTo(Color.parseColor("#0000ff")); in shouldCreateBitmapWithColors()
145 assertThat(bitmap.getPixel(2, 1)).isEqualTo(Color.parseColor("#000099")); in shouldCreateBitmapWithColors()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DAnimatableTextPropertiesParser.java119 color = AnimatableValueParser.parseColor(reader, composition); in parseAnimatableTextStyle()
122 stroke = AnimatableValueParser.parseColor(reader, composition); in parseAnimatableTextStyle()
DShapeFillParser.java43 color = AnimatableValueParser.parseColor(reader, composition); in parse()
DDropShadowEffectParser.java61 color = AnimatableValueParser.parseColor(reader, composition); in maybeParseInnerEffect()
DShapeStrokeParser.java58 color = AnimatableValueParser.parseColor(reader, composition); in parse()
DAnimatableValueParser.java61 static AnimatableColorValue parseColor( in parseColor() method in AnimatableValueParser
/external/skia/modules/canvaskit/htmlcanvas/
Dcolor.js184 function parseColor(colorStr) { function
188 CanvasKit._testing['parseColor'] = parseColor;
Dlineargradient.js12 color = parseColor(color);
Dradialgradient.js15 color = parseColor(color);
/external/accompanist/themeadapter-core/src/main/java/com/google/accompanist/themeadapter/core/
DResourceUtils.kt68 public fun TypedArray.parseColor( in <lambda>() method
111 a.parseColor(R.styleable.ThemeAdapterTextAppearance_android_textColor) in <lambda>()
155 … val shadowColor = a.parseColor(R.styleable.ThemeAdapterTextAppearance_android_shadowColor) in <lambda>()
/external/setupdesign/lottie_loading_layout/src/com/google/android/setupdesign/util/
DLottieAnimationHelper.java102 new KeyPath("**", splitItem[0], "**"), Color.parseColor(splitItem[1])); in parseColorMapping()
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/extractor/src/main/java/com/google/android/exoplayer2/text/ssa/
DSsaStyle.java139 ? parseColor(styleValues[format.primaryColorIndex].trim()) in fromStyleLine()
203 public static Integer parseColor(String ssaColorExpression) { in parseColor() method in SsaStyle
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/extractor/src/main/java/com/google/android/exoplayer2/text/ssa/
DSsaStyle.java142 ? parseColor(styleValues[format.primaryColorIndex].trim()) in fromStyleLine()
205 public static Integer parseColor(String ssaColorExpression) { in parseColor() method in SsaStyle
/external/accompanist/themeadapter-core/api/
Dcurrent.api16 …method @Deprecated public static long parseColor(android.content.res.TypedArray, int index, option…
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/xy/
DXYPlotTest.java475 assertEquals(Color.parseColor(param3), plot.getBackgroundPaint().getColor()); in testConfigure()
476 … assertEquals(Color.parseColor(param3), plot.getGraphWidget().getDomainLabelPaint().getColor()); in testConfigure()

12