/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
NotificationTemplateViewWrapper.java | 21 import android.graphics.Color; 199 int color = interpolateColor(mColor, mDarkProgressTint, intensity); local 200 target.getIndeterminateDrawable().mutate().setTint(color); 201 target.getProgressDrawable().mutate().setTint(color); 219 int aSource = Color.alpha(source); 220 int rSource = Color.red(source); 221 int gSource = Color.green(source); 222 int bSource = Color.blue(source); 223 int aTarget = Color.alpha(target); 224 int rTarget = Color.red(target) [all...] |
/frameworks/native/services/surfaceflinger/Effects/ |
Daltonizer.cpp | 52 // converts a linear RGB color to the XYZ space 58 // converts a XYZ color to the LMS space. 70 // To simulate color blindness we need to "remove" the data lost by the absence of 72 // because it would create a color outside of the RGB gammut. 73 // Instead we project the color along the axis of the missing component onto a plane 76 // color blind viewer perceives the projected color the same. 93 // The following 3 matrices perform the projection of a LMS color onto the given plane 114 // We will calculate the error between the color and the color viewed b [all...] |
/frameworks/support/v4/tests/java/android/support/v4/content/ |
ContextCompatTest.java | 50 assertEquals("Unthemed color load", 0xFFFF8090, 51 ContextCompat.getColor(mContext, R.color.text_color)); 56 assertEquals("Themed yellow color load", 57 ContextCompat.getColor(mContext, R.color.simple_themed_selector), 65 ContextCompat.getColorStateList(mContext, R.color.complex_unthemed_selector); 66 assertEquals("Unthemed color state list load: default", 0xFF70A0C0, 68 assertEquals("Unthemed color state list load: focused", 0xFF70B0F0, 71 assertEquals("Unthemed color state list load: pressed", 0xFF6080B0, 79 ContextCompat.getColorStateList(mContext, R.color.complex_themed_selector); 80 assertEquals("Themed yellow color state list load: default", 0xFFF0B000 [all...] |
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/ |
Palette.java | 20 import android.graphics.Color; 241 * Returns the most vibrant color in the palette as an RGB packed int. 252 * Returns a light and vibrant color from the palette as an RGB packed int. 263 * Returns a dark and vibrant color from the palette as an RGB packed int. 274 * Returns a muted color from the palette as an RGB packed int. 285 * Returns a muted and light color from the palette as an RGB packed int. 296 * Returns a muted and dark color from the palette as an RGB packed int. 316 * Returns the selected color for the given target from the palette as an RGB packed int. 341 // If we have a swatch, and the target is exclusive, add the color to the used list 364 // Check whether the HSL values are within the correct ranges, and this color hasn' [all...] |
/prebuilts/go/darwin-x86/src/image/color/palette/ |
gen.go | 37 fmt.Fprintln(&buf, `import "image/color"`) 81 fmt.Fprintln(w, "// Plan9 is a 256-color palette that partitions the 24-bit RGB space") 83 fmt.Fprintln(w, "// WebSafe, the idea is to reduce the color resolution by dicing the") 84 fmt.Fprintln(w, "// color cube into fewer cells, and to use the extra space to increase the") 86 fmt.Fprintln(w, "// 4 samples in each), 13 shades of each primary and secondary color (3") 88 fmt.Fprintln(w, "// covering the rest of the color cube. The advantage is better representation") 92 fmt.Fprintln(w, "// http://plan9.bell-labs.com/magic/man2html/6/color") 93 fmt.Fprintln(w, "var Plan9 = []color.Color{") 111 fmt.Fprintln(w, "// WebSafe is a 216-color palette that was popularized by early versions" [all...] |
/prebuilts/go/linux-x86/src/image/color/palette/ |
gen.go | 37 fmt.Fprintln(&buf, `import "image/color"`) 81 fmt.Fprintln(w, "// Plan9 is a 256-color palette that partitions the 24-bit RGB space") 83 fmt.Fprintln(w, "// WebSafe, the idea is to reduce the color resolution by dicing the") 84 fmt.Fprintln(w, "// color cube into fewer cells, and to use the extra space to increase the") 86 fmt.Fprintln(w, "// 4 samples in each), 13 shades of each primary and secondary color (3") 88 fmt.Fprintln(w, "// covering the rest of the color cube. The advantage is better representation") 92 fmt.Fprintln(w, "// http://plan9.bell-labs.com/magic/man2html/6/color") 93 fmt.Fprintln(w, "var Plan9 = []color.Color{") 111 fmt.Fprintln(w, "// WebSafe is a 216-color palette that was popularized by early versions" [all...] |
/external/chromium-trace/catapult/third_party/polymer/components/paper-ripple/ |
demo.html | 29 background-color: #f9f9f9; 31 -webkit-tap-highlight-color: rgba(0,0,0,0); 52 background-color: #fff; 53 color: #646464; 66 background-color: #eee; 70 background-color: #4285f4; 71 color: #fff; 75 background-color: #0f9d58; 76 color: #fff; 111 color: #646464 [all...] |
/frameworks/support/v7/appcompat/res/values/ |
themes_base.xml | 29 <item name="android:colorForeground">@color/foreground_material_dark</item> 30 <item name="android:colorForegroundInverse">@color/foreground_material_light</item> 31 <item name="android:colorBackground">@color/background_material_dark</item> 32 <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item> 35 <item name="android:windowBackground">@color/background_material_dark</item> 38 <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item> 39 <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> 40 <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item> 41 <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item> 42 <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item [all...] |
/prebuilts/sdk/current/support/v7/appcompat/res/values/ |
themes_base.xml | 29 <item name="android:colorForeground">@color/foreground_material_dark</item> 30 <item name="android:colorForegroundInverse">@color/foreground_material_light</item> 31 <item name="android:colorBackground">@color/background_material_dark</item> 32 <item name="android:colorBackgroundCacheHint">@color/abc_background_cache_hint_selector_material_dark</item> 35 <item name="android:windowBackground">@color/background_material_dark</item> 38 <item name="android:textColorPrimary">@color/abc_primary_text_material_dark</item> 39 <item name="android:textColorPrimaryInverse">@color/abc_primary_text_material_light</item> 40 <item name="android:textColorPrimaryDisableOnly">@color/abc_primary_text_disable_only_material_dark</item> 41 <item name="android:textColorSecondary">@color/abc_secondary_text_material_dark</item> 42 <item name="android:textColorSecondaryInverse">@color/abc_secondary_text_material_light</item [all...] |
/external/zopfli/src/zopflipng/ |
zopflipng_lib.cc | 82 // Returns 32-bit integer value for RGBA color. 83 static unsigned ColorIndex(const unsigned char* color) { 84 return color[0] + 256u * color[1] + 65536u * color[1] + 16777216u * color[3]; 88 // is enabled, any color with alpha channel 0 is treated as a single color with 105 // First check if we want to preserve potential color-key background color, 247 LodePNGColorMode& color = teststate.info_png.color; local [all...] |
/frameworks/base/packages/SystemUI/res/values/ |
styles.xml | 23 <item name="android:statusBarColor">@android:color/transparent</item> 24 <item name="android:navigationBarColor">@android:color/transparent</item> 33 <item name="android:windowBackground">@color/transparent</item> 41 <item name="android:windowBackground">@android:color/black</item> 47 <item name="android:statusBarColor">@color/transparent</item> 80 <item name="android:textColor">@color/status_bar_clock_color</item> 112 <item name="android:textColor">@color/qs_user_detail_name</item> 120 <item name="android:textColor">@color/qs_text</item> 135 <item name="android:textColor">@color/system_accent_color</item> 144 <item name="android:textColor">@color/system_warning_color</item [all...] |
/packages/apps/Contacts/res/values/ |
styles.xml | 24 <item name="android:textColorPrimary">@color/primary_text_color</item> 25 <item name="android:textColorSecondary">@color/secondary_text_color</item> 32 <item name="android:colorButtonNormal">@color/background_primary</item> 39 <item name="android:windowBackground">@android:color/transparent</item> 66 <item name="android:textColorPrimary">@color/primary_text_color</item> 67 <item name="android:textColorSecondary">@color/secondary_text_color</item> 68 <item name="android:icon">@android:color/transparent</item> 70 <item name="android:windowBackground">@color/background_primary</item> 71 <item name="android:colorPrimaryDark">@color/primary_color_dark</item> 72 <item name="android:colorPrimary">@color/primary_color</item [all...] |
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/ |
UberColorPickerDialog.java | 25 * This color picker was implemented as a (significant) extension of the 40 import android.graphics.Color; 72 * Callback to the creator of the dialog, informing the creator of a new color and notifying that the dialog is about to dismiss. 75 void colorChanged(int color); 101 public void colorChanged(int color) { 102 mListener.colorChanged(color); 112 setTitle("Pick a color (try the trackball)"); 124 * ColorPickerView is the meat of this color picker (as opposed to the enclosing class). 127 * You can enable/disable whichever color chooser methods you want by modifying the ENABLED_METHODS switches. They *should* 130 * If you add a new color chooser method, do a text search for "NEW_METHOD_WORK_NEEDED_HERE". That tag indicates al 814 int color = Color.HSVToColor(mHSV); local [all...] |
/frameworks/native/opengl/tests/hwc/ |
hwcTestLib.cpp | 158 // Color fraction class to string conversion 301 // Parse fractional color of form [0.##, 0.##, 0.##] 307 ColorFract color; local 317 if (!in || ((chStart != '<') && (chStart != '['))) { return color; } 321 if (!in) { return color; } 322 if ((c1 < 0.0) || (c1 > 1.0)) { return color; } 324 if (!in || (ch != ',')) { return color; } 328 if (!in) { return color; } 329 if ((c2 < 0.0) || (c2 > 1.0)) { return color; } 331 if (!in || (ch != ',')) { return color; } [all...] |
/packages/apps/Messaging/res/values/ |
styles.xml | 35 <item name="colorPrimary">@color/action_bar_background_color</item> 36 <item name="colorPrimaryDark">@color/action_bar_background_color_dark</item> 37 <item name="colorAccent">@color/action_bar_background_color</item> 38 <item name="android:textColorHighlight">@color/text_highlight_color</item> 48 <item name="android:windowBackground">@color/conversation_background</item> 58 <item name="android:windowBackground">@android:color/background_light</item> 62 <item name="colorPrimary">@color/archived_conversation_action_bar_background_color</item> 63 <item name="colorPrimaryDark">@color/archived_conversation_action_bar_background_color_dark</item> 86 <item name="android:textColor">@color/action_bar_title_text_color</item> 105 <item name="android:textColor">@color/message_text</item [all...] |
/art/tools/ahat/src/ |
style.css | 18 background-color: #eeffff; 25 background-color: #eeeeee;
|
/cts/apps/CtsVerifier/res/drawable/ |
gray_bubble.xml | 17 <solid android:color="#333333" /> 18 <stroke android:width="2dip" android:color="#666666" />
|
/cts/tests/tests/content/res/color/ |
color2.xml | 19 <item android:state_focused="true" android:color="?attr/testcolor3"/> 20 <item android:color="?attr/testcolor4"/>
|
testcolor_orientation.xml | 20 <item android:color="@android:color/black" />
|
/cts/tests/tests/content/res/color-land/ |
testcolor_orientation.xml | 20 <item android:color="@android:color/white" />
|
/cts/tests/tests/content/res/drawable/ |
colordrawable_themed.xml | 19 <color xmlns:android="http://schemas.android.com/apk/res/android" 20 android:color="?attr/themeColor" />
|
/cts/tests/tests/graphics/res/color/ |
vector_icon_fill_state_list.xml | 20 <item android:color="#00ff00" android:state_pressed="true" /> 21 <item android:color="#0000ff" />
|
vector_icon_stroke_state_list.xml | 20 <item android:color="#0000ff" android:state_pressed="true" /> 21 <item android:color="#00ff00" />
|
/cts/tests/tests/graphics/res/drawable/ |
colordrawable_test.xml | 18 <ColorDrawable xmlns:android="http://schemas.android.com/apk/res/android" android:color="#02000000"> 19 <solid android:color="#02000000"/>
|
colordrawable_theme.xml | 18 <color xmlns:android="http://schemas.android.com/apk/res/android" 19 android:color="?attr/themeColor" />
|