/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 301 // Parse fractional color of form [0.##, 0.##, 0.##] 307 ColorFract color; local 317 if (!in || ((chStart != '<') && (chStart != '['))) { return color; } 321 if (!in) { return color; } 322 if ((c1 < 0.0) || (c1 > 1.0)) { return color; } 324 if (!in || (ch != ',')) { return color; } 328 if (!in) { return color; } 329 if ((c2 < 0.0) || (c2 > 1.0)) { return color; } 331 if (!in || (ch != ',')) { return color; } 335 if (!in) { return color; } 545 hwcTestColor2Pixel(uint32_t format, ColorFract color, float alpha) argument 653 hwcTestFillColor(GraphicBuffer *gBuf, ColorFract color, float alpha) argument 792 hwcTestColorConvert(uint32_t fromFormat, uint32_t toFormat, ColorFract& color) argument [all...] |
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifLayout.java | 98 // Set the header color 177 public void setHeaderColor(ColorStateList color) { argument 180 titleView.setTextColor(color); 205 public void setPrimaryColor(ColorStateList color) { argument 206 mPrimaryColor = color; 207 setGlifPatternColor(color); 208 setProgressBarColor(color); 215 private void setGlifPatternColor(ColorStateList color) { argument 221 new GlifPatternDrawable(color.getDefaultColor()); 283 private void setProgressBarColor(ColorStateList color) { argument [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
H A D | TestUtils.java | 111 * Checks whether all the pixels in the specified drawable are of the same specified color. 113 * In case there is a color mismatch, the behavior of this method depends on the 119 int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, 134 assertAllPixelsOfColor(failMessagePrefix, bitmap, drawableWidth, drawableHeight, color, 142 * Checks whether all the pixels in the specified bitmap are of the same specified color. 144 * In case there is a color mismatch, the behavior of this method depends on the 150 int bitmapWidth, int bitmapHeight, @ColorInt int color, 157 if (!areColorsTheSameWithTolerance(color, colorAtCurrPixel, 161 + formatColorToHex(color) 176 * Checks whether the center pixel in the specified bitmap is of the same specified color 118 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Drawable drawable, int drawableWidth, int drawableHeight, boolean callSetBounds, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument 149 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument 183 assertCenterPixelOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument 208 formatColorToHex(@olorInt int color) argument [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | GraphExporter.java | 117 String color = filter.getSignature().getOutputPortInfo(portName).isRequired() 121 " [shape=point,label=\"\",color=" + color + "];\n" + 124 "dummy" + dummyNodeCounter + " [color=" + color + "];\n"); 135 String color = filter.getSignature().getInputPortInfo(portName).isRequired() 139 " [shape=point,label=\"\",color=" + color + "];\n" + 142 getDotName(portName) + "_IN [color=" + color [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 73 * Returns the color value represented by the given string value 74 * @param value the color value 75 * @return the color as an int 100 char[] color = new char[8]; 101 color[0] = color[1] = 'F'; 102 color[2] = color[3] = value.charAt(0); 103 color[4] = color[ [all...] |
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
H A D | ColorPickerPalette.java | 31 * A color picker custom view which creates an grid of color squares. The number of squares per 103 for (int color : colors) { 104 View colorSwatch = createColorSwatch(color, selectedColor); 105 setSwatchDescription(rowNumber, tableElements, rowElements, color == selectedColor, 184 * Creates a color swatch. 186 private ColorPickerSwatch createColorSwatch(int color, int selectedColor) { argument 187 ColorPickerSwatch view = new ColorPickerSwatch(getContext(), color, 188 color == selectedColor, mOnColorSelectedListener);
|
H A D | ColorPickerDialog.java | 32 * select a specific color swatch, which invokes a listener. 128 public void onColorSelected(int color) { argument 130 mListener.onColorSelected(color); 136 listener.onColorSelected(color); 139 if (color != mSelectedColor) { 140 mSelectedColor = color; 141 // Redraw palette to show checkmark on newly selected color before dismissing. 178 public void setSelectedColor(int color) { argument 179 if (mSelectedColor != color) { 180 mSelectedColor = color; [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/ |
H A D | ColorOverlayDimmer.java | 25 * Helper class for assigning a dim color to Paint. It holds the alpha value for 45 context.getResources().getColor(R.color.lb_view_dim_mask_color)); 55 * Creates a ColorOverlayDimmer for the given color and levels. 57 * @param dimColor The color for fully dimmed. Only the RGB values are 124 * Change the RGB of the color according to current dim level. Maintains the 125 * alpha value of the color. 127 * @param color The color to apply the dim level to. 128 * @return A color with the RGB values adjusted by the alpha of the current 131 public int applyToColor(int color) { argument [all...] |
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
H A D | AppCompatSpinnerTest.java | 57 * is themed with the specified color. 75 // combined bitmap matches the expected color fill. This should remove dependency on the 92 verifySpinnerPopupTheming(R.id.view_magenta_themed_popup, R.color.test_magenta, true); 100 verifySpinnerPopupTheming(R.id.view_unthemed_popup, R.color.test_blue, false); 105 verifySpinnerPopupTheming(R.id.view_unthemed_popup, R.color.test_green, false); 112 verifySpinnerPopupTheming(R.id.view_ocean_themed_popup, R.color.ocean_default, true); 116 verifySpinnerPopupTheming(R.id.view_ocean_themed_popup, R.color.test_red, false); 121 verifySpinnerPopupTheming(R.id.view_ocean_themed_popup, R.color.test_blue, false);
|
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
H A D | ElementLayoutActivity.java | 138 // Interpolate indicator color 144 int color = (int)((float)colorB * (1.0f - mIndicatorState) + 146 if (color > 255) { 147 color = 255; 149 background |= (color << shift);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
H A D | AmPmCirclesView.java | 77 mUnselectedColor = res.getColor(android.R.color.white); 78 mSelectedColor = res.getColor(R.color.blue); 79 mAmPmTextColor = res.getColor(R.color.ampm_text_color); 104 mUnselectedColor = res.getColor(R.color.dark_gray); 105 mSelectedColor = res.getColor(R.color.red); 106 mAmPmTextColor = res.getColor(android.R.color.white); 109 mUnselectedColor = res.getColor(android.R.color.white); 110 mSelectedColor = res.getColor(R.color.blue); 111 mAmPmTextColor = res.getColor(R.color.ampm_text_color);
|
/frameworks/rs/driver/ |
H A D | rsdFrameBuffer.cpp | 49 // Now attach color targets 51 DrvAllocation *color = nullptr; local 53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv; 55 if (color->uploadDeferred) { 60 fbo->setColorTarget(color, i);
|
/frameworks/base/libs/hwui/ |
H A D | GlopBuilder.cpp | 234 void GlopBuilder::setFill(int color, float alphaScale, argument 238 float alpha = (SkColorGetA(color) / 255.0f) * alphaScale; 241 mOutGlop->fill.color = { 242 colorScale * SkColorGetR(color), 243 colorScale * SkColorGetG(color), 244 colorScale * SkColorGetB(color), 248 mOutGlop->fill.color = { 1, 1, 1, alpha }; 251 mOutGlop->fill.color = { 0, 0, 0, 1 }; 255 if (mOutGlop->fill.color.a < 1.0f 285 SkColor color; local 335 int color = paint->getColor(); local [all...] |
H A D | Program.cpp | 177 void Program::setColor(FloatColor color) { argument 179 mColorUniform = getUniform("color"); 182 glUniform4f(mColorUniform, color.r, color.g, color.b, color.a);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | CarNavigationButton.java | 45 mIcon.setBackgroundColor(android.R.color.transparent); 50 mMoreIcon.setBackgroundColor(android.R.color.transparent);
|
/frameworks/base/tests/LockTaskTests/src/com/google/android/example/locktasktests/ |
H A D | LaunchActivity.java | 47 final int color = activityManager.getLockTaskModeState() != 49 findViewById(R.id.root_launch).setBackgroundColor(color);
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardMessageArea.java | 89 public void setNextMessageColor(int color) { argument 90 mNextMessageColor = color; 163 int color = mDefaultColor; 165 color = mNextMessageColor; 168 setTextColor(color);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
H A D | UsageView.java | 56 int color = a.getColor(R.styleable.UsageView_textColor, 0); 58 v.setTextColor(color); 61 v.setTextColor(color); 99 public void setAccentColor(int color) { argument 100 mUsageGraph.setAccentColor(color);
|
/frameworks/support/compat/tests/java/android/support/v4/content/ |
H A D | ContextCompatTest.java | 50 assertEquals("Unthemed color load", 0xFFFF8090, 51 ContextCompat.getColor(mContext, R.color.text_color)); 56 assertEquals("Themed yellow color load", 57 ContextCompat.getColor(mContext, R.color.simple_themed_selector), 65 ContextCompat.getColorStateList(mContext, R.color.complex_unthemed_selector); 66 assertEquals("Unthemed color state list load: default", 0xFF70A0C0, 68 assertEquals("Unthemed color state list load: focused", 0xFF70B0F0, 71 assertEquals("Unthemed color state list load: pressed", 0xFF6080B0, 79 ContextCompat.getColorStateList(mContext, R.color.complex_themed_selector); 80 assertEquals("Themed yellow color stat [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | NotificationCompatImplBase.java | 79 0 /* color is unused on media */, 118 boolean useChronometer, long when, int priority, int color, List<T> actions, 122 number, largeIcon, subText, useChronometer, when, priority, color, 132 boolean useChronometer, long when, int priority, int color, List<T> actions, 138 color, /* fitIn1U */getBigMediaLayoutResource(decoratedCustomView, actionCount), 189 boolean useChronometer, long when, int priority, int color, int resId, boolean fitIn1U, 193 color, resId, fitIn1U); 221 context.getResources().getColor(R.color.notification_action_color_filter))); 230 private static Bitmap createColoredBitmap(Context context, int iconId, int color) { argument 231 return createColoredBitmap(context, iconId, color, 115 overrideMediaBigContentView( Notification n, Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, int priority, int color, List<T> actions, boolean showCancelButton, PendingIntent cancelButtonIntent, boolean decoratedCustomView) argument 129 generateMediaBigView( Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, int priority, int color, List<T> actions, boolean showCancelButton, PendingIntent cancelButtonIntent, boolean decoratedCustomView) argument 186 applyStandardTemplateWithActions(Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, int smallIcon, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, int priority, int color, int resId, boolean fitIn1U, ArrayList<NotificationCompat.Action> actions) argument 234 createColoredBitmap(Context context, int iconId, int color, int size) argument 257 applyStandardTemplate(Context context, CharSequence contentTitle, CharSequence contentText, CharSequence contentInfo, int number, int smallIcon, Bitmap largeIcon, CharSequence subText, boolean useChronometer, long when, int priority, int color, int resId, boolean fitIn1U) argument 403 createIconWithBackground(Context ctx, int iconId, int size, int iconSize, int color) argument [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
H A D | GlopBuilderTests.cpp | 32 EXPECT_EQ(expectedFill.color, builtFill.color); 36 EXPECT_EQ(expectedFill.filter.color, builtFill.filter.color); 64 EXPECT_EQ(expectedMesh.vertices.color, builtMesh.vertices.color); 111 glop->fill.color.set(Color::Black);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | BarTransitions.java | 166 mOpaque = context.getColor(R.color.system_bar_background_opaque); 168 com.android.internal.R.color.system_bar_background_semi_transparent); 169 mTransparent = context.getColor(R.color.system_bar_background_transparent); 170 mWarning = context.getColor(com.android.internal.R.color.battery_saver_mode_color); 186 public void setTint(int color) { argument 188 mTintFilter = new PorterDuffColorFilter(color, PorterDuff.Mode.SRC_IN); 190 mTintFilter.setColor(color);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
H A D | colorspace.cpp | 29 uint32 color; member in union:Rgba 47 Rgba color; local 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u)); 51 color.channel[kAlpha] = 0xFF; 52 return color;
|
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/view/ |
H A D | CardViewActivity.java | 174 return R.color.card_yellow; 176 return R.color.card_aquatic; 178 return R.color.card_classic; 180 return R.color.card_sunbrite; 182 return R.color.card_tropical; 184 return R.color.card_selector; 186 return R.color.cardview_light_background;
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/view/ |
H A D | CardViewActivity.java | 174 return R.color.card_yellow; 176 return R.color.card_aquatic; 178 return R.color.card_classic; 180 return R.color.card_sunbrite; 182 return R.color.card_tropical; 184 return R.color.card_selector; 186 return R.color.cardview_light_background;
|