/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | AppCompatImageViewTest.java | 45 final int expectedColor = mContainer.getResources().getColor(R.color.test_blue);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | BatteryMeterDrawable.java | 152 mChargeColor = context.getColor(R.color.batterymeter_charge_color); 155 mBoltPaint.setColor(context.getColor(R.color.batterymeter_bolt_color)); 162 context.getColor(R.color.dark_mode_icon_color_dual_tone_background); 163 mDarkModeFillColor = context.getColor(R.color.dark_mode_icon_color_dual_tone_fill); 165 context.getColor(R.color.light_mode_icon_color_dual_tone_background); 166 mLightModeFillColor = context.getColor(R.color.light_mode_icon_color_dual_tone_fill); 275 // If we are in power save mode, always use the normal color. 279 int thresh, color = 0; 282 color = mColors[i+1]; 289 return color; [all...] |
/frameworks/rs/api/ |
H A D | rs_graphics.spec | 245 summary: Set the color target 247 Set the color target used for all subsequent rendering calls 385 summary: Clear all color and depth targets 387 Clear all color and depth targets and resume rendering into 401 summary: Clear the specified color from the surface 403 Clears the rendering surface to the specified color. 413 summary: Clear the color target 415 Clear the previously set color target 616 summary: Set the font color 618 Sets the font color fo [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageGraph.java | 90 mDottedPaint.setColor(context.getColor(R.color.usage_graph_dots)); 126 void setAccentColor(int color) { argument 127 mAccentColor = color; 196 private int getColor(int color, float alphaScale) { argument 197 return (color & (((int) (0xff * alphaScale) << 24) | 0xffffff));
|
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 109 c->arrays.color.size = 4; 110 c->arrays.color.type = GL_FLOAT; 137 memcpy(v, c->current.color.v, sizeof(vec4_t)); 439 case GL_COLOR_ARRAY: a = &c->arrays.color; break; 1050 clipVec4(nv->color, t, s->color, p->color); 1067 clipVec4(nv->color, t, s->color, p->color); [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | CalendarViewLegacyDelegate.java | 354 public void setSelectedWeekBackgroundColor(int color) { argument 355 if (mSelectedWeekBackgroundColor != color) { 356 mSelectedWeekBackgroundColor = color; 373 public void setFocusedMonthDateColor(int color) { argument 374 if (mFocusedMonthDateColor != color) { 375 mFocusedMonthDateColor = color; 392 public void setUnfocusedMonthDateColor(int color) { argument 393 if (mUnfocusedMonthDateColor != color) { 394 mUnfocusedMonthDateColor = color; 411 public void setWeekNumberColor(int color) { argument 426 setWeekSeparatorLineColor(int color) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Images.cpp | 187 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 193 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 196 if (color == COLOR_TICK) { 212 *outError = "White frame must be a solid color (no alpha)"; 214 if (color == COLOR_WHITE) { 217 if (color == COLOR_TICK) { 220 if (color == COLOR_LAYOUT_BOUNDS_TICK) { 419 png_byte* color = rows[y] + x * 4; local 420 uint8_t opacity = color[3]; 514 png_bytep color local [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | Png.cpp | 191 printf("Unknown color type %d.\n", color_type); 315 printf("Found 257th color at %d, %d\n", i, j); 340 // Choose the best color type for the image. 355 *colorType = PNG_COLOR_TYPE_PALETTE; // 1 byte/pixel + 4 bytes/color 374 // color type chosen 608 png_uint_32 color = p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); local 614 if (color == kColorLayoutBoundsTick) { 617 if (color == kColorTick) { 635 *outError = "White frame must be a solid color (no alpha)"; 637 if (color 822 png_byte* color = rows[y] + x * 4; local 913 png_bytep color = rows[top] + left*4; local [all...] |
/frameworks/support/compat/tests/java/android/support/v4/widget/ |
H A D | TextViewCompatTest.java | 49 public TestDrawable(@ColorInt int color, int width, int height) { argument 50 super(color); 127 assertEquals("Styled text view: color", mTextView.getTextColors().getDefaultColor(), 128 res.getColor(R.color.text_color)); 306 // The entire left drawable should be the specific red color 307 TestUtils.assertAllPixelsOfColor("Compound drawable: left color", 308 drawablesAbsolute[0], res.getColor(R.color.test_red)); 318 // The entire right drawable should be the specific green color 319 TestUtils.assertAllPixelsOfColor("Compound drawable: right color", 320 drawablesAbsolute[2], res.getColor(R.color [all...] |
/frameworks/base/media/java/android/media/ |
H A D | ClosedCaptionRenderer.java | 525 int color = (data2 >> 1) & 0x7; 531 if (color == COLOR_INVALID) { 533 color = COLOR_WHITE; 537 return new StyleCode(style, color); 540 StyleCode(int style, int color) { argument 542 mColor = color; 591 int color = (data2 >> 1) & 0x7; 593 if (color == COLOR_INVALID) { 595 color = COLOR_WHITE; 598 return new PAC(row, -1, style, color); 602 PAC(int row, int col, int style, int color) argument 636 MutableBackgroundColorSpan(int color) argument 640 setBackgroundColor(int color) argument 1403 setBackgroundSpans(int color) argument [all...] |
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | BottomNavigationViewTest.java | 140 @ColorInt final int redFill = ResourcesCompat.getColor(res, R.color.test_red, null); 141 @ColorInt final int greenFill = ResourcesCompat.getColor(res, R.color.test_green, null); 142 @ColorInt final int blueFill = ResourcesCompat.getColor(res, R.color.test_blue, null); 152 R.color.emerald_translucent, null); 154 // We're allowing a margin of error in checking the color of the items' icons. 155 // This is due to the translucent color being used in the icon tinting 157 // translucent color. Note that all the checks below are written for the current 160 // our translucent tint color. 175 R.color.red_translucent, null); 177 ResourcesCompat.getColorStateList(res, R.color [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | TimePickerDialog.java | 203 mSelectedColor = res.getColor(mThemeDark? R.color.red : R.color.blue); 205 res.getColor(mThemeDark? android.R.color.white : R.color.numbers_text_color); 318 int white = res.getColor(android.R.color.white); 319 int circleBackground = res.getColor(R.color.circle_background); 320 int line = res.getColor(R.color.line_background); 321 int timeDisplay = res.getColor(R.color.numbers_text_color); 322 ColorStateList doneTextColor = res.getColorStateList(R.color.done_text_color); 325 int darkGray = res.getColor(R.color [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BackgroundManager.java | 73 * <li>a solid color (set via {@link #setColor})</li> 171 throw new IllegalStateException("Can't draw with translucent alpha and color filter"); 251 public void setColor(int color) { argument 252 ((ColorDrawable) mDrawable).setColor(color); 356 * Optimizes drawing when the dim drawable is an alpha-only color and imagein is opaque. 402 int color = Color.argb(getAlpha(), dimAlpha, dimAlpha, dimAlpha); 403 mColorFilter = new PorterDuffColorFilter(color, PorterDuff.Mode.MULTIPLY); 546 public void setColor(int color) { argument 547 mColor = color; 726 if (DEBUG) Log.v(TAG, "onActivityStart " + this + " updating service color " 967 setColor(@olorInt int color) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | DirectoryItemAnimator.java | 37 * new Item, this class manually animates a background color change. This enables selected Items to 48 mDefaultColor = context.getResources().getColor(R.color.item_doc_background); 49 mSelectedColor = context.getResources().getColor(R.color.item_doc_background_selected); 140 * Animates changes in background color.
|
H A D | DocumentHolder.java | 63 mDefaultBgColor = context.getColor(R.color.item_doc_background); 64 mSelectedBgColor = context.getColor(R.color.item_doc_background_selected);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardAbsKeyInputView.java | 258 public void showMessage(String message, int color) { argument 259 mSecurityMessageDisplay.setNextMessageColor(color);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | UserAvatarView.java | 93 public void setFrameColor(ColorStateList color) { argument 94 mDrawable.setFrameColor(color);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ColoredRectsActivity.java | 65 public RectsView(Context c, float offset, int color) { argument 68 mColor = color;
|
H A D | PointsActivity.java | 88 public RenderingView(Context c, int color) { argument 90 mColor = color;
|
/frameworks/native/cmds/flatland/ |
H A D | Renderers.cpp | 33 float* color = colors[g_colorIndex]; local 35 return color;
|
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/view/ |
H A D | NavigationBarButton.java | 147 final int color = mTintList.getColorForState(getState(), 0); 148 setColorFilter(color, PorterDuff.Mode.SRC_IN);
|
/frameworks/support/design/tests/src/android/support/design/testutils/ |
H A D | FloatingActionButtonActions.java | 34 public static ViewAction setBackgroundTintColor(@ColorInt final int color) { argument 51 fab.setBackgroundTintList(ColorStateList.valueOf(color));
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
H A D | SwipeToDismissActivity.java | 108 ContextCompat.getColor(this, android.R.color.white)); 118 ContextCompat.getColor(this, R.color.card_aquatic));
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
H A D | SwipeToDismissActivity.java | 108 ContextCompat.getColor(this, android.R.color.white)); 118 ContextCompat.getColor(this, R.color.card_aquatic));
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | NightModeTestCase.java | 69 final int dayColor = activity.getResources().getColor(R.color.color_sky_day); 70 final int nightColor = activity.getResources().getColor(R.color.color_sky_night);
|