Home
last modified time | relevance | path

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

123

/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.java92 bitmap.setPixel(i, j, Color.argb(1, luma, luma, luma)); in createBitmap()
108 swBitmap.setPixel(i, 0, Color.argb(1, luma, luma, luma)); in setBorderLuma()
109 swBitmap.setPixel(i, height - 1, Color.argb(1, luma, luma, luma)); in setBorderLuma()
112 swBitmap.setPixel(0, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
113 swBitmap.setPixel(width - 1, i, Color.argb(1, luma, luma, luma)); in setBorderLuma()
/frameworks/base/tests/Input/src/com/android/server/input/
DKeyboardBacklightControllerTests.kt249 Color.argb(DEFAULT_BRIGHTNESS_VALUE_FOR_LEVEL[level], 0, 0, 0), in createKeyboard()
287 Color.argb(MAX_BRIGHTNESS, 0, 0, 0), in createKeyboard()
368 Color.argb(MAX_BRIGHTNESS, 0, 0, 0), in createKeyboard()
404 Color.argb(MAX_BRIGHTNESS, 0, 0, 0), in createKeyboard()
651 Color.argb(1, 0, 0, 0), in createKeyboard()
659 Color.argb(DEFAULT_BRIGHTNESS_VALUE_FOR_LEVEL[1], 0, 0, 0), in createKeyboard()
680 Color.argb(254, 0, 0, 0), in createKeyboard()
689 Color.argb(DEFAULT_BRIGHTNESS_VALUE_FOR_LEVEL[numLevels - 2], 0, 0, 0), in createKeyboard()
710 Color.argb(DEFAULT_BRIGHTNESS_VALUE_FOR_LEVEL[1], 0, 0, 0), in createKeyboard()
717 Color.argb(100, 0, 0, 0), in createKeyboard()
[all …]
/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.kt87 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/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.kt26 Color.argb( in getColorWithAlpha()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DEntryController.java166 public MetaData setIconBackgoundArgb(int argb) { in setIconBackgoundArgb() argument
167 mIconBackgroundArgb = argb; in setIconBackgoundArgb()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt41 Color.argb( in isLight()
/frameworks/base/graphics/java/android/graphics/
DColor.java1045 int argb = in pack() local
1050 return (argb & 0xffffffffL) << 32; in pack()
1321 public static int argb( in argb() method in Color
1340 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.java176 return Color.argb(alphaByte, Color.red(color), Color.green(color), Color.blue(color)); in applyAlpha()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java372 return Color.argb(Color.alpha(color), in processColor()
438 fg = Color.argb(alpha, r, g, b); in findAlphaToMeetContrast()
445 return Color.argb(high, r, g, b); in findAlphaToMeetContrast()
749 return Color.argb(a, r, g, b); in compositeColors()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/
DDismissView.kt198 val gradientColorWithAlpha = Color.argb(alpha.toInt(), in createGradient()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
DAppHeaderViewHolder.kt358 return Color.argb( in replaceColorAlpha()
476 Color.argb( in getAppNameAndButtonColor()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DBackgroundWindowManager.java219 return android.graphics.Color.argb(Color.alpha(origThemeColor), in getThemeColorForBackground()
/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/core/java/android/widget/
DTextViewTranslationCallback.java352 return Color.argb(newAlpha, Color.red(color), Color.green(color), Color.blue(color)); in colorWithAlpha()

123