/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
D | cbor.h | 111 auto getData(const T& v) -> decltype(v.data()) { 112 return v.data(); 116 auto getData(const T& v) -> decltype(v.c_str()) { 117 return v.c_str(); 170 MapElement<Key, Value> pair(const Key& k, const Value& v) { 171 return MapElement<Key, Value>(k, v); 235 WriteState writeNumber(WriteState wState, const T& v) { 237 if (v >= 0) { 238 return writeHeader(wState, Type::NUMBER, v); 240 return writeHeader(wState, Type::NEGATIVE, UINT64_C(-1) - v); [all …]
|
D | msg_formatting.h | 191 uint32_t v = size; 194 if (size != v) { 198 auto& s = bytes_cast(v); 205 WriteStream write(WriteStream out, const uint8_t (&v)[size]) { 206 return write(out, v, size); 295 inline WriteStream write(WriteStream out, const HardwareAuthToken& v) { 301 pos = copyField(v.challenge, pos); 302 pos = copyField(v.userId, pos); 303 pos = copyField(v.authenticatorId, pos); 304 pos = copyField(v.authenticatorType, pos); [all …]
|
D | confirmationui_utils.h | 85 explicit array(const T& v) { fill(v); } in array() argument 96 void fill(const T& v) { in fill() argument 98 data_[i] = v; in fill() 107 auto bytes_cast(const T& v) -> const uint8_t (&)[sizeof(T)] { 108 return *reinterpret_cast<const uint8_t(*)[sizeof(T)]>(&v); 111 auto bytes_cast(T& v) -> uint8_t (&)[sizeof(T)] { 112 return *reinterpret_cast<uint8_t(*)[sizeof(T)]>(&v);
|
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/ |
D | SensorEventsChecker.h | 57 android::hardware::sensors::V1_0::Vec3 v = event.u.vec3; in checkEvent() local 58 float norm = std::sqrt(v.x * v.x + v.y * v.y + v.z * v.z); in checkEvent() 62 ss << "Event @ " << event.timestamp << " (" << v.x << ", " << v.y << ", " << v.z in checkEvent()
|
/hardware/interfaces/memtrack/1.0/vts/functional/ |
D | VtsHalMemtrackV1_0TargetTest.cpp | 87 auto generate_cb(MemtrackStatus *s, hidl_vec<MemtrackRecord> *v) { in generate_cb() argument 90 *v = vec; in generate_cb() 98 hidl_vec<MemtrackRecord> v; in TEST_F() local 99 auto cb = generate_cb(&s, &v); in TEST_F() 113 hidl_vec<MemtrackRecord> v; in TEST_F() local 114 auto cb = generate_cb(&s, &v); in TEST_F() 131 hidl_vec<MemtrackRecord> v; in TEST_F() local 132 auto cb = generate_cb(&s, &v); in TEST_F() 147 for (uint32_t j = 0; j < v.size(); j++) { in TEST_F() 151 EXPECT_TRUE(rightFlagCount(v[j].flags, smapFlags, 1, 1)); in TEST_F() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | LinearFakeValueGenerator.cpp | 33 const auto& v = request.value; in LinearFakeValueGenerator() local 35 .propId = v.int32Values[1], in LinearFakeValueGenerator() 36 .initialValue = v.floatValues[0], in LinearFakeValueGenerator() 37 .currentValue = v.floatValues[0], in LinearFakeValueGenerator() 38 .dispersion = v.floatValues[1], in LinearFakeValueGenerator() 39 .increment = v.floatValues[2], in LinearFakeValueGenerator() 40 .interval = Nanos(v.int64Values[0]), in LinearFakeValueGenerator()
|
D | EmulatedVehicleHal.cpp | 107 VehiclePropValuePtr v = nullptr; in get() local 111 v = pool.obtainComplex(); in get() 112 *outStatus = fillObd2FreezeFrame(requestedPropValue, v.get()); in get() 115 v = pool.obtainComplex(); in get() 116 *outStatus = fillObd2DtcInfo(v.get()); in get() 121 v = getValuePool()->obtain(*internalPropValue); in get() 124 *outStatus = v != nullptr ? StatusCode::OK : StatusCode::INVALID_ARG; in get() 128 return v; in get() 279 VehiclePropValuePtr v; in onContinuousPropertyTimer() local 287 v = pool.obtain(*internalPropValue); in onContinuousPropertyTimer() [all …]
|
/hardware/interfaces/camera/common/1.0/default/ |
D | CameraParameters.cpp | 198 String8 k, v; in flatten() local 200 v = mMap.valueAt(i); in flatten() 204 flattened += v; in flatten() 233 String8 v(a); in unflatten() local 234 mMap.add(k, v); in unflatten() 238 String8 v(a, (size_t)(b-a)); in unflatten() local 239 mMap.add(k, v); in unflatten() 277 String8 v = mMap.valueFor(String8(key)); in get() local 278 if (v.length() == 0) in get() 280 return v.string(); in get() [all …]
|
/hardware/google/av/media/codecs/vpx/ |
D | C2SoftVpxEnc.h | 352 if (me.v.value <= 4096) { in BitrateSetter() 362 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter() 363 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter() 364 me.set().width = oldMe.v.width; in SizeSetter() 366 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter() 367 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter() 368 me.set().height = oldMe.v.height; in SizeSetter() 377 if (!me.F(me.v.profile).supportsAtAll(me.v.profile)) { in ProfileLevelSetter() 380 if (!me.F(me.v.level).supportsAtAll(me.v.level)) { in ProfileLevelSetter() 389 if (me.v.m.layerCount > 4) { in LayeringSetter() [all …]
|
/hardware/interfaces/audio/core/all-versions/default/include/core/default/ |
D | Util.h | 44 inline bool element_in(T e, const std::vector<T>& v) { in element_in() argument 45 return std::find(v.begin(), v.end(), e) != v.end(); in element_in()
|
/hardware/google/av/media/codecs/base/include/ |
D | SimpleC2Interface.h | 209 return me.F(me.v.value).validatePossible(me.v.value); in NonStrictValueWithNoDeps() 216 for (size_t ix = 0; ix < me.v.flexCount(); ++ix) { in NonStrictValuesWithNoDeps() 217 res.plus(me.F(me.v.m.values[ix]).validatePossible(me.v.m.values[ix])); in NonStrictValuesWithNoDeps() 227 if (!me.F(me.v.value).supportsNow(me.v.value)) { in StrictValueWithNoDeps() 228 me.set().value = old.v.value; in StrictValueWithNoDeps() 230 return me.F(me.v.value).validatePossible(me.v.value); in StrictValueWithNoDeps()
|
/hardware/google/av/media/codecs/mpeg2/ |
D | C2SoftMpeg2Dec.cpp | 186 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter() 187 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter() 188 me.set().width = oldMe.v.width; in SizeSetter() 190 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter() 191 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter() 192 me.set().height = oldMe.v.height; in SizeSetter() 201 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 1920u); in MaxPictureSizeSetter() 202 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 1088u); in MaxPictureSizeSetter() 210 me.set().value = (((maxSize.v.width + 15) / 16) * ((maxSize.v.height + 15) / 16) * 384); in MaxInputSizeSetter() 224 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() [all …]
|
/hardware/google/av/media/codecs/avc/ |
D | C2SoftAvcDec.cpp | 198 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter() 199 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter() 200 me.set().width = oldMe.v.width; in SizeSetter() 202 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter() 203 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter() 204 me.set().height = oldMe.v.height; in SizeSetter() 213 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 4080u); in MaxPictureSizeSetter() 214 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 4080u); in MaxPictureSizeSetter() 222 me.set().value = (((maxSize.v.width + 15) / 16) * ((maxSize.v.height + 15) / 16) * 192); in MaxInputSizeSetter() 236 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() [all …]
|
/hardware/google/av/media/codecs/hevc/ |
D | C2SoftHevcDec.cpp | 194 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter() 195 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter() 196 me.set().width = oldMe.v.width; in SizeSetter() 198 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter() 199 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter() 200 me.set().height = oldMe.v.height; in SizeSetter() 209 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 4096u); in MaxPictureSizeSetter() 210 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 4096u); in MaxPictureSizeSetter() 218 me.set().value = (((maxSize.v.width + 63) / 64) * ((maxSize.v.height + 63) / 64) * 3072); in MaxInputSizeSetter() 232 if (me.v.range > C2Color::RANGE_OTHER) { in DefaultColorAspectsSetter() [all …]
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | VehicleObjectPool.cpp | 141 bool VehiclePropValuePool::InternalPool::check(VehiclePropValue::RawValue* v) { in check() argument 142 return check(&v->int32Values, (VehiclePropertyType::INT32 == mPropType || in check() 145 check(&v->floatValues, (VehiclePropertyType::FLOAT == mPropType || in check() 147 check(&v->int64Values, (VehiclePropertyType::INT64 == mPropType || in check() 149 check(&v->bytes, VehiclePropertyType::BYTES == mPropType) && v->stringValue.size() == 0; in check()
|
/hardware/interfaces/soundtrigger/2.1/default/ |
D | SoundTriggerHw.cpp | 66 std::pair<bool, sp<IMemory>> moveVectorToMemory(hidl_vec<uint8_t>* v, hidl_memory* mem) { in moveVectorToMemory() argument 68 if (v->size() == 0) { in moveVectorToMemory() 77 Return<void> r = ashmem->allocate(v->size(), [&](bool s, const hidl_memory& m) { in moveVectorToMemory() 85 memcpy(memory->getPointer(), v->data(), v->size()); in moveVectorToMemory() 87 v->resize(0); in moveVectorToMemory() 93 ALOGE("Failed to allocate %llu bytes from ashmem", (unsigned long long)v->size()); in moveVectorToMemory()
|
/hardware/google/av/codec2/vndk/util/ |
D | C2Debug.cpp | 77 std::string v = StringPrintf("%c%c", in attribParamIndex() local 82 v += StringPrintf("%02d", streamId); in attribParamIndex() 84 v += "--"; in attribParamIndex() 88 return v in attribParamIndex() 160 std::ostream& operator<<(std::ostream &os, const c2_cntr_t<T> &v) { in operator <<() argument 161 return os << "ctr(" << v.peeku() << ")"; in operator <<() 191 for (const T &v : i.flags()) { in operator <<() local 195 _C2FieldValueHelper<T>::put(os, v); in operator <<() 215 for (const T &v : i.values()) { in operator <<() local 219 _C2FieldValueHelper<T>::put(os, v); in operator <<()
|
/hardware/google/av/media/sfplugin/ |
D | CCodecConfig.cpp | 96 mMapper = [](C2Value v) -> C2Value { in withC2Mappers() argument 99 if (v.get(&sdkValue) && C2Mapper::map(sdkValue, &c2Value)) { in withC2Mappers() 104 mReverse = [](C2Value v) -> C2Value { in withC2Mappers() argument 108 if (v.get((C2ValueType*)&c2Value) && C2Mapper::map(c2Value, &sdkValue)) { in withC2Mappers() 327 ConfigMapper::Mapper makeFloat = [](C2Value v) -> C2Value { in initializeStandardParams() argument 331 if (v.get(&i32Value)) { in initializeStandardParams() 333 } else if (v.get(&fpValue)) { in initializeStandardParams() 339 ConfigMapper::Mapper negate = [](C2Value v) -> C2Value { in initializeStandardParams() argument 341 if (v.get(&value)) { in initializeStandardParams() 361 .withMapper([](C2Value v) -> C2Value { in initializeStandardParams() argument [all …]
|
/hardware/libhardware/include/hardware/ |
D | audio_effect.h | 40 #define EFFECT_API_VERSION_MAJOR(v) ((v)>>16) argument 41 #define EFFECT_API_VERSION_MINOR(v) ((m) & 0xFFFF) argument
|
/hardware/google/av/media/codecs/mpeg4_h263/ |
D | C2SoftMpeg4Dec.cpp | 188 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter() 189 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter() 190 me.set().width = oldMe.v.width; in SizeSetter() 192 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter() 193 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter() 194 me.set().height = oldMe.v.height; in SizeSetter() 204 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 1920u); in MaxPictureSizeSetter() 205 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 1088u); in MaxPictureSizeSetter() 207 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 352u); in MaxPictureSizeSetter() 208 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 288u); in MaxPictureSizeSetter() [all …]
|
/hardware/qcom/sdm845/display/sdm/libs/core/drm/ |
D | hw_scale_drm.h | 52 explicit HWScaleDRM(Version v) : version_(v) {} in HWScaleDRM() argument
|
/hardware/qcom/display/msm8909/sdm/libs/core/drm/ |
D | hw_scale_drm.h | 52 explicit HWScaleDRM(Version v) : version_(v) {} in HWScaleDRM() argument
|
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/ |
D | hw_scale_drm.h | 52 explicit HWScaleDRM(Version v) : version_(v) {} in HWScaleDRM() argument
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | HidRawDevice.h | 58 size_t operator()(const ReportTypeIdPair& v) const { in operator() 60 return hash(v.first) ^ hash(v.second); in operator()
|
/hardware/qcom/msm8998/json-c/ |
D | linkhash.h | 70 const void *v; member 231 extern int lh_table_insert(struct lh_table *t, void *k, const void *v); 258 extern json_bool lh_table_lookup_ex(struct lh_table *t, const void *k, void **v);
|