Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 194) sorted by relevance

12345678

/development/perftests/panorama/feature_mos/src/mosaic/
DtrsMatrix.cpp24 void mult33d(double a[3][3], double b[3][3], double c[3][3]) in mult33d()
26 a[0][0] = b[0][0]*c[0][0] + b[0][1]*c[1][0] + b[0][2]*c[2][0]; in mult33d()
27 a[0][1] = b[0][0]*c[0][1] + b[0][1]*c[1][1] + b[0][2]*c[2][1]; in mult33d()
28 a[0][2] = b[0][0]*c[0][2] + b[0][1]*c[1][2] + b[0][2]*c[2][2]; in mult33d()
29 a[1][0] = b[1][0]*c[0][0] + b[1][1]*c[1][0] + b[1][2]*c[2][0]; in mult33d()
30 a[1][1] = b[1][0]*c[0][1] + b[1][1]*c[1][1] + b[1][2]*c[2][1]; in mult33d()
31 a[1][2] = b[1][0]*c[0][2] + b[1][1]*c[1][2] + b[1][2]*c[2][2]; in mult33d()
32 a[2][0] = b[2][0]*c[0][0] + b[2][1]*c[1][0] + b[2][2]*c[2][0]; in mult33d()
33 a[2][1] = b[2][0]*c[0][1] + b[2][1]*c[1][1] + b[2][2]*c[2][1]; in mult33d()
34 a[2][2] = b[2][0]*c[0][2] + b[2][1]*c[1][2] + b[2][2]*c[2][2]; in mult33d()
DImageUtils.cpp30 int r,g,b, a; in rgba2yvu() local
40 b = (*image++); in rgba2yvu()
47 if (b < 0) b = 0; in rgba2yvu()
48 if (b > 255) b = 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
85 b = (*image++); in rgb2yvu()
91 if (b < 0) b = 0; in rgb2yvu()
[all …]
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DAlertDialogUsage.java69 AlertDialog.Builder b = new AlertDialog.Builder(this); in showSimpleDialog() local
70 b.setTitle(R.string.dialog_title); in showSimpleDialog()
71 b.setMessage(R.string.dialog_content); in showSimpleDialog()
72 b.show(); in showSimpleDialog()
76 AlertDialog.Builder b = new AlertDialog.Builder(this); in showSimpleButtonsDialog() local
77 b.setTitle(R.string.dialog_title); in showSimpleButtonsDialog()
78 b.setMessage(R.string.dialog_content); in showSimpleButtonsDialog()
79 b.setNegativeButton("-ve", null); in showSimpleButtonsDialog()
80 b.setPositiveButton("+ve", null); in showSimpleButtonsDialog()
81 b.show(); in showSimpleButtonsDialog()
[all …]
DAppCompatNightModeAlertDialog.java58 AlertDialog.Builder b = new AlertDialog.Builder(this, in createAlertDialog() local
60 b.setTitle(R.string.dialog_title); in createAlertDialog()
61 b.setMessage(R.string.dialog_content); in createAlertDialog()
62 return b.create(); in createAlertDialog()
/development/ndk/sources/android/ndk_helper/
Dinterpolator.cpp95 float b = start_value_; in Update() local
97 p = GetFormula( type_, t, b, d, c ); in Update()
106 const float b, in GetFormula() argument
115 return (c * t / d + b); in GetFormula()
120 return (c * t1 * t1 + b); in GetFormula()
125 return (-c * t1 * (t1 - 2) + b); in GetFormula()
131 return (c / 2 * t1 * t1 + b); in GetFormula()
135 return (-c / 2 * (t1 * (t1 - 2) - 1) + b); in GetFormula()
140 return (c * t1 * t1 * t1 + b); in GetFormula()
145 return (c * (t1 * t1 * t1 + 1) + b); in GetFormula()
[all …]
/development/ndk/platforms/android-21/include/sys/
Dtime.h51 #define timercmp(a, b, op) \ argument
52 ((a)->tv_sec == (b)->tv_sec \
53 ? (a)->tv_usec op (b)->tv_usec \
54 : (a)->tv_sec op (b)->tv_sec)
56 #define timeradd(a, b, res) \ argument
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
66 #define timersub(a, b, res) \ argument
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
Dparam.h45 #define MIN(a,b) (((a)<(b))?(a):(b)) argument
46 #define MAX(a,b) (((a)>(b))?(a):(b)) argument
/development/ndk/platforms/android-3/include/sys/
Dtime.h51 #define timercmp(a, b, op) \ argument
52 ((a)->tv_sec == (b)->tv_sec \
53 ? (a)->tv_usec op (b)->tv_usec \
54 : (a)->tv_sec op (b)->tv_sec)
56 #define timeradd(a, b, res) \ argument
58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
59 (res)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
66 #define timersub(a, b, res) \ argument
68 (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
69 (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
/development/perftests/panorama/feature_stab/db_vlvm/
Ddb_utilities_poly.h39 inline void db_SolveQuadratic(double *roots,int *nr_roots,double a,double b,double c) in db_SolveQuadratic() argument
47 if(b==0.0) *nr_roots=0; in db_SolveQuadratic()
50 roots[0]= -c/b; in db_SolveQuadratic()
56 rs=b*b-4.0*a*c; in db_SolveQuadratic()
61 q= -0.5*(b+db_sign(b)*srs); in db_SolveQuadratic()
79 DB_API void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d);
84 DB_API void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double …
89 DB_API void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,d…
96 inline void db_MultiplyPoly1_1(double *d,const double *a,const double *b) in db_MultiplyPoly1_1() argument
101 b0=b[0];b1=b[1]; in db_MultiplyPoly1_1()
[all …]
Ddb_utilities.h102 inline double db_maxd(double a,double b) in db_maxd() argument
104 if(b>a) return(b); in db_maxd()
110 inline double db_mind(double a,double b) in db_mind() argument
112 if(b<a) return(b); in db_mind()
120 inline int db_maxi(int a,int b) in db_maxi() argument
122 if(b>a) return(b); in db_maxi()
129 inline int db_mini(int a,int b) in db_mini() argument
131 if(b<a) return(b); in db_mini()
137 inline long db_maxl(long a,long b) in db_maxl() argument
139 if(b>a) return(b); in db_maxl()
[all …]
Ddb_utilities_poly.cpp28 void db_SolveCubic(double *roots,int *nr_roots,double a,double b,double c,double d) in db_SolveCubic() argument
40 if(a==0.0) db_SolveQuadratic(roots,nr_roots,b,c,d); in db_SolveCubic()
43 bp=b/a; in db_SolveCubic()
94 void db_SolveQuartic(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuartic() argument
111 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuartic()
114 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuartic()
121 c3=b/a; in db_SolveQuartic()
166 void db_SolveQuarticForced(double *roots,int *nr_roots,double a,double b,double c,double d,double e) in db_SolveQuarticForced() argument
183 if(a==0.0) db_SolveCubic(roots,nr_roots,b,c,d,e); in db_SolveQuarticForced()
186 db_SolveCubic(roots,nr_roots,a,b,c,d); in db_SolveQuarticForced()
[all …]
/development/ndk/platforms/android-21/include/linux/
Duuid.h25 __u8 b[16]; member
29 __u8 b[16]; member
31 …E(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_le) {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> … argument
32 …, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_be) {{ ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((… argument
/development/samples/RenderScript/Levels/src/com/android/rs/levels/
DLevelsDalvikActivity.java170 Bitmap b = BitmapFactory.decodeResource(getResources(), resource, options); in loadBitmap() local
171 Bitmap b2 = Bitmap.createBitmap(b.getWidth(), b.getHeight(), b.getConfig()); in loadBitmap()
173 c.drawBitmap(b, 0, 0, null); in loadBitmap()
174 b.recycle(); in loadBitmap()
186 float b = (float)((mInPixels[i] >> 16) & 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()
193 b = tb; in filter()
199 if (b < 0.f) b = 0.f; in filter()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
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()
76 int b = Color.blue(c); in premultiplyColor() local
81 b = mul255(b, a); in premultiplyColor()
83 return pack8888(r, g, b, a); in premultiplyColor()
91 int b = getB32(from) << 23; in makeRamp() local
[all …]
/development/ndk/platforms/android-21/include/
Dstrings.h49 #define bzero(b, len) \ argument
50 (void)(__builtin___memset_chk((b), '\0', (len), __bos0(b)))
53 #define bzero(b, len) (void)(__builtin_memset((b), '\0', (len)))
/development/ndk/platforms/android-3/include/linux/
Djiffies.h64 #define time_after(a,b) (typecheck(unsigned long, a) && typecheck(unsigned long, b) && ((long… argument
65 #define time_before(a,b) time_after(b,a) argument
66 #define time_after_eq(a,b) (typecheck(unsigned long, a) && typecheck(unsigned long, b) && ((l… argument
67 #define time_before_eq(a,b) time_after_eq(b,a) argument
/development/samples/BrokenKeyDerivation/src/com/example/android/brokenkeyderivation/
DInsecureSHA1PRNGKeyDerivator.java440 int b = arrW[HASH_OFFSET +1];
464 ( ( b & c) | ((~b) & d) ) +
468 c = ( b<<30 ) | ( b>>>2 ) ;
469 b = a;
474 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ;
477 c = ( b<<30 ) | ( b>>>2 ) ;
478 b = a;
483 temp = (( a<<5 ) | ( a>>>27 )) + ((b & c) | (b & d) | (c & d)) +
487 c = ( b<<30 ) | ( b>>>2 ) ;
488 b = a;
[all …]
/development/ndk/platforms/android-9/arch-x86/include/asm/
Dbyteorder.h40 struct { __u32 a,b; } s; in ___arch__swab64() member
46 v.s.b = ___arch__swab32(v.s.b); in ___arch__swab64()
47 __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b)); in ___arch__swab64()
Ddesc_32.h64 #define write_ldt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
65 #define write_gdt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
66 #define write_idt_entry(dt, entry, a, b) write_dt_entry(dt, entry, a, b) argument
/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameView.java355 Bundle b = new Bundle();
358 b.putParcelable("gv_super_state", s);
360 b.putBoolean("gv_en", isEnabled());
366 b.putIntArray("gv_data", data);
368 b.putInt("gv_sel_cell", mSelectedCell);
369 b.putInt("gv_sel_val", mSelectedValue.getValue());
370 b.putInt("gv_curr_play", mCurrentPlayer.getValue());
371 b.putInt("gv_winner", mWinner.getValue());
373 b.putInt("gv_win_col", mWinCol);
374 b.putInt("gv_win_row", mWinRow);
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/content/
DShareContent.java44 Uri.Builder b = new Uri.Builder(); in onCreate()
45 b.scheme("content"); in onCreate()
46 b.authority("com.example.android.apis.content.FileProvider"); in onCreate()
49 b.appendEncodedPath(Integer.toString(tv.assetCookie)); in onCreate()
50 b.appendEncodedPath(tv.string.toString()); in onCreate()
51 Uri uri = b.build(); in onCreate()
/development/tools/yuv420sp2rgb/
Ddebug.c7 int dump_hex_buffer(FILE *s, void *b, size_t len, size_t elsize) { in dump_hex_buffer() argument
10 char *pchr = (char *)b; in dump_hex_buffer()
12 fprintf(s, "%p: ", b); in dump_hex_buffer()
31 fprintf(s, " (%d)\n%p: ", i, b); in dump_hex_buffer()
Dyuv420sp2rgb.c13 #define max(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); _a > _b ? _a : _b; }) argument
14 #define min(a,b) ({typeof(a) _a = (a); typeof(b) _b = (b); _a < _b ? _a : _b; }) argument
45 unsigned char b,
122 unsigned char b, in rgb16_cb() argument
126 *(rgb16 + ctx->i * ctx->width + ctx->j) = b | (g << 5) | (r << 11); in rgb16_cb()
132 unsigned char b, in common_rgb_cb() argument
170 out[i] = b; in common_rgb_cb()
176 unsigned char b, in rgb24_cb() argument
179 return common_rgb_cb(r,g,b,ctx,0); in rgb24_cb()
185 unsigned char b, in argb_cb() argument
[all …]
/development/perftests/panorama/feature_stab/src/dbreg/
Dvp_motionmodel.h244 #define VP_PRINT_TRANS(msg,b) do { \ argument
248 MXX(b),MXY(b),MXZ(b),MXW(b), \
249 MYX(b),MYY(b),MYZ(b),MYW(b), \
250 MZX(b),MZY(b),MZZ(b),MZW(b), \
251 MWX(b),MWY(b),MWZ(b),MWW(b)); \
/development/samples/browseable/HdrViewfinder/src/rs/
Dhdr_merge.rs34 curPixel.b = rsGetElementAtYuv_uchar_V(gCurrentFrame, x, y);
66 mergedPixel.b * 1436 / 1024 - 179;
69 mergedPixel.b * 93604 / 131072 + 91;
70 rgb.b = mergedPixel.r +

12345678