Searched defs:color (Results 1 - 25 of 61) sorted by relevance

123

/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DCalendarColorSquare.java29 * The color square used as an entry point to launching the {@link CalendarColorPickerDialog}.
42 public void setBackgroundColor(int color) { argument
45 setImageDrawable(new ColorStateDrawable(colorDrawable, color));
H A DSelectCalendarsSyncAdapter.java80 int color; field in class:SelectCalendarsSyncAdapter.CalendarRow
128 mData[p].color = c.getInt(mColorColumn);
153 int color = Utils.getDisplayColorFromColor(mData[position].color);
157 final View delegate = view.findViewById(R.id.color);
187 View colorView = view.findViewById(R.id.color);
189 colorView.setBackgroundColor(color);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DFadeInTexture.java20 // FadeInTexture is a texture which begins with a color, then gradually animates
29 public FadeInTexture(int color, TiledTexture texture) { argument
31 mColor = color;
H A DGLPaint.java25 public void setColor(int color) { argument
26 mColor = color;
H A DMultiLineTexture.java29 // the String, the font size, and the color.
39 String text, int maxWidth, float textSize, int color,
41 TextPaint paint = StringTexture.getDefaultPaint(textSize, color);
38 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
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 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
/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.java53 public void addEntry(int order, float percentage, int color) { argument
54 mEntries.add(PercentageBarChart.createEntry(order, percentage, color));
H A DPercentageBarChart.java139 public void setBackgroundColor(int color) { argument
140 mEmptyPaint.setColor(color);
148 * @param color the color to draw the entry
150 public static Entry createEntry(int order, float percentage, int color) { argument
152 p.setColor(color);
/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/Calendar/src/com/android/calendar/event/
H A DEventColorPickerDialog.java27 * A dialog which displays event colors, with an additional button for the calendar color.
63 public void setCalendarColor(int color) { argument
64 mCalendarColor = color;
/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 DCalendarColorPickerDialog.java144 public void onColorSelected(int color) { argument
145 if (color == mSelectedColor || mService == null) {
150 values.put(Calendars.CALENDAR_COLOR_KEY, mColorKeyMap.get(color));
H A DStickyHeaderListView.java241 * @param color - color of separator
244 public void setHeaderSeparator(int color, int width) { argument
249 mSeparatorView.setBackgroundColor(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/Dialer/src/com/android/dialer/
H A DPhoneCallDetailsHelper.java82 // The color to highlight the count and date in, if any. This is based on the first call.
179 // Apply the highlight color if present.
190 /** Creates a SpannableString for the given text which is bold and in the given color. */
191 private CharSequence addBoldAndColor(CharSequence text, int color) { argument
195 result.setSpan(new ForegroundColorSpan(color), 0, text.length(), flags);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterColorBorderRepresentation.java27 public FilterColorBorderRepresentation(int color, int size, int radius) { argument
29 mColor = color;
94 public void setColor(int color) { argument
95 mColor = color;
H A DFilterDrawRepresentation.java133 public void startNewSection(byte type, int color, float size, float x, float y) { argument
135 mCurrent.mColor = color;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageDraw.java57 public void setColor(int color) { argument
58 mCurrentColor = color;
/packages/apps/Gallery2/tests/src/com/android/gallery3d/glrenderer/
H A DGLCanvasMock.java52 public void fillRect(float x, float y, float width, float height, int color) { argument
56 mFillRectColor = color;
H A DGLCanvasTest.java33 private static GLPaint newColorPaint(int color) { argument
35 paint.setColor(color);
74 // set the blending function and color correctly.
84 // Test one color to make sure blend function is set.
193 canvas.drawLine(2, 7, 1, 8, newColorPaint(0) /* color */);
237 canvas.fillRect(2, 7, 1, 8, 0 /* color */);
299 int color = 0;
302 canvas.drawLine(0, 0, 1, 1, newColorPaint(color));
319 canvas.drawLine(0, 0, 1, 1, newColorPaint(color));
330 canvas.drawLine(0, 0, 1, 1, newColorPaint(color));
[all...]
/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/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 )

Completed in 502 milliseconds

123