Home
last modified time | relevance | path

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

/test/xts/hats/kernel/syscalls/fileio/writev/
H A DWritevApiTest.cpp75 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 Dhdi_vibrator_impl_test.cpp94 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 DMincoreApiTest.cpp68 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()
/test/xts/hats/hdf/motion/motionBenchmarkTest/
H A Dhdf_motion_benchmark_test.cpp127 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 Dhdf_motion_hdi_test.cpp140 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 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()
/test/testfwk/arkxtest/uitest/record/
H A Dpointer_tracker.h172 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()
/test/xts/hats/hdf/vibrator/vibratorBenchmarkTest/
H A Dhdf_vibrator_benchmark_test.cpp236 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 Dohos_common.cpp458 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 Dohos_common.h56 std::map<std::string,float> CalculateIntVector(std::vector<float> vec);
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dmmanndk.cpp103 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()
/test/xts/hats/hdf/vibrator/hdiService_additional/
H A Dhdf_vibrator_hdiService_test.cpp881 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 Dcodec_benchmark_omx_test.cpp156 void ObjectToVector(T &param, std::vector<int8_t> &vec) in ObjectToVector() argument
159 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()
/test/xts/hats/hdf/codec/hdi_component_additional/
H A Dcodec_component_test.cpp65 void ObjectToVector(T &param, std::vector<int8_t> &vec) in ObjectToVector() argument
68 vec.insert(vec.end(), paramPointer, paramPointer + sizeof(param)); in ObjectToVector()

Completed in 13 milliseconds