/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskConvertImageToRGBPreview.java | 281 int[] colors = new int[len]; in colorInscribedDataCircleFromYuvImage() local 327 colors[offsetColor] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 328 colors[offsetColor + 1] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 329 colors[offsetColor + outputPixelStride] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 330 colors[offsetColor + outputPixelStride + 1] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 344 colors[offsetColor] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 376 colors[offsetColor] = (red00 & 255) << 16 | (green00 & 255) << 8 in colorInscribedDataCircleFromYuvImage() 381 colors[offsetColor + 1] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() 410 colors[offsetColor + 1] = (red01 & 255) << 16 | (green01 & 255) << 8 in colorInscribedDataCircleFromYuvImage() 415 colors[offsetColor + outputPixelStride] = OUT_OF_BOUNDS_COLOR; in colorInscribedDataCircleFromYuvImage() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | SwitchCompatUtils.java | 69 final int[] colors = new int[3]; in getSwitchThumbColorStateList() local 73 colors[i] = getColor(Color.parseColor("#ffbdbdbd"), 1f); in getSwitchThumbColorStateList() 76 colors[i] = color; in getSwitchThumbColorStateList() 80 colors[i] = getThemeAttrColor(context, typedValue, in getSwitchThumbColorStateList() 83 return new ColorStateList(states, colors); in getSwitchThumbColorStateList() 89 final int[] colors = new int[3]; in getSwitchTrackColorStateList() local 93 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.1f); in getSwitchTrackColorStateList() 96 colors[i] = getColor(color, 0.3f); in getSwitchTrackColorStateList() 100 colors[i] = getThemeAttrColor(context, typedValue, android.R.attr.colorForeground, 0.3f); in getSwitchTrackColorStateList() 102 return new ColorStateList(states, colors); in getSwitchTrackColorStateList()
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/ |
D | WallpaperManagerCompatVOMR1.java | 58 public void onColorsChanged(WallpaperColors colors, int which) { in addOnColorsChangedListener() 59 listener.onColorsChanged(convertColorsObject(colors), which); in addOnColorsChangedListener() 65 private WallpaperColorsCompat convertColorsObject(WallpaperColors colors) { in convertColorsObject() argument 66 if (colors == null) { in convertColorsObject() 69 Color primary = colors.getPrimaryColor(); in convertColorsObject() 70 Color secondary = colors.getSecondaryColor(); in convertColorsObject() 71 Color tertiary = colors.getTertiaryColor(); in convertColorsObject() 78 colorHints = (Integer) mWCColorHintsMethod.invoke(colors); in convertColorsObject()
|
D | ColorExtractionAlgorithm.java | 783 LinkedList<Integer> colors = new LinkedList<>(); in getMainColors() local 785 colors.add(wallpaperColors.getPrimaryColor()); in getMainColors() 788 colors.add(wallpaperColors.getSecondaryColor()); in getMainColors() 791 colors.add(wallpaperColors.getTertiaryColor()); in getMainColors() 793 return colors; in getMainColors()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | FallbackHome.java | 66 public void onColorsChanged(WallpaperColors colors, int which) { 67 if (colors != null) { 70 updateVisibilityFlagsFromColors(colors, decorView.getSystemUiVisibility())); 100 WallpaperColors colors = mWallManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in onCreate() local 101 if (colors == null) { in onCreate() 104 flags = updateVisibilityFlagsFromColors(colors, flags); in onCreate() 165 private int updateVisibilityFlagsFromColors(WallpaperColors colors, int flags) { in updateVisibilityFlagsFromColors() argument 166 if ((colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0) { in updateVisibilityFlagsFromColors()
|
/packages/apps/Car/Settings/src/com/android/car/settings/ |
D | FallbackHome.java | 70 public void onColorsChanged(WallpaperColors colors, int which) { 71 if (colors != null) { 74 updateVisibilityFlagsFromColors(colors, decorView.getSystemUiVisibility())); 104 WallpaperColors colors = mWallManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in onCreate() local 105 if (colors == null) { in onCreate() 108 flags = updateVisibilityFlagsFromColors(colors, flags); in onCreate() 169 private int updateVisibilityFlagsFromColors(WallpaperColors colors, int flags) { in updateVisibilityFlagsFromColors() argument 170 if ((colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0) { in updateVisibilityFlagsFromColors()
|
/packages/apps/Settings/src/com/android/settings/ |
D | FallbackHome.java | 67 public void onColorsChanged(WallpaperColors colors, int which) { 68 if (colors != null) { 71 updateVisibilityFlagsFromColors(colors, decorView.getSystemUiVisibility())); 140 final WallpaperColors colors = in loadWallpaperColors() 144 if (colors == null) { in loadWallpaperColors() 149 return updateVisibilityFlagsFromColors(colors, flags); in loadWallpaperColors() 188 private int updateVisibilityFlagsFromColors(WallpaperColors colors, int flags) { in updateVisibilityFlagsFromColors() argument 189 if ((colors.getColorHints() & WallpaperColors.HINT_SUPPORTS_DARK_TEXT) != 0) { in updateVisibilityFlagsFromColors()
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/ |
D | WallpaperColorInfo.java | 88 public void onColorsChanged(WallpaperColorsCompat colors, int which) { in onColorsChanged() argument 90 update(colors); in onColorsChanged() 96 Pair<Integer, Integer> colors = mExtractionType.extractInto(wallpaperColors); in update() local 97 if (colors != null) { in update() 98 mMainColor = colors.first; in update() 99 mSecondaryColor = colors.second; in update()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/ |
D | ParticleCollection.java | 79 final List<Integer> colors = new ArrayList<>(); in ParticleCollection() local 82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection() 83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection() 84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection() 85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection() 96 borderWidth, order[i], NUM_PARTICLES, colors); in ParticleCollection()
|
D | AnimationParticle.java | 77 int index, int totalParticles, List<Integer> colors) { in AnimationParticle() argument 91 mAssignedColor = colors.get(index % colors.size()); in AnimationParticle()
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | ParticleCollection.java | 79 final List<Integer> colors = new ArrayList<>(); in ParticleCollection() local 82 colors.add(resources.getColor(R.color.face_anim_particle_color_1, theme)); in ParticleCollection() 83 colors.add(resources.getColor(R.color.face_anim_particle_color_2, theme)); in ParticleCollection() 84 colors.add(resources.getColor(R.color.face_anim_particle_color_3, theme)); in ParticleCollection() 85 colors.add(resources.getColor(R.color.face_anim_particle_color_4, theme)); in ParticleCollection() 96 borderWidth, order[i], NUM_PARTICLES, colors); in ParticleCollection()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | RenameMobileNetworkDialogFragment.java | 177 public ColorAdapter(Context context, int resource, Color[] colors) { in ColorAdapter() argument 178 super(context, resource, colors); in ColorAdapter() 211 final Color[] colors = new Color[colorInts.length]; in getColors() local 212 for (int i = 0; i < colors.length; i++) { in getColors() 213 colors[i] = new Color(colorStrings[i], colorInts[i], iconSize, strokeWidth); in getColors() 215 return colors; in getColors()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MediaButtonController.java | 220 private void updateSpinerColors(MediaSourceColors colors) { in updateSpinerColors() argument 221 int color = getMediaSourceColor(colors); in updateSpinerColors() 225 private int getMediaSourceColor(@Nullable MediaSourceColors colors) { in getMediaSourceColor() argument 228 return colors != null ? colors.getAccentColor(defaultColor) : defaultColor; in getMediaSourceColor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorCompareView.java | 76 int[] colors = new int[imgdim * imgdim]; in makeCheckPaint() local 77 for (int i = 0; i < colors.length; i++) { in makeCheckPaint() 80 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444; in makeCheckPaint() 82 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888); in makeCheckPaint()
|
D | ColorSaturationView.java | 85 int[] colors = new int[16 * 16]; in ColorSaturationView() local 86 for (int i = 0; i < colors.length; i++) { in ColorSaturationView() 89 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444; in ColorSaturationView() 91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); in ColorSaturationView()
|
D | ColorOpacityView.java | 90 int[] colors = new int[imgdim * imgdim]; in makeCheckPaint() local 91 for (int i = 0; i < colors.length; i++) { in makeCheckPaint() 94 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444; in makeCheckPaint() 96 Bitmap bitmap = Bitmap.createBitmap(colors, imgdim, imgdim, Bitmap.Config.ARGB_8888); in makeCheckPaint()
|
D | ColorBrightnessView.java | 85 int[] colors = new int[16 * 16]; in ColorBrightnessView() local 86 for (int i = 0; i < colors.length; i++) { in ColorBrightnessView() 89 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444; in ColorBrightnessView() 91 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); in ColorBrightnessView()
|
D | ColorHueView.java | 190 int[] colors = new int[checkdim * checkdim]; in makeCheckPaint() local 191 for (int i = 0; i < colors.length; i++) { in makeCheckPaint() 194 colors[i] = (x == y) ? 0xFFAAAAAA : 0xFF444444; in makeCheckPaint() 196 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); in makeCheckPaint()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | BitmapUtility.java | 47 int[] colors = new int[len]; in bitmapFromYuvImage() local 52 colors[i] = green << 16 | green << 8 | green | alpha; in bitmapFromYuvImage() 54 Bitmap b = Bitmap.createBitmap(colors, w, h, Bitmap.Config.ARGB_8888); in bitmapFromYuvImage()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/cube/ |
D | Cube.java | 44 int colors[] = { in Cube() local 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube() 81 mColorBuffer.put(colors); in Cube()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | MaterialProgressDrawable.java | 95 private final int[] colors = new int[]{ field in MaterialProgressDrawable 139 mRing.setColors(colors); in MaterialProgressDrawable() 225 public void setColorSchemeColors(int... colors) { in setColorSchemeColors() argument 226 mRing.setColors(colors); in setColorSchemeColors() 592 public void setColors(@NonNull int[] colors) { in setColors() argument 593 mColors = colors; in setColors()
|
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/ |
D | LinkViewerActivity.java | 98 int[] colors = new int[width * height]; in qrToBitmap() local 101 colors[y * width + x] = (matrix.get(x, y) != 0) in qrToBitmap() 107 return Bitmap.createBitmap(colors, 0, width, width, height, Bitmap.Config.ALPHA_8); in qrToBitmap()
|
/packages/apps/Dialer/java/com/android/dialer/theme/ |
D | README.md | 72 * Add colors that are common throughout the entire app and need be themed. For 73 example, text colors, background colors and app primary and accent colors.
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | ImageDraw.java | 193 int[] colors = new int[16 * 16]; in makeCheckedPaint() local 194 for (int i = 0; i < colors.length; i++) { in makeCheckedPaint() 197 colors[i] = (x == y) ? 0xFF777777 : 0xFF222222; in makeCheckedPaint() 199 Bitmap bitmap = Bitmap.createBitmap(colors, 16, 16, Bitmap.Config.ARGB_8888); in makeCheckedPaint()
|
/packages/apps/Dialer/java/com/android/dialer/lettertile/ |
D | LetterTileDrawable.java | 97 @NonNull private final TypedArray colors; field in LetterTileDrawable 120 colors = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable() 270 final int color = Math.abs(identifier.hashCode()) % colors.length(); in pickColor() 271 return colors.getColor(color, defaultColor); in pickColor()
|