/drivers/peripheral/codec/test/demo/idl/include/ |
H A D | codec_utils.h | 53 void ObjectToVector(T ¶m, 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 ¶m)
in VectorToObject() argument 63 auto ret = memcpy_s(¶m, sizeof(param), vec.data(), vec.size());
in VectorToObject() 68 vec.clear();
in VectorToObject()
|
/drivers/hdf_core/adapter/khdf/linux/model/camera/src/ |
H A D | camera_buffer_manager_adapter.c | 17 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 D | virtual_malloc.c | 16 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 D | contig_dma.c | 23 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 D | sg_dma.c | 18 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 D | codeccomponentroleenum_fuzzer.cpp | 53 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 D | codec_function_utils.h | 103 void ObjectToVector(T ¶m, 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 ¶m)
in VectorToObject() argument 112 auto ret = memcpy_s(¶m, sizeof(param), vec.data(), vec.size());
in VectorToObject() 117 vec.clear();
in VectorToObject()
|
/drivers/peripheral/motion/test/unittest/hdi/ |
H A D | hdf_motion_hdi_test.cpp | 135 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 D | codeccommon_fuzzer.h | 40 void ObjectToVector(T ¶ms, 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 D | hdi_unittest_vibrator.cpp | 165 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 D | hdf_vibrator_benchmark_test.cpp | 227 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 D | camera_buffer_manager_adapter.h | 39 void DestroyFrameVec(struct frame_vector *vec);
|
/drivers/peripheral/codec/image/config/ |
H A D | codec_image_config.h | 33 std::vector<uint32_t> &vec;
member
|
H A D | codec_image_config.cpp | 176 attr.vec.assign(array.get(), array.get() + count);
in GetUintTableConfig()
|
/drivers/peripheral/codec/test/demo/jpeg/src/ |
H A D | jpeg_decoder.cpp | 53 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 D | codec_component_config.h | 32 std::vector<int32_t> &vec; member
|
/drivers/peripheral/pin_auth/hdi_service/main/src/ |
H A D | pin_auth.cpp | 360 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 D | pin_auth.h | 82 int32_t SetVectorByBuffer(std::vector<uint8_t> &vec, const uint8_t *buf, uint32_t bufSize);
|
/drivers/peripheral/nfc/hdi_service/ |
H A D | nfc_impl.cpp | 47 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 D | codec_benchmark_omx_test.cpp | 259 void ObjectToVector(T ¶m, 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 D | codec_component_config.cpp | 295 attr.vec.assign(array.get(), array.get() + count); in GetUintTableConfig()
|