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

123456

/packages/apps/Gallery2/jni/filters/
H A Dfilters.h28 #define GetA(color) (((color) >> 24) & 0xFF)
29 #define GetB(color) (((color) >> 16) & 0xFF)
30 #define GetG(color) (((color) >> 8) & 0xFF)
31 #define GetR(color) (((color) >> 0) & 0xFF)
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLPaint.java26 public void setColor(int color) { argument
27 mColor = color;
H A DStringTexture.java31 // the String, the font size, and the color.
45 public static TextPaint getDefaultPaint(float textSize, int color) { argument
49 paint.setColor(color);
55 String text, float textSize, int color) {
56 return newInstance(text, getDefaultPaint(textSize, color));
60 String text, float textSize, int color,
62 TextPaint paint = getDefaultPaint(textSize, color);
54 newInstance( String text, float textSize, int color) argument
59 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument
H A DFadeInTexture.java19 // FadeInTexture is a texture which begins with a color, then gradually animates
28 public FadeInTexture(int color, TiledTexture texture) { argument
30 mColor = color;
H A DColorTexture.java21 // ColorTexture is a texture which fills the rectangle with the specified color.
28 public ColorTexture(int color) { argument
29 mColor = color;
H A DMultiLineTexture.java28 // the String, the font size, and the color.
38 String text, int maxWidth, float textSize, int color,
40 TextPaint paint = StringTexture.getDefaultPaint(textSize, color);
37 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
/packages/apps/Email/tests/src/com/android/email/
H A DResourceHelperTest.java37 Integer color = mResourceHelper.getAccountColor(accountId);
41 assertNotNull(color);
43 assertFalse(color.equals(lastColor));
46 lastColor = color;
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageItemPreference.java30 public final int color; field in class:StorageItemPreference
42 this.color = context.getResources().getColor(colorRes);
47 setIcon(createRectShape(width, height, this.color));
49 this.color = Color.MAGENTA;
58 private static ShapeDrawable createRectShape(int width, int height, int color) { argument
62 shape.getPaint().setColor(color);
H A DUsageBarPreference.java55 public void addEntry(int order, float percentage, int color) { argument
56 mEntries.add(PercentageBarChart.createEntry(order, percentage, color));
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DDefaultSoftKeyboard.java644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off));
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off));
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on));
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off));
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
653 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default));
656 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_lock));
657 text2.setTextColor(res.getColor(R.color
[all...]
/packages/apps/Settings/src/com/android/settings/quicklaunch/
H A DShortcutPreference.java120 ColorStateList color = mHasBookmark ? sRegularTitleColor : sDimTitleColor;
121 if (color != null) {
122 titleView.setTextColor(color);
134 color = mHasBookmark ? sRegularSummaryColor : sDimSummaryColor;
135 if (color != null) {
136 summaryView.setTextColor(color);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasMock.java49 public void fillRect(float x, float y, float width, float height, int color) { argument
53 mFillRectColor = color;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterParametricBorder.java36 public ImageFilterParametricBorder(int color, int size, int radius) { argument
37 setBorder(color, size, radius);
75 public void setBorder(int color, int size, int radius) { argument
76 mBorderColor = color;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DHolographicOutlineHelper.java96 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
98 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, true,
101 void applyExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
181 mHolographicPaint.setColor(color);
200 void applyExtraThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
202 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, EXTRA_THICK);
205 void applyThickExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
207 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColor, THICK);
210 void applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, argument
212 applyExpensiveOutlineWithBlur(srcDst, srcDstCanvas, color, outlineColo
216 applyMediumExpensiveOutlineWithBlur(Bitmap srcDst, Canvas srcDstCanvas, int color, int outlineColor) argument
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DPieChartView.java71 public Slice(long value, int color) { argument
73 this.paint = buildFillPaint(color, getResources());
98 private static Paint buildFillPaint(int color, Resources res) { argument
101 paint.setColor(color);
107 paint.setShader(new RadialGradient(0, 0, width, color, darken(color), TileMode.MIRROR));
117 public void addSlice(long value, int color) { argument
118 mSlices.add(new Slice(value, color));
236 public static int darken(int color) { argument
238 Color.colorToHSV(color, hs
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DPanoProgressBar.java84 public void setBackgroundColor(int color) { argument
85 mBackgroundPaint.setColor(color);
89 public void setDoneColor(int color) { argument
90 mDoneAreaPaint.setColor(color);
94 public void setIndicatorColor(int color) { argument
95 mIndicatorPaint.setColor(color);
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DTextHighlightingAnimation.java136 * A Span that modifies alpha of the default foreground color.
164 int color = ds.getColor();
165 color = Color.argb(mAlpha, Color.red(color), Color.green(color), Color.blue(color));
166 ds.setColor(color);
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoProgressBar.java82 public void setBackgroundColor(int color) { argument
83 mBackgroundPaint.setColor(color);
87 public void setDoneColor(int color) { argument
88 mDoneAreaPaint.setColor(color);
92 public void setIndicatorColor(int color) { argument
93 mIndicatorPaint.setColor(color);
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
H A DHoloSpiralRS.java235 Float4 color = new Float4();
236 color.x = primary.x + ((secondary.x - primary.x) * r);
237 color.y = primary.y + ((secondary.y - primary.y) * r);
238 color.z = primary.z + ((secondary.z - primary.z) * r);
239 color.w = primary.w + ((secondary.w - primary.w) * r);
242 points.set_color(i, color, false);
252 private static Float4 convertColor(int color) { argument
253 float red = Color.red(color) / 255.0f;
254 float green = Color.green(color) / 255.0f;
255 float blue = Color.blue(color) / 255.
[all...]
/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallTypeHelper.java47 mNewMissedColor = resources.getColor(R.color.call_log_missed_call_highlight_color);
48 mNewVoicemailColor = resources.getColor(R.color.call_log_voicemail_highlight_color);
71 /** Returns the color used to highlight the given call type, null if not highlight is needed. */
/packages/experimental/Bummer/src/com/android/dreams/bummer/
H A DBummer.java31 public int color = Color.WHITE; field in class:Bummer
47 mApology.setTextColor(color);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DHtmlUtils.java35 * Specifically, it adjusts the color and padding of the vertical
90 int color = resources.getColor(R.color.stream_item_stripe_color);
93 replaceSpan(builder, quoteSpans[i], new StreamItemQuoteSpan(color, width));
141 public StreamItemQuoteSpan(int color, int width) { argument
142 super(color);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DConfig.java46 placeholderColor = r.getColor(R.color.albumset_placeholder);
75 R.color.albumset_label_background);
76 labelSpec.titleColor = r.getColor(R.color.albumset_label_title);
77 labelSpec.countColor = r.getColor(R.color.albumset_label_count);
97 placeholderColor = r.getColor(R.color.album_placeholder);
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectCalendarsSimpleAdapter.java78 int color; field in class:SelectCalendarsSimpleAdapter.CalendarRow
89 mColorCalendarVisible = mRes.getColor(R.color.calendar_visible);
90 mColorCalendarHidden = mRes.getColor(R.color.calendar_hidden);
91 mColorCalendarSecondaryVisible = mRes.getColor(R.color.calendar_secondary_visible);
92 mColorCalendarSecondaryHidden = mRes.getColor(R.color.calendar_secondary_hidden);
182 mData[p].color = c.getInt(mColorColumn);
201 int color = Utils.getDisplayColorFromColor(mData[position].color);
212 View colorView = view.findViewById(R.id.color);
213 colorView.setBackgroundColor(color);
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DUtils.java666 public static int getDisplayColorFromColor(int color) { argument
668 return color;
672 Color.colorToHSV(color, hsv);
678 // This takes a color and computes what it would look like blended with
679 // white. The result is the color that should be used for declined events.
680 public static int getDeclinedColorFromColor(int color) { argument
683 int r = (((color & 0x00ff0000) * a) + ((bg & 0x00ff0000) * (0xff - a))) & 0xff000000;
684 int g = (((color & 0x0000ff00) * a) + ((bg & 0x0000ff00) * (0xff - a))) & 0x00ff0000;
685 int b = (((color & 0x000000ff) * a) + ((bg & 0x000000ff) * (0xff - a))) & 0x0000ff00;
689 // A single strand represents one color o
697 public int color; field in class:Utils.DNAStrand
706 int color; // Calendar color or black for conflicts field in class:Utils.DNASegment
1098 getOrCreateStrand(HashMap<Integer, DNAStrand> strands, int color) argument
[all...]

Completed in 397 milliseconds

123456