/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/anim/ |
D | ColorMatcherTest.java | 19 import static android.graphics.Color.rgb; 34 assertCorrect(rgb(0, 0, 0), rgb(0, 0, 0)); in findsCloseColor() 35 assertCorrect(rgb(1, 1, 1), rgb(0, 0, 0)); in findsCloseColor() 36 assertCorrect(rgb(15, 15, 15), rgb(0, 0, 0)); in findsCloseColor() 37 assertCorrect(rgb(16, 16, 16), rgb(32, 32, 32)); in findsCloseColor() 38 assertCorrect(rgb(0xff, 0xff, 0xff), rgb(0xff, 0xff, 0xff)); in findsCloseColor() 39 assertCorrect(rgb(0xfe, 0xfe, 0xfe), rgb(0xff, 0xff, 0xff)); in findsCloseColor() 40 assertCorrect(rgb(100, 200, 50), rgb(96, 192, 64)); in findsCloseColor() 41 assertCorrect(rgb(0xd4, 0, 0), rgb(0xe0, 0, 0)); in findsCloseColor()
|
/packages/apps/Gallery2/jni/filters/ |
D | bwfilter.c | 24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 42 float r = sr *rgb[RED]; in JNIFUNCF() 43 float g = sg *rgb[GREEN]; in JNIFUNCF() 44 float b = sb *rgb[BLUE]; in JNIFUNCF() 50 rgb[RED] = CLAMP(avg); in JNIFUNCF() 51 rgb[GREEN] = rgb[RED]; in JNIFUNCF() 52 rgb[BLUE] = rgb[RED]; in JNIFUNCF()
|
D | exposure.c | 23 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 31 rgb[RED] = clamp((255*(rgb[RED]))/m); in JNIFUNCF() 32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); in JNIFUNCF() 33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m); in JNIFUNCF()
|
D | contrast.c | 43 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 50 rgb[RED] = clamp((int)(m*rgb[RED]+c)); in JNIFUNCF() 51 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); in JNIFUNCF() 52 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c)); in JNIFUNCF()
|
D | hue.c | 23 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 30 int r = rgb[RED]; in JNIFUNCF() 31 int g = rgb[GREEN]; in JNIFUNCF() 32 int b = rgb[BLUE]; in JNIFUNCF() 38 rgb[RED] = clamp((int)rf); in JNIFUNCF() 39 rgb[GREEN] = clamp((int)gf); in JNIFUNCF() 40 rgb[BLUE] = clamp((int)bf); in JNIFUNCF()
|
D | wbalance.c | 139 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 145 estmateWhite(rgb,len,&wr,&wg,&wb); in JNIFUNCF() 147 estmateWhiteBox(rgb, width, height,locX,locY,&wr,&wg,&wb); in JNIFUNCF() 158 int r = rgb[RED]; in JNIFUNCF() 159 int g = rgb[GREEN]; in JNIFUNCF() 160 int b = rgb[BLUE]; in JNIFUNCF() 166 rgb[RED] = clamp(Rc); in JNIFUNCF() 167 rgb[GREEN] = clamp(Gc); in JNIFUNCF() 168 rgb[BLUE] = clamp(Bc); in JNIFUNCF()
|
D | hsv.c | 33 void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff) in rgb2hsv() argument 42 int ri = rgb[rgbOff+0]; in rgb2hsv() 43 int gi = rgb[rgbOff+1]; in rgb2hsv() 44 int bi = rgb[rgbOff+2]; in rgb2hsv() 82 void hsv2rgb(unsigned short *hsv,int hsvOff, unsigned char *rgb,int rgbOff) in hsv2rgb() argument 153 rgb[rgbOff+0] = rr; in hsv2rgb() 154 rgb[rgbOff+1] = rg; in hsv2rgb() 155 rgb[rgbOff+2] = rb; in hsv2rgb()
|
D | fx.c | 40 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 65 int r = rgb[RED]; in JNIFUNCF() 66 int g = rgb[GREEN]; in JNIFUNCF() 67 int b = rgb[BLUE]; in JNIFUNCF() 80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); in JNIFUNCF() 81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); in JNIFUNCF() 82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db)); in JNIFUNCF()
|
D | redeye.c | 24 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 27 filterRedEye(rgb,rgb,width,height,rect); in JNIFUNCF()
|
D | highlight.c | 26 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 34 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF() 37 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
|
D | shadows.c | 33 unsigned char * rgb = (unsigned char * )destination; in JNIFUNCF() local 47 rgb2hsv(rgb,i,hsv,0); in JNIFUNCF() 53 hsv2rgb(hsv,0, rgb,i); in JNIFUNCF()
|
D | filters.h | 49 extern void rgb2hsv( unsigned char *rgb,int rgbOff,unsigned short *hsv,int hsvOff); 50 extern void hsv2rgb(unsigned short *hsv,int hsvOff,unsigned char *rgb,int rgbOff);
|
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/ |
D | ColorExtractor.java | 78 int rgb = argb | 0xFF000000; in findDominantColorByHue() local 79 Color.colorToHSV(rgb, hsv); in findDominantColorByHue() 87 pixels[pixelCount++] = rgb; in findDominantColorByHue() 106 int rgb = pixels[i]; in findDominantColorByHue() local 107 Color.colorToHSV(rgb, hsv); in findDominantColorByHue() 121 bestColor = rgb; in findDominantColorByHue()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterBwFilter.java | 57 int rgb = Color.HSVToColor(hsv); in apply() local 58 int r = 0xFF & (rgb >> 16); in apply() 59 int g = 0xFF & (rgb >> 8); in apply() 60 int b = 0xFF & (rgb >> 0); in apply()
|
D | saturation.rs | 104 static ushort rgb2hue( uchar4 rgb) 108 int ri = rgb.r; 109 int gi = rgb.g; 110 int bi = rgb.b;
|
D | grad.rs | 113 pixel.rgb = wsum.rgb;
|
/packages/apps/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 211 val->color.rgb.red, val->color.rgb.green, val->color.rgb.blue); in term_settermprop() 566 return (0xff << 24 | color.rgb.red << 16 | color.rgb.green << 8 | color.rgb.blue); in toArgb()
|
/packages/apps/Dialer/java/com/android/dialer/databasepopulator/ |
D | ContactsPopulator.java | 319 setPhotoStream(getPhotoStreamWithColor(Color.rgb(0xe3, 0x33, 0x1c))); in setRedPhoto() 324 setPhotoStream(getPhotoStreamWithColor(Color.rgb(0x00, 0xaa, 0xe6))); in setBluePhoto() 329 setPhotoStream(getPhotoStreamWithColor(Color.rgb(0xea, 0x95, 0x00))); in setOrangePhoto() 334 setPhotoStream(getPhotoStreamWithColor(Color.rgb(0x99, 0x5a, 0xa0))); in setPurplePhoto()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | PanoUtil.java | 45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { in decodeYUV420SPQuarterRes() argument 81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoUtil.java | 45 public static void decodeYUV420SPQuarterRes(int[] rgb, byte[] yuv420sp, int width, int height) { in decodeYUV420SPQuarterRes() argument 81 rgb[ypd] = 0xff000000 | ((r << 6) & 0xff0000) | ((g >> 2) & 0xff00) | in decodeYUV420SPQuarterRes()
|
/packages/apps/LegacyCamera/jni/ |
D | feature_mos_jni.cpp | 309 void decodeYUV444SP(unsigned char* rgb, unsigned char* yuv420sp, int width, in decodeYUV444SP() argument 338 rgb[p+0] = (r<<6 & 0xFF0000)>>16; in decodeYUV444SP() 339 rgb[p+1] = (g>>2 & 0xFF00)>>8; in decodeYUV444SP() 340 rgb[p+2] = b>>10 & 0xFF; in decodeYUV444SP()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/model/ |
D | CustomizationParamsTest.java | 49 private static final int SAMPLE_COLOR = Color.rgb(11, 22, 33); 52 private static final int DEFAULT_MAIN_COLOR = Color.rgb(99, 99, 99);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UriBitmap.java | 62 bitmap.setPixel(x, y, Color.rgb(x, y, x + y)); in generateSampleBitmap()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityTest.java | 61 private static final int DEFAULT_MAIN_COLOR = Color.rgb(99, 99, 99);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | ResultActivity.java | 193 separator.setBackgroundColor(Color.rgb(33, 66, 33)); in addSeparator()
|