/system/chre/util/tests/ |
D | heap_test.cc | 27 DynamicVector<int> v; in TEST() local 29 EXPECT_DEATH(chre::push_heap(v, comp), ""); in TEST() 33 DynamicVector<int> v; in TEST() local 35 EXPECT_DEATH(chre::pop_heap(v, comp), ""); in TEST() 39 DynamicVector<int> v; in TEST() local 55 v.push_back(array[i]); in TEST() 56 chre::push_heap(v, comp); in TEST() 63 chre::pop_heap(v, comp); in TEST() 64 EXPECT_EQ(array_sorted[i], v[v.size() - 1]); in TEST() 65 v.erase(v.size() - 1); in TEST() [all …]
|
/system/sepolicy/build/soong/ |
D | sepolicy_vers.go | 29 v := &sepolicyVers{} 30 v.AddProperties(&v.properties) 31 android.InitAndroidArchModule(v, android.DeviceSupported, android.MultilibCommon) 32 return v 54 func (v *sepolicyVers) installable() bool { 55 return proptools.BoolDefault(v.properties.Installable, true) 58 func (v *sepolicyVers) stem() string { 59 return proptools.StringDefault(v.properties.Stem, v.Name()) 62 func (v *sepolicyVers) DepsMutator(ctx android.BottomUpMutatorContext) { 66 func (v *sepolicyVers) GenerateAndroidBuildActions(ctx android.ModuleContext) { [all …]
|
/system/security/keystore2/src/km_compat/ |
D | km_compat_type_conversion.h | 456 if (auto v = KMV1::authorizationValue(KMV1::TAG_PURPOSE, kp)) { in convertKeyParameterToLegacy() local 457 std::optional<V4_0::KeyPurpose> purpose = convert(v->get()); in convertKeyParameterToLegacy() 464 if (auto v = KMV1::authorizationValue(KMV1::TAG_ALGORITHM, kp)) { in convertKeyParameterToLegacy() local 465 return V4_0::makeKeyParameter(V4_0::TAG_ALGORITHM, convert(v->get())); in convertKeyParameterToLegacy() 469 if (auto v = KMV1::authorizationValue(KMV1::TAG_KEY_SIZE, kp)) { in convertKeyParameterToLegacy() local 470 return V4_0::makeKeyParameter(V4_0::TAG_KEY_SIZE, v->get()); in convertKeyParameterToLegacy() 474 if (auto v = KMV1::authorizationValue(KMV1::TAG_BLOCK_MODE, kp)) { in convertKeyParameterToLegacy() local 475 return V4_0::makeKeyParameter(V4_0::TAG_BLOCK_MODE, convert(v->get())); in convertKeyParameterToLegacy() 479 if (auto v = KMV1::authorizationValue(KMV1::TAG_DIGEST, kp)) { in convertKeyParameterToLegacy() local 480 return V4_0::makeKeyParameter(V4_0::TAG_DIGEST, convert(v->get())); in convertKeyParameterToLegacy() [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()
|
/system/tools/aidl/tests/golden_output/aidl-test-extras-java-source/gen/android/aidl/tests/map/ |
D | Foo.java | 36 intEnumArrayMap.forEach((k, v) -> { in writeToParcel() argument 38 _aidl_parcel.writeIntArray(v); in writeToParcel() 45 intArrayMap.forEach((k, v) -> { in writeToParcel() argument 47 _aidl_parcel.writeIntArray(v); in writeToParcel() 54 barMap.forEach((k, v) -> { in writeToParcel() argument 56 _aidl_parcel.writeTypedObject(v, _aidl_flag); in writeToParcel() 63 barArrayMap.forEach((k, v) -> { in writeToParcel() argument 65 _aidl_parcel.writeTypedArray(v, _aidl_flag); in writeToParcel() 72 stringMap.forEach((k, v) -> { in writeToParcel() argument 74 _aidl_parcel.writeString(v); in writeToParcel() [all …]
|
D | IMapTest.java | 144 int[] v; in onTransact() 145 v = data.createIntArray(); in onTransact() 146 _arg0.put(k, v); in onTransact() 158 _result.forEach((k, v) -> { in onTransact() argument 160 reply.writeIntArray(v); in onTransact() 167 _arg1.forEach((k, v) -> { in onTransact() argument 169 reply.writeIntArray(v); in onTransact() 182 int[] v; in onTransact() 183 v = data.createIntArray(); in onTransact() 184 _arg0.put(k, v); in onTransact() [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-extras-java-source/gen/android/aidl/tests/map/ |
D | Foo.java | 36 intEnumArrayMap.forEach((k, v) -> { in writeToParcel() argument 38 _aidl_parcel.writeIntArray(v); in writeToParcel() 45 intArrayMap.forEach((k, v) -> { in writeToParcel() argument 47 _aidl_parcel.writeIntArray(v); in writeToParcel() 54 barMap.forEach((k, v) -> { in writeToParcel() argument 56 _aidl_parcel.writeTypedObject(v, _aidl_flag); in writeToParcel() 63 barArrayMap.forEach((k, v) -> { in writeToParcel() argument 65 _aidl_parcel.writeTypedArray(v, _aidl_flag); in writeToParcel() 72 stringMap.forEach((k, v) -> { in writeToParcel() argument 74 _aidl_parcel.writeString(v); in writeToParcel() [all …]
|
D | IMapTest.java | 144 int[] v; in onTransact() 145 v = data.createIntArray(); in onTransact() 146 _arg0.put(k, v); in onTransact() 158 _result.forEach((k, v) -> { in onTransact() argument 160 reply.writeIntArray(v); in onTransact() 167 _arg1.forEach((k, v) -> { in onTransact() argument 169 reply.writeIntArray(v); in onTransact() 182 int[] v; in onTransact() 183 v = data.createIntArray(); in onTransact() 184 _arg0.put(k, v); in onTransact() [all …]
|
/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/core/libutils/binder/ |
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/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 …]
|
/system/keymint/common/src/tag/ |
D | legacy.rs | 135 KeyParam::ApplicationId(v) in serialize() 136 | KeyParam::ApplicationData(v) in serialize() 137 | KeyParam::AttestationChallenge(v) in serialize() 138 | KeyParam::AttestationApplicationId(v) in serialize() 139 | KeyParam::AttestationIdBrand(v) in serialize() 140 | KeyParam::AttestationIdDevice(v) in serialize() 141 | KeyParam::AttestationIdProduct(v) in serialize() 142 | KeyParam::AttestationIdSerial(v) in serialize() 143 | KeyParam::AttestationIdImei(v) in serialize() 144 | KeyParam::AttestationIdSecondImei(v) in serialize() [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/keymint/hal/src/ |
D | hal.rs | 254 KeyParam::Purpose(v) => (Tag::PURPOSE, KeyParameterValue::KeyPurpose(v.innto())), in fromm() 255 KeyParam::Algorithm(v) => (Tag::ALGORITHM, KeyParameterValue::Algorithm(v.innto())), in fromm() 256 KeyParam::BlockMode(v) => (Tag::BLOCK_MODE, KeyParameterValue::BlockMode(v.innto())), in fromm() 257 KeyParam::Digest(v) => (Tag::DIGEST, KeyParameterValue::Digest(v.innto())), in fromm() 258 KeyParam::Padding(v) => (Tag::PADDING, KeyParameterValue::PaddingMode(v.innto())), in fromm() 259 KeyParam::EcCurve(v) => (Tag::EC_CURVE, KeyParameterValue::EcCurve(v.innto())), in fromm() 260 KeyParam::RsaOaepMgfDigest(v) => { in fromm() 261 (Tag::RSA_OAEP_MGF_DIGEST, KeyParameterValue::Digest(v.innto())) in fromm() 263 KeyParam::Origin(v) => (Tag::ORIGIN, KeyParameterValue::Origin(v.innto())), in fromm() 266 KeyParam::KeySize(v) => (Tag::KEY_SIZE, KeyParameterValue::Integer(v.0 as i32)), in fromm() [all …]
|
/system/librustutils/system_properties/ |
D | parsers_formatters.rs | 80 pub fn format<T: ToString>(v: &T) -> String { in format() 81 v.to_string() in format() 85 pub fn format_bool(v: &bool) -> String { in format_bool() 86 if *v { in format_bool() 93 pub fn format_bool_as_int(v: &bool) -> String { in format_bool_as_int() 94 if *v { in format_bool_as_int() 100 fn format_list_with<T, F>(v: &[T], f: F) -> String in format_list_with() 105 for item in v { in format_list_with() 115 pub fn format_list<T: ToString>(v: &[T]) -> String { in format_list() 116 format_list_with(v, format) in format_list() [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/tools/aidl/tests/golden_output/frozen/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | Union.rs | 26 Self::Ns(v) => { in write_to_parcel() 28 parcel.write(v) in write_to_parcel() 30 Self::N(v) => { in write_to_parcel() 32 parcel.write(v) in write_to_parcel() 34 Self::M(v) => { in write_to_parcel() 36 parcel.write(v) in write_to_parcel() 38 Self::S(v) => { in write_to_parcel() 40 parcel.write(v) in write_to_parcel() 42 Self::Ibinder(v) => { in write_to_parcel() 44 parcel.write(v) in write_to_parcel() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | Union.rs | 26 Self::Ns(v) => { in write_to_parcel() 28 parcel.write(v) in write_to_parcel() 30 Self::N(v) => { in write_to_parcel() 32 parcel.write(v) in write_to_parcel() 34 Self::M(v) => { in write_to_parcel() 36 parcel.write(v) in write_to_parcel() 38 Self::S(v) => { in write_to_parcel() 40 parcel.write(v) in write_to_parcel() 42 Self::Ibinder(v) => { in write_to_parcel() 44 parcel.write(v) in write_to_parcel() [all …]
|
/system/authgraph/core/src/ |
D | lib.rs | 68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() localVariable 69 v.try_reserve(len)?; in vec_try_fill_with_alloc_err() 70 v.resize(len, elem); in vec_try_fill_with_alloc_err() 71 Ok(v) in vec_try_fill_with_alloc_err() 79 let mut v = alloc::vec::Vec::new(); localVariable 80 v.try_reserve($len).map(|_| v) 96 let mut v = vec_try_with_capacity!(s.len())?; in try_to_vec() localVariable 97 v.extend_from_slice(s); in try_to_vec() 98 Ok(v) in try_to_vec()
|
/system/keymint/wire/src/ |
D | keymint.rs | 75 fn try_from(v: i32) -> Result<Self, Self::Error> { in try_from() 76 Self::n(v).ok_or(CborError::OutOfRangeIntegerValue) in try_from() 629 KeyParam::Algorithm(v) => (Tag::Algorithm, v.to_cbor_value()?), in to_cbor_value() 630 KeyParam::BlockMode(v) => (Tag::BlockMode, v.to_cbor_value()?), in to_cbor_value() 631 KeyParam::Padding(v) => (Tag::Padding, v.to_cbor_value()?), in to_cbor_value() 632 KeyParam::Digest(v) => (Tag::Digest, v.to_cbor_value()?), in to_cbor_value() 633 KeyParam::EcCurve(v) => (Tag::EcCurve, v.to_cbor_value()?), in to_cbor_value() 634 KeyParam::Origin(v) => (Tag::Origin, v.to_cbor_value()?), in to_cbor_value() 635 KeyParam::Purpose(v) => (Tag::Purpose, v.to_cbor_value()?), in to_cbor_value() 636 KeyParam::KeySize(v) => (Tag::KeySize, v.to_cbor_value()?), in to_cbor_value() [all …]
|
D | lib.rs | 68 let mut v = alloc::vec::Vec::new(); in vec_try_fill_with_alloc_err() localVariable 69 v.try_reserve(len).map_err(|_e| alloc_err())?; in vec_try_fill_with_alloc_err() 70 v.resize(len, elem); in vec_try_fill_with_alloc_err() 71 Ok(v) in vec_try_fill_with_alloc_err() 83 let mut v = alloc::vec::Vec::new(); in vec_try4_with_alloc_err() localVariable 84 match v.try_reserve(4) { in vec_try4_with_alloc_err() 87 v.push(x1); in vec_try4_with_alloc_err() 88 v.push(x2); in vec_try4_with_alloc_err() 89 v.push(x3); in vec_try4_with_alloc_err() 90 v.push(x4); in vec_try4_with_alloc_err() [all …]
|
/system/core/fs_mgr/libstorage_literals/storage_literals/ |
D | storage_literals.h | 42 constexpr B operator""_B(unsigned long long v) { // NOLINT 43 return B{v}; 46 constexpr KiB operator""_KiB(unsigned long long v) { // NOLINT 47 return KiB{v}; 50 constexpr MiB operator""_MiB(unsigned long long v) { // NOLINT 51 return MiB{v}; 54 constexpr GiB operator""_GiB(unsigned long long v) { // NOLINT 55 return GiB{v}; 58 constexpr TiB operator""_TiB(unsigned long long v) { // NOLINT 59 return TiB{v};
|