/system/chre/util/tests/ |
D | heap_test.cc | 11 DynamicVector<int> v; in TEST() local 13 EXPECT_DEATH(chre::push_heap(v, comp), ""); in TEST() 17 DynamicVector<int> v; in TEST() local 19 EXPECT_DEATH(chre::pop_heap(v, comp), ""); in TEST() 23 DynamicVector<int> v; in TEST() local 39 v.push_back(array[i]); in TEST() 40 chre::push_heap(v, comp); in TEST() 46 chre::pop_heap(v, comp); in TEST() 47 EXPECT_EQ(array_sorted[i], v[v.size() - 1]); in TEST() 48 v.erase(v.size() - 1); in TEST() [all …]
|
/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/libutils/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/media/audio_utils/ |
D | fixedfft.cpp | 107 void fixed_fft(int n, int32_t *v) in fixed_fft() argument 114 int32_t t = v[i]; in fixed_fft() 115 v[i] = v[r]; in fixed_fft() 116 v[r] = t; in fixed_fft() 124 int32_t x = half(v[i]); in fixed_fft() 125 int32_t y = half(v[i + p]); in fixed_fft() 126 v[i] = x + y; in fixed_fft() 127 v[i + p] = x - y; in fixed_fft() 135 int32_t x = half(v[i]); in fixed_fft() 136 int32_t y = mult(w, v[i + p]); in fixed_fft() [all …]
|
D | sample.c | 40 sample_minifloat_t sample_from_float(float v) in sample_from_float() argument 42 if (isnan(v)) { in sample_from_float() 46 if (v < 0.0f) { in sample_from_float() 48 v = -v; in sample_from_float() 53 if (v <= 0.0f) { in sample_from_float() 57 if (v >= 2.0f) { in sample_from_float() 61 float r = frexpf(v, &exp); in sample_from_float()
|
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 | 38 static uint32_t extract(uint32_t v, int h, int l, int bits); 39 static uint32_t expand(uint32_t v, int sbits, int dbits); 40 static uint32_t downshift_component(uint32_t in, uint32_t v, 121 uint32_t v = 0; in read_pixel() local 123 case 1: v = *data; break; in read_pixel() 124 case 2: v = *(uint16_t*)data; break; in read_pixel() 125 case 3: v = (data[2]<<16)|(data[1]<<8)|data[0]; break; in read_pixel() 126 case 4: v = GGL_RGBA_TO_HOST(*(uint32_t*)data); break; in read_pixel() 131 pixel->c[i] = extract(v, f->c[i].h, f->c[i].l, f->size*8); in read_pixel() 138 uint16_t v = *(reinterpret_cast<uint16_t*>(s->data) + (x + (s->stride * y))); in readRGB565() local [all …]
|
D | trap.cpp | 138 void pointx_validate(void *con, const GGLcoord* v, GGLcoord rad) in pointx_validate() argument 151 c->procs.pointx(con, v, rad); in pointx_validate() 154 void pointx(void *con, const GGLcoord* v, GGLcoord rad) in pointx() argument 160 GGLcoord xc = v[0]; in pointx() 161 GGLcoord yc = v[1]; in pointx() 205 void aa_nice_pointx(void *con, const GGLcoord* v, GGLcoord size) in aa_nice_pointx() argument 210 GGLint l = (v[0] - rad) >> TRI_FRACTION_BITS; in aa_nice_pointx() 211 GGLint t = (v[1] - rad) >> TRI_FRACTION_BITS; in aa_nice_pointx() 212 GGLint r = (v[0] + rad + (TRI_ONE-1)) >> TRI_FRACTION_BITS; in aa_nice_pointx() 213 GGLint b = (v[1] + rad + (TRI_ONE-1)) >> TRI_FRACTION_BITS; in aa_nice_pointx() [all …]
|
/system/core/libmeminfo/tools/ |
D | showmap.cpp | 40 VmaInfo(const Vma& v) : vma(v), is_bss(false), count(1) {} in VmaInfo() 41 VmaInfo(const Vma& v, bool bss) : vma(v), is_bss(bss), count(1) {} in VmaInfo() 42 VmaInfo(const Vma& v, const std::string& name, bool bss) : vma(v), is_bss(bss), count(1) { in VmaInfo() 155 static void print_vmainfo(const VmaInfo& v, bool total) { in print_vmainfo() argument 160 printf("%16" PRIx64 " %16" PRIx64 " ", v.vma.start, v.vma.end); in print_vmainfo() 165 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo() 166 v.vma.usage.shared_dirty, v.vma.usage.private_clean, v.vma.usage.private_dirty, in print_vmainfo() 167 v.vma.usage.swap, v.vma.usage.swap_pss); in print_vmainfo() 169 printf("%4" PRIu32 " ", v.count); in print_vmainfo() 184 for (const auto& v : g_vmas) { in showmap() local [all …]
|
D | wsstop.cpp | 68 static void print_vma(const Vma& v) { in print_vma() argument 69 printf("%16" PRIx64 " %16" PRIx64 " ", v.start, v.end); in print_vma() 72 v.usage.vss / 1024, v.usage.rss / 1024, v.usage.pss / 1024, v.usage.shared_clean / 1024, in print_vma() 73 v.usage.shared_dirty / 1024, v.usage.private_clean / 1024, v.usage.private_dirty / 1024, in print_vma() 74 v.usage.swap / 1024, v.usage.swap_pss / 1024); in print_vma() 75 printf("%s\n", v.name.c_str()); in print_vma() 156 [](const auto& v) { return v.usage.rss == 0; }), in workingset() argument 163 for (const auto& v : diff_wss) { in workingset() local 164 print_vma(v); in workingset()
|
/system/extras/tests/crypto/ |
D | get_dm_versions.c | 29 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/tools/hidl/build/ |
D | utils.go | 20 for i, v := range strs { 21 ret[i] = prefix + v + suffix 29 for _, v := range sstrs { 30 ret = append(ret, v...) 37 for _, v := range strs { 38 if v != str { 39 ret = append(ret, v)
|
/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/libvintf/ |
D | parse_string.cpp | 50 for (const T &v : objs) { in operator <<() local 54 os << v; in operator <<() 62 std::vector<std::string> v = SplitString(s, ','); in parse() local 63 objs->resize(v.size()); in parse() 65 for (const auto &item : v) { in parse() 217 std::vector<std::string> v = SplitString(s, '.'); in parse() local 218 if (v.size() != 2) { in parse() 222 if (!ParseUint(v[0], &major)) { in parse() 225 if (!ParseUint(v[1], &minor)) { in parse() 237 std::vector<std::string> v = SplitString(s, '-'); in parse() local [all …]
|
/system/media/camera/include/system/ |
D | camera_vendor_tags.h | 45 int (*get_tag_count)(const vendor_tag_ops_t *v); 53 void (*get_all_tags)(const vendor_tag_ops_t *v, uint32_t *tag_array); 72 const char *(*get_section_name)(const vendor_tag_ops_t *v, uint32_t tag); 82 const char *(*get_tag_name)(const vendor_tag_ops_t *v, uint32_t tag); 90 int (*get_tag_type)(const vendor_tag_ops_t *v, uint32_t tag);
|
/system/bt/stack/sdp/ |
D | sdp_api.cc | 302 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceUUIDInRec() 306 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 309 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec() 312 *p_uuid = Uuid::From32Bit(p_sattr->attr_value.v.u32); in SDP_FindServiceUUIDInRec() 326 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec() 333 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 345 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 372 tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit() 377 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit() 389 *p_uuid = Uuid::From128BitBE(p_attr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit() [all …]
|
/system/libhidl/transport/include/hidl/ |
D | ConcurrentMap.h | 33 void set(K &&k, V &&v) { in set() argument 35 mMap[std::forward<K>(k)] = std::forward<V>(v); in set() 53 size_type eraseIfEqual(const K& k, const V& v) { in eraseIfEqual() argument 59 if (iter->second == v) { in eraseIfEqual() 69 void setLocked(K&& k, V&& v) { mMap[std::forward<K>(k)] = std::forward<V>(v); } in setLocked() argument 70 void setLocked(K&& k, const V& v) { mMap[std::forward<K>(k)] = v; } in setLocked() argument
|
/system/libhidl/base/include/hidl/ |
D | Status.h | 215 Return(T v) : details::return_status(), mVal{v} {} in Return() argument 240 Return(sp<T> v) : details::return_status(), mVal{v} {} in Return() argument 241 Return(T* v) : details::return_status(), mVal{v} {} in Return() argument 243 template<typename U> Return(sp<U> v) : details::return_status(), mVal{v} {} in Return() argument 244 template<typename U> Return(U* v) : details::return_status(), mVal{v} {} in Return() argument
|
/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/vendor_libs/test_vendor_lib/packets/hci/ |
D | event_payload_builder.cc | 46 uint64_t v = value; in AddPayloadOctets() local 51 val_vector.push_back(v & 0xff); in AddPayloadOctets() 52 v = v >> 8; in AddPayloadOctets() 55 if (v != 0) return false; in AddPayloadOctets()
|
/system/bt/stack/hid/ |
D | hidh_api.cc | 80 memcpy(str, (char*)p_attr->attr_value.v.array, name_len); in hidh_get_str_attr() 83 memcpy(str, (char*)p_attr->attr_value.v.array, max_len - 1); in hidh_get_str_attr() 118 ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) || in hidh_search_callback() 121 ((p_subattr2 = p_subattr1->attr_value.v.p_sub_attr) == NULL) || in hidh_search_callback() 134 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 140 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 146 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 152 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 158 (p_attr->attr_value.v.u8)) { in hidh_search_callback() 164 (p_attr->attr_value.v.u8)) { in hidh_search_callback() [all …]
|
/system/bt/gd/packet/ |
D | raw_builder.cc | 48 uint64_t v = value; in AddOctets() local 53 val_vector.push_back(v & 0xff); in AddOctets() 54 v = v >> 8; in AddOctets() 57 if (v != 0) return false; in AddOctets()
|
/system/bt/vendor_libs/test_vendor_lib/packets/ |
D | raw_builder.cc | 46 uint64_t v = value; in AddOctets() local 51 val_vector.push_back(v & 0xff); in AddOctets() 52 v = v >> 8; in AddOctets() 55 if (v != 0) return false; in AddOctets()
|