/system/extras/libfec/ |
D | fec_verity.cpp | 193 verity_info *v = &f->verity; in verify_tree() local 197 v->hash_size = in verify_tree() 198 verity_get_size(v->data_blocks * FEC_BLOCKSIZE, &levels, NULL); in verify_tree() 200 check(v->hash_start < UINT64_MAX - v->hash_size); in verify_tree() 201 check(v->hash_start + v->hash_size <= f->data_size); in verify_tree() 203 uint64_t hash_offset = v->hash_start; in verify_tree() 206 v->hash_data_offset = data_offset; in verify_tree() 228 verity_get_size(v->data_blocks * FEC_BLOCKSIZE, NULL, hashes); in verify_tree() 235 v->hash_data_offset = data_offset; in verify_tree() 236 v->hash_data_blocks = blocks; in verify_tree() [all …]
|
/system/core/include/utils/ |
D | Timers.h | 68 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument 69 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument 70 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument 71 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument 72 static CONSTEXPR inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument 73 static CONSTEXPR inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument 75 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument 76 static CONSTEXPR inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument 77 static CONSTEXPR inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument
|
D | ByteOrder.h | 41 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/tools/aidl/ |
D | type_java.cpp | 61 void Type::WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, in WriteToParcel() argument 69 void Type::CreateFromParcel(StatementBlock* addTo, Variable* v, in CreateFromParcel() argument 77 void Type::ReadFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, in ReadFromParcel() argument 111 void BasicType::WriteToParcel(StatementBlock* addTo, Variable* v, in WriteToParcel() argument 113 addTo->Add(new MethodCall(parcel, m_marshallParcel, 1, v)); in WriteToParcel() 116 void BasicType::CreateFromParcel(StatementBlock* addTo, Variable* v, in CreateFromParcel() argument 118 addTo->Add(new Assignment(v, new MethodCall(parcel, m_unmarshallParcel))); in CreateFromParcel() 132 void BasicArrayType::WriteToParcel(StatementBlock* addTo, Variable* v, in WriteToParcel() argument 134 addTo->Add(new MethodCall(parcel, m_writeArrayParcel, 1, v)); in WriteToParcel() 137 void BasicArrayType::CreateFromParcel(StatementBlock* addTo, Variable* v, in CreateFromParcel() argument [all …]
|
D | type_java.h | 54 virtual void WriteToParcel(StatementBlock* addTo, Variable* v, 56 virtual void CreateFromParcel(StatementBlock* addTo, Variable* v, 58 virtual void ReadFromParcel(StatementBlock* addTo, Variable* v, 85 void WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 87 void CreateFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 89 void ReadFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 108 void WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 110 void CreateFromParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 122 void WriteToParcel(StatementBlock* addTo, Variable* v, Variable* parcel, 124 void CreateFromParcel(StatementBlock* addTo, Variable* v, [all …]
|
D | generate_java_binder.cpp | 224 Variable* v, Variable* parcel, in generate_new_array() argument 226 Variable* len = new Variable(types->IntType(), v->name + "_length"); in generate_new_array() 230 lencheck->statements->Add(new Assignment(v, NULL_VALUE)); in generate_new_array() 233 new Assignment(v, new NewArrayExpression(t, len))); in generate_new_array() 238 Variable* v, Variable* parcel, int flags) { in generate_write_to_parcel() argument 239 t->WriteToParcel(addTo, v, parcel, flags); in generate_write_to_parcel() 243 Variable* v, Variable* parcel, in generate_create_from_parcel() argument 245 t->CreateFromParcel(addTo, v, parcel, cl); in generate_create_from_parcel() 249 Variable* v, Variable* parcel, in generate_read_from_parcel() argument 251 t->ReadFromParcel(addTo, v, parcel, cl); in generate_read_from_parcel() [all …]
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 111 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 …]
|
D | roundup.c | 19 unsigned roundup(unsigned v) in roundup() argument 22 if (v == 0) { in roundup() 23 v = 1; in roundup() 25 int lz = __builtin_clz((int) v); in roundup() 28 if (v > rounded && lz > 0) { in roundup()
|
D | minifloat.c | 35 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/ |
D | buffer.cpp | 36 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 …]
|
D | trap.cpp | 136 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 …]
|
/system/core/libmincrypt/ |
D | p256_ecdsa.c | 35 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/ |
D | get_dm_versions.c | 29 struct dm_target_versions *v; in main() local 49 v = (struct dm_target_versions *) &buffer[sizeof(struct dm_ioctl)]; in main() 50 while (v->next) { in main() 51 printf("%s: %d.%d.%d\n", v->name, v->version[0], v->version[1], v->version[2]); in main() 52 v = (struct dm_target_versions *)(((char *)v) + v->next); in main()
|
/system/connectivity/shill/net/ |
D | preinstall.sh | 21 v=$2 23 deps=$(<"${OUT}"/gen/libshill-net-${v}-deps.txt) 25 -e "s/@BSLOT@/${v}/g" \ 27 "net/libshill-net.pc.in" > "${OUT}/lib/libshill-net-${v}.pc" 29 deps_test=$(<"${OUT}"/gen/libshill-net-test-${v}-deps.txt) 31 -e "s/@BSLOT@/${v}/g" \ 33 "net/libshill-net-test.pc.in" > "${OUT}/lib/libshill-net-test-${v}.pc"
|
/system/media/camera/tests/ |
D | camera_metadata_tests_fake_vendor.h | 112 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); 130 const char *get_fakevendor_section_name(const vendor_tag_ops_t *v, in get_fakevendor_section_name() argument 132 if (v != &fakevendor_ops) return NULL; in get_fakevendor_section_name() 140 const char *get_fakevendor_tag_name(const vendor_tag_ops_t *v, in get_fakevendor_tag_name() argument 142 if (v != &fakevendor_ops) return NULL; in get_fakevendor_tag_name() 151 int get_fakevendor_tag_type(const vendor_tag_ops_t *v, in get_fakevendor_tag_type() argument [all …]
|
/system/connectivity/shill/shims/ |
D | environment.cc | 42 char* v = getenv(name.c_str()); in GetVariable() local 43 if (v) { in GetVariable() 44 *value = v; in GetVariable() 53 string v = *var; in AsMap() local 54 size_t assign = v.find('='); in AsMap() 56 env[v.substr(0, assign)] = v.substr(assign + 1); in AsMap()
|
/system/core/base/include/android-base/ |
D | memory.h | 29 T v; in get_unaligned() member 32 return p->v; in get_unaligned() 36 static inline void put_unaligned(T* address, T v) { in put_unaligned() argument 38 T v; in put_unaligned() member 41 p->v = v; in put_unaligned()
|
/system/media/camera/include/system/ |
D | camera_vendor_tags.h | 42 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);
|
/system/webservd/libwebserv/ |
D | preinstall.sh | 20 v=$2 22 deps=$(<"${OUT}"/gen/libwebserv-${v}-deps.txt) 24 -e "s/@BSLOT@/${v}/g" \ 26 "libwebserv/libwebserv.pc.in" > "${OUT}/lib/libwebserv-${v}.pc"
|
/system/extras/verity/ |
D | KeystoreSigner.java | 74 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 …]
|
/system/core/logcat/ |
D | logcatd.rc | 5 …# exec - logd log -- /system/bin/logcat -L -b all -v threadtime -v usec -v printable -D -f /data/m… 8 service logcatd /system/bin/logcat -b all -v threadtime -v usec -v printable -D -f /data/misc/logd/…
|
/system/bt/stack/sdp/ |
D | sdp_api.c | 348 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; p_sattr = p_sattr->p_next_attr) in SDP_FindServiceUUIDInRec() 355 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec() 361 p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec() 366 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; in SDP_FindServiceUUIDInRec() 381 …for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; p_extra_sattr; p_extra_sattr = p_extra_satt… in SDP_FindServiceUUIDInRec() 389 p_uuid->uu.uuid16 = p_extra_sattr->attr_value.v.u16; in SDP_FindServiceUUIDInRec() 405 p_uuid->uu.uuid16 = p_attr->attr_value.v.u16; in SDP_FindServiceUUIDInRec() 437 tSDP_DISC_ATTR *p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit() 447 p_uuid->uu.uuid128[i] = p_sattr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec_128bit() 464 p_uuid->uu.uuid128[i] = p_attr->attr_value.v.array[LEN_UUID_128-i-1]; in SDP_FindServiceUUIDInRec_128bit() [all …]
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 413 unsigned long long v = 0xDEADBEEFA55A0000ULL; in caught_blocking() local 415 v += getpid() & 0xFFFF; in caught_blocking() 417 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in caught_blocking() 422 unsigned long long v = 0xDEADBEEFA55F0000ULL; in TEST() local 426 v += pid & 0xFFFF; in TEST() 428 LOG_FAILURE_RETRY(__android_log_btwrite(0, EVENT_TYPE_LONG, &v, sizeof(v))); in TEST() 430 v &= 0xFFFFFFFFFFFAFFFFULL; in TEST() 461 if (l == v) { in TEST() 482 unsigned long long v = 0xA55ADEADBEEF0000ULL; in caught_blocking_tail() local 484 v += getpid() & 0xFFFF; in caught_blocking_tail() [all …]
|
/system/core/libmemunreachable/tests/ |
D | Allocator_test.cpp | 136 auto v = allocator::vector<int>(Allocator<int>(heap)); in TEST_F() local 138 v.push_back(i); in TEST_F() 141 ASSERT_EQ(v[i], i); in TEST_F() 143 v.clear(); in TEST_F() 147 auto v = allocator::list<int>(Allocator<int>(heap)); in TEST_F() local 149 v.push_back(i); in TEST_F() 152 for (auto iter = v.begin(); iter != v.end(); iter++, i++) { in TEST_F() 155 v.clear(); in TEST_F()
|
/system/bt/stack/hid/ |
D | hidh_api.c | 86 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr() 91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 ); in hidh_get_str_attr() 131 || ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback() 133 || ((p_subattr2 = p_subattr1->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback() 145 (p_attr->attr_value.v.u8) ) in hidh_search_callback() 151 (p_attr->attr_value.v.u8) ) in hidh_search_callback() 157 (p_attr->attr_value.v.u8) ) in hidh_search_callback() 163 (p_attr->attr_value.v.u8) ) in hidh_search_callback() 169 (p_attr->attr_value.v.u8) ) in hidh_search_callback() 175 (p_attr->attr_value.v.u8) ) in hidh_search_callback() [all …]
|