Home
last modified time | relevance | path

Searched refs:vec (Results 1 - 21 of 21) sorted by relevance

/drivers/peripheral/codec/test/demo/idl/include/
H A Dcodec_utils.h53 void ObjectToVector(T &param, std::vector<int8_t> &vec) in ObjectToVector() argument
55 vec.clear(); in ObjectToVector()
57 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()
61 int32_t VectorToObject(std::vector<int8_t> &vec, T &param) in VectorToObject() argument
63 auto ret = memcpy_s(&param, sizeof(param), vec.data(), vec.size()); in VectorToObject()
68 vec.clear(); in VectorToObject()
/drivers/hdf_core/adapter/khdf/linux/model/camera/src/
H A Dcamera_buffer_manager_adapter.c17 struct frame_vector *vec = NULL; in CreateFrameVec() local
26 vec = frame_vector_create(num); in CreateFrameVec()
27 if (vec == NULL) { in CreateFrameVec()
31 ret = get_vaddr_frames(start & PAGE_MASK, num, flags, vec); in CreateFrameVec()
41 return vec; in CreateFrameVec()
43 put_vaddr_frames(vec); in CreateFrameVec()
45 frame_vector_destroy(vec); in CreateFrameVec()
49 void DestroyFrameVec(struct frame_vector *vec) in DestroyFrameVec() argument
51 put_vaddr_frames(vec); in DestroyFrameVec()
52 frame_vector_destroy(vec); in DestroyFrameVec()
[all...]
H A Dvirtual_malloc.c16 struct frame_vector *vec; member
69 struct frame_vector *vec = NULL; in VmallocAllocUserPtr() local
83 vec = CreateFrameVec(vaddr, size); in VmallocAllocUserPtr()
84 if (IS_ERR(vec)) { in VmallocAllocUserPtr()
85 ret = PTR_ERR(vec); in VmallocAllocUserPtr()
88 buf->vec = vec; in VmallocAllocUserPtr()
89 numPages = frame_vector_count(vec); in VmallocAllocUserPtr()
90 if (frame_vector_to_pages(vec) < 0) { in VmallocAllocUserPtr()
91 unsigned long *nums = frame_vector_pfns(vec); in VmallocAllocUserPtr()
[all...]
H A Dcontig_dma.c23 struct frame_vector *vec; member
153 struct frame_vector *vec = NULL; in ContigAllocUserPtr() local
179 vec = CreateFrameVec(vaddr, size); in ContigAllocUserPtr()
180 if (IS_ERR(vec)) { in ContigAllocUserPtr()
181 ret = PTR_ERR(vec); in ContigAllocUserPtr()
184 buf->vec = vec; in ContigAllocUserPtr()
185 numPages = frame_vector_count(vec); in ContigAllocUserPtr()
186 ret = frame_vector_to_pages(vec); in ContigAllocUserPtr()
188 unsigned long *nums = frame_vector_pfns(vec); in ContigAllocUserPtr()
[all...]
H A Dsg_dma.c18 struct frame_vector *vec; member
198 struct frame_vector *vec = NULL; in SgAllocUserPtr() local
221 vec = CreateFrameVec(vaddr, size); in SgAllocUserPtr()
222 if (IS_ERR(vec)) { in SgAllocUserPtr()
225 buf->vec = vec; in SgAllocUserPtr()
226 buf->pages = frame_vector_pages(vec); in SgAllocUserPtr()
230 buf->numPages = frame_vector_count(vec); in SgAllocUserPtr()
243 DestroyFrameVec(vec); in SgAllocUserPtr()
268 DestroyFrameVec(buf->vec); in SgFreeUserPtr()
[all...]
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccomponentroleenumhdi_fuzzer/
H A Dcodeccomponentroleenum_fuzzer.cpp53 std::vector<int8_t> vec; in CodecComponentRoleEnum() local
54 ObjectToVector(params.role, vec); in CodecComponentRoleEnum()
55 std::vector<uint8_t> role(vec.begin(), vec.end()); in CodecComponentRoleEnum()
/drivers/peripheral/codec/test/unittest/idl_omx/
H A Dcodec_function_utils.h103 void ObjectToVector(T &param, std::vector<int8_t> &vec) in ObjectToVector() argument
106 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()
110 int32_t VectorToObject(std::vector<int8_t> &vec, T &param) in VectorToObject() argument
112 auto ret = memcpy_s(&param, sizeof(param), vec.data(), vec.size()); in VectorToObject()
117 vec.clear(); in VectorToObject()
/drivers/peripheral/motion/test/unittest/hdi/
H A Dhdf_motion_hdi_test.cpp135 vector<int32_t> vec; in HWTEST_F() local
136 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in HWTEST_F()
137 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in HWTEST_F()
138 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in HWTEST_F()
139 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); in HWTEST_F()
144 for (size_t i = 0; i < vec.size(); i++) { in HWTEST_F()
145 ret = g_motionInterface->EnableMotion(vec[i]); in HWTEST_F()
147 printf("Motion %d enabled successfully\n", vec[i]); in HWTEST_F()
149 printf("Motion %d enable failed\n", vec[i]); in HWTEST_F()
154 ret = g_motionInterface->DisableMotion(vec[ in HWTEST_F()
[all...]
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codeccommonhdi_fuzzer/
H A Dcodeccommon_fuzzer.h40 void ObjectToVector(T &params, std::vector<int8_t> &vec) in ObjectToVector() argument
43 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(params)); in ObjectToVector()
/drivers/peripheral/vibrator/test/unittest/hdi/
H A Dhdi_unittest_vibrator.cpp165 std::vector<CompositeEffect> vec; in HWTEST_F() local
166 vec.push_back(effect1); in HWTEST_F()
167 vec.push_back(effect2); in HWTEST_F()
168 vec.push_back(effect3); in HWTEST_F()
171 effect.compositeEffects = vec; in HWTEST_F()
204 std::vector<CompositeEffect> vec; in HWTEST_F() local
205 vec.push_back(effect1); in HWTEST_F()
206 vec.push_back(effect2); in HWTEST_F()
207 vec.push_back(effect3); in HWTEST_F()
210 effect.compositeEffects = vec; in HWTEST_F()
304 std::vector<CompositeEffect> vec; HWTEST_F() local
[all...]
/drivers/peripheral/vibrator/test/benchmarktest/
H A Dhdf_vibrator_benchmark_test.cpp227 std::vector<CompositeEffect> vec; in BENCHMARK_F() local
228 vec.push_back(effect1); in BENCHMARK_F()
229 vec.push_back(effect2); in BENCHMARK_F()
230 vec.push_back(effect3); in BENCHMARK_F()
233 effect.compositeEffects = vec; in BENCHMARK_F()
/drivers/hdf_core/adapter/khdf/linux/model/camera/include/
H A Dcamera_buffer_manager_adapter.h39 void DestroyFrameVec(struct frame_vector *vec);
/drivers/peripheral/codec/image/config/
H A Dcodec_image_config.h33 std::vector<uint32_t> &vec; member
H A Dcodec_image_config.cpp176 attr.vec.assign(array.get(), array.get() + count); in GetUintTableConfig()
/drivers/peripheral/codec/test/demo/jpeg/src/
H A Djpeg_decoder.cpp53 static std::string GetArrayStr(const std::vector<uint32_t> &vec, std::string &arrayStr) in GetArrayStr() argument
56 for (size_t i = 0; i < vec.size(); i++) { in GetArrayStr()
58 int ret = sprintf_s(value, sizeof(value) - 1, "0x0%X, ", vec[i]); in GetArrayStr()
/drivers/peripheral/codec/hal/idl_service/include/
H A Dcodec_component_config.h32 std::vector<int32_t> &vec; member
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dpin_auth.cpp360 int32_t PinAuth::SetVectorByBuffer(std::vector<uint8_t> &vec, const uint8_t *buf, uint32_t bufSize) in SetVectorByBuffer() argument
363 vec.clear(); in SetVectorByBuffer()
366 vec.resize(bufSize); in SetVectorByBuffer()
367 if (memcpy_s(vec.data(), vec.size(), buf, bufSize) != EOK) { in SetVectorByBuffer()
/drivers/peripheral/pin_auth/hdi_service/main/inc/
H A Dpin_auth.h82 int32_t SetVectorByBuffer(std::vector<uint8_t> &vec, const uint8_t *buf, uint32_t bufSize);
/drivers/peripheral/nfc/hdi_service/
H A Dnfc_impl.cpp47 std::vector<uint8_t> vec(data, data + len / sizeof(uint8_t)); in DataCallback()
48 g_callbackV1_1->OnData(vec); in DataCallback()
/drivers/peripheral/codec/test/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp259 void ObjectToVector(T &param, std::vector<int8_t> &vec) in ObjectToVector() argument
262 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()
/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_config.cpp295 attr.vec.assign(array.get(), array.get() + count); in GetUintTableConfig()

Completed in 10 milliseconds