/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | ColorManager.java | 31 R.color.md_red_500, 32 R.color.md_pink_500, 33 R.color.md_purple_500, 34 R.color.md_deep_purple_500, 35 R.color.md_indigo_500, 36 R.color.md_blue_500, 37 R.color.md_light_blue_500, 38 R.color.md_cyan_500, 39 R.color.md_green_500, 40 R.color.md_light_green_500, [all …]
|
/development/vndk/tools/definition-tool/assets/insight/ |
D | insight.css | 6 background-color: #eefaff; 23 color: #ffffff; 24 background-color: #3399ff; 31 color: #ffffff; 35 color: #ffffff; 36 background-color: #0000ff; 51 color: #2244ff; 57 color: #2244ff; 62 color: #ff3322; 67 color: #ff3322; [all …]
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
D | SwipeRefreshListFragmentFragment.java | 138 setColorScheme(R.color.color_scheme_1_1, R.color.color_scheme_1_2, in onOptionsItemSelected() 139 R.color.color_scheme_1_3, R.color.color_scheme_1_4); in onOptionsItemSelected() 148 setColorScheme(R.color.color_scheme_2_1, R.color.color_scheme_2_2, in onOptionsItemSelected() 149 R.color.color_scheme_2_3, R.color.color_scheme_2_4); in onOptionsItemSelected() 158 setColorScheme(R.color.color_scheme_3_1, R.color.color_scheme_3_2, in onOptionsItemSelected() 159 R.color.color_scheme_3_3, R.color.color_scheme_3_4); in onOptionsItemSelected()
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceService.java | 205 ContextCompat.getColor(getApplicationContext(), R.color.digital_date)); in onCreate() 210 ContextCompat.getColor(getApplicationContext(), R.color.digital_am_pm)); in onCreate() 212 ContextCompat.getColor(getApplicationContext(), R.color.digital_colons)); in onCreate() 421 private void setInteractiveBackgroundColor(int color) { in setInteractiveBackgroundColor() argument 422 mInteractiveBackgroundColor = color; in setInteractiveBackgroundColor() 423 updatePaintIfInteractive(mBackgroundPaint, color); in setInteractiveBackgroundColor() 426 private void setInteractiveHourDigitsColor(int color) { in setInteractiveHourDigitsColor() argument 427 mInteractiveHourDigitsColor = color; in setInteractiveHourDigitsColor() 428 updatePaintIfInteractive(mHourPaint, color); in setInteractiveHourDigitsColor() 431 private void setInteractiveMinuteDigitsColor(int color) { in setInteractiveMinuteDigitsColor() argument [all …]
|
D | Gles2ColoredTriangleList.java | 82 public Gles2ColoredTriangleList(Program program, float[] triangleCoords, float[] color) { in Gles2ColoredTriangleList() argument 87 if (color.length != NUM_COLOR_COMPONENTS) { in Gles2ColoredTriangleList() 91 mColor = color; in Gles2ColoredTriangleList() 260 public void bind(float[] mvpMatrix, FloatBuffer vertexBuffer, float[] color) { in bind() argument 274 GLES20.glUniform4fv(mColorHandle, 1 /* count */, color, 0 /* offset */); in bind()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | GLColor.java | 43 GLColor color = (GLColor)other; in equals() local 44 return (red == color.red && in equals() 45 green == color.green && in equals() 46 blue == color.blue && in equals() 47 alpha == color.alpha); in equals()
|
D | GLVertex.java | 27 GLColor color; field in GLVertex 60 if (color == null) { in put() 66 colorBuffer.put(color.red); in put() 67 colorBuffer.put(color.green); in put() 68 colorBuffer.put(color.blue); in put() 69 colorBuffer.put(color.alpha); in put()
|
/development/vndk/tools/definition-tool/assets/visual/ |
D | dep-graph.css | 80 background-color: white; 81 color: #333; 94 background-color: #bb0000; 97 background-color: #ffdddd; 98 color: #333; 111 background-color: #ff6666; 114 background-color: #ffaaaa; 123 background-color: #ffffff;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorPickerDialog.java | 29 void colorChanged(int color); in colorChanged() argument 41 ColorPickerView(Context c, OnColorChangedListener l, int color) { in ColorPickerView() argument 56 mCenterPaint.setColor(color); in ColorPickerView() 139 private int rotateColor(int color, float rad) { in rotateColor() argument 141 int r = Color.red(color); in rotateColor() 142 int g = Color.green(color); in rotateColor() 143 int b = Color.blue(color); in rotateColor() 160 return Color.argb(Color.alpha(color), pinToByte(ir), in rotateColor() 224 public void colorChanged(int color) { in onCreate() 225 mListener.colorChanged(color); in onCreate()
|
/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
D | Triangle.java | 40 float color[] = { 0.63671875f, 0.76953125f, 0.22265625f, 0.0f }; field in Triangle 72 color[0], color[1], in draw() 73 color[2], color[3]); in draw()
|
D | Square.java | 43 float color[] = { 0.2f, 0.709803922f, 0.898039216f, 1.0f }; field in Square 79 color[0], color[1], in draw() 80 color[2], color[3]); in draw()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 130 int color = tabColorizer.getIndicatorColor(mSelectedPosition); in onDraw() local 134 if (color != nextColor) { in onDraw() 135 color = blendColors(nextColor, color, mSelectionOffset); in onDraw() 146 mSelectedIndicatorPaint.setColor(color); in onDraw() 168 private static int setColorAlpha(int color, byte alpha) { in setColorAlpha() argument 169 return Color.argb(alpha, Color.red(color), Color.green(color), Color.blue(color)); in setColorAlpha()
|
/development/samples/browseable/DrawableTinting/ |
D | _index.jd | 8 Sample that shows applying tinting and color filters to Drawables both programmatically 11 A color state list is referenced as the tint color, which defines colors for different 14 with a reference to a color and a PorterDuff blend mode. The color and blend mode can be
|
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/ |
D | DrawableTintingFragment.java | 256 public void updateTint(int color, PorterDuff.Mode mode) { in updateTint() argument 258 mHintColor = color; in updateTint() 265 Color.alpha(color), Color.red(color), Color.green(color), Color.blue(color), in updateTint() 272 mAlphaText.setText(getString(R.string.value_alpha, Color.alpha(color))); in updateTint() 273 mRedText.setText(getString(R.string.value_red, Color.red(color))); in updateTint() 274 mGreenText.setText(getString(R.string.value_green, Color.green(color))); in updateTint() 275 mBlueText.setText(getString(R.string.value_blue, Color.blue(color))); in updateTint()
|
/development/tools/checkcolor/ |
D | README | 3 colors. One example of hardcoded color is: 5 <color name="hardcoded_color">#FFFFFF</color>
|
/development/samples/browseable/WatchFace/Application/src/com.example.android.wearable.watchface/ |
D | DigitalWatchFaceCompanionConfigActivity.java | 174 int color; in setUpColorPickerSelection() local 176 color = config.getInt(configKey, defaultColor); in setUpColorPickerSelection() 178 color = defaultColor; in setUpColorPickerSelection() 183 if (Color.parseColor(colorNames[i]) == color) { in setUpColorPickerSelection() 204 private void sendConfigUpdateMessage(String configKey, int color) { in sendConfigUpdateMessage() argument 207 config.putInt(configKey, color); in sendConfigUpdateMessage() 213 + Integer.toHexString(color)); in sendConfigUpdateMessage()
|
/development/samples/browseable/BasicMediaRouter/src/com.example.android.basicmediarouter/ |
D | SamplePresentation.java | 70 public void setColor(int color) { in setColor() argument 71 mLayout.setBackgroundColor(color); in setColor() 74 String s = getResources().getString(R.string.display_color, color); in setColor()
|
/development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/ |
D | HardcodedColorDetector.java | 209 private boolean isHardcodedColor(String color) { in isHardcodedColor() argument 210 return color.matches("#[0-9a-fA-F]{3}") in isHardcodedColor() 211 || color.matches("#[0-9a-fA-F]{6}") in isHardcodedColor() 212 || color.matches("#[0-9a-fA-F]{8}"); in isHardcodedColor() 223 private void addIndirectColor(XmlContext context, String color, Node node) { in addIndirectColor() argument 227 indirectColorMultiMap.put(color, handle); in addIndirectColor()
|
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/ |
D | MainActivity.java | 222 showStartView.setBackgroundColor(getColor(R.color.start_received)); in handleMessage() 236 showStopView.setBackgroundColor(getColor(R.color.stop_received)); in handleMessage() 244 showStartView.setBackgroundColor(getColor(R.color.none_received)); in handleMessage() 248 showStopView.setBackgroundColor(getColor(R.color.none_received)); in handleMessage() 264 private int getColor(@ColorRes int color) { in getColor() argument 265 return mActivity.get().getResources().getColor(color); in getColor()
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
D | ShapeHolder.java | 32 private int color; field in ShapeHolder 63 return color; in getColor() 67 color = value; in setColor()
|