Home
last modified time | relevance | path

Searched refs:argb (Results 1 – 25 of 78) sorted by relevance

1234

/aosp12/frameworks/base/core/java/com/android/internal/graphics/cam/
H A DCamUtils.java109 public static float lstarFromInt(int argb) { in lstarFromInt() argument
110 return lstarFromY(yFromInt(argb)); in lstarFromInt()
125 static float yFromInt(int argb) { in yFromInt() argument
126 final float r = linearized(Color.red(argb)); in yFromInt()
127 final float g = linearized(Color.green(argb)); in yFromInt()
128 final float b = linearized(Color.blue(argb)); in yFromInt()
135 static float[] xyzFromInt(int argb) { in xyzFromInt() argument
136 final float r = linearized(Color.red(argb)); in xyzFromInt()
137 final float g = linearized(Color.green(argb)); in xyzFromInt()
138 final float b = linearized(Color.blue(argb)); in xyzFromInt()
H A DCam.java143 public static Cam fromInt(int argb) { in fromInt() argument
144 return fromIntInFrame(argb, Frame.DEFAULT); in fromInt()
152 public static Cam fromIntInFrame(int argb, @NonNull Frame frame) { in fromIntInFrame() argument
154 float[] xyz = CamUtils.xyzFromInt(argb); in fromIntInFrame()
328 int argb = ColorUtils.XYZToColor(x, y, z); in viewed() local
329 return argb; in viewed()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DColorPreference.java89 final int argb = getValue(); in onBindViewHolder() local
90 if (Color.alpha(argb) < 255) { in onBindViewHolder()
97 mPreviewColor = new ColorDrawable(argb); in onBindViewHolder()
100 mPreviewColor.setColor(argb); in onBindViewHolder()
116 final int argb = getValueAt(index); in onBindListItem() local
117 final int alpha = Color.alpha(argb); in onBindListItem()
128 ((ColorDrawable) foreground).setColor(argb); in onBindListItem()
130 swatch.setImageDrawable(new ColorDrawable(argb)); in onBindListItem()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DRotationAnimationUtilsTest.java143 bitmap.setPixel(i, j, Color.argb(1, luma, luma, luma)); in createBitmap()
159 swBitmap.setPixel(i, 0, Color.argb(1, luma, luma, luma)); in setBorderLuma()
160 swBitmap.setPixel(i, height - 1, Color.argb(1, luma, luma, luma)); in setBorderLuma()
163 swBitmap.setPixel(0, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
164 swBitmap.setPixel(width - 1, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/
H A DBitmap_Delegate.java274 int[] argb = new int[width * height]; in nativeCopy() local
275 srcImage.getRGB(0, 0, width, height, argb, 0, width); in nativeCopy()
276 image.setRGB(0, 0, width, height, argb, 0, width); in nativeCopy()
744 int[] argb = new int[w * h]; in createCopy() local
745 image.getRGB(0, 0, image.getWidth(), image.getHeight(), argb, 0, image.getWidth()); in createCopy()
748 final int length = argb.length; in createCopy()
750 int a = (argb[i] >>> 24 * alpha) / 255; in createCopy()
751 argb[i] = (a << 24) | (argb[i] & 0x00FFFFFF); in createCopy()
755 result.setRGB(0, 0, w, h, argb, 0, w); in createCopy()
H A DBaseCanvas_Delegate.java757 int[] argb = new int[w * h]; in fixAlpha8Bitmap() local
758 image.getRGB(0, 0, image.getWidth(), image.getHeight(), argb, 0, image.getWidth()); in fixAlpha8Bitmap()
760 final int length = argb.length; in fixAlpha8Bitmap()
762 argb[i] &= 0xFF000000; in fixAlpha8Bitmap()
764 argb[i] |= texture.getElem(i) & 0x00FFFFFF; in fixAlpha8Bitmap()
768 image.setRGB(0, 0, w, h, argb, 0, w); in fixAlpha8Bitmap()
H A DColor_Delegate.java38 return Color.argb(alpha, rgb.getRed(), rgb.getGreen(), rgb.getBlue()); in nativeHSVToColor()
/aosp12/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
H A DColorExtractor.java71 int argb = bitmap.getPixel(x, y); in findDominantColorByHue() local
72 int alpha = 0xFF & (argb >> 24); in findDominantColorByHue()
78 int rgb = argb | 0xFF000000; in findDominantColorByHue()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
H A DMinimizedDockShadow.java58 final int middleColor = Color.argb( in updatePaint()
60 final int quarter = Color.argb( in updatePaint()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DDragShadowBuilder.java79 paint.setShadowLayer(mShadowRadius, 0, 0, Color.argb(opacity, 0, 0, 0)); in onDrawShadow()
84 paint.setShadowLayer(mShadowRadius, 0, mShadowRadius, Color.argb(opacity, 0, 0, 0)); in onDrawShadow()
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/
H A DPointProvider.java27 float[] fromInt(@ColorInt int argb); in fromInt() argument
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DGLES11Canvas.java687 public void clearBuffer(float[] argb) { in clearBuffer() argument
688 if(argb != null && argb.length == 4) { in clearBuffer()
689 mGL.glClearColor(argb[1], argb[2], argb[3], argb[0]); in clearBuffer()
H A DGLCanvas.java45 public abstract void clearBuffer(float[] argb); in clearBuffer() argument
/aosp12/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
H A DSwitchController.java186 public MetaData setIconBackgoundArgb(int argb) { in setIconBackgoundArgb() argument
187 mIconBackgroundArgb = argb; in setIconBackgoundArgb()
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DColor.java1042 int argb = in pack() local
1047 return (argb & 0xffffffffL) << 32; in pack()
1318 public static int argb( in argb() method in Color
1337 public static int argb(float alpha, float red, float green, float blue) { in argb() method in Color
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DPhotoProcessorTest.java50 assertEquals(Color.argb(255, 255, 255, 255), normalized.getPixel(0, 0)); in testTransparency()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A DColorPreferenceTest.java181 final int argb = mColorPreference.getValueAt(testIndex); in onBindListItem_colorDrawable_matchColor() local
182 final int alpha = Color.alpha(argb); in onBindListItem_colorDrawable_matchColor()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
H A DIconView.java225 int startColor = Color.argb(0, 0, 0, 0); in onDraw()
226 int endColor = Color.argb(200, 0, 0, 0); in onDraw()
H A DCategorySelected.java26 mPaint.setColor(Color.argb(128, 128, 128, 128)); in onDraw()
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifPatternDrawable.java286 this.color = Color.argb(COLOR_ALPHA_INT, r, g, b); in setColor()
295 return Color.argb(255, Color.red(color), Color.green(color), Color.blue(color)); in getColor()
/aosp12/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DFadeBackground.java60 Color.argb(0, Color.red(color), Color.green(color), Color.blue(color)); in createAnimator()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DNotificationUtils.java52 return Color.argb( in interpolateColors()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DProgressRenderer.java121 paint.setColor(Color.argb((int) (alpha * 255), 255, 255, 255)); in createProgressPaint()
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java43 public abstract void clearBuffer(float[] argb); in clearBuffer() argument
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DKeyguardUserSwitcherScrim.java102 new int[] { Color.argb( in updatePaint()

1234