/external/clang/test/Index/ |
annotate-tokens.c | 11 enum Color { Red, Green, Blue }; 13 enum Color g(int i, ...) { 23 enum Color c; 132 // CHECK: Identifier: "Color" [23:8 - 23:13] TypeRef=enum Color:11:6
|
/external/clang/test/SemaTemplate/ |
instantiate-c99.cpp | 30 struct Color { 35 Color color; member in struct:ColorPoint3D 40 template struct DesigInit0<Color, int, double>; // expected-note{{instantiation}}
|
/external/eigen/demos/opengl/ |
gpuhelper.h | 19 typedef Vector4f Color; 85 void drawVector(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect = 50.); 86 void drawVectorBox(const Vector3f& position, const Vector3f& vec, const Color& color, float aspect = 50.);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
Color.java | 38 public class Color {
42 public Color() {}
44 public Color(final int r, final int g, final int b) {
48 public Color(final int r, final int g, final int b, final int a) {
55 public Color(final float r, final float g, final float b) {
59 public Color(final float r, final float g, final float b, final float a) {
66 public Color(final int h, final float s, final float b) {
70 public Color(final int h, final float s, final float b, final float a) {
123 public Color toGrayscale() {
125 return new Color(v, v, v, this.rgba[3]); [all...] |
/external/webkit/Source/WebCore/platform/graphics/cg/ |
ColorCG.cpp | 27 #include "Color.h" 38 Color::Color(CGColorRef color) 40 if (!color) { 46 size_t numComponents = CGColorGetNumberOfComponents(color); 47 const CGFloat* components = CGColorGetComponents(color); 87 static CGColorRef leakCGColor(const Color& color, ColorSpace colorSpace) 90 color.getRGBA(components[0], components[1], components[2], components[3]) [all...] |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
ColorStateDrawable.java | 19 import android.graphics.Color; 25 * A drawable which sets its color filter to a color specified by the user, and changes to a 26 * slightly darker color when pressed or focused. 34 public ColorStateDrawable(Drawable[] layers, int color) { 36 mColor = color; 59 * Given a particular color, adjusts its value by a multiplier. 61 private int getPressedColor(int color) { 63 Color.colorToHSV(color, hsv) [all...] |
/external/clang/test/FixIt/ |
fixit.c | 54 enum Color {
|
/external/guava/guava-tests/test/com/google/common/collect/ |
EnumMultisetTest.java | 38 private static enum Color { 43 Multiset<Color> ms = EnumMultiset.create(Color.class); 44 ms.add(Color.RED); 45 ms.add(Color.YELLOW); 46 ms.add(Color.RED); 47 assertEquals(0, ms.count(Color.BLUE)); 48 assertEquals(1, ms.count(Color.YELLOW)); 49 assertEquals(2, ms.count(Color.RED)); 53 Multiset<Color> ms = EnumMultiset.create [all...] |
/sdk/emulator/opengl/host/libs/Translator/GLcommon/ |
PaletteTexture.cpp | 21 struct Color 23 Color(unsigned char r, unsigned char g,unsigned char b, unsigned char a):red(r),green(g),blue(b),alpha(a){}; 78 Color paletteColor(const unsigned char* pallete,unsigned int index,GLenum format) 85 return Color(pallete[index],pallete[index+1],pallete[index+2],0); 89 return Color((s >> 11)*255/31,((s >> 5) & 0x3f)*255/63 ,(s & 0x1f)*255/31,0); 94 return Color(pallete[index],pallete[index+1],pallete[index+2],pallete[index+3]); 98 return Color(((s >> 12) & 0xf)*255/15,((s >> 8) & 0xf)*255/15,((s >> 4) & 0xf)*255/15 ,(s & 0xf)*255/15); 102 return Color(((s >> 11) & 0x1f)*255/31,((s >> 6) & 0x1f)*255/31,((s >> 1) & 0x1f)*255/31 ,(s & 0x1) * 255); 104 return Color(255,255,255,255); 110 unsigned int indexSizeBits; //the size of the color index in the pallet [all...] |
/external/webkit/Source/WebCore/platform/graphics/ |
Color.h | 62 class Color; 69 RGBA32 colorWithOverrideAlpha(RGBA32 color, float overrideAlpha); 74 int differenceSquared(const Color&, const Color&); 76 inline int redChannel(RGBA32 color) { return (color >> 16) & 0xFF; } 77 inline int greenChannel(RGBA32 color) { return (color >> 8) & 0xFF; } 78 inline int blueChannel(RGBA32 color) { return color & 0xFF; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
ColorPickerDialog.java | 21 import android.graphics.Color; 103 int color = Color.HSVToColor(hsvo); local 104 mSelectRect.setColor(color); 112 int color = Color.HSVToColor(hsv); local 113 button.setBackgroundColor(color); 119 button.setTextColor(Color.HSVToColor(fg));
|
ColorRectView.java | 21 import android.graphics.Color; 81 mDotPaint.setColor(ctx.getResources().getColor(R.color.slider_dot_color)); 82 mSliderColor = ctx.getResources().getColor(R.color.slider_line_color); 140 Color.colorToHSV(mColors[i], hsv); 142 wheelColor[i] = Color.HSVToColor(hsv);
|
/external/chromium/chrome/browser/diagnostics/ |
diagnostics_main.cc | 32 enum Color { 44 // Writes a string to the console with the current color. 51 // Sets the foreground and background color. 52 virtual bool SetColor(Color color) = 0; 96 // Sets the foreground and background color. 97 virtual bool SetColor(Color color) { 100 switch (color) { 143 // color, but in practice this is unlikely to be an issue [all...] |
/external/llvm/lib/CodeGen/ |
StackSlotColoring.cpp | 65 // AllColors - If index is set, it's a spill slot, i.e. color. 68 // index == better color. 71 // NextColor - Next "color" that's not yet used. 77 // Assignments - Color to intervals mapping. 103 bool OverlapWithAssignments(LiveInterval *li, int Color) const; 192 // Get first "color". 197 /// LiveIntervals that have already been assigned to the specified color. 199 StackSlotColoring::OverlapWithAssignments(LiveInterval *li, int Color) const { 200 const SmallVector<LiveInterval*,4> &OtherLIs = Assignments[Color]; 209 /// ColorSlot - Assign a "color" (stack slot) to the specified stack slot [all...] |
StrongPHIElimination.cpp | 105 /// Get the color of a register. The color is 0 if the register has been 112 /// Get the color of a PHI. The color of a PHI is 0 if the PHI has been 113 /// isolated. Otherwise, it is the original color of its destination and 123 /// a color to the register in that congruence class whose definition was 157 // Maps a color to a pair of a MachineInstr* and a virtual register, which 483 /// 1) CurrentDominatingParent, which maps a color to the register in that 580 // the CurrentDominatingParent for this color to the current register. 602 unsigned Color = getPHIColor(PHI) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 26 * The Color class defines methods for creating and converting color ints. 29 * stored solely in the alpha component, and not in the color components. The 37 public class Color { 52 * Return the alpha component of a color int. This is the same as saying 53 * color >>> 24 55 public static int alpha(int color) { 56 return color >>> 24; 60 * Return the red component of a color int. This is the same as saying 61 * (color >> 16) & 0xF 211 long color = Long.parseLong(colorString.substring(1), 16); local 220 Integer color = sColorNameMap.get(colorString.toLowerCase(Locale.US)); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
Constants.java | 20 public static final class Color {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PhotoProcessor.java | 21 import android.graphics.Color; 54 WHITE_PAINT.setColor(Color.WHITE);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
EnumTest.java | 44 enum Color { 223 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); 224 enumColorMap.put(Color.Red, 1); 225 enumColorMap.put(Color.Blue, 3); 252 HashMap<Color, Integer> enumColorMap = new HashMap<Color, Integer>(); 253 enumColorMap.put(Color.Red, 1); 254 enumColorMap.put(Color.Blue, 3);
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
PODRedBlackTree.h | 193 enum Color { 216 Color color() const { return m_color; } function in class:WebCore::PODRedBlackTree::Node 217 void setColor(Color color) { m_color = color; } 243 Color m_color; 447 while (x != m_root && x->parent()->color() == Red) { 450 if (y && y->color() == Red) { 477 if (y && y->color() == Red) [all...] |
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
KeyguardMultiUserAvatar.java | 28 import android.graphics.Color; 95 mTextColor = res.getColor(R.color.keyguard_avatar_nick_color); 99 mFrameColor = res.getColor(R.color.keyguard_avatar_frame_color); 100 mFrameShadowColor = res.getColor(R.color.keyguard_avatar_frame_shadow_color); 101 mHighlightColor = res.getColor(R.color.keyguard_avatar_frame_pressed_color); 200 mUserName.setTextColor(Color.argb(textAlpha, 255, 255, 255)); 217 mUserName.setTextColor(Color.argb(finalTextAlpha, 255, 255, 255));
|
/frameworks/compile/mclinker/tools/llvm-mcld/ |
llvm-mcld.cpp | 442 namespace color { namespace 443 enum Color { 448 } // namespace of color 450 static cl::opt<color::Color> 451 ArgColor("color", 454 cl::init(color::Auto), 456 clEnumValN(color::Never, "never", 458 clEnumValN(color::Always, "always", 460 clEnumValN(color::Auto, "auto" [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
EnumMapTest.java | 37 enum Color { 103 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); 105 Color.Green, 2)); 107 enumColorMap.get(Color.Green)); 111 enumEmptyMap.put(Color.Red, 2); 123 enumSizeMap.put(Color.Red, 2); 135 enumSizeMap.put(Color.Red, 2); 156 enumColorMap = new EnumMap<Color, Double>(Color.class) [all...] |
/external/skia/src/gpu/ |
GrRedBlackTree.h | 132 enum Color { 144 Color fColor; 421 // x (prev gp) is the root, color it black and be done. 650 Color xcolor = x->fColor; 782 // p be black and s takes p's old color. [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
EnumMapTest.java | 39 enum Color { 105 EnumMap enumColorMap = new EnumMap<Color, Double>(Color.class); 107 Color.Green, 2)); 109 enumColorMap.get(Color.Green)); 113 enumEmptyMap.put(Color.Red, 2); 125 enumSizeMap.put(Color.Red, 2); 137 enumSizeMap.put(Color.Red, 2); 158 enumColorMap = new EnumMap<Color, Double>(Color.class) [all...] |