/test/xts/hats/kernel/syscalls/fileio/writev/ |
H A D | WritevApiTest.cpp | 75 struct iovec vec[VEC_LEN]; in HWTEST_F() local 84 vec[0].iov_base = iovBuf1; in HWTEST_F() 85 vec[0].iov_len = BUF1_LEN; in HWTEST_F() 86 vec[1].iov_base = iovBuf2; in HWTEST_F() 87 vec[1].iov_len = BUF2_LEN; in HWTEST_F() 93 ret = writev(fd, vec, VEC_LEN); in HWTEST_F() 121 struct iovec vec[VEC_LEN]; in HWTEST_F() local 130 vec[0].iov_base = iovBuf1; in HWTEST_F() 131 vec[0].iov_len = BUF1_LEN; in HWTEST_F() 132 vec[ in HWTEST_F() 166 struct iovec vec[VEC_LEN]; HWTEST_F() local 205 struct iovec vec[VEC_LEN]; HWTEST_F() local 239 struct iovec vec[VEC_LEN]; HWTEST_F() local [all...] |
/test/xts/hats/hdf/vibrator/hdi_adapter/hdi_impl/ |
H A D | hdi_vibrator_impl_test.cpp | 94 std::vector<CompositeEffect> vec;
in HWTEST_F() local 95 vec.push_back(effect1);
in HWTEST_F() 96 vec.push_back(effect2);
in HWTEST_F() 97 vec.push_back(effect3);
in HWTEST_F() 100 effect.compositeEffects = vec;
in HWTEST_F() 128 std::vector<CompositeEffect> vec;
in HWTEST_F() local 129 vec.push_back(effect1);
in HWTEST_F() 130 vec.push_back(effect2);
in HWTEST_F() 131 vec.push_back(effect3);
in HWTEST_F() 134 effect.compositeEffects = vec;
in HWTEST_F() 194 std::vector<CompositeEffect> vec; HWTEST_F() local [all...] |
/test/xts/hats/kernel/syscalls/mem/mincore/ |
H A D | MincoreApiTest.cpp | 68 unsigned char *vec = new unsigned char[(length / PAGE_SIZE) + 1](); in HWTEST_F() local 73 ret = mincore(addr, length, vec); in HWTEST_F() 77 delete [] vec; in HWTEST_F() 92 unsigned char *vec = new unsigned char[(length / PAGE_SIZE) + 1](); in HWTEST_F() local 95 ret = mincore(MAP_FAILED, length, vec); in HWTEST_F() 98 delete [] vec; in HWTEST_F() 113 unsigned char *vec = new unsigned char[(length / PAGE_SIZE) + 1](); in HWTEST_F() local 118 ret = mincore(MAP_FAILED, 0, vec); in HWTEST_F() 122 delete [] vec; in HWTEST_F()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/ |
H A D | bits.h | 21 * Sets the bit @p bit in bit-vector @p vec. This function returns @c 1 if bit 25 * @param vec The bit-vector to change. 26 * @param size The size of @p vec in bytes. 27 * @param bit The bit to set in @p vec. 29 * @return @c -1 if @p bit does not fit into @p vec, @c 1 otherwise. 32 bits_setb(uint8_t *vec, size_t size, uint8_t bit) { in bits_setb() argument 36 *(vec + (bit >> 3)) |= (uint8_t)(1 << (bit & 0x07)); in bits_setb() 41 * Clears the bit @p bit from bit-vector @p vec. This function returns @c 1 if 45 * @param vec The bit-vector to change. 46 * @param size The size of @p vec i 52 bits_clrb(uint8_t *vec, size_t size, uint8_t bit) bits_clrb() argument 71 bits_getb(const uint8_t *vec, size_t size, uint8_t bit) bits_getb() argument [all...] |
/test/xts/hats/hdf/motion/motionBenchmarkTest/ |
H A D | hdf_motion_benchmark_test.cpp | 127 vector<int32_t> vec; in BENCHMARK_F() local 128 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in BENCHMARK_F() 129 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in BENCHMARK_F() 130 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in BENCHMARK_F() 131 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); in BENCHMARK_F() 159 vector<int32_t> vec; in BENCHMARK_F() local 160 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in BENCHMARK_F() 161 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in BENCHMARK_F() 162 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in BENCHMARK_F() 163 vec in BENCHMARK_F() [all...] |
/test/xts/hats/hdf/motion/hdi/ |
H A D | hdf_motion_hdi_test.cpp | 140 vector<int32_t> vec; in HWTEST_F() local 141 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_PICKUP); in HWTEST_F() 142 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_FLIP); in HWTEST_F() 143 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_SHAKE); in HWTEST_F() 144 vec.push_back(OHOS::HDI::Motion::V1_1::HDF_MOTION_TYPE_ROTATION); in HWTEST_F() 149 for (size_t i = 0; i < vec.size(); i++) { in HWTEST_F() 150 ret = g_motionInterface->EnableMotion(vec[i]); in HWTEST_F() 152 printf("Motion %d enabled successfully\n", vec[i]); in HWTEST_F() 154 printf("Motion %d enable failed\n", vec[i]); in HWTEST_F() 159 ret = g_motionInterface->DisableMotion(vec[ in HWTEST_F() [all...] |
/test/xts/hats/hdf/codec/hdi_idlomx/ |
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()
|
/test/testfwk/arkxtest/uitest/record/ |
H A D | pointer_tracker.h | 172 void RemoveTypeJudge(std::vector<T>& vec, Args&&... args) in RemoveTypeJudge() argument 177 vec.erase(std::remove_if(vec.begin(), vec.end(), removeFunc), vec.end()); in RemoveTypeJudge()
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/ |
H A D | videobuf2-rdma-sg.c | 20 struct frame_vector *vec;
member 178 struct frame_vector *vec;
in vb2_dma_sg_get_userptr() local 195 vec = vb2_create_framevec(vaddr, size);
in vb2_dma_sg_get_userptr() 196 if (IS_ERR(vec)) {
in vb2_dma_sg_get_userptr() 199 buf->vec = vec;
in vb2_dma_sg_get_userptr() 201 buf->pages = frame_vector_pages(vec);
in vb2_dma_sg_get_userptr() 205 buf->num_pages = frame_vector_count(vec);
in vb2_dma_sg_get_userptr() 225 vb2_destroy_framevec(vec);
in vb2_dma_sg_get_userptr() 251 vb2_destroy_framevec(buf->vec);
in vb2_dma_sg_put_userptr() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/ |
H A D | videobuf2-rdma-sg.c | 20 struct frame_vector *vec; member 175 struct frame_vector *vec; in vb2_dma_sg_get_userptr() local 190 vec = vb2_create_framevec(vaddr, size); in vb2_dma_sg_get_userptr() 191 if (IS_ERR(vec)) in vb2_dma_sg_get_userptr() 193 buf->vec = vec; in vb2_dma_sg_get_userptr() 195 buf->pages = frame_vector_pages(vec); in vb2_dma_sg_get_userptr() 198 buf->num_pages = frame_vector_count(vec); in vb2_dma_sg_get_userptr() 218 vb2_destroy_framevec(vec); in vb2_dma_sg_get_userptr() 242 vb2_destroy_framevec(buf->vec); in vb2_dma_sg_put_userptr() [all...] |
/test/xts/hats/hdf/vibrator/vibratorBenchmarkTest/ |
H A D | hdf_vibrator_benchmark_test.cpp | 236 std::vector<CompositeEffect> vec;
in BENCHMARK_F() local 237 vec.push_back(effect1);
in BENCHMARK_F() 238 vec.push_back(effect2);
in BENCHMARK_F() 239 vec.push_back(effect3);
in BENCHMARK_F() 242 effect.compositeEffects = vec;
in BENCHMARK_F()
|
/test/xts/acts/ai/mindspore/mindsporectest/src/ |
H A D | ohos_common.cpp | 458 std::map<std::string, float> CalculateIntVector(std::vector<float> vec) { in CalculateIntVector() argument 460 for (auto v : vec) { in CalculateIntVector() 465 avg = vec.size() > 0 ? sum / vec.size() : 0; in CalculateIntVector()
|
H A D | ohos_common.h | 56 std::map<std::string,float> CalculateIntVector(std::vector<float> vec);
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | mmanndk.cpp | 103 unsigned char vec[TEST_SIZE];
in Mincore() local 104 memset(vec, SIZE_0x0, sizeof(vec));
in Mincore() 105 retVal = mincore(start, TEST_SIZE, vec);
in Mincore()
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | mm.h | 1809 void frame_vector_destroy(struct frame_vector *vec);
1810 int get_vaddr_frames(unsigned long start, unsigned int nr_pfns, unsigned int gup_flags, struct frame_vector *vec);
1811 void put_vaddr_frames(struct frame_vector *vec);
1812 int frame_vector_to_pages(struct frame_vector *vec);
1813 void frame_vector_to_pfns(struct frame_vector *vec);
1815 static inline unsigned int frame_vector_count(struct frame_vector *vec)
in frame_vector_count() argument 1817 return vec->nr_frames;
in frame_vector_count() 1820 static inline struct page **frame_vector_pages(struct frame_vector *vec)
in frame_vector_pages() argument 1822 if (vec->is_pfns) {
in frame_vector_pages() 1823 int err = frame_vector_to_pages(vec);
in frame_vector_pages() 1831 frame_vector_pfns(struct frame_vector *vec) frame_vector_pfns() argument [all...] |
/test/xts/hats/hdf/vibrator/hdiService_additional/ |
H A D | hdf_vibrator_hdiService_test.cpp | 881 std::vector<CompositeEffect> vec; in HWTEST_F() local 882 vec.push_back(effect1); in HWTEST_F() 883 vec.push_back(effect2); in HWTEST_F() 884 vec.push_back(effect3); in HWTEST_F() 887 effect.compositeEffects = vec; in HWTEST_F()
|
/test/xts/hats/hdf/codec/benchmarktest/ |
H A D | codec_benchmark_omx_test.cpp | 156 void ObjectToVector(T ¶m, std::vector<int8_t> &vec)
in ObjectToVector() argument 159 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param));
in ObjectToVector()
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | sbutils.c | 181 uint32 vec; in sb_setint() local 187 vec = 0; in sb_setint() 189 vec = 1 << siflag; in sb_setint() 190 W_SBREG(sii, &sb->sbintvec, vec); in sb_setint()
|
H A D | bcmwifi_channels.h | 65 uint8 vec[MAXCHANNEL/8]; /* bitvec of channels */ member
|
/test/xts/hats/hdf/codec/hdi_component_additional/ |
H A D | codec_component_test.cpp | 65 void ObjectToVector(T ¶m, std::vector<int8_t> &vec) in ObjectToVector() argument 68 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()
|