Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 102) sorted by relevance

12345

/hardware/akm/AK8975_FS/akmdfs/AKFS_APIs_8975/
DAKFS_AOC.c34 r += (x->v[i]-y->v[i]) * (x->v[i]-y->v[i]); in CalcR()
68 dif[i][j] = points[i].v[j] - points[3].v[j]; in From4Points2Sphere()
69 r2[i] += (points[i].v[j]*points[i].v[j] in From4Points2Sphere()
70 - points[3].v[j]*points[3].v[j]); in From4Points2Sphere()
90 center->v[2] = OU / OD; in From4Points2Sphere()
92 OU = F*center->v[2] + G; in From4Points2Sphere()
99 center->v[1] = OU / OD; in From4Points2Sphere()
101 OU = r2[0] - dif[0][1]*center->v[1] - dif[0][2]*center->v[2]; in From4Points2Sphere()
108 center->v[0] = OU / OD; in From4Points2Sphere()
120 const AKFVEC v[], /*!< (i) : input vectors */ in MeanVar() argument
[all …]
DAKFS_Device.h63 uint8 v[3]; member
72 AKFLOAT v[3]; member
98 AKFVEC v[]
/hardware/intel/common/libwsbm/src/
Dwsbm_atomic.h21 wsbmAtomicIncZero(struct _WsbmAtomic *v) in wsbmAtomicIncZero() argument
24 __asm__ __volatile__("lock; incl %0; sete %1":"+m"(v->count), "=qm"(c) in wsbmAtomicIncZero()
31 wsbmAtomicDecNegative(struct _WsbmAtomic *v) in wsbmAtomicDecNegative() argument
35 __asm__ __volatile__("lock; addl %2,%0; sets %1":"+m"(v->count), "=qm"(c) in wsbmAtomicDecNegative()
42 wsbmAtomicDecZero(struct _WsbmAtomic *v) in wsbmAtomicDecZero() argument
46 __asm__ __volatile__("lock; decl %0; sete %1":"+m"(v->count), "=qm"(c) in wsbmAtomicDecZero()
53 wsbmAtomicInc(struct _WsbmAtomic *v) in wsbmAtomicInc() argument
55 __asm__ __volatile__("lock; incl %0":"+m"(v->count)); in wsbmAtomicInc()
59 wsbmAtomicDec(struct _WsbmAtomic *v) in wsbmAtomicDec() argument
61 __asm__ __volatile__("lock; decl %0":"+m"(v->count)); in wsbmAtomicDec()
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dcbor.h111 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 …]
Dmsg_formatting.h191 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 …]
Dconfirmationui_utils.h85 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/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DLinearFakeValueGenerator.cpp37 const auto& v = request.value; in start() local
38 if (v.int32Values.size() < 2) { in start()
42 int32_t propId = v.int32Values[1]; in start()
44 if (!v.int64Values.size()) { in start()
48 auto interval = std::chrono::nanoseconds(v.int64Values[0]); in start()
50 if (v.floatValues.size() < 3) { in start()
52 v.floatValues.size()); in start()
55 float initialValue = v.floatValues[0]; in start()
56 float dispersion = v.floatValues[1]; in start()
57 float increment = v.floatValues[2]; in start()
[all …]
DEmulatedVehicleHal.cpp109 VehiclePropValuePtr v = nullptr; in get() local
113 v = pool.obtainComplex(); in get()
114 *outStatus = fillObd2FreezeFrame(requestedPropValue, v.get()); in get()
117 v = pool.obtainComplex(); in get()
118 *outStatus = fillObd2DtcInfo(v.get()); in get()
123 v = getValuePool()->obtain(*internalPropValue); in get()
126 *outStatus = v != nullptr ? StatusCode::OK : StatusCode::INVALID_ARG; in get()
130 return v; in get()
264 VehiclePropValuePtr v; in onContinuousPropertyTimer() local
272 v = pool.obtain(*internalPropValue); in onContinuousPropertyTimer()
[all …]
DJsonFakeValueGenerator.cpp51 const auto& v = request.value; in start() local
52 if (v.stringValue.empty()) { in start()
56 const char* file = v.stringValue.c_str(); in start()
73 const auto& v = request.value; in stop() local
74 if (!v.stringValue.empty()) { in stop()
75 ALOGI("%s: %s", __func__, v.stringValue.c_str()); in stop()
/hardware/interfaces/memtrack/1.0/vts/functional/
DVtsHalMemtrackV1_0TargetTest.cpp87 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/camera/common/1.0/default/
DCameraParameters.cpp198 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/interfaces/audio/core/all-versions/default/include/core/all-versions/default/
DUtil.h40 inline bool element_in(T e, const std::vector<T>& v) { in element_in() argument
41 return std::find(v.begin(), v.end(), e) != v.end(); in element_in()
/hardware/google/av/media/codecs/base/include/
DSimpleC2Interface.h209 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/interfaces/automotive/vehicle/2.0/default/common/src/
DVehicleObjectPool.cpp141 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/
DSoundTriggerHw.cpp66 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/libhardware/include/hardware/
Daudio_effect.h40 #define EFFECT_API_VERSION_MAJOR(v) ((v)>>16) argument
41 #define EFFECT_API_VERSION_MINOR(v) ((m) & 0xFFFF) argument
/hardware/google/av/codec2/vndk/util/
DC2Debug.cpp77 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/codecs/avc/
DC2SoftAvcDec.cpp211 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter()
212 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter()
213 me.set().width = oldMe.v.width; in SizeSetter()
215 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter()
216 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter()
217 me.set().height = oldMe.v.height; in SizeSetter()
226 me.set().width = c2_min(c2_max(me.v.width, size.v.width), 4080u); in MaxPictureSizeSetter()
227 me.set().height = c2_min(c2_max(me.v.height, size.v.height), 4080u); in MaxPictureSizeSetter()
235 me.set().value = (((maxSize.v.width + 15) / 16) * ((maxSize.v.height + 15) / 16) * 192); in MaxInputSizeSetter()
266 me.set().range = coded.v.range == RANGE_UNSPECIFIED ? def.v.range : coded.v.range; in ColorAspectsSetter()
[all …]
/hardware/qcom/display/msm8909w_3100/sdm/libs/core/drm/
Dhw_scale_drm.h52 explicit HWScaleDRM(Version v) : version_(v) {} in HWScaleDRM() argument
/hardware/qcom/display/msm8909/sdm/libs/core/drm/
Dhw_scale_drm.h52 explicit HWScaleDRM(Version v) : version_(v) {} in HWScaleDRM() argument
/hardware/google/av/media/codecs/vpx/
DC2SoftVpxEnc.h304 if (!me.F(me.v.width).supportsAtAll(me.v.width)) { in SizeSetter()
305 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.width))); in SizeSetter()
307 if (!me.F(me.v.height).supportsAtAll(me.v.height)) { in SizeSetter()
308 res = res.plus(C2SettingResultBuilder::BadValue(me.F(me.v.height))); in SizeSetter()
/hardware/qcom/msm8998/json-c/
Dlinkhash.h70 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);
/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawDevice.h58 size_t operator()(const ReportTypeIdPair& v) const { in operator()
60 return hash(v.first) ^ hash(v.second); in operator()
/hardware/interfaces/tests/pointer/1.0/default/
DPointer.h248 hidl_vec<const IPointer::Sam *> v; v.resize(5); in bar10() local
249 for(size_t i = 0; i < 5; i++) v[i] = s; in bar10()
250 _cb(v); in bar10()
254 hidl_vec<IPointer::Sam> v; v.resize(5); in bar11() local
255 for(size_t i = 0; i < 5; i++) v[i].data = 500; in bar11()
256 _cb(&v); in bar11()
302 hidl_vec<const IPointer::Sam *> v; v.resize(1026); in bar20() local
303 for(size_t i = 0; i < 1026; i++) v[i] = s; in bar20()
304 _cb(v); in bar20()
/hardware/google/av/media/codecs/hevc/
DC2SoftHevcDec.cpp188 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()
226 me.set().range = coded.v.range == RANGE_UNSPECIFIED ? def.v.range : coded.v.range; in ColorAspectsSetter()
227 …me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED ? def.v.primaries : coded.v.primar… in ColorAspectsSetter()
228 … me.set().transfer = coded.v.transfer == TRANSFER_UNSPECIFIED ? def.v.transfer : coded.v.transfer; in ColorAspectsSetter()
229 me.set().matrix = coded.v.matrix == MATRIX_UNSPECIFIED ? def.v.matrix : coded.v.matrix; in ColorAspectsSetter()
[all …]

12345