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

12

/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DWallpaperManagerCompatVOMR1.java58 public void onColorsChanged(WallpaperColors colors, int which) {
59 listener.onColorsChanged(convertColorsObject(colors), which);
65 private WallpaperColorsCompat convertColorsObject(WallpaperColors colors) { argument
66 if (colors == null) {
69 Color primary = colors.getPrimaryColor();
70 Color secondary = colors.getSecondaryColor();
71 Color tertiary = colors.getTertiaryColor();
78 colorHints = (Integer) mWCColorHintsMethod.invoke(colors);
H A DWallpaperManagerCompat.java55 * Interface definition for a callback to be invoked when colors change on a wallpaper.
59 void onColorsChanged(WallpaperColorsCompat colors, int which); argument
H A DWallpaperManagerCompatVL.java73 String colors = getDevicePrefs(mContext).getString(KEY_COLORS, "");
75 if (colors.startsWith(VERSION_PREFIX)) {
76 Pair<Integer, WallpaperColorsCompat> storedValue = parseValue(colors);
148 * Parses the stored value and returns the wallpaper id and wallpaper colors.
202 * Extracts the wallpaper colors and sends the result back through the receiver.
214 // For live wallpaper, extract colors from thumbnail
/packages/apps/Messaging/src/com/android/messaging/util/
H A DSwitchCompatUtils.java69 final int[] colors = new int[3];
73 colors[i] = getColor(Color.parseColor("#ffbdbdbd"), 1f);
76 colors[i] = color;
80 colors[i] = getThemeAttrColor(context, typedValue,
83 return new ColorStateList(states, colors);
89 final int[] colors = new int[3];
93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f);
96 colors[i] = getColor(color, 0.3f);
100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f);
102 return new ColorStateList(states, colors);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
H A DWallpaperColorInfo.java63 public void onColorsChanged(WallpaperColorsCompat colors, int which) { argument
67 update(colors);
73 Pair<Integer, Integer> colors = mExtractionType.extractInto(wallpaperColors);
74 if (colors != null) {
75 mMainColor = colors.first;
76 mSecondaryColor = colors.second;
H A DColorExtractionAlgorithm.java121 // Generate the 10 colors palette by offsetting each one of them
145 // Dark colors:
191 * Offsets all colors by a delta, clamping values that go beyond what's
324 // a best fit. Each palette is defined as 22 HSL colors
790 LinkedList<Integer> colors = new LinkedList<>();
792 colors.add(wallpaperColors.getPrimaryColor());
795 colors.add(wallpaperColors.getSecondaryColor());
798 colors.add(wallpaperColors.getTertiaryColor());
800 return colors;
/packages/apps/DevCamera/src/com/android/devcamera/
H A DBitmapUtility.java47 int[] colors = new int[len];
52 colors[i] = green << 16 | green << 8 | green | alpha;
54 Bitmap b = Bitmap.createBitmap(colors, w, h, Bitmap.Config.ARGB_8888);
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DTaskConvertImageToRGBPreview.java281 int[] colors = new int[len];
327 colors[offsetColor] = OUT_OF_BOUNDS_COLOR;
328 colors[offsetColor + 1] = OUT_OF_BOUNDS_COLOR;
329 colors[offsetColor + outputPixelStride] = OUT_OF_BOUNDS_COLOR;
330 colors[offsetColor + outputPixelStride + 1] = OUT_OF_BOUNDS_COLOR;
344 colors[offsetColor] = OUT_OF_BOUNDS_COLOR;
376 colors[offsetColor] = (red00 & 255) << 16 | (green00 & 255) << 8
381 colors[offsetColor + 1] = OUT_OF_BOUNDS_COLOR;
410 colors[offsetColor + 1] = (red01 & 255) << 16 | (green01 & 255) << 8
415 colors[offsetColo
902 onPreviewDone(TaskImage resultImage, TaskImage inputImage, int[] colors, TaskInfo.Destination destination) argument
[all...]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/
H A DCube.java44 int colors[] = {
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4);
81 mColorBuffer.put(colors);
/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");
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
H A DBitmapUtils.java180 * Scales colors for given bitmap. This could be used as color filter for example.
192 int[] colors = new int[] {red(pixel), green(pixel), blue(pixel)};
195 colors[j] = (int)((colors[j] / 255.0) * (max[j] - min[j]) + min[j]);
198 pixels[i] = Color.rgb(colors[0], colors[1], colors[2]);
/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/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/apps/DocumentsUI/src/com/android/documentsui/
H A DAbstractActionHandler.java424 int[] colors = mInjector.debugHelper.getNextColors();
429 mActivity.getActionBar().setBackgroundDrawable(new ColorDrawable(colors[0]));
430 mActivity.getWindow().setStatusBarColor(colors[1]);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBubbleTextView.java437 public void setTextColor(ColorStateList colors) { argument
438 mTextColor = colors.getDefaultColor();
439 super.setTextColor(colors);
/packages/services/Telephony/src/com/android/phone/
H A DEmergencyDialer.java541 * Sets theme based on gradient colors
724 GradientColors colors = extractor.getColors(WallpaperManager.FLAG_LOCK,
726 mBackgroundGradient.setColors(colors);
727 updateTheme(colors.supportsDarkText());

Completed in 873 milliseconds

12