Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 49) sorted by relevance

12

/system/media/audio_utils/
Dfixedfft.cpp109 void fixed_fft(int n, int32_t *v) in fixed_fft() argument
116 int32_t t = v[i]; in fixed_fft()
117 v[i] = v[r]; in fixed_fft()
118 v[r] = t; in fixed_fft()
126 int32_t x = half(v[i]); in fixed_fft()
127 int32_t y = half(v[i + p]); in fixed_fft()
128 v[i] = x + y; in fixed_fft()
129 v[i + p] = x - y; in fixed_fft()
137 int32_t x = half(v[i]); in fixed_fft()
138 int32_t y = mult(w, v[i + p]); in fixed_fft()
[all …]
/system/core/toolbox/
Dsetsebool.c13 char *v; in do_setsebool() local
21 v = strchr(name, '='); in do_setsebool()
22 if (!v) { in do_setsebool()
26 *v++ = 0; in do_setsebool()
28 if (!strcmp(v, "1") || !strcasecmp(v, "true") || !strcasecmp(v, "on")) in do_setsebool()
30 else if (!strcmp(v, "0") || !strcasecmp(v, "false") || !strcasecmp(v, "off")) in do_setsebool()
33 fprintf(stderr, "setsebool: invalid value %s\n", v); in do_setsebool()
Dprintenv.c9 char* v; in printenv_main() local
20 v = getenv(argv[i]); in printenv_main()
21 if (v) { in printenv_main()
22 printf("%s\n", v); in printenv_main()
/system/core/libpixelflinger/
Dbuffer.cpp36 static uint32_t extract(uint32_t v, int h, int l, int bits);
37 static uint32_t expand(uint32_t v, int sbits, int dbits);
38 static uint32_t downshift_component(uint32_t in, uint32_t v,
119 uint32_t v = 0; in read_pixel() local
121 case 1: v = *data; break; in read_pixel()
122 case 2: v = *(uint16_t*)data; break; in read_pixel()
123 case 3: v = (data[2]<<16)|(data[1]<<8)|data[0]; break; in read_pixel()
124 case 4: v = GGL_RGBA_TO_HOST(*(uint32_t*)data); break; in read_pixel()
129 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel()
136 uint16_t v = *(reinterpret_cast<uint16_t*>(s->data) + (x + (s->stride * y))); in readRGB565() local
[all …]
Dtrap.cpp136 void pointx_validate(void *con, const GGLcoord* v, GGLcoord rad) in pointx_validate() argument
149 c->procs.pointx(con, v, rad); in pointx_validate()
152 void pointx(void *con, const GGLcoord* v, GGLcoord rad) in pointx() argument
158 GGLcoord xc = v[0]; in pointx()
159 GGLcoord yc = v[1]; in pointx()
203 void aa_nice_pointx(void *con, const GGLcoord* v, GGLcoord size) in aa_nice_pointx() argument
208 GGLint l = (v[0] - rad) >> TRI_FRACTION_BITS; in aa_nice_pointx()
209 GGLint t = (v[1] - rad) >> TRI_FRACTION_BITS; in aa_nice_pointx()
210 GGLint r = (v[0] + rad + (TRI_ONE-1)) >> TRI_FRACTION_BITS; in aa_nice_pointx()
211 GGLint b = (v[1] + rad + (TRI_ONE-1)) >> TRI_FRACTION_BITS; in aa_nice_pointx()
[all …]
Dscanline.cpp449 static void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv);
460 void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv) in rescale() argument
464 v = ggl_expand(v, sv, su); in rescale()
617 GGLcolor ADJUST_COLOR_ITERATOR(GGLcolor v, GGLcolor dvdx, int len) in ADJUST_COLOR_ITERATOR() argument
619 const int32_t end = dvdx * (len-1) + v; in ADJUST_COLOR_ITERATOR()
621 v -= end; in ADJUST_COLOR_ITERATOR()
622 v &= ~(v>>31); in ADJUST_COLOR_ITERATOR()
623 return v; in ADJUST_COLOR_ITERATOR()
703 int32_t u, v; in scanline() local
717 v = wrapping(tc[i].t, h, tx.t_wrap); in scanline()
[all …]
/system/extras/tests/bionic/libc/other/
Dtest_aligned.c9 unsigned v = htonl(val); in read4() local
12 tab[o+0] = (char)(v >> 24); in read4()
13 tab[o+1] = (char)(v >> 16); in read4()
14 tab[o+2] = (char)(v >> 8); in read4()
15 tab[o+3] = (char)(v); in read4()
32 unsigned v = htonl(val); in writ4() local
38 *(unsigned*)(tab+o) = v; in writ4()
55 unsigned short v = htons(val); in read2() local
58 tab[o+0] = (char)(v >> 8); in read2()
59 tab[o+1] = (char)(v); in read2()
[all …]
Dtest_timer_create.c36 handle(sigval_t v) in handle() argument
44 p, (int)pthread_self(), v.sival_int); in handle()
Dtest_timer_create3.c43 handle(sigval_t v) in handle() argument
52 p, (int)pthread_self(), v.sival_int); in handle()
Dtest_timer_create2.c36 handle(int v) in handle() argument
44 p, pthread_self(), v); in handle()
/system/media/camera/tests/
Dcamera_metadata_tests_fake_vendor.h107 const char *get_fakevendor_section_name(const vendor_tag_query_ops_t *v,
109 const char *get_fakevendor_tag_name(const vendor_tag_query_ops_t *v,
111 int get_fakevendor_tag_type(const vendor_tag_query_ops_t *v,
120 const char *get_fakevendor_section_name(const vendor_tag_query_ops_t *v, in get_fakevendor_section_name() argument
122 if (v != &fakevendor_query_ops) return NULL; in get_fakevendor_section_name()
130 const char *get_fakevendor_tag_name(const vendor_tag_query_ops_t *v, in get_fakevendor_tag_name() argument
132 if (v != &fakevendor_query_ops) return NULL; in get_fakevendor_tag_name()
141 int get_fakevendor_tag_type(const vendor_tag_query_ops_t *v, in get_fakevendor_tag_type() argument
143 if (v != &fakevendor_query_ops) return -1; in get_fakevendor_tag_type()
/system/media/audio_utils/include/audio_utils/
Dprimitives.h81 int32_t mulAdd(int16_t in, int16_t v, int32_t a) in mulAdd() argument
87 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) in mulAdd()
91 return a + in * (int32_t)v; in mulAdd()
99 int32_t mul(int16_t in, int16_t v) in mul() argument
105 : [in]"%r"(in), [v]"r"(v) in mul()
109 return in * (int32_t)v; in mul()
Dfixedfft.h26 extern void fixed_fft_real(int n, int32_t *v);
/system/core/sh/
Darith_lex.l65 [A-Za-z_][A-Za-z_0-9]* { char *v = lookupvar(yytext); variable
66 if (v) {
67 yylval = strtol(v, &v, 0);
68 if (*v == 0)
Dvar.c348 struct var *v; in lookupvar() local
350 v = find_var(name, NULL, NULL); in lookupvar()
351 if (v == NULL || v->flags & VUNSET) in lookupvar()
353 return v->text + v->name_len + 1; in lookupvar()
368 struct var *v; in bltinlookup() local
375 v = find_var(name, NULL, NULL); in bltinlookup()
377 if (v == NULL || v->flags & VUNSET || (!doall && !(v->flags & VEXPORT))) in bltinlookup()
379 return v->text + v->name_len + 1; in bltinlookup()
Dalias.c211 char *n, *v; in aliascmd() local
229 if ((v = strchr(n+1, '=')) == NULL) { /* n+1: funny ksh stuff */ in aliascmd()
239 *v++ = '\0'; in aliascmd()
240 setalias(n, v); in aliascmd()
/system/core/include/private/pixelflinger/
Dggl_context.h35 inline uint32_t GGL_RGBA_TO_HOST(uint32_t v) { in GGL_RGBA_TO_HOST() argument
36 return v; in GGL_RGBA_TO_HOST()
38 inline uint32_t GGL_HOST_TO_RGBA(uint32_t v) { in GGL_HOST_TO_RGBA() argument
39 return v; in GGL_HOST_TO_RGBA()
44 inline uint32_t GGL_RGBA_TO_HOST(uint32_t v) {
50 : "r" (v)
54 return (v<<24) | (v>>24) | ((v<<8)&0xff0000) | ((v>>8)&0xff00);
57 inline uint32_t GGL_HOST_TO_RGBA(uint32_t v) {
63 : "r" (v)
67 return (v<<24) | (v>>24) | ((v<<8)&0xff0000) | ((v>>8)&0xff00);
[all …]
Dggl_fixed.h39 inline GGLfixed gglFracx(GGLfixed v) ALWAYS_INLINE ;
40 inline GGLfixed gglFloorx(GGLfixed v) ALWAYS_INLINE ;
41 inline GGLfixed gglCeilx(GGLfixed v) ALWAYS_INLINE ;
42 inline GGLfixed gglCenterx(GGLfixed v) ALWAYS_INLINE ;
43 inline GGLfixed gglRoundx(GGLfixed v) ALWAYS_INLINE ;
58 GGLfixed gglFracx(GGLfixed v) { in gglFracx() argument
59 return v & ((1<<FIXED_BITS)-1); in gglFracx()
61 GGLfixed gglFloorx(GGLfixed v) { in gglFloorx() argument
62 return gglFixedToIntFloor(v)<<FIXED_BITS; in gglFloorx()
64 GGLfixed gglCeilx(GGLfixed v) { in gglCeilx() argument
[all …]
/system/core/libpixelflinger/codeflinger/
Dblending.cpp474 const integer_t& v, in mul_factor() argument
477 int vs = v.size(); in mul_factor()
541 int vreg = v.reg; in mul_factor()
565 const integer_t& v, in mul_factor_add() argument
572 int vs = v.size(); in mul_factor_add()
593 if (d.reg!=a.reg && d.reg!=v.reg && d.reg!=f.reg) { in mul_factor_add()
604 if (vs<16 && fs<16) SMLABB(AL, d.reg, v.reg, f.reg, add.reg); in mul_factor_add()
605 else MLA(AL, 0, d.reg, v.reg, f.reg, add.reg); in mul_factor_add()
610 if (v.flags & CORRUPTIBLE) temp = v.reg; in mul_factor_add()
615 if (vs<16 && fs<16) SMULBB(AL, temp, v.reg, f.reg); in mul_factor_add()
[all …]
/system/vold/
DVolumeManager.cpp127 int VolumeManager::addVolume(Volume *v) { in addVolume() argument
128 mVolumes->push_back(v); in addVolume()
171 Volume *v = lookupVolume(label); in formatVolume() local
173 if (!v) { in formatVolume()
183 return v->formatVol(); in formatVolume()
1106 Volume *v = lookupVolume(label); in mountVolume() local
1108 if (!v) { in mountVolume()
1113 return v->mountVol(); in mountVolume()
1162 Volume *v = lookupVolume(label); in shareEnabled() local
1164 if (!v) { in shareEnabled()
[all …]
DVolumeManager.h78 int addVolume(Volume *v);
129 int cleanupAsec(Volume *v, bool force);
155 int vold_getDirectVolumeList(struct volume_info *v);
/system/core/liblog/
Dfake_log_device.c470 struct iovec* v = vec; in showLog() local
474 v->iov_base = prefixBuf; in showLog()
475 v->iov_len = prefixLen; in showLog()
477 v++; in showLog()
482 v->iov_base = (void*)start; in showLog()
483 v->iov_len = p-start; in showLog()
485 v++; in showLog()
489 v->iov_base = suffixBuf; in showLog()
490 v->iov_len = suffixLen; in showLog()
492 v++; in showLog()
[all …]
/system/extras/ext4_utils/
Dsha1.c53 #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30); argument
54 #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30); argument
55 #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); argument
56 #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30); argument
57 #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); argument
76 #define nR0(v,w,x,y,z,i) R0(*v,*w,*x,*y,*z,i) argument
77 #define nR1(v,w,x,y,z,i) R1(*v,*w,*x,*y,*z,i) argument
78 #define nR2(v,w,x,y,z,i) R2(*v,*w,*x,*y,*z,i) argument
79 #define nR3(v,w,x,y,z,i) R3(*v,*w,*x,*y,*z,i) argument
80 #define nR4(v,w,x,y,z,i) R4(*v,*w,*x,*y,*z,i) argument
/system/core/init/
Dbuiltins.c765 char *v; in do_setsebool() local
773 v = strchr(name, '='); in do_setsebool()
774 if (!v) { in do_setsebool()
778 *v++ = 0; in do_setsebool()
780 if (!strcmp(v, "1") || !strcasecmp(v, "true") || !strcasecmp(v, "on")) in do_setsebool()
782 else if (!strcmp(v, "0") || !strcasecmp(v, "false") || !strcasecmp(v, "off")) in do_setsebool()
785 ERROR("setsebool: invalid value %s\n", v); in do_setsebool()
/system/media/camera/include/system/
Dcamera_metadata.h421 const vendor_tag_query_ops_t *v,
429 const vendor_tag_query_ops_t *v,
437 const vendor_tag_query_ops_t *v,

12