Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 105) sorted by relevance

12345

/development/ndk/platforms/android-3/include/linux/
Drbtree.h32 #define rb_parent(r) ((struct rb_node *)((r)->rb_parent_color & ~3)) argument
33 #define rb_color(r) ((r)->rb_parent_color & 1) argument
34 #define rb_is_red(r) (!rb_color(r)) argument
35 #define rb_is_black(r) rb_color(r) argument
36 #define rb_set_red(r) do { (r)->rb_parent_color &= ~1; } while (0) argument
37 #define rb_set_black(r) do { (r)->rb_parent_color |= 1; } while (0) argument
Drtnetlink.h224 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) argument
360 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) argument
386 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg)))) argument
480 #define NDTA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg)))) argument
599 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) argument
649 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) argument
718 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg)))) argument
/development/perftests/panorama/feature_mos/src/mosaic/
DImageUtils.cpp30 int r,g,b, a; in rgba2yvu() local
38 r = (*image++); in rgba2yvu()
43 if (r < 0) r = 0; in rgba2yvu()
44 if (r > 255) r = 255; in rgba2yvu()
50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu()
55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu()
60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu()
75 int r,g,b; in rgb2yvu() local
83 r = (*image++); in rgb2yvu()
87 if (r < 0) r = 0; in rgb2yvu()
[all …]
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_utilities_random.h40 inline double db_QuickRandomDouble(int &r) in db_QuickRandomDouble() argument
43 c=r/127773; in db_QuickRandomDouble()
44 r=16807*(r-c*127773)-2836*c; in db_QuickRandomDouble()
45 if(r<0) r+=2147483647; in db_QuickRandomDouble()
46 return((1.0/((double)2147483647))*r); in db_QuickRandomDouble()
57 inline int db_RandomInt(int &r,int max) in db_RandomInt() argument
61 dtemp=db_QuickRandomDouble(r)*(max+1); in db_RandomInt()
Ddb_framestitching.cpp85 double c[3],cp[3],r[3],rp[3],M[9],s,sp,sc; in db_StitchSimilarity3DRaw() local
106 r[0]=(*temp++)-c[0]; in db_StitchSimilarity3DRaw()
107 r[1]=(*temp++)-c[1]; in db_StitchSimilarity3DRaw()
108 r[2]=(*temp++)-c[2]; in db_StitchSimilarity3DRaw()
113 M[0]+=r[0]*rp[0]; in db_StitchSimilarity3DRaw()
114 M[1]+=r[0]*rp[1]; in db_StitchSimilarity3DRaw()
115 M[2]+=r[0]*rp[2]; in db_StitchSimilarity3DRaw()
116 M[3]+=r[1]*rp[0]; in db_StitchSimilarity3DRaw()
117 M[4]+=r[1]*rp[1]; in db_StitchSimilarity3DRaw()
118 M[5]+=r[1]*rp[2]; in db_StitchSimilarity3DRaw()
[all …]
Ddb_utilities_poly.cpp30 double bp,bp2,cp,dp,q,r,srq; in db_SolveCubic() local
49 r=(2.0*bp2*bp-9.0*bp*cp+27.0*dp)/54.0; in db_SolveCubic()
50 r2_min_q3=r*r-q*q*q; in db_SolveCubic()
56 theta=acos(db_maxd(-1.0,db_mind(1.0,r/(q*srq)))); in db_SolveCubic()
75 A= -db_sign(r)*db_CubRoot(db_absd(r)+sqrt(r2_min_q3)); in db_SolveCubic()
85 si_r_srq=db_sign(r)*sqrt(q); in db_SolveCubic()
Ddb_image_homography.cpp241 double c[2],cp[2],r[2],rp[2],M[4],s,sp,sc; in db_StitchSimilarity2DRaw() local
262 r[0]=(*temp++)-c[0]; in db_StitchSimilarity2DRaw()
263 r[1]=(*temp++)-c[1]; in db_StitchSimilarity2DRaw()
267 M[0]+=r[0]*rp[0]; in db_StitchSimilarity2DRaw()
268 M[1]+=r[0]*rp[1]; in db_StitchSimilarity2DRaw()
269 M[2]+=r[1]*rp[0]; in db_StitchSimilarity2DRaw()
270 M[3]+=r[1]*rp[1]; in db_StitchSimilarity2DRaw()
272 s+=db_sqr(r[0])+db_sqr(r[1]); in db_StitchSimilarity2DRaw()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DRoundRects.java64 float r = 16; in onDraw() local
69 setCornerRadii(mDrawable, r, r, 0, 0); in onDraw()
76 setCornerRadii(mDrawable, 0, 0, r, r); in onDraw()
85 setCornerRadii(mDrawable, 0, r, r, 0); in onDraw()
92 setCornerRadii(mDrawable, r, 0, 0, r); in onDraw()
101 setCornerRadii(mDrawable, r, 0, r, 0); in onDraw()
108 setCornerRadii(mDrawable, 0, r, 0, r); in onDraw()
DBitmapPixels.java53 private static int pack8888(int r, int g, int b, int a) { in pack8888() argument
54 return (r << 0) | ( g << 8) | (b << 16) | (a << 24); in pack8888()
57 private static short pack565(int r, int g, int b) { in pack565() argument
58 return (short)((r << 11) | ( g << 5) | (b << 0)); in pack565()
61 private static short pack4444(int r, int g, int b, int a) { in pack4444() argument
62 return (short)((a << 0) | ( b << 4) | (g << 8) | (r << 12)); in pack4444()
74 int r = Color.red(c); in premultiplyColor() local
79 r = mul255(r, a); in premultiplyColor()
83 return pack8888(r, g, b, a); in premultiplyColor()
89 int r = getR32(from) << 23; in makeRamp() local
[all …]
DRegions.java74 Rect r = new Rect(); in drawRgn() local
78 while (iter.next(r)) { in drawRgn()
79 canvas.drawRect(r, mPaint); in drawRgn()
84 private static void drawCentered(Canvas c, Rect r, Paint p) { in drawCentered() argument
89 c.drawRect(r.left + inset, r.top + inset, in drawCentered()
90 r.right - inset, r.bottom - inset, p); in drawCentered()
DColorFilters.java49 Rect r = prev.getBounds(); in addToTheRight() local
50 int x = r.right + 12; in addToTheRight()
51 int center = (r.top + r.bottom) >> 1; in addToTheRight()
128 Rect r = mDrawable.getBounds(); in drawSample() local
129 float x = (r.left + r.right) * 0.5f; in drawSample()
130 float y = (r.top + r.bottom) * 0.5f - mPaintTextOffset; in drawSample()
DColorPickerDialog.java65 float r = CENTER_X - mPaint.getStrokeWidth()*0.5f; in onDraw() local
69 canvas.drawOval(new RectF(-r, -r, r, r), mPaint); in onDraw()
132 int r = ave(Color.red(c0), Color.red(c1), p); in interpColor() local
136 return Color.argb(a, r, g, b); in interpColor()
141 int r = Color.red(color); in rotateColor() local
156 int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b); in rotateColor()
157 int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b); in rotateColor()
158 int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b); in rotateColor()
DShadowCardDrag.java157 float r = 10 * mDensity; in onCreate() local
158 float radii[] = new float[] {r, r, r, r, r, r, r, r}; in onCreate()
DPurgeableBitmapView.java71 int r = x * 255 / (WIDTH - 1); in createColors() local
73 int b = 255 - Math.min(r, g); in createColors()
74 int a = Math.max(r, g); in createColors()
75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
DMeasureText.java40 int r = x * 255 / (WIDTH - 1); in createColors() local
42 int b = 255 - Math.min(r, g); in createColors()
43 int a = Math.max(r, g); in createColors()
44 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; in createColors()
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java184 float r = (float)(mInPixels[i] & 0xff); in filter() local
188 float tr = r * m[0] + g * m[3] + b * m[6]; in filter()
189 float tg = r * m[1] + g * m[4] + b * m[7]; in filter()
190 float tb = r * m[2] + g * m[5] + b * m[8]; in filter()
191 r = tr; in filter()
195 if (r < 0.f) r = 0.f; in filter()
196 if (r > 255.f) r = 255.f; in filter()
202 r = (r - mInBlack) * mOverInWMinInB; in filter()
207 r = (float)java.lang.Math.pow(r, mGamma); in filter()
212 r = (r * mOutWMinOutB) + mOutBlack; in filter()
[all …]
/development/samples/browseable/HdrViewfinder/src/rs/
Dhdr_merge.rs32 curPixel.r = rsGetElementAtYuv_uchar_Y(gCurrentFrame, x, y);
65 rgb.r = mergedPixel.r +
67 rgb.g = mergedPixel.r -
70 rgb.b = mergedPixel.r +
/development/ndk/platforms/android-3/include/asm-generic/
Dpgtable.h30 …_ptep); int r = 1; if (!pte_young(__pte)) r = 0; else set_pte_at((__vma)->vm_mm, (__addr…
38 …_ptep; int r = 1; if (!pte_dirty(__pte)) r = 0; else set_pte_at((__vma)->vm_mm, (__addre…
/development/testrunner/
Dam_instrument_parser.py43 re_status_code = re.compile(r'INSTRUMENTATION_STATUS_CODE: (?P<status_code>-?\d)$')
83 re_result = re.compile(r'INSTRUMENTATION_RESULT: ([^=]+)=(.*)$')
84 re_code = re.compile(r'INSTRUMENTATION_CODE: (\-?\d)$')
140 re_status_code = re.search(r'INSTRUMENTATION_STATUS_CODE: '
142 re_fields = re.compile(r'INSTRUMENTATION_STATUS: '
/development/samples/SupportLeanbackShowcase/
Dbuild-local.py33 matchObj = re.match(r'\s*<version>(.*)</version>', line)
53 replace(os.getcwd()+"/local.properties", r'(.*)LOCAL_REPO(.*)', 'LOCAL_REPO='+repo_path)
54 replace(os.getcwd()+"/local.properties", r'(.*)LIBRARY_VERSION(.*)', 'LIBRARY_VERSION='+library_ver…
Dbuild-release.py27 replace(os.getcwd()+"/local.properties", r'(.*)LOCAL_REPO(.*)', 'LOCAL_REPO=')
28 replace(os.getcwd()+"/local.properties", r'(.*)LIBRARY_VERSION(.*)', 'LIBRARY_VERSION=')
/development/tools/yuv420sp2rgb/
Dyuv420sp2rgb.c43 unsigned char r,
120 unsigned char r, in rgb16_cb() argument
126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb()
130 unsigned char r, in common_rgb_cb() argument
168 out[i++] = r; in common_rgb_cb()
174 unsigned char r, in rgb24_cb() argument
179 return common_rgb_cb(r,g,b,ctx,0); in rgb24_cb()
183 unsigned char r, in argb_cb() argument
188 return common_rgb_cb(r,g,b,ctx,1); in argb_cb()
/development/ndk/platforms/android-21/include/linux/
Dnetfilter_decnet.h55 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg))) argument
Dif_addr.h70 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) argument
/development/tools/checkstyle/gitlint/
Dgit.py77 modes.append(r'\?\?')
82 r'(?P<mode>%s) (?P<filename>.+)' % modes_str,
97 r'(?P<mode>A|M)\s(?P<filename>.+)',

12345