Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 53) sorted by relevance

123

/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DNetworkStatsUtilsTest.kt49 val red = NetworkStats(TEST_START, 0) in testOrderInsensitiveEquals() constant
51 assertTrue(orderInsensitiveEquals(red, blue)) in testOrderInsensitiveEquals()
52 assertTrue(orderInsensitiveEquals(blue, red)) in testOrderInsensitiveEquals()
55 red.combineValues(testEntry[1]) in testOrderInsensitiveEquals()
57 assertFalse(orderInsensitiveEquals(red, blue)) in testOrderInsensitiveEquals()
58 assertFalse(orderInsensitiveEquals(blue, red)) in testOrderInsensitiveEquals()
61 red.combineValues(testEntry[0]) in testOrderInsensitiveEquals()
62 assertTrue(orderInsensitiveEquals(red, blue)) in testOrderInsensitiveEquals()
63 assertTrue(orderInsensitiveEquals(blue, red)) in testOrderInsensitiveEquals()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Parser.java638 int red = (data[pos] & 0x30) >> 4; in parseC1() local
641 CaptionColor foregroundColor = new CaptionColor(opacity, red, green, blue); in parseC1()
644 red = (data[pos] & 0x30) >> 4; in parseC1()
647 CaptionColor backgroundColor = new CaptionColor(opacity, red, green, blue); in parseC1()
649 red = (data[pos] & 0x30) >> 4; in parseC1()
653 new CaptionColor(CaptionColor.OPACITY_SOLID, red, green, blue); in parseC1()
694 int red = (data[pos] & 0x30) >> 4; in parseC1() local
697 CaptionColor fillColor = new CaptionColor(opacity, red, green, blue); in parseC1()
699 red = (data[pos + 1] & 0x30) >> 4; in parseC1()
703 new CaptionColor(CaptionColor.OPACITY_SOLID, red, green, blue); in parseC1()
DCea708Data.java143 public final int red; field in Cea708Data.CaptionColor
147 public CaptionColor(int opacity, int red, int green, int blue) { in CaptionColor() argument
149 this.red = red; in CaptionColor()
156 OPACITY_MAP[opacity], COLOR_MAP[red], COLOR_MAP[green], COLOR_MAP[blue]); in getArgbValue()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DThemes.java135 target.setScale(Color.red(color) / 255f, Color.green(color) / 255f, in setColorScaleOnMatrix()
152 target.getArray()[4] = Color.red(dstColor) - Color.red(srcColor); in setColorChangeOnMatrix()
/packages/apps/Gallery2/jni/filters/
Dvibrance.c41 float red = (r-MAX(g, b))/256.f; in JNIFUNCF() local
42 float sx = (float)(Vib/(1+exp(-red*3))); in JNIFUNCF()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java353 final File red = new File(mDir, "red"); in testScan_Nomedia_Dir() local
355 red.mkdirs(); in testScan_Nomedia_Dir()
357 stage(R.raw.test_image, new File(red, "red.jpg")); in testScan_Nomedia_Dir()
366 final File redNomedia = new File(red, ".nomedia"); in testScan_Nomedia_Dir()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp211 val->color.rgb.red, val->color.rgb.green, val->color.rgb.blue); in term_settermprop()
485 cell->bg.red = 255; in getCellLocked()
515 cell->bg.red = 128; in getCellLocked()
566 return (0xff << 24 | color.rgb.red << 16 | color.rgb.green << 8 | color.rgb.blue); in toArgb()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DColorExtractionAlgorithm.java77 ColorUtils.RGBToHSL(Color.red(colorValue), Color.green(colorValue), in extractInto()
93 ColorUtils.RGBToHSL(Color.red(colorValue), Color.green(colorValue), Color.blue(colorValue), in extractInto()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalCallbacks.java45 public int setTermPropColor(int prop, int red, int green, int blue) { in setTermPropColor() argument
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/anim/
DColorMatcher.java25 int r = bucketize(Color.red(targetColor)); in findClosestColor()
DSwiperThemeMatcher.java39 int r = Color.red(closestColor); in findTheme()
/packages/apps/ManagedProvisioning/tools/java/com/android/managedprovisioning/tools/anim/
DSwiperThemeGenerator.java46 String colorHex = String.format("%02x%02x%02x", Color.red(candidate), in main()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DFadeBackground.java60 Color.argb(0, Color.red(color), Color.green(color), Color.blue(color)); in createAnimator()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DColorChecker.java104 double r = convert8BitToLuminanceComponent(Color.red(color)); in getLuminance()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DSetupLayoutActivity.java110 return Color.argb(255, Color.red(color), Color.green(color), Color.blue(color)); in toSolidColor()
/packages/apps/Settings/src/com/android/settings/accessibility/
DColorPreference.java77 final int r = Color.red(value); in getTitleAt()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/
DColorPreference.java77 final int r = Color.red(value); in getTitleAt()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/info/
DHistogramView.java52 int r = Color.red(pixels[index]); in doInBackground()
/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DProgramInfo.java53 R.drawable.red,
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java1240 mAlphaMatrixValues[0] = Color.red(color) * alpha / 255; in alphaMatrix()
1256 mMultiplyBlendMatrixValues[0] = multiplyBlend(Color.red(color), alpha); in multiplyBlendMatrix()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DGLES20Canvas.java524 float red = ((color >>> 16) & 0xFF) / 255f * alpha; in getColor() local
527 mTempColor[0] = red; in getColor()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonView.java187 Color.red(circleColor), in updateCircleColor()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java102 Color.red(from) / 255f, in intColorToFloatARGBArray()
/packages/apps/Messaging/src/com/android/messaging/util/
DUiUtils.java257 final int blendedRed = (int) Math.floor(0.8 * Color.red(color)); in setStatusBarColor()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCurves.java347 int r = Color.red(pixels[index]); in doInBackground()

123