/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/ |
H A D | WallpaperManagerCompatVOMR1.java | 57 public void onColorsChanged(WallpaperColors colors, int which) { 58 listener.onColorsChanged(convertColorsObject(colors), which); 64 private WallpaperColorsCompat convertColorsObject(WallpaperColors colors) { argument 65 if (colors == null) { 68 Color primary = colors.getPrimaryColor(); 69 Color secondary = colors.getSecondaryColor(); 70 Color tertiary = colors.getTertiaryColor(); 77 colorHints = (Integer) mWCColorHintsMethod.invoke(colors);
|
H A D | WallpaperManagerCompat.java | 55 * Interface definition for a callback to be invoked when colors change on a wallpaper. 59 void onColorsChanged(WallpaperColorsCompat colors, int which); argument
|
H A D | WallpaperManagerCompatVL.java | 71 String colors = getDevicePrefs(mContext).getString(KEY_COLORS, ""); 73 if (colors.startsWith(VERSION_PREFIX)) { 74 Pair<Integer, WallpaperColorsCompat> storedValue = parseValue(colors); 146 * Parses the stored value and returns the wallpaper id and wallpaper colors. 200 * Extracts the wallpaper colors and sends the result back through the receiver. 212 // For live wallpaper, extract colors from thumbnail
|
H A D | ColorExtractionAlgorithm.java | 120 // Generate the 10 colors palette by offsetting each one of them 144 // Dark colors: 190 * Offsets all colors by a delta, clamping values that go beyond what's 323 // a best fit. Each palette is defined as 22 HSL colors 789 LinkedList<Integer> colors = new LinkedList<>(); 791 colors.add(wallpaperColors.getPrimaryColor()); 794 colors.add(wallpaperColors.getSecondaryColor()); 797 colors.add(wallpaperColors.getTertiaryColor()); 799 return colors;
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | SwitchCompatUtils.java | 69 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_ui_overrides/com/android/launcher3/uioverrides/ |
H A D | WallpaperColorInfo.java | 80 public void onColorsChanged(WallpaperColorsCompat colors, int which) { argument 82 update(colors); 88 Pair<Integer, Integer> colors = mExtractionType.extractInto(wallpaperColors); 89 if (colors != null) { 90 mMainColor = colors.first; 91 mSecondaryColor = colors.second;
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | BitmapUtility.java | 47 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 D | TaskConvertImageToRGBPreview.java | 281 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 D | Cube.java | 44 int colors[] = { 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); 81 mColorBuffer.put(colors);
|
/packages/apps/Calendar/src/com/android/calendar/event/ |
H A D | EventColorCache.java | 27 * 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 D | EventColorPickerDialog.java | 27 * 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,
|
/packages/apps/Launcher3/src/com/android/launcher3/graphics/ |
H A D | ColorScrim.java | 57 WallpaperColorInfo colors = WallpaperColorInfo.getInstance(view.getContext()); 60 colors.getSecondaryColor(), alpha), Interpolators.LINEAR);
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
H A D | WallpaperColorInfo.java | 83 public void onColorsChanged(WallpaperColors colors, int which) { argument 85 update(colors);
|
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | CalendarColorPickerDialog.java | 119 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 D | BitmapUtils.java | 180 * 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 D | ColorBrightnessView.java | 85 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 D | ColorCompareView.java | 76 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 D | ColorHueView.java | 190 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 D | ColorOpacityView.java | 90 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 D | ColorSaturationView.java | 85 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 D | ColorRectView.java | 133 int[] colors = new int[] { 152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP);
|
/packages/apps/TV/tests/input/tools/ |
H A D | get_test_logos.sh | 40 colors=( 54 url=${BASE}"&chld=Ch+"${n}"|7|00F|${icons[${i}]}|24|${colors[${c}]}|FFF"
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
H A D | LetterTileDrawable.java | 97 @NonNull private final TypedArray colors; field in class:LetterTileDrawable 120 colors = res.obtainTypedArray(R.array.letter_tile_colors); 270 final int color = Math.abs(identifier.hashCode()) % colors.length(); 271 return colors.getColor(color, defaultColor);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | ImageDraw.java | 193 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 D | DefaultSuggestionView.java | 120 ColorStateList colors = getResources().getColorStateList(R.color.url_text); 121 text.setSpan(new TextAppearanceSpan(null, 0, 0, colors, null),
|