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

12

/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
H A DActionBarHelperBase.java139 protected void onTitleChanged(CharSequence title, int color) { argument
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
H A DSquare.java43 float color[] = { 0.2f, 0.709803922f, 0.898039216f, 1.0f }; field in class:Square
78 gl.glColor4f( // set color
79 color[0], color[1],
80 color[2], color[3]);
H A DTriangle.java40 float color[] = { 0.63671875f, 0.76953125f, 0.22265625f, 0.0f }; field in class:Triangle
71 gl.glColor4f( // set color:
72 color[0], color[1],
73 color[2], color[3]);
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/
H A DSamplePresentation.java34 * background color and display its text.
66 * Set the background color of the layout and display the color as a String.
68 * @param color The background color
70 public void setColor(int color) { argument
71 mLayout.setBackgroundColor(color);
73 // Display the color as a string on screen
74 String s = getResources().getString(R.string.display_color, color);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
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 DGLShape.java33 public void setFaceColor(int face, GLColor color) { argument
34 mFaceList.get(face).setColor(color);
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
H A DSquare.java68 float color[] = { 0.2f, 0.709803922f, 0.898039216f, 1.0f }; field in class:Square
131 // Set color for drawing the triangle
132 GLES20.glUniform4fv(mColorHandle, 1, color, 0);
H A DTriangle.java65 float color[] = { 0.63671875f, 0.76953125f, 0.22265625f, 0.0f }; field in class:Triangle
123 // Set color for drawing the triangle
124 GLES20.glUniform4fv(mColorHandle, 1, color, 0);
/development/samples/ApiDemos/src/com/example/android/apis/animation/
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 DShapeHolder.java32 private int color; field in class:ShapeHolder
63 return color;
67 color = value;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
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 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 DFingerPaint.java54 public void colorChanged(int color) { argument
55 mPaint.setColor(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);
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/
H A DDrawableTintingFragment.java40 * A color state list is referenced as the tint color, which defines colors for different
43 * a reference to a color and a PorterDuff blend mode. The color and blend mode can be
62 * Seekbar for alpha component of tinting color.
66 * Seekbar for red component of tinting color.
70 * Seekbar for green bar of tinting color.
74 * Seekbar for blue bar of tinting color.
96 * Selector for blend type for color tinting.
101 * Computed color fo
256 updateTint(int color, PorterDuff.Mode mode) argument
[all...]
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/
H A DDigitalWatchFaceCompanionConfigActivity.java45 * color. Additionally, enables setting the color for hour, minute and second digits.
174 int color;
176 color = config.getInt(configKey, defaultColor);
178 color = defaultColor;
183 if (Color.parseColor(colorNames[i]) == color) {
204 private void sendConfigUpdateMessage(String configKey, int color) { argument
207 config.putInt(configKey, color);
213 + Integer.toHexString(color));
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
H A DGles2ColoredTriangleList.java29 * A list of triangles drawn in a single solid color using OpenGL ES 2.0.
50 * Number of components in an OpenGL color. The components are:<ol>
75 * Creates a Gles2ColoredTriangleList to draw a triangle list with the given vertices and color.
80 * @param color color in RGBA order, each in the range [0, 1]
82 public Gles2ColoredTriangleList(Program program, float[] triangleCoords, float[] color) { argument
87 if (color.length != NUM_COLOR_COMPONENTS) {
88 throw new IllegalArgumentException("wrong number of color components");
91 mColor = color;
116 // Pass the MVP matrix, vertex data, and color t
260 bind(float[] mvpMatrix, FloatBuffer vertexBuffer, float[] color) argument
[all...]
/development/ndk/platforms/android-L/include/linux/dvb/
H A Dosd.h60 int color; member in struct:osd_cmd_s
/development/perftests/panorama/feature_stab/src/dbregtest/
H A Ddbregtest.cpp143 // if the images are color, the input is saved in color_ref:
165 // color format:
168 // is the input image color?:
169 bool color = format == PgmImage::PGM_BINARY_PIXMAP; local
182 if ( color )
184 // save the color image:
235 if ( color )
/development/samples/browseable/AdapterTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/FragmentTransition/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
H A DSlidingTabStrip.java130 int color = tabColorizer.getIndicatorColor(mSelectedPosition);
134 if (color != nextColor) {
135 color = blendColors(nextColor, color, mSelectionOffset);
146 mSelectedIndicatorPaint.setColor(color);
166 * Set the alpha value of the {@code color} to be the given {@code alpha} value.
168 private static int setColorAlpha(int color, byte alpha) { argument
169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color));
[all...]

Completed in 491 milliseconds

12