Searched refs:color (Results 1 - 25 of 41) sorted by relevance

12

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DGLColor.java43 GLColor color = (GLColor)other;
44 return (red == color.red &&
45 green == color.green &&
46 blue == color.blue &&
47 alpha == color.alpha);
H A DGLVertex.java27 GLColor color; field in class:GLVertex
60 if (color == null) {
66 colorBuffer.put(color.red);
67 colorBuffer.put(color.green);
68 colorBuffer.put(color.blue);
69 colorBuffer.put(color.alpha);
H A DGLFace.java57 // only need to do this if the color has never been set
59 while (vertex.color != null) {
66 vertex.color = c;
H A DGLShape.java33 public void setFaceColor(int face, GLColor color) { argument
34 mFaceList.get(face).setColor(color);
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
H A DActionBarActivity.java79 protected void onTitleChanged(CharSequence title, int color) { argument
80 mActionBarHelper.onTitleChanged(title, color);
81 super.onTitleChanged(title, color);
H A DActionBarHelper.java80 protected void onTitleChanged(CharSequence title, int color) { argument
/development/tools/emulator/system/camera/
H A DEmulatedFakeCameraDevice.cpp309 const YUVPixel* color)
315 YUVPixel adjustedColor = *color;
336 void EmulatedFakeCameraDevice::drawSolid(YUVPixel* color) argument
338 YUVPixel adjustedColor = *color;
348 *U = color->U;
349 *V = color->V;
360 /* Select the color. */
361 YUVPixel* color; local
365 color = &mWhiteYUV;
368 color
306 drawSquare(int x, int y, int size, const YUVPixel* color) argument
[all...]
H A DEmulatedFakeCameraDevice.h45 * its color when bouncing off the 0,0 corner.
106 /* Draws a square of the given color in the current frame buffer.
110 * color - Square's color.
112 void drawSquare(int x, int y, int size, const YUVPixel* color);
115 void drawSolid(YUVPixel* color);
185 * 2 - Solid color. */
188 /* Color to use to paint the solid color frame. Colors will rotate between
189 * white, red, gree, and blue each time rotation comes to the solid color
H A DConverters.h30 * pixels are represented as WORD, or DWORD, the color order inside the
36 * So, if this code runs on the little endian CPU, red color in 'rgb' would be
37 * masked as 0x000000ff, and blue color would be masked as 0x00ff0000, while if
38 * the code runs on a big endian CPU, the red color in 'rgb' would be masked as
39 * 0xff000000, and blue color would be masked as 0x0000ff00,
45 * RGB565 color masks
61 * RGB32 color masks
77 * Extracting, and saving color bytes from / to WORD / DWORD RGB.
119 uint32_t color; member in union:android::RGB32_t
151 /* Converts R8 G8 B8 color t
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
H A DShapeHolder.java32 private int color; field in class:ShapeHolder
63 return color;
67 color = value;
H A DAnimationLoading.java129 private void addBall(float x, float y, int color) { argument
131 shapeHolder.setColor(color);
140 int color = 0xff000000 | red << 16 | green << 8 | blue;
144 50f, color, darkColor, Shader.TileMode.CLAMP);
H A DAnimationSeeking.java136 int color = 0xff000000 | red << 16 | green << 8 | blue;
140 50f, color, darkColor, Shader.TileMode.CLAMP);
H A DCustomEvaluator.java151 int color = 0xff000000 | red << 16 | green << 8 | blue;
155 50f, color, darkColor, Shader.TileMode.CLAMP);
H A DReversingAnimation.java112 int color = 0xff000000 | red << 16 | green << 8 | blue;
116 50f, color, darkColor, Shader.TileMode.CLAMP);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DColorPickerDialog.java29 void colorChanged(int color); argument
41 ColorPickerView(Context c, OnColorChangedListener l, int color) { argument
56 mCenterPaint.setColor(color);
139 private int rotateColor(int color, float rad) { argument
141 int r = Color.red(color);
142 int g = Color.green(color);
143 int b = Color.blue(color);
160 return Color.argb(Color.alpha(color), pinToByte(ir),
224 public void colorChanged(int color) {
225 mListener.colorChanged(color);
[all...]
H A DColorFilters.java147 for (int color : mColors) {
149 if (color == 0) {
152 filter = new PorterDuffColorFilter(color,
H A DRegions.java62 private void drawRgn(Canvas canvas, int color, String str, Region.Op op) { argument
72 mPaint.setColor(color);
77 mPaint.setColor(color);
H A DWindowSurface.java249 int color = 0xff000000 | (red<<16) | blue;
250 mForeground.setColor(color | makeGreen(-2));
263 mOldColor[0] = color;
/development/tools/emulator/system/lights/
H A Dlights_qemu.c58 int color = state->color & 0x00ffffff; local
59 return ((77 * ((color >> 16) & 0x00ff))
60 + (150 * ((color >> 8) & 0x00ff)) + (29 * (color & 0x00ff))) >> 8;
81 state->color );
/development/samples/SampleSyncAdapter/samplesyncadapter_server/static/css/
H A Dmain.css24 background-color: #fff;
30 color: #0033cc;
/development/apps/FontLab/src/com/android/fontlab/
H A DFontLab.java260 int color = ((Integer)extras.get("text")).intValue();
261 mColumn1.setTextColor(color);
262 mColumn2.setTextColor(color);
264 int colorTranslucent = (color & 0x00FFFFFF) + 0x77000000;
266 setTitleColor(color);
272 color = ((Integer)extras.get("bgcolor")).intValue();
273 mContentView.setBackgroundColor(color);
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DLabelView.java71 // Retrieve the color(s) to be used for this view and apply them.
72 // Note, if you only care about supporting a single color, that you
115 * Sets the text color for this label.
116 * @param color ARGB value for the text
118 public void setTextColor(int color) { argument
119 mTextPaint.setColor(color);
H A DDraggableDot.java165 int color = (mHovering) ? WHITE_STEP : GREEN_STEP;
166 color = i*(color | ALPHA_STEP);
167 mGlow.setColor(color);
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
H A DCandidateView.java85 setBackgroundColor(r.getColor(R.color.candidate_background));
87 mColorNormal = r.getColor(R.color.candidate_normal);
88 mColorRecommended = r.getColor(R.color.candidate_recommended);
89 mColorOther = r.getColor(R.color.candidate_other);
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Ddemo.c71 /* Vertex array and color array are enabled for all objects, so their
78 * components per color with GL_UNSIGNED_BYTE datatype and stride 0.
298 int a, color[3]; local
301 color[a] = (int)(ca * baseColor[a] * 255);
302 if (color[a] > 255) color[a] = 255;
304 result->colorArray[i] = (GLubyte)color[0];
305 result->colorArray[i + 1] = (GLubyte)color[1];
306 result->colorArray[i + 2] = (GLubyte)color[2];
367 GLubyte color; local
[all...]

Completed in 466 milliseconds

12