Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskConvertImageToRGBPreview.java281 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/
DSwitchCompatUtils.java69 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/com/android/launcher3/compat/
DWallpaperManagerCompatVOMR1.java58 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()
DWallpaperManagerCompatVL.java73 String colors = getDevicePrefs(mContext).getString(KEY_COLORS, ""); in WallpaperManagerCompatVL() local
75 if (colors.startsWith(VERSION_PREFIX)) { in WallpaperManagerCompatVL()
76 Pair<Integer, WallpaperColorsCompat> storedValue = parseValue(colors); in WallpaperManagerCompatVL()
/packages/apps/Launcher3/src/com/android/launcher3/dynamicui/
DWallpaperColorInfo.java63 public void onColorsChanged(WallpaperColorsCompat colors, int which) { in onColorsChanged() argument
67 update(colors); in onColorsChanged()
73 Pair<Integer, Integer> colors = mExtractionType.extractInto(wallpaperColors); in update() local
74 if (colors != null) { in update()
75 mMainColor = colors.first; in update()
76 mSecondaryColor = colors.second; in update()
DColorExtractionAlgorithm.java790 LinkedList<Integer> colors = new LinkedList<>(); in getMainColors() local
792 colors.add(wallpaperColors.getPrimaryColor()); in getMainColors()
795 colors.add(wallpaperColors.getSecondaryColor()); in getMainColors()
798 colors.add(wallpaperColors.getTertiaryColor()); in getMainColors()
800 return colors; in getMainColors()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarColorPickerDialog.java119 ArrayList<Integer> colors = new ArrayList<Integer>(); in onQueryComplete() local
126 colors.add(displayColor); in onQueryComplete()
128 Integer[] colorsToSort = colors.toArray(new Integer[colors.size()]); in onQueryComplete()
207 public void setColors(int[] colors) { in setColors() argument
212 public void setColors(int[] colors, int selectedColor) { in setColors() argument
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DBitmapUtils.java192 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/Calendar/src/com/android/calendar/event/
DEventColorCache.java62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType)); in getColorArray() local
63 if (colors == null) { in getColorArray()
66 int[] ret = new int[colors.size()]; in getColorArray()
68 ret[i] = colors.get(i); in getColorArray()
DEventColorPickerDialog.java40 public static EventColorPickerDialog newInstance(int[] colors, int selectedColor, in newInstance() argument
43 ret.initialize(R.string.event_color_picker_dialog_title, colors, selectedColor, NUM_COLUMNS, in newInstance()
DEditEventFragment.java395 int[] colors = mModel.getCalendarEventColors();
397 mColorPickerDialog = EventColorPickerDialog.newInstance(colors,
402 mColorPickerDialog.setColors(colors, mModel.getEventColor());
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
DColorCompareView.java76 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()
DColorOpacityView.java90 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()
DColorSaturationView.java85 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()
DColorBrightnessView.java85 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()
DColorHueView.java190 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()
DColorRectView.java133 int[] colors = new int[] { in setUpColorPanel() local
152 0, mBorder, 0, mHeight - mBorder, colors, null, Shader.TileMode.CLAMP); in setUpColorPanel()
/packages/apps/DevCamera/src/com/android/devcamera/
DBitmapUtility.java47 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/
DCube.java44 int colors[] = { in Cube() local
78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); in Cube()
81 mColorBuffer.put(colors); in Cube()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageDraw.java193 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/Launcher3/src/com/android/launcher3/
DBubbleTextView.java437 public void setTextColor(ColorStateList colors) { in setTextColor() argument
438 mTextColor = colors.getDefaultColor(); in setTextColor()
439 super.setTextColor(colors); in setTextColor()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java724 GradientColors colors = extractor.getColors(WallpaperManager.FLAG_LOCK, in onColorsChanged() local
726 mBackgroundGradient.setColors(colors); in onColorsChanged()
727 updateTheme(colors.supportsDarkText()); in onColorsChanged()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java424 int[] colors = mInjector.debugHelper.getNextColors(); in showDebugMessage() local
429 mActivity.getActionBar().setBackgroundDrawable(new ColorDrawable(colors[0])); in showDebugMessage()
430 mActivity.getWindow().setStatusBarColor(colors[1]); in showDebugMessage()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionView.java120 ColorStateList colors = getResources().getColorStateList(R.color.url_text); in formatUrl() local
121 text.setSpan(new TextAppearanceSpan(null, 0, 0, colors, null), in formatUrl()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java65 void setColors(int[] colors) { in setColors() argument
66 mColors = colors; in setColors()
67 mPaints = new Paint[colors.length]; in setColors()
68 for (int i=0; i<colors.length; i++) { in setColors()
70 mPaints[i].setColor(colors[i]); in setColors()

12