Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/graphics/cam/
DCamUtils.java221 public static float lstarFromInt(int argb) { in lstarFromInt() argument
222 return lstarFromY(yFromInt(argb)); in lstarFromInt()
237 static float yFromInt(int argb) { in yFromInt() argument
238 final float r = linearized(Color.red(argb)); in yFromInt()
239 final float g = linearized(Color.green(argb)); in yFromInt()
240 final float b = linearized(Color.blue(argb)); in yFromInt()
247 static float[] xyzFromInt(int argb) { in xyzFromInt() argument
248 final float r = linearized(Color.red(argb)); in xyzFromInt()
249 final float g = linearized(Color.green(argb)); in xyzFromInt()
250 final float b = linearized(Color.blue(argb)); in xyzFromInt()
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()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
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()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DColorExtractor.java82 int argb = bitmap.getPixel(x, y); in findDominantColorByHue() local
83 int alpha = 0xFF & (argb >> 24); in findDominantColorByHue()
89 int rgb = argb | 0xFF000000; in findDominantColorByHue()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextHelper.kt43 Color.argb(ambientShadowInfo.alpha, 0f, 0f, 0f) in applyShadows()
58 Color.argb(keyShadowInfo.alpha, 0f, 0f, 0f) in applyShadows()
DDoubleShadowIconDrawable.kt86 PorterDuffColorFilter(Color.argb(alpha, 0f, 0f, 0f), PorterDuff.Mode.MULTIPLY), in createShadowRenderEffect()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPointProvider.java27 float[] fromInt(@ColorInt int argb); in fromInt() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/monet/
DColorSchemeTest.java167 new ColorScheme(Color.argb(0, 0, 0, 0xf), false /* darkTheme */).toString(); in testToString()
168 new ColorScheme(Color.argb(0xff, 0xff, 0, 0), false /* darkTheme */).toString(); in testToString()
172 new ColorScheme(Color.argb(0, 0, 0, 0xf), true /* darkTheme */).toString(); in testToString()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/
DDropZoneView.java109 mHighlightColor = Color.argb(HIGHLIGHT_ALPHA, Color.red(c), Color.green(c), Color.blue(c)); in DropZoneView()
110 mSplashScreenColor = Color.argb(SPLASHSCREEN_ALPHA, 0, 0, 0); in DropZoneView()
167 mSplashScreenColor = Color.argb(SPLASHSCREEN_ALPHA, c.red(), c.green(), c.blue()); in setAppInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DColorUtil.kt25 Color.argb( in getColorWithAlpha()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DSwitchController.java186 public MetaData setIconBackgoundArgb(int argb) { in setIconBackgoundArgb() argument
187 mIconBackgroundArgb = argb; in setIconBackgoundArgb()
/frameworks/base/graphics/java/android/graphics/
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
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherScrim.java102 new int[] { Color.argb( in updatePaint()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLCanvas.java43 public abstract void clearBuffer(float[] argb); in clearBuffer() argument
DGLES20Canvas.java370 public void clearBuffer(float[] argb) { in clearBuffer() argument
371 GLES20.glClearColor(argb[1], argb[2], argb[3], argb[0]); in clearBuffer()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationUtils.java55 return Color.argb( in interpolateColors()
/frameworks/base/core/java/android/view/
DRoundScrollbarRenderer.java116 return Color.argb(alphaByte, Color.red(color), Color.green(color), Color.blue(color)); in applyAlpha()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DDismissView.kt140 val gradientColorWithAlpha = Color.argb(alpha.toInt(), in createGradient()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java284 return Color.argb(Color.alpha(color), in processColor()
350 fg = Color.argb(alpha, r, g, b); in findAlphaToMeetContrast()
357 return Color.argb(high, r, g, b); in findAlphaToMeetContrast()
661 return Color.argb(a, r, g, b); in compositeColors()
/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java62 return Color.argb(a, r, g, b); in compositeColors()
626 return Color.argb((int) a, (int) r, (int) g, (int) b); in blendARGB()
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DSurfaceFlingerPerfTest.java76 BufferFlinger bufferTracker = createBufferTracker(Color.argb(getRandomColorComponent(), in setup()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DBackgroundWindowManager.java218 return android.graphics.Color.argb(Color.alpha(origThemeColor), in getThemeColorForBackground()
/frameworks/base/core/java/android/widget/
DTextViewTranslationCallback.java352 return Color.argb(newAlpha, Color.red(color), Color.green(color), Color.blue(color)); in colorWithAlpha()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java156 mCurrentRootView.setBackgroundColor(Color.argb(params.dimAmount, 0, 0, 0)); in addView()

12