/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/core/libutils/include/utils/ |
D | Timers.h | 64 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() argument 65 static CONSTEXPR inline nsecs_t ms2ns(nsecs_t v) {return milliseconds_to_nanoseconds(v);} in ms2ns() argument 66 static CONSTEXPR inline nsecs_t us2ns(nsecs_t v) {return microseconds_to_nanoseconds(v);} in us2ns() argument 67 static CONSTEXPR inline nsecs_t ns2s(nsecs_t v) {return nanoseconds_to_seconds(v);} in ns2s() argument 68 static CONSTEXPR inline nsecs_t ns2ms(nsecs_t v) {return nanoseconds_to_milliseconds(v);} in ns2ms() argument 69 static CONSTEXPR inline nsecs_t ns2us(nsecs_t v) {return nanoseconds_to_microseconds(v);} in ns2us() argument 71 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds() argument 72 static CONSTEXPR inline nsecs_t milliseconds(nsecs_t v) { return ms2ns(v); } in milliseconds() argument 73 static CONSTEXPR inline nsecs_t microseconds(nsecs_t v) { return us2ns(v); } in microseconds() argument
|
/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 …]
|
/system/memory/libmeminfo/tools/ |
D | showmap.cpp | 42 VmaInfo(const Vma& v) : vma(v), is_bss(false), count(1) {} in VmaInfo() 43 VmaInfo(const Vma& v, bool bss) : vma(v), is_bss(bss), count(1) {} in VmaInfo() 44 VmaInfo(const Vma& v, const std::string& name, bool bss) : vma(v), is_bss(bss), count(1) { in VmaInfo() 163 static void print_vmainfo(const VmaInfo& v, bool total) { in print_vmainfo() argument 168 printf("%16" PRIx64 " %16" PRIx64 " ", v.vma.start, v.vma.end); in print_vmainfo() 173 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo() 174 v.vma.usage.shared_dirty, v.vma.usage.private_clean, v.vma.usage.private_dirty, in print_vmainfo() 175 v.vma.usage.swap, v.vma.usage.swap_pss); in print_vmainfo() 177 printf("%4" PRIu32 " ", v.count); in print_vmainfo() 184 if (v.vma.flags & PROT_READ) flags_str[0] = 'r'; in print_vmainfo() [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/core/libutils/ |
D | Vector_benchmark.cpp | 22 android::Vector<char> v; in BM_fill_android_vector() local 24 v.push('A'); in BM_fill_android_vector() 30 std::vector<char> v; in BM_fill_std_vector() local 32 v.push_back('A'); in BM_fill_std_vector() 38 android::Vector<char> v; in BM_prepend_android_vector() local 40 v.insertAt('A', 0); in BM_prepend_android_vector() 46 std::vector<char> v; in BM_prepend_std_vector() local 48 v.insert(v.begin(), 'A'); in BM_prepend_std_vector()
|
/system/extras/libfec/ |
D | fec_verity.cpp | 445 verity_info *v = &f->verity; in parse_table() local 446 if (v->metadata_start < hash_start) { in parse_table() 447 check(data_blocks == v->metadata_start / FEC_BLOCKSIZE); in parse_table() 452 v->table = std::move(table); in parse_table() 454 v->hashtree.initialize(hash_start, data_blocks, salt, NID_sha256); in parse_table() 456 if (v->hashtree.verify_tree(f, root) == -1) { in parse_table() 460 check(!v->hashtree.hash_data.empty()); in parse_table() 461 check(!v->hashtree.zero_hash.empty()); in parse_table() 484 verity_info *v = &f->verity; in rewrite_metadata() local 485 memcpy(metadata.get(), &v->header, sizeof(v->header)); in rewrite_metadata() [all …]
|
/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/teeui/libteeui/include/teeui/ |
D | cbor.h | 100 template <typename T> auto getData(const T& v) -> decltype(v.data()) { 101 return v.data(); 104 template <typename T> auto getData(const T& v) -> decltype(v.c_str()) { 105 return v.c_str(); 152 template <typename Key, typename Value> MapElement<Key, Value> pair(const Key& k, const Value& v) { 153 return MapElement<Key, Value>(k, v); 202 template <typename T> WriteState writeNumber(WriteState wState, const T& v) { 204 if (v >= 0) { 205 return writeHeader(wState, Type::NUMBER, v); 207 return writeHeader(wState, Type::NEGATIVE, UINT64_C(-1) - v); [all …]
|
D | error.h | 44 constexpr Error(error_e v) noexcept : v_(v) {} in Error() argument 48 Error& operator=(error_e v) { 49 v_ = v; 66 inline bool operator==(error_e v) const { return v_ == v; }; 67 inline bool operator!=(error_e v) const { return v_ != v; };
|
D | utils.h | 66 static constexpr Array fill(const T& v) { in fill() argument 69 result.data_[i] = v; in fill() 78 template <typename T> auto bytesCast(const T& v) -> const uint8_t (&)[sizeof(T)] { 79 return *reinterpret_cast<const uint8_t(*)[sizeof(T)]>(&v); 81 template <typename T> auto bytesCast(T& v) -> uint8_t (&)[sizeof(T)] { 82 return *reinterpret_cast<uint8_t(*)[sizeof(T)]>(&v); 190 inline long double abs(long double v) { 191 return ::fabsl(v); 193 inline double abs(double v) { 194 return ::fabs(v); [all …]
|
D | common_message_types.h | 112 inline WriteStream write(WriteStream out, const ResponseCode& v) { in write() argument 113 return write(out, bytesCast(v)); in write() 120 inline WriteStream write(WriteStream out, const TestModeCommands& v) { in write() argument 121 return write(out, bytesCast(v)); in write() 130 inline WriteStream write(WriteStream out, const MsgVector<uint8_t>& v) { in write() argument 131 return writeSimpleVec(out, v); in write() 138 inline WriteStream write(WriteStream out, const MsgString& v) { in write() argument 139 return writeSimpleVec(out, v); in write() 147 inline WriteStream write(WriteStream out, const MsgVector<UIOption>& v) { in write() argument 148 return writeSimpleVec(out, v); in write() [all …]
|
/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/core/fs_mgr/libstorage_literals/storage_literals/ |
D | storage_literals.h | 41 constexpr B operator""_B(unsigned long long v) { // NOLINT 42 return B{v}; 45 constexpr KiB operator""_KiB(unsigned long long v) { // NOLINT 46 return KiB{v}; 49 constexpr MiB operator""_MiB(unsigned long long v) { // NOLINT 50 return MiB{v}; 53 constexpr GiB operator""_GiB(unsigned long long v) { // NOLINT 54 return GiB{v};
|
/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 | 255 for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr; in SDP_FindServiceUUIDInRec() 259 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 262 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec() 265 *p_uuid = Uuid::From32Bit(p_sattr->attr_value.v.u32); in SDP_FindServiceUUIDInRec() 279 for (p_extra_sattr = p_sattr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec() 286 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 298 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec() 325 tSDP_DISC_ATTR* p_sattr = p_attr->attr_value.v.p_sub_attr; in SDP_FindServiceUUIDInRec_128bit() 330 *p_uuid = Uuid::From128BitBE(p_sattr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit() 342 *p_uuid = Uuid::From128BitBE(p_attr->attr_value.v.array); in SDP_FindServiceUUIDInRec_128bit() [all …]
|
/system/netd/bpf_progs/ |
D | clatd.c | 86 ClatIngressValue* v = bpf_clat_ingress_map_lookup_elem(&k); in nat64() local 88 if (!v) return TC_ACT_OK; in nat64() 107 .daddr = v->local4.s_addr, // u32 in nat64() 173 if (v->oif) return bpf_redirect(v->oif, BPF_F_INGRESS); in nat64() 256 ClatEgressValue* v = bpf_clat_egress_map_lookup_elem(&k); in sched_cls_egress_clat_rawip() local 258 if (!v) return TC_ACT_OK; in sched_cls_egress_clat_rawip() 261 if (!v->oif) return TC_ACT_OK; in sched_cls_egress_clat_rawip() 264 if (v->oifIsEthernet) return TC_ACT_OK; in sched_cls_egress_clat_rawip() 273 .saddr = v->local6, // struct in6_addr in sched_cls_egress_clat_rawip() 274 .daddr = v->pfx96, // struct in6_addr in sched_cls_egress_clat_rawip() [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(const K& k, V&& v) { mMap[k] = std::forward<V>(v); } in setLocked() argument 70 void setLocked(const K& k, const V& v) { mMap[k] = v; } in setLocked() argument
|
/system/libbase/include/android-base/ |
D | logging.h | 254 UNLIKELY(!(_values.lhs.v OP _values.rhs.v)); \ 260 << ::android::base::LogNullGuard<decltype(_values.lhs.v)>::Guard(_values.lhs.v) \ 262 << ::android::base::LogNullGuard<decltype(_values.rhs.v)>::Guard(_values.rhs.v) \ 338 template <typename U> explicit constexpr Storage(U&& u) : v(std::forward<U>(u)) {} in Storage() 341 T v; member 346 explicit constexpr Storage(const std::unique_ptr<T>& ptr) : v(ptr.get()) {} 347 const T* v; 350 explicit constexpr Storage(const std::shared_ptr<T>& ptr) : v(ptr.get()) {} 351 const T* v; 386 static const T& Guard(const T& v) { return v; } [all …]
|