Home
last modified time | relevance | path

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

12

/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 …]
Dminifloat.c35 gain_minifloat_t gain_from_float(float v) in gain_from_float() argument
37 if (isnan(v) || v <= 0.0f) { in gain_from_float()
40 if (v >= 2.0f) { in gain_from_float()
44 float r = frexpf(v, &exp); in gain_from_float()
/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.cpp465 static void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv);
476 void rescale(uint32_t& u, uint8_t& su, uint32_t& v, uint8_t& sv) in rescale() argument
480 v = ggl_expand(v, sv, su); in rescale()
633 GGLcolor ADJUST_COLOR_ITERATOR(GGLcolor v, GGLcolor dvdx, int len) in ADJUST_COLOR_ITERATOR() argument
635 const int32_t end = dvdx * (len-1) + v; in ADJUST_COLOR_ITERATOR()
637 v -= end; in ADJUST_COLOR_ITERATOR()
638 v &= ~(v>>31); in ADJUST_COLOR_ITERATOR()
639 return v; in ADJUST_COLOR_ITERATOR()
719 int32_t u, v; in scanline() local
733 v = wrapping(tc[i].t, h, tx.t_wrap); in scanline()
[all …]
/system/core/libmincrypt/
Dp256_ecdsa.c35 p256_int u, v; in p256_ecdsa_verify() local
42 p256_mod(&SECP256r1_n, s, &v); in p256_ecdsa_verify()
43 if (p256_is_zero(&u) || p256_is_zero(&v)) return 0; in p256_ecdsa_verify()
45 p256_modinv_vartime(&SECP256r1_n, s, &v); in p256_ecdsa_verify()
46 p256_modmul(&SECP256r1_n, message, 0, &v, &u); // message / s % n in p256_ecdsa_verify()
47 p256_modmul(&SECP256r1_n, r, 0, &v, &v); // r / s % n in p256_ecdsa_verify()
49 p256_points_mul_vartime(&u, &v, in p256_ecdsa_verify()
51 &u, &v); in p256_ecdsa_verify()
/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.h112 const char *get_fakevendor_section_name(const vendor_tag_ops_t *v,
114 const char *get_fakevendor_tag_name(const vendor_tag_ops_t *v,
116 int get_fakevendor_tag_type(const vendor_tag_ops_t *v,
118 int get_fakevendor_tag_count(const vendor_tag_ops_t *v);
119 void get_fakevendor_tags(const vendor_tag_ops_t *v, uint32_t *tag_array);
129 const char *get_fakevendor_section_name(const vendor_tag_ops_t *v, in get_fakevendor_section_name() argument
131 if (v != &fakevendor_ops) return NULL; in get_fakevendor_section_name()
139 const char *get_fakevendor_tag_name(const vendor_tag_ops_t *v, in get_fakevendor_tag_name() argument
141 if (v != &fakevendor_ops) return NULL; in get_fakevendor_tag_name()
150 int get_fakevendor_tag_type(const vendor_tag_ops_t *v, in get_fakevendor_tag_type() argument
[all …]
/system/media/camera/include/system/
Dcamera_vendor_tags.h42 int (*get_tag_count)(const vendor_tag_ops_t *v);
50 void (*get_all_tags)(const vendor_tag_ops_t *v, uint32_t *tag_array);
69 const char *(*get_section_name)(const vendor_tag_ops_t *v, uint32_t tag);
79 const char *(*get_tag_name)(const vendor_tag_ops_t *v, uint32_t tag);
87 int (*get_tag_type)(const vendor_tag_ops_t *v, uint32_t tag);
Dcamera_metadata.h469 const vendor_tag_query_ops_t *v,
477 const vendor_tag_query_ops_t *v,
485 const vendor_tag_query_ops_t *v,
493 const vendor_tag_query_ops_t *v);
500 const vendor_tag_query_ops_t *v,
/system/core/logcat/tests/
Dlogcat_test.cpp346 unsigned long long v = 0xDEADBEEFA55A0000ULL; in caught_blocking() local
348 v += getpid() & 0xFFFF; in caught_blocking()
350 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in caught_blocking()
355 unsigned long long v = 0xDEADBEEFA55F0000ULL; in TEST() local
359 v += pid & 0xFFFF; in TEST()
361 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in TEST()
363 v &= 0xFFFFFFFFFFFAFFFFULL; in TEST()
394 if (l == v) { in TEST()
415 unsigned long long v = 0xA55ADEADBEEF0000ULL; in caught_blocking_tail() local
417 v += getpid() & 0xFFFF; in caught_blocking_tail()
[all …]
/system/extras/verity/
DKeystoreSigner.java74 ASN1EncodableVector v = new ASN1EncodableVector(); in toASN1Primitive() local
75 v.add(algorithmIdentifier); in toASN1Primitive()
76 v.add(keyMaterial); in toASN1Primitive()
77 return new DERSequence(v); in toASN1Primitive()
110 ASN1EncodableVector v = new ASN1EncodableVector(); in getInnerKeystore() local
111 v.add(formatVersion); in getInnerKeystore()
112 v.add(new DERSequence(keyBag)); in getInnerKeystore()
113 return new DERSequence(v).getEncoded(); in getInnerKeystore()
117 ASN1EncodableVector v = new ASN1EncodableVector(); in toASN1Primitive() local
118 v.add(formatVersion); in toASN1Primitive()
[all …]
DBootSignature.java179 ASN1EncodableVector v = new ASN1EncodableVector(); in toASN1Primitive() local
180 v.add(formatVersion); in toASN1Primitive()
181 v.add(certificate); in toASN1Primitive()
182 v.add(algorithmIdentifier); in toASN1Primitive()
183 v.add(getAuthenticatedAttributes()); in toASN1Primitive()
184 v.add(signature); in toASN1Primitive()
185 return new DERSequence(v); in toASN1Primitive()
/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/liblog/tests/
Dliblog_benchmark.cpp104 unsigned long long v = 0xDEADBEEFA55A5AA5ULL; in caught_latency() local
106 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in caught_latency()
198 unsigned long long v = 0xDEADBEEFA55A5AA6ULL; in caught_delay() local
200 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in caught_delay()
/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.c476 struct iovec* v = vec; in showLog() local
480 v->iov_base = prefixBuf; in showLog()
481 v->iov_len = prefixLen; in showLog()
483 v++; in showLog()
488 v->iov_base = (void*)start; in showLog()
489 v->iov_len = p-start; in showLog()
491 v++; in showLog()
495 v->iov_base = suffixBuf; in showLog()
496 v->iov_len = suffixLen; in showLog()
498 v++; in showLog()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h705 int32_t mulAdd(int16_t in, int16_t v, int32_t a) in mulAdd() argument
711 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) in mulAdd()
715 return a + in * (int32_t)v; in mulAdd()
723 int32_t mul(int16_t in, int16_t v) in mul() argument
729 : [in]"%r"(in), [v]"r"(v) in mul()
733 return in * (int32_t)v; in mul()
/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/audio_utils/tests/
Dprimitives_tests.cpp137 for (uint32_t v = 0x100000; v <= 0xff000000; v += 0x100000) { in TEST() local
138 ures = u4_28_from_float(float_from_u4_28(v)); in TEST()
139 EXPECT_EQ(ures, v); in TEST()
141 for (uint32_t v = 0; v <= 0xffff; ++v) { // uint32_t prevents overflow in TEST() local
142 ures16 = u4_12_from_float(float_from_u4_12(v)); in TEST()
143 EXPECT_EQ(ures16, v); in TEST()
/system/vold/
DVolumeManager.cpp235 int VolumeManager::addVolume(Volume *v) { in addVolume() argument
236 mVolumes->push_back(v); in addVolume()
294 Volume *v = lookupVolume(label); in formatVolume() local
296 if (!v) { in formatVolume()
306 return v->formatVol(wipe); in formatVolume()
1458 Volume *v = lookupVolume(label); in mountVolume() local
1460 if (!v) { in mountVolume()
1465 return v->mountVol(); in mountVolume()
1514 Volume *v = lookupVolume(label); in shareEnabled() local
1516 if (!v) { in shareEnabled()
[all …]

12