Home
last modified time | relevance | path

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

123

/system/core/include/utils/
DTimers.h66 static inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument
67 static inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument
68 static inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument
69 static inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument
70 static inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument
71 static inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument
73 static inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument
74 static inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument
75 static inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument
DByteOrder.h41 static inline uint32_t android_swap_long(uint32_t v) in android_swap_long() argument
43 return (v<<24) | ((v<<8)&0x00FF0000) | ((v>>8)&0x0000FF00) | (v>>24); in android_swap_long()
46 static inline uint16_t android_swap_short(uint16_t v) in android_swap_short() argument
48 return (v<<8) | (v>>8); in android_swap_short()
/system/media/audio_utils/
Dfixedfft.cpp111 void fixed_fft(int n, int32_t *v) in fixed_fft() argument
118 int32_t t = v[i]; in fixed_fft()
119 v[i] = v[r]; in fixed_fft()
120 v[r] = t; in fixed_fft()
128 int32_t x = half(v[i]); in fixed_fft()
129 int32_t y = half(v[i + p]); in fixed_fft()
130 v[i] = x + y; in fixed_fft()
131 v[i + p] = x - y; in fixed_fft()
139 int32_t x = half(v[i]); in fixed_fft()
140 int32_t y = mult(w, v[i + p]); in fixed_fft()
[all …]
/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/crypto/
Dget_dm_versions.c28 struct dm_target_versions *v; in main() local
48 v = (struct dm_target_versions *) &buffer[sizeof(struct dm_ioctl)]; in main()
49 while (v->next) { in main()
50 printf("%s: %d.%d.%d\n", v->name, v->version[0], v->version[1], v->version[2]); in main()
51 v = (struct dm_target_versions *)(((char *)v) + v->next); in main()
/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,
113 int get_fakevendor_tag_count(const vendor_tag_query_ops_t *v);
114 void get_fakevendor_tags(const vendor_tag_query_ops_t *v, uint32_t *tag_array);
124 const char *get_fakevendor_section_name(const vendor_tag_query_ops_t *v, in get_fakevendor_section_name() argument
126 if (v != &fakevendor_query_ops) return NULL; in get_fakevendor_section_name()
134 const char *get_fakevendor_tag_name(const vendor_tag_query_ops_t *v, in get_fakevendor_tag_name() argument
136 if (v != &fakevendor_query_ops) return NULL; in get_fakevendor_tag_name()
145 int get_fakevendor_tag_type(const vendor_tag_query_ops_t *v, in get_fakevendor_tag_type() argument
[all …]
/system/core/toolbox/
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/media/audio_utils/include/audio_utils/
Dprimitives.h118 int32_t mulAdd(int16_t in, int16_t v, int32_t a) in mulAdd() argument
124 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) in mulAdd()
128 return a + in * (int32_t)v; in mulAdd()
136 int32_t mul(int16_t in, int16_t v) in mul() argument
142 : [in]"%r"(in), [v]"r"(v) in mul()
146 return in * (int32_t)v; in mul()
/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/libcutils/tests/memset_mips/
Dtest_memset.c87 uint32_t v, notv = 0; in testone() local
102 v = rand(); in testone()
107 v &= 0xff; in testone()
108 notv = ~v & 0xff; in testone()
111 v &= 0xffff; in testone()
112 notv = ~v & 0xffff; in testone()
117 notv = ~v; in testone()
136 units = timeone(fn, d, v, n); in testone()
149 printf ("%s: verify failure: preguard:%p d=%p v=%08x got=%08x n=%d\n", tag, p, d, v, got, n); in testone()
152 if (got != v) in testone()
[all …]
/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/core/libutils/tests/
DLruCache_test.cpp61 int v; member
63 explicit ComplexValue(int v) : v(v) { in ComplexValue()
67 ComplexValue(const ComplexValue& other) : v(other.v) { in ComplexValue()
86 void operator()(SimpleKey& k, StringValue& v) { in operator ()() argument
89 lastValue = v; in operator ()()
/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/vold/
DVolumeManager.cpp128 int VolumeManager::addVolume(Volume *v) { in addVolume() argument
129 mVolumes->push_back(v); in addVolume()
172 Volume *v = lookupVolume(label); in formatVolume() local
174 if (!v) { in formatVolume()
184 return v->formatVol(wipe); in formatVolume()
1273 Volume *v = lookupVolume(label); in mountVolume() local
1275 if (!v) { in mountVolume()
1280 return v->mountVol(); in mountVolume()
1329 Volume *v = lookupVolume(label); in shareEnabled() local
1331 if (!v) { in shareEnabled()
[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/media/camera/include/system/
Dcamera_metadata.h450 const vendor_tag_query_ops_t *v,
458 const vendor_tag_query_ops_t *v,
466 const vendor_tag_query_ops_t *v,
474 const vendor_tag_query_ops_t *v);
481 const vendor_tag_query_ops_t *v,
/system/extras/tests/bionic/libc/other/
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()

123