Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 116) sorted by relevance

12345

/frameworks/av/media/module/codecs/mp3dec/src/
Dpvmp3_dct_16.cpp153 void pvmp3_dct_16(int32 vec[], int32 flag) in pvmp3_dct_16() argument
177 tmp_o0 = fxp_mul32_Q32((vec[ 0] - vec[15]), Qfmt_31(0.50241928618816F)); in pvmp3_dct_16()
178 tmp0 = vec[ 0] + vec[15]; in pvmp3_dct_16()
180 tmp_o7 = fxp_mul32_Q32((vec[ 7] - vec[ 8]) << 3, Qfmt_31(0.63764357733614F)); in pvmp3_dct_16()
181 tmp7 = vec[ 7] + vec[ 8]; in pvmp3_dct_16()
186 tmp_o1 = fxp_mul32_Q32((vec[ 1] - vec[14]), Qfmt_31(0.52249861493969F)); in pvmp3_dct_16()
187 tmp1 = vec[ 1] + vec[14]; in pvmp3_dct_16()
189 tmp_o6 = fxp_mul32_Q32((vec[ 6] - vec[ 9]) << 1, Qfmt_31(0.86122354911916F)); in pvmp3_dct_16()
190 tmp6 = vec[ 6] + vec[ 9]; in pvmp3_dct_16()
199 tmp_o2 = fxp_mul32_Q32((vec[ 2] - vec[13]), Qfmt_31(0.56694403481636F)); in pvmp3_dct_16()
[all …]
Dpvmp3_dct_9.cpp121 void pvmp3_dct_9(int32 vec[]) in pvmp3_dct_9() argument
126 int32 tmp0 = vec[8] + vec[0]; in pvmp3_dct_9()
127 int32 tmp8 = vec[8] - vec[0]; in pvmp3_dct_9()
128 int32 tmp1 = vec[7] + vec[1]; in pvmp3_dct_9()
129 int32 tmp7 = vec[7] - vec[1]; in pvmp3_dct_9()
130 int32 tmp2 = vec[6] + vec[2]; in pvmp3_dct_9()
131 int32 tmp6 = vec[6] - vec[2]; in pvmp3_dct_9()
132 int32 tmp3 = vec[5] + vec[3]; in pvmp3_dct_9()
133 int32 tmp5 = vec[5] - vec[3]; in pvmp3_dct_9()
135 vec[0] = (tmp0 + tmp2 + tmp3) + (tmp1 + vec[4]); in pvmp3_dct_9()
[all …]
Dpvmp3_mdct_18.cpp133 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window) in pvmp3_mdct_18() argument
147 int32 *pt_vec = vec; in pvmp3_mdct_18()
148 int32 *pt_vec_o = &vec[17]; in pvmp3_mdct_18()
162 pvmp3_dct_9(vec); // Even terms in pvmp3_mdct_18()
163 pvmp3_dct_9(&vec[9]); // Odd terms in pvmp3_mdct_18()
166 tmp3 = vec[16]; // in pvmp3_mdct_18()
167 vec[16] = vec[ 8]; in pvmp3_mdct_18()
168 tmp4 = vec[14]; // in pvmp3_mdct_18()
169 vec[14] = vec[ 7]; in pvmp3_mdct_18()
170 tmp = vec[12]; in pvmp3_mdct_18()
[all …]
Dpvmp3_mdct_6.cpp122 void pvmp3_mdct_6(int32 vec[], int32 *history) in pvmp3_mdct_6() argument
129 int32 *pt_vec = vec; in pvmp3_mdct_6()
130 int32 *pt_vec_o = vec; in pvmp3_mdct_6()
144 pvmp3_dct_6(vec); // Even terms in pvmp3_mdct_6()
147 tmp = -(vec[0] + vec[1]); in pvmp3_mdct_6()
150 tmp = -(vec[1] + vec[2]); in pvmp3_mdct_6()
151 vec[0] = vec[3] + vec[4]; in pvmp3_mdct_6()
152 vec[1] = vec[4] + vec[5]; in pvmp3_mdct_6()
155 tmp = -(vec[2] + vec[3]); in pvmp3_mdct_6()
156 vec[4] = -vec[1]; in pvmp3_mdct_6()
[all …]
Dpvmp3_dct_6.cpp115 void pvmp3_dct_6(int32 vec[]) in pvmp3_dct_6() argument
128 tmp0 = vec[5] + vec[0]; in pvmp3_dct_6()
129 tmp5 = vec[5] - vec[0]; in pvmp3_dct_6()
130 tmp1 = vec[4] + vec[1]; in pvmp3_dct_6()
131 tmp4 = vec[4] - vec[1]; in pvmp3_dct_6()
132 tmp2 = vec[3] + vec[2]; in pvmp3_dct_6()
133 tmp3 = vec[3] - vec[2]; in pvmp3_dct_6()
135 vec[0] = tmp0 + tmp2 ; in pvmp3_dct_6()
136 vec[2] = fxp_mul32_Q30(tmp0 - tmp2, cos_pi_6); in pvmp3_dct_6()
137 vec[4] = (vec[0] >> 1) - tmp1; in pvmp3_dct_6()
[all …]
Dpvmp3_mdct_18.h92 void pvmp3_mdct_18(int32 vec[], int32 *history, const int32 *window);
94 void pvmp3_dct_9(int32 vec[]);
96 void pvmp3_mdct_6(int32 vec[], int32 *overlap);
98 void pvmp3_dct_6(int32 vec[]);
/frameworks/native/services/surfaceflinger/FrontEnd/
DSwapErase.h26 bool swapErase(std::vector<T>& vec, const T& value) { in swapErase() argument
28 auto it = std::find(vec.begin(), vec.end(), value); in swapErase()
29 if (it != vec.end()) { in swapErase()
30 std::iter_swap(it, vec.end() - 1); in swapErase()
31 vec.erase(vec.end() - 1); in swapErase()
40 void swapErase(std::vector<T>& vec, P predicate) { in swapErase() argument
41 auto it = std::find_if(vec.begin(), vec.end(), predicate); in swapErase()
42 if (it != vec.end()) { in swapErase()
43 std::iter_swap(it, vec.end() - 1); in swapErase()
44 vec.erase(vec.end() - 1); in swapErase()
/frameworks/av/media/module/codecs/mp3dec/src/asm/
Dpvmp3_dct_9_gcc.s76 @ vec[4] = fxp_mac32_Q32( vec[4], tmp0<<1, cos_2pi_9)@
82 @ vec[8] = fxp_mac32_Q32( vec[8], tmp0<<1, cos_4pi_9)@
89 @ vec[2] = fxp_mac32_Q32( vec[2], tmp0<<1, cos_pi_9)@
99 @ vec[2] = fxp_mac32_Q32( vec[2], tmp2<<1, cos_5pi_9)@
106 @ vec[8] = fxp_mac32_Q32( vec[8], tmp2<<1, cos_2pi_9)@
120 @ vec[8] = fxp_mac32_Q32( vec[8], tmp3<<1, cos_8pi_9)@
130 @ vec[5] = fxp_mac32_Q32( vec[5], tmp8<<1, cos_13pi_18)@
142 @ vec[1] = fxp_mac32_Q32( vec[1], tmp8<<1, cos_17pi_18)@
146 @ vec[3] = fxp_mul32_Q32((tmp5 + tmp6 - tmp8)<<1, cos_pi_6)@
153 @ vec[5] = fxp_mul32_Q32(tmp5<<1, cos_17pi_18)@
[all …]
/frameworks/native/services/sensorservice/
Dvec.h37 class vec; variable
49 vec<TYPE, SIZE>& doAssign( in doAssign()
50 vec<TYPE, SIZE>& lhs, const VEC<TYPE, S>& rhs) { in doAssign()
245 vec<TYPE, SIZE> PURE operator - (const vec<TYPE, SIZE>& lhs) {
246 vec<TYPE, SIZE> r;
300 class vec : public vbase<TYPE, SIZE>
323 vec() { }
324 vec(const vec& rhs) : base(rhs) { }
325 vec(const base& rhs) : base(rhs) { } // NOLINT(google-explicit-constructor)
330 vec(pTYPE rhs) { // NOLINT(google-explicit-constructor)
[all …]
Dquat.h30 mat<TYPE, 3, 3> quatToMatrix(const vec<TYPE, 4>& q) { in quatToMatrix()
58 vec<TYPE, 4> matrixToQuat(const mat<TYPE, 3, 3>& R) { in matrixToQuat()
67 vec<TYPE, 4> q; in matrixToQuat()
83 vec<TYPE, 4> normalize_quat(const vec<TYPE, 4>& q) { in normalize_quat()
84 vec<TYPE, 4> r(q); in normalize_quat()
Dmat.h61 vec<TYPE, R> PURE doMul( in doMul()
63 const vec<TYPE, D>& rhs) in doMul()
65 vec<TYPE, R> res; in doMul()
78 const vec<TYPE, R>& lhs, in doMul()
124 class mat : public vec< vec<TYPE, R>, C > {
126 typedef vec< vec<TYPE, R>, C > base;
192 friend vec<TYPE, R> PURE operator * (
193 const mat& lhs, const vec<TYPE, C>& rhs) {
199 const vec<TYPE, R>& lhs, const mat<TYPE, C, 1>& rhs) {
233 const vec<TYPE, R>& rhs) {
[all …]
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_parcel_utils.h177 std::vector<T>* vec = static_cast<std::vector<T>*>(vectorData);
178 if (static_cast<size_t>(length) > vec->max_size()) return false;
180 vec->resize(static_cast<size_t>(length));
181 *outBuffer = vec->data();
191 std::optional<std::vector<T>>* vec = static_cast<std::optional<std::vector<T>>*>(vectorData);
194 *vec = std::nullopt;
198 *vec = std::optional<std::vector<T>>(std::vector<T>{});
200 if (static_cast<size_t>(length) > (*vec)->max_size()) return false;
201 (*vec)->resize(static_cast<size_t>(length));
203 *outBuffer = (*vec)->data();
[all …]
Dpersistable_bundle_aidl.h208 void putBooleanVector(const std::string& key, const std::vector<bool>& vec) { in putBooleanVector() argument
211 int32_t num = vec.size(); in putBooleanVector()
216 newVec[i] = vec[i]; in putBooleanVector()
225 void putIntVector(const std::string& key, const std::vector<int32_t>& vec) { in putIntVector() argument
227 int32_t num = vec.size(); in putIntVector()
229 APersistableBundle_putIntVector(mPBundle, key.c_str(), vec.data(), num); in putIntVector()
233 void putLongVector(const std::string& key, const std::vector<int64_t>& vec) { in putLongVector() argument
235 int32_t num = vec.size(); in putLongVector()
237 APersistableBundle_putLongVector(mPBundle, key.c_str(), vec.data(), num); in putLongVector()
241 void putDoubleVector(const std::string& key, const std::vector<double>& vec) { in putDoubleVector() argument
[all …]
/frameworks/av/media/libheadtracking/
DPose.cpp28 std::optional<Pose3f> Pose3f::fromVector(const std::vector<float>& vec) { in fromVector() argument
29 if (vec.size() != 6) { in fromVector()
32 return Pose3f({vec[0], vec[1], vec[2]}, rotationVectorToQuaternion({vec[3], vec[4], vec[5]})); in fromVector()
41 const auto& vec = this->toVector(); in toString() local
43 for (auto f = vec.begin(); f != vec.end(); ++f) { in toString()
44 if (f != vec.begin()) { in toString()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dlog_helpers.h15 const Eigen::Vector<T, 2>& vec) {
16 return out << "vec2(" << vec.x() << ',' << vec.y() << ')';
21 const Eigen::Vector<T, 3>& vec) {
22 return out << "vec3(" << vec.x() << ',' << vec.y() << ',' << vec.z() << ')';
27 const Eigen::Vector<T, 4>& vec) {
28 return out << "vec4(" << vec.x() << ',' << vec.y() << ',' << vec.z() << ','
29 << vec.w() << ')';
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp76 hidl_vec<uint8_t> vec; in testHelper() local
78 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelper()
79 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelper()
85 hidl_vec<uint8_t> vec; in testHelperConst() local
87 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelperConst()
88 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelperConst()
94 hidl_vec<uint8_t> vec; in testHelperMetadataType() local
97 ASSERT_EQ(NO_ERROR, encode(metadataType, input, &vec)); in testHelperMetadataType()
98 ASSERT_EQ(NO_ERROR, decode(metadataType, vec, &output)); in testHelperMetadataType()
104 hidl_vec<uint8_t> vec; in testHelperMetadataTypeConst() local
[all …]
/frameworks/base/libs/androidfw/tests/
DGeneric_bench.cpp29 std::vector<uint32_t> vec; in prepare_map() local
31 map.emplace(i, vec); in prepare_map()
39 std::vector<uint32_t> vec; in BM_hashmap_emplace_same() local
41 benchmark::DoNotOptimize(map.emplace(val, vec)); in BM_hashmap_emplace_same()
64 std::vector<uint32_t> vec; in BM_hashmap_emplace_diff() local
67 map.emplace(i++, vec); in BM_hashmap_emplace_diff()
81 std::vector<uint32_t> vec; in BM_hashmap_find_emplace_diff() local
85 map.emplace(i - 1, vec); in BM_hashmap_find_emplace_diff()
94 std::vector<uint32_t> vec; in BM_treemap_emplace_same() local
96 benchmark::DoNotOptimize(map.emplace(val, vec)); in BM_treemap_emplace_same()
[all …]
/frameworks/native/libs/binder/rust/src/parcel/
Dparcelable.rs180 let mut vec: Option<Vec<Self::UninitType>> = None; in deserialize_array() localVariable
186 &mut vec as *mut _ as *mut c_void, in deserialize_array()
198 let vec: Option<Vec<Self>> = unsafe { mem::transmute(vec) }; in deserialize_array() localVariable
199 Ok(vec) in deserialize_array()
217 let vec = unsafe { &mut *(array as *mut Option<Vec<T::UninitType>>) }; in deserialize_element() localVariable
218 let vec = match vec { in deserialize_element() localVariable
234 vec[index] = T::from_init(element); in deserialize_element()
307 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec_with_buffer() localVariable
308 if let Some(new_vec) = vec { in allocate_vec_with_buffer()
325 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec() localVariable
[all …]
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp180 struct iovec vec; in print() local
181 vec.iov_base = (void*)first; in print()
182 vec.iov_len = lastLine-first; in print()
184 writeLines(vec, 1); in print()
199 struct iovec vec; in print() local
200 vec.iov_base = b->buffer; in print()
201 vec.iov_len = b->bufferPos; in print()
203 writeLines(vec, 1); in print()
240 struct iovec vec; in popBundle() local
241 vec.iov_base = b->buffer; in popBundle()
[all …]
DStatic.cpp39 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument
43 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base); in writeLines()
55 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument
57 ssize_t ret = writev(mFD, &vec, N); in writeLines()
/frameworks/native/libs/gralloc/types/fuzzer/
Dmain.cpp33 ::android::hardware::hidl_vec<uint8_t> vec; in doFuzz()
34 vec.setToExternal(const_cast<uint8_t*>(input.data()), input.size(), false /*shouldOwn*/); in doFuzz()
41 << " size: " << vec.size(); in doFuzz()
43 decodes[decodeIdx](vec); in doFuzz()
76 ::android::hardware::hidl_vec<uint8_t> vec; in doFuzzVendorHelper()
77 vec.setToExternal(const_cast<uint8_t*>(input.data() + sizeUsed), input.size() - sizeUsed, in doFuzzVendorHelper()
85 << static_cast<size_t>(decodeIdx) << " size: " << vec.size(); in doFuzzVendorHelper()
87 decodes[decodeIdx](metadataType, vec); in doFuzzVendorHelper()
/frameworks/base/core/jni/
Dandroid_os_HwParcel.cpp471 const hidl_vec<Type> *vec = \
477 status_t err = parcel->writeBuffer(vec, sizeof(*vec), &parentHandle); \
483 *vec, \
512 hidl_vec<bool> *vec = new (vecPtr) hidl_vec<bool>; in DEFINE_PARCEL_VECTOR_WRITER() local
528 vec->setToExternal(dst, len); in DEFINE_PARCEL_VECTOR_WRITER()
533 status_t err = parcel->writeBuffer(vec, sizeof(*vec), &parentHandle); in DEFINE_PARCEL_VECTOR_WRITER()
539 *vec, in DEFINE_PARCEL_VECTOR_WRITER()
550 static void WriteHidlVector(JNIEnv *env, jobject thiz, const hidl_vec<T> &vec) { in WriteHidlVector() argument
554 status_t err = parcel->writeBuffer(&vec, sizeof(vec), &parentHandle); in WriteHidlVector()
559 vec, in WriteHidlVector()
[all …]
/frameworks/base/tests/MotionPrediction/src/test/motionprediction/
DDrawingView.kt68 var vec = events.getOrPut(event.deviceId) { Vector<MotionEvent>() } in addEvent() variable
69 vec.add(MotionEvent.obtain(event)) in addEvent()
92 for ((_, vec) in events ) { in onDraw() variable
93 for (i in 1 until vec.size) { in onDraw()
94 drawLine(canvas, vec[i - 1], vec[i], realPaint) in onDraw()
96 eventTime = vec.lastElement().eventTime in onDraw()
/frameworks/native/libs/debugstore/rust/src/
Dcore.rs148 let _event_id = debug_store.begin("test_event".to_string(), vec![]); in test_begin_event()
159 let event_id1 = debug_store.begin("event1".to_string(), vec![]); in test_unique_event_ids()
160 let event_id2 = debug_store.begin("event2".to_string(), vec![]); in test_unique_event_ids()
167 let event_id = debug_store.begin("test_event".to_string(), vec![]); in test_end_event()
168 debug_store.end(event_id, vec![]); in test_end_event()
187 .record("data_event".to_string(), vec![("key".to_string(), "value".to_string())]); in test_event_data_handling()
/frameworks/av/media/module/codecs/amrwb/enc/src/
Dc4t64fx.c78 Word16 vec[], /* (i) scaled vector (/8) to correlate with h[] */
88 Word16 vec[], /* (i) scaled vector (/8) to correlate with h[] */
98 Word16 vec[], /* (i) scaled vector (/8) to correlate with h[] */
145 Word16 dn2[L_SUBFR], sign[L_SUBFR], vec[L_SUBFR]; in ACELP_4t64_fx() local
292 vec[i] = -32768; in ACELP_4t64_fx()
296 vec[i] = 32767; in ACELP_4t64_fx()
534 psign = vec; in ACELP_4t64_fx()
565 vec[i] = 0; in ACELP_4t64_fx()
593 vec[i] = (*p0++) + (*p1++); in ACELP_4t64_fx()
636 vec[i] = add1(add1(add1(*p0++, *p1++), *p2++), *p3++); in ACELP_4t64_fx()
[all …]

12345