Searched refs:colors (Results 1 - 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
H A DLinearColorPreference.java67 LinearColorBar colors = (LinearColorBar)view.findViewById(
69 colors.setShowIndicator(false);
70 colors.setColors(mRedColor, mYellowColor, mGreenColor);
71 colors.setRatios(mRedRatio, mYellowRatio, mGreenRatio);
72 colors.setColoredRegions(mColoredRegions);
73 colors.setOnRegionTappedListener(mOnRegionTappedListener);
H A DProcessStatsUi.java455 LinearColorPreference colors = new LinearColorPreference(getActivity());
456 colors.setOrder(-1);
473 colors.setColoredRegions(LinearColorBar.REGION_RED);
482 colors.setColors(badnessColor, badnessColor, badnessColor);
576 colors.setRatios(usedRatio, 0, 1-usedRatio);
579 colors.setOnRegionTappedListener(this);
582 colors.setColoredRegions(LinearColorBar.REGION_RED);
587 colors.setColoredRegions(LinearColorBar.REGION_RED
595 colors.setColoredRegions(LinearColorBar.REGION_ALL);
600 colors
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventColorCache.java27 * A cache for event colors and event color keys stored based upon calendar account name and type.
59 * Retrieve an array of colors for a specific account name and type.
62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType));
63 if (colors == null) {
66 int[] ret = new int[colors.size()];
68 ret[i] = colors.get(i);
81 * Sorts the arrays of colors based on a comparator.
H A DEventColorPickerDialog.java27 * A dialog which displays event colors, with an additional button for the calendar color.
40 public static EventColorPickerDialog newInstance(int[] colors, int selectedColor, argument
43 ret.initialize(R.string.event_color_picker_dialog_title, colors, selectedColor, NUM_COLUMNS,
H A DEditEventFragment.java373 // If the account name/type is null, the calendar event colors cannot be
395 int[] colors = mModel.getCalendarEventColors();
397 mColorPickerDialog = EventColorPickerDialog.newInstance(colors,
402 mColorPickerDialog.setColors(colors, mModel.getEventColor());
530 // Start a query in the background to read the list of calendars and colors
/packages/apps/Calendar/src/com/android/calendar/
H A DCalendarColorPickerDialog.java119 ArrayList<Integer> colors = new ArrayList<Integer>();
126 colors.add(displayColor);
128 Integer[] colorsToSort = colors.toArray(new Integer[colors.size()]);
207 public void setColors(int[] colors) { argument
208 throw new IllegalStateException("Must call setCalendarId() to update calendar colors");
212 public void setColors(int[] colors, int selectedColor) { argument
213 throw new IllegalStateException("Must call setCalendarId() to update calendar colors");
H A DEventInfoFragment.java535 ArrayList<Integer> colors = new ArrayList<Integer>();
543 colors.add(displayColor);
547 Integer[] sortedColors = new Integer[colors.size()];
548 Arrays.sort(colors.toArray(sortedColors), new HsvColorComparator());
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorBrightnessView.java85 int[] colors = new int[16 * 16];
86 for (int i = 0; i < colors.length; i++) {
89 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444;
91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888);
H A DColorCompareView.java76 int[] colors = new int[imgdim * imgdim];
77 for (int i = 0; i < colors.length; i++) {
80 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444;
82 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888);
H A DColorHueView.java190 int[] colors = new int[checkdim * checkdim];
191 for (int i = 0; i < colors.length; i++) {
194 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444;
196 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888);
H A DColorOpacityView.java90 int[] colors = new int[imgdim * imgdim];
91 for (int i = 0; i < colors.length; i++) {
94 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444;
96 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888);
H A DColorSaturationView.java85 int[] colors = new int[16 * 16];
86 for (int i = 0; i < colors.length; i++) {
89 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444;
91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888);
H A DColorRectView.java133 int[] colors = new int[] {
152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DImageDraw.java193 int[] colors = new int[16 * 16];
194 for (int i = 0; i < colors.length; i++) {
197 colors[i] = (x == y) ? 0xFF777777 : 0xFF222222;
199 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBubbleTextView.java349 public void setTextColor(ColorStateList colors) { argument
350 mTextColor = colors.getDefaultColor();
351 super.setTextColor(colors);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DDefaultSuggestionView.java120 ColorStateList colors = getResources().getColorStateList(R.color.url_text);
121 text.setSpan(new TextAppearanceSpan(null, 0, 0, colors, null),
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
H A DPolarClockWallpaper.java196 final int[] colors = mColors;
197 final int count = colors.length;
200 colors[i] = Color.HSBtoColor(i * invCount, mSaturation, mBrightness);
/packages/apps/Settings/src/com/android/settings/fuelgauge/
H A DBatteryHistoryChart.java68 void setColors(int[] colors) { argument
69 mColors = colors;
70 mPaints = new Paint[colors.length];
71 for (int i=0; i<colors.length; i++) {
73 mPaints[i].setColor(colors[i]);

Completed in 1038 milliseconds