Searched defs:color (Results 1 - 25 of 49) sorted by path

12

/packages/apps/Calendar/src/com/android/calendar/
H A DColorChipView.java30 * A custom view for a color chip for an event that can be drawn differently
88 public void setColor(int color) { argument
89 mColor = color;
H A DEvent.java121 public int color; field in class:Event
162 e.color = color;
183 dest.color = color;
204 e.color = 0;
356 mNoColorColor = res.getColor(R.color.event_center);
388 // Read the color from the database
389 e.color = Utils.getDisplayColorFromColor(cEvents.getInt(PROJECTION_COLOR_INDEX));
391 e.color
[all...]
H A DStickyHeaderListView.java241 * @param color - color of separator
244 public void setHeaderSeparator(int color, int width) { argument
249 mSeparatorView.setBackgroundColor(color);
H A DUtils.java644 public static int getDisplayColorFromColor(int color) { argument
646 return color;
650 Color.colorToHSV(color, hsv);
656 // This takes a color and computes what it would look like blended with
657 // white. The result is the color that should be used for declined events.
658 public static int getDeclinedColorFromColor(int color) { argument
661 int r = (((color & 0x00ff0000) * a) + ((bg & 0x00ff0000) * (0xff - a))) & 0xff000000;
662 int g = (((color & 0x0000ff00) * a) + ((bg & 0x0000ff00) * (0xff - a))) & 0x00ff0000;
663 int b = (((color & 0x000000ff) * a) + ((bg & 0x000000ff) * (0xff - a))) & 0x0000ff00;
667 // A single strand represents one color o
675 public int color; field in class:Utils.DNAStrand
684 int color; // Calendar color or black for conflicts field in class:Utils.DNASegment
1076 getOrCreateStrand(HashMap<Integer, DNAStrand> strands, int color) argument
[all...]
/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...]
H A DSelectCalendarsSyncAdapter.java62 int color; field in class:SelectCalendarsSyncAdapter.CalendarRow
99 mData[p].color = c.getInt(mColorColumn);
122 int color = Utils.getDisplayColorFromColor(mData[position].color);
141 View colorView = view.findViewById(R.id.color);
143 colorView.setBackgroundColor(color);
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetModel.java88 int color; field in class:CalendarAppWidgetModel.EventInfo
113 builder.append(", color=");
114 builder.append(String.format("0x%x", color));
135 result = prime * result + color;
180 if (color != other.color) {
292 final int color = cursor.getInt(CalendarAppWidgetService.INDEX_COLOR);
315 location, color, selfStatus));
355 int startDay, int endDay, String title, String location, int color, int selfStatus) {
386 eventInfo.color
354 populateEventInfo(long eventId, boolean allDay, long start, long end, int startDay, int endDay, String title, String location, int color, int selfStatus) argument
[all...]
/packages/apps/Camera/jni/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 )
/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/
H A DPhoneCallDetailsHelper.java82 // The color to highlight the count and date in, if any. This is based on the first call.
175 // Apply the highlight color if present.
186 /** Creates a SpannableString for the given text which is bold and in the given color. */
187 private CharSequence addBoldAndColor(CharSequence text, int color) { argument
191 result.setSpan(new ForegroundColorSpan(color), 0, text.length(), flags);
/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/Email/src/com/android/email/widget/
H A DEmailWidget.java142 // Initialize string, color, dimension resources
149 sDefaultTextColor = res.getColor(R.color.widget_default_text_color);
150 sDefaultTextColor = res.getColor(R.color.widget_default_text_color);
151 sLightTextColor = res.getColor(R.color.widget_light_text_color);
357 * Add size and color styling to text
361 * @param color the color for this text
364 private CharSequence addStyle(CharSequence text, int size, int color) { argument
369 if (color != 0) {
370 builder.setSpan(new ForegroundColorSpan(color),
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DUtils.java118 public static boolean isOpaque(int color) { argument
119 return color >>> 24 == 0xFF;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DImageFilterGradient.java46 public void addColor(int color, float position) { argument
59 colors[length] = color;
H A DImageFilterParametricBorder.java36 public ImageFilterParametricBorder(int color, int size, int radius) { argument
37 setBorder(color, size, radius);
72 public void setBorder(int color, int size, int radius) { argument
73 mBorderColor = color;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DImageCurves.java271 private void drawHistogram(Canvas canvas, int[] histogram, int color, PorterDuff.Mode mode) { argument
287 paint2.setColor(color);
H A DSpline.java200 public void draw(Canvas canvas, int color, int canvasWidth, int canvasHeight, argument
290 paint.setColor(color);
296 paint.setColor(color);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumLabelMaker.java81 private static TextPaint getTextPaint(int textSize, int color, boolean isBold) { argument
85 paint.setColor(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 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 DGLCanvas.java80 // Fills the specified rectangle with the specified color.
81 public void fillRect(float x, float y, float width, float height, int color); argument
102 // Draw a region of a texture and a specified color to the specified
103 // rectangle. The actual color used is from * (1 - ratio) + to * ratio.
H A DGLCanvasImpl.java210 public void fillRect(float x, float y, float width, float height, int color) { argument
211 mGLState.setColorMode(color, mAlpha);
461 float[] color = mTextureColor;
462 color[0] = r;
463 color[1] = g;
464 color[2] = b;
465 color[3] = alpha;
610 // Set the background color
646 public void setColorMode(int color, float alpha) { argument
647 setBlendEnabled(!Utils.isOpaque(color) || alph
[all...]
H A DGLPaint.java26 public void setColor(int color) { argument
27 mColor = color;
H A DGLView.java252 public void setBackgroundColor(float [] color) { argument
253 mBackgroundColor = 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

Completed in 264 milliseconds

12