Home
last modified time | relevance | path

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

12345678910>>...22

/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_collection_ffi.cpp36 void FFICJCommonVector##cjType##Delete(Vector##cjType##Handle vec) \
38 auto actualVec = reinterpret_cast<std::vector<cType>*>(vec); \
42 int64_t FFICJCommonVector##cjType##GetSize(Vector##cjType##Handle vec) \
44 auto actualVec = reinterpret_cast<std::vector<cType>*>(vec); \
61 void FFICJCommonVectorStringSetElement(VectorStringHandle vec, int64_t index, const char* value) in FFICJCommonVectorStringSetElement() argument
63 auto actualVec = reinterpret_cast<std::vector<std::string>*>(vec); in FFICJCommonVectorStringSetElement()
68 const char* FFICJCommonVectorStringGetElement(VectorStringHandle vec, int64_t index) in FFICJCommonVectorStringGetElement() argument
70 auto actualVec = reinterpret_cast<std::vector<std::string>*>(vec); in FFICJCommonVectorStringGetElement()
75 void FFICJCommonVectorInt32SetElement(VectorInt32Handle vec, int64_t index, int32_t value) in FFICJCommonVectorInt32SetElement() argument
77 auto actualVec = reinterpret_cast<std::vector<int32_t>*>(vec); in FFICJCommonVectorInt32SetElement()
81 FFICJCommonVectorInt32GetElement(VectorInt32Handle vec, int64_t index) FFICJCommonVectorInt32GetElement() argument
88 FFICJCommonVectorInt64SetElement(VectorInt64Handle vec, int64_t index, int64_t value) FFICJCommonVectorInt64SetElement() argument
94 FFICJCommonVectorInt64GetElement(VectorInt64Handle vec, int64_t index) FFICJCommonVectorInt64GetElement() argument
101 FFICJCommonVectorUInt8SetElement(VectorUInt8Handle vec, int64_t index, uint8_t value) FFICJCommonVectorUInt8SetElement() argument
107 FFICJCommonVectorUInt8GetElement(VectorUInt8Handle vec, int64_t index) FFICJCommonVectorUInt8GetElement() argument
114 FFICJCommonVectorUInt32SetElement(VectorUInt32Handle vec, int64_t index, uint32_t value) FFICJCommonVectorUInt32SetElement() argument
120 FFICJCommonVectorUInt32GetElement(VectorUInt32Handle vec, int64_t index) FFICJCommonVectorUInt32GetElement() argument
127 FFICJCommonVectorFloat32SetElement(VectorFloat32Handle vec, int64_t index, float value) FFICJCommonVectorFloat32SetElement() argument
133 FFICJCommonVectorFloat32GetElement(VectorFloat32Handle vec, int64_t index) FFICJCommonVectorFloat32GetElement() argument
140 FFICJCommonVectorFloat64SetElement(VectorFloat64Handle vec, int64_t index, double value) FFICJCommonVectorFloat64SetElement() argument
146 FFICJCommonVectorFloat64GetElement(VectorFloat64Handle vec, int64_t index) FFICJCommonVectorFloat64GetElement() argument
153 FFICJCommonVectorBoolSetElement(VectorBoolHandle vec, int64_t index, bool value) FFICJCommonVectorBoolSetElement() argument
159 FFICJCommonVectorBoolGetElement(VectorBoolHandle vec, int64_t index) FFICJCommonVectorBoolGetElement() argument
166 FFICJCommonVectorNavigationItemSetElement(VectorNavigationItemHandle vec, int64_t index, NavigationItemFFI value) FFICJCommonVectorNavigationItemSetElement() argument
172 FFICJCommonVectorNavigationItemGetElement(VectorNavigationItemHandle vec, int64_t index) FFICJCommonVectorNavigationItemGetElement() argument
[all...]
H A Dcj_collection_ffi.h48 CJ_EXPORT void FFICJCommonVector##typeName##Delete(Vector##typeName##Handle vec); \
49 CJ_EXPORT int64_t FFICJCommonVector##typeName##GetSize(Vector##typeName##Handle vec); \
65 CJ_EXPORT void FFICJCommonVectorStringSetElement(VectorStringHandle vec, int64_t index, const char* value);
66 CJ_EXPORT const char* FFICJCommonVectorStringGetElement(VectorStringHandle vec, int64_t index);
68 CJ_EXPORT void FFICJCommonVectorInt32SetElement(VectorInt32Handle vec, int64_t index, int32_t value);
69 CJ_EXPORT int32_t FFICJCommonVectorInt32GetElement(VectorInt32Handle vec, int64_t index);
71 CJ_EXPORT void FFICJCommonVectorInt64SetElement(VectorInt64Handle vec, int64_t index, int64_t value);
72 CJ_EXPORT int64_t FFICJCommonVectorInt64GetElement(VectorInt64Handle vec, int64_t index);
74 CJ_EXPORT void FFICJCommonVectorUInt8SetElement(VectorUInt8Handle vec, int64_t index, uint8_t value);
75 CJ_EXPORT uint8_t FFICJCommonVectorUInt8GetElement(VectorUInt8Handle vec, int64_
[all...]
/foundation/multimodalinput/input/service/rust/src/
H A Dlib.rs111 data: vec![
113 speeds: vec![8.0, 32.0, 128.0],
114 slopes: vec![0.16, 0.30, 0.56],
115 diff_nums: vec![0.0, -1.12, -9.44],
118 speeds: vec![8.0, 32.0, 128.0],
119 slopes: vec![0.32, 0.60, 1.12],
120 diff_nums: vec![0.0, -2.24, -18.88],
123 speeds: vec![8.0, 32.0, 128.0],
124 slopes: vec![0.64, 1.2, 2.24],
125 diff_nums: vec![0.
[all...]
/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...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/
H A Dbasic_rust_types.rs93 let vec = match typ {
94 OhCloudExtRustType::I32 => VectorCffi::I32(vec![]),
95 OhCloudExtRustType::U32 => VectorCffi::U32(vec![]),
96 OhCloudExtRustType::STRING => VectorCffi::String(vec![]),
97 OhCloudExtRustType::VALUE => VectorCffi::Value(vec![]),
98 OhCloudExtRustType::VALUE_BUCKET => VectorCffi::ValueBucket(vec![]),
99 OhCloudExtRustType::DATABASE => VectorCffi::Database(vec![]),
100 OhCloudExtRustType::TABLE => VectorCffi::Table(vec![]),
101 OhCloudExtRustType::FIELD => VectorCffi::Field(vec![]),
102 OhCloudExtRustType::RELATION_SET => VectorCffi::RelationSet(vec![]),
[all...]
/foundation/arkui/ace_engine/test/unittest/core/accessibility/
H A Daccessibility_node_test_ng.cpp139 std::vector<std::pair<std::string, std::string>> vec; in HWTEST_F() local
140 vec.emplace_back(std::make_pair(VALUE, "ACCESSIBILITY_VALUE")); in HWTEST_F()
141 vec.emplace_back(std::make_pair(DISABLED, "ACCESSIBILITY_DISABLED")); in HWTEST_F()
142 vec.emplace_back(std::make_pair(TYPE, "ACCESSIBILITY_TYPE")); in HWTEST_F()
143 vec.emplace_back(std::make_pair(GROUP, "ACCESSIBILITY_GROUP")); in HWTEST_F()
144 vec.emplace_back(std::make_pair(ACCESS_TEXT, "ACCESSIBILITY_TEXT")); in HWTEST_F()
145 vec.emplace_back(std::make_pair(DESCRIPTION, "ACCESSIBILITY_DESCRIPTION")); in HWTEST_F()
146 vec.emplace_back(std::make_pair(IMPORTANCE, "ACCESSIBILITY_IMPORTANCE")); in HWTEST_F()
147 vec.emplace_back(std::make_pair(ID, "ID")); in HWTEST_F()
148 vec in HWTEST_F()
176 std::vector<std::string> vec; HWTEST_F() local
242 std::vector<std::pair<std::string, std::string>> vec; HWTEST_F() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dvector_util.h49 static inline constexpr float SqrMagnitude(const Vec2& vec) in SqrMagnitude() argument
51 return vec.x * vec.x + vec.y * vec.y; in SqrMagnitude()
55 static inline float Magnitude(const Vec2& vec) in Magnitude() argument
57 return Math::sqrt(vec.x * vec.x + vec.y * vec in Magnitude()
168 SqrMagnitude(const Vec3& vec) SqrMagnitude() argument
174 Magnitude(const Vec3& vec) Magnitude() argument
222 SqrMagnitude(const Vec4& vec) SqrMagnitude() argument
[all...]
/foundation/communication/ipc/interfaces/innerkits/rust/tests/
H A Dinteractive.rs42 assert_eq!(msg.read::<Vec<bool>>().unwrap(), vec![true; 3]); in check_parcel()
44 assert_eq!(msg.read::<Vec<u8>>().unwrap(), vec![u8::MAX; 3]); in check_parcel()
45 assert_eq!(msg.read::<Vec<u16>>().unwrap(), vec![u16::MAX; 3]); in check_parcel()
46 assert_eq!(msg.read::<Vec<u32>>().unwrap(), vec![u32::MAX; 3]); in check_parcel()
47 assert_eq!(msg.read::<Vec<u64>>().unwrap(), vec![u64::MAX; 3]); in check_parcel()
49 assert_eq!(msg.read::<Vec<i8>>().unwrap(), vec![i8::MAX; 3]); in check_parcel()
50 assert_eq!(msg.read::<Vec<i16>>().unwrap(), vec![i16::MAX; 3]); in check_parcel()
51 assert_eq!(msg.read::<Vec<i32>>().unwrap(), vec![i32::MAX; 3]); in check_parcel()
52 assert_eq!(msg.read::<Vec<i64>>().unwrap(), vec![i64::MAX; 3]); in check_parcel()
54 assert_eq!(msg.read::<Vec<i8>>().unwrap(), vec![i in check_parcel()
[all...]
H A Dparcel_remote.rs159 msg.write(&vec![true; 3]).unwrap(); in read_and_write_vec()
160 msg.write(&vec![i8::MIN; 3]).unwrap(); in read_and_write_vec()
161 msg.write(&vec![i16::MIN; 3]).unwrap(); in read_and_write_vec()
162 msg.write(&vec![i32::MIN; 3]).unwrap(); in read_and_write_vec()
163 msg.write(&vec![i64::MIN; 3]).unwrap(); in read_and_write_vec()
165 msg.write(&vec![i8::MAX; 3]).unwrap(); in read_and_write_vec()
166 msg.write(&vec![i16::MAX; 3]).unwrap(); in read_and_write_vec()
167 msg.write(&vec![i32::MAX; 3]).unwrap(); in read_and_write_vec()
168 msg.write(&vec![i64::MAX; 3]).unwrap(); in read_and_write_vec()
170 msg.write(&vec![u in read_and_write_vec()
[all...]
/base/hiviewdfx/hilog/frameworks/libhilog/socket/
H A Dhilog_input_socket_client.cpp42 iovec vec[3]; in WriteLogMessage() local
43 vec[0].iov_base = header; // 0 : index of hos log header in WriteLogMessage()
44 vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log header in WriteLogMessage()
45 vec[1].iov_base = reinterpret_cast<void*>(const_cast<char*>(tag)); // 1 : index of log tag in WriteLogMessage()
46 vec[1].iov_len = tagLen; // 1 : index of log tag in WriteLogMessage()
47 vec[2].iov_base = reinterpret_cast<void*>(const_cast<char*>(fmt)); // 2 : index of log content in WriteLogMessage()
48 vec[2].iov_len = fmtLen; // 2 : index of log content in WriteLogMessage()
49 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
52 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
/foundation/multimedia/media_foundation/test/unittest/
H A DTestAlgoExt.cpp31 std::vector<int> vec {1, 2, 3, 4}; in HWTEST()
32 ASSERT_EQ(true, CppExt::AnyOf(std::begin(vec), std::end(vec), [](int item) { return item == 3; })); in HWTEST()
36 std::vector<std::string> vec {"one", "two", "three"}; in HWTEST()
37 ASSERT_EQ(true, CppExt::AnyOf(std::begin(vec), std::end(vec), in HWTEST()
43 std::vector<int> vec {1, 2, 3, 4}; in HWTEST()
44 ASSERT_EQ(false, CppExt::AnyOf(std::begin(vec), std::end(vec), [](int item) { return item == 8; })); in HWTEST()
/base/web/webview/interfaces/kits/cj/src/
H A Dwebview_utils.cpp49 char** VectorToCArrString(const std::vector<std::string>& vec) in VectorToCArrString() argument
51 if (vec.size() == 0) { in VectorToCArrString()
54 char** result = static_cast<char**>(malloc(sizeof(char*) * vec.size())); in VectorToCArrString()
58 for (size_t i = 0; i < vec.size(); i++) { in VectorToCArrString()
59 result[i] = MallocCString(vec[i]); in VectorToCArrString()
64 uint8_t* VectorToCArrUI8(const std::vector<uint8_t> vec) in VectorToCArrUI8() argument
66 if (vec.size() == 0) { in VectorToCArrUI8()
69 uint8_t* result = static_cast<uint8_t*>(malloc(sizeof(uint8_t) * vec.size())); in VectorToCArrUI8()
73 for (size_t i = 0; i < vec.size(); i++) { in VectorToCArrUI8()
74 result[i] = vec[ in VectorToCArrUI8()
[all...]
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dlinear_map.h38 int64_t BinarySearchFindIndex(const LinearMapNode<T>* vec, size_t length, const char* key) in BinarySearchFindIndex() argument
41 vec, vec + length, key, [](LinearMapNode<T> lhs, const char* key) { return strcmp(lhs.key, key) < 0; }); in BinarySearchFindIndex()
42 if (it == vec + length || strcmp(it->key, key) != 0) { in BinarySearchFindIndex()
45 return it - vec; in BinarySearchFindIndex()
50 int64_t BinarySearchFindIndex(const LinearEnumMapNode<K, V>* vec, size_t length, K key) in BinarySearchFindIndex() argument
53 std::lower_bound(vec, vec + length, key, [](LinearEnumMapNode<K, V> lhs, K key) { return lhs.key < key; }); in BinarySearchFindIndex()
54 if (it == vec + length || it->key != key) { in BinarySearchFindIndex()
57 return it - vec; in BinarySearchFindIndex()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
H A Dbms_bundle_install_device_type_test.cpp101 std::vector<std::string> vec; in HWTEST_F() local
102 SetDeviceTypes(infos, vec); in HWTEST_F()
121 std::vector<std::string> vec = {DEVICE_TYPE_OF_DEFAULT}; in HWTEST_F() local
122 SetDeviceTypes(infos, vec); in HWTEST_F()
142 std::vector<std::string> vec = {DEVICE_TYPE_OF_PHONE}; in HWTEST_F() local
143 SetDeviceTypes(infos, vec); in HWTEST_F()
163 std::vector<std::string> vec = {DEVICE_TYPE_OF_CAR}; in HWTEST_F() local
164 SetDeviceTypes(infos, vec); in HWTEST_F()
184 std::vector<std::string> vec = {DEVICE_TYPE_OF_DEFAULT}; in HWTEST_F() local
185 SetDeviceTypes(infos, vec); in HWTEST_F()
205 std::vector<std::string> vec = {DEVICE_TYPE_OF_PHONE}; HWTEST_F() local
226 std::vector<std::string> vec = {DEVICE_TYPE_OF_CAR}; HWTEST_F() local
245 std::vector<std::string> vec; HWTEST_F() local
262 std::vector<std::string> vec = {DEVICE_TYPE_OF_PHONE}; HWTEST_F() local
279 std::vector<std::string> vec; HWTEST_F() local
296 std::vector<std::string> vec = {DEVICE_TYPE_OF_PHONE}; HWTEST_F() local
313 std::vector<std::string> vec = {DEVICE_TYPE_OF_PHONE}; HWTEST_F() local
330 std::vector<std::string> vec = {DEVICE_TYPE_OF_DEFAULT}; HWTEST_F() local
347 std::vector<std::string> vec = {DEVICE_TYPE_OF_DEFAULT}; HWTEST_F() local
364 std::vector<std::string> vec = {DEVICE_TYPE_OF_CAR}; HWTEST_F() local
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/
H A Dwifi_config_file_test.cpp52 std::vector<WifiConfig> vec; in HWTEST_F() local
53 vec.push_back(tmp); in HWTEST_F()
54 mWifiCfg.SetValue(vec); in HWTEST_F()
57 vec.clear(); in HWTEST_F()
58 mWifiCfg.GetValue(vec); in HWTEST_F()
59 EXPECT_TRUE(vec.size() == 1); in HWTEST_F()
60 WifiConfig ldCfg = vec[0]; in HWTEST_F()
110 std::vector<WifiDeviceConfig> vec; in HWTEST_F() local
111 vec.push_back(tmp); in HWTEST_F()
112 mDeviceCfg.SetValue(vec); in HWTEST_F()
157 std::vector<HotspotConfig> vec; HWTEST_F() local
195 std::vector<StationInfo> vec; HWTEST_F() local
213 AddWifiP2pGroupInfoTestFirst(std::vector<WifiP2pGroupInfo> &vec) AddWifiP2pGroupInfoTestFirst() argument
259 AddWifiP2pGroupInfoTestSecond(std::vector<WifiP2pGroupInfo> &vec) AddWifiP2pGroupInfoTestSecond() argument
307 std::vector<WifiP2pGroupInfo> vec; HWTEST_F() local
[all...]
/base/hiviewdfx/hilog/test/unittest/common/
H A Dhilog_print_test.cpp104 vector<string> vec; in HWTEST_F() local
106 Split(res, vec, "\n"); in HWTEST_F()
107 for (unsigned int i = 0; i < vec.size(); i++) { in HWTEST_F()
108 log = vec[i].substr(LOGINDEX); in HWTEST_F()
142 vector<string> vec; in HWTEST_F() local
144 Split(res, vec, "\n"); in HWTEST_F()
145 for (unsigned int i = 0; i < vec.size(); i++) { in HWTEST_F()
146 log = vec[i].substr(LOGINDEX); in HWTEST_F()
168 vector<string> vec; in HWTEST_F() local
170 Split(res, vec, "\ in HWTEST_F()
200 vector<string> vec; HWTEST_F() local
[all...]
/base/powermgr/powermgr_lite/services/src/
H A Drunning_lock_mgr.c50 static BOOL AddRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in AddRunningLockEntryLocked() argument
52 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in AddRunningLockEntryLocked()
62 pos = VECTOR_Add(vec, (void *)e); in AddRunningLockEntryLocked()
69 if (VECTOR_Num(vec) == 1) { in AddRunningLockEntryLocked()
75 static BOOL RemoveRunningLockEntryLocked(Vector *vec, RunningLockEntry *entry) in RemoveRunningLockEntryLocked() argument
77 int16_t pos = VECTOR_FindByKey(vec, (void *)&entry->identity); in RemoveRunningLockEntryLocked()
82 RunningLockEntry *e = (RunningLockEntry *)VECTOR_Swap(vec, pos, NULL); in RemoveRunningLockEntryLocked()
85 if (VECTOR_Num(vec) == 0) { in RemoveRunningLockEntryLocked()
95 Vector *vec = &g_runningLocks[t]; in ShowLocks() local
96 int32_t size = VECTOR_Size(vec); in ShowLocks()
116 Vector *vec = &g_runningLocks[entry->lock.type]; RunningLockMgrAcquireEntry() local
131 Vector *vec = &g_runningLocks[entry->lock.type]; RunningLockMgrReleaseEntry() local
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/engine/
H A Dinternal_access.h78 BASE_NS::vector<Type> vec; variable
79 res = value.GetData(UidFromType<InternalType>(), &vec, sizeof(InternalType));
82 size_t size = params.property.count < vec.size() ? params.property.count : vec.size();
84 ((Type*)((uintptr_t) & *guard + params.Offset()))[i] = vec[i];
88 cont->resize(params.Offset(), vec.size());
89 for (size_t i = 0; i != vec.size(); ++i) {
90 *((Type*)cont->get(params.Offset(), i)) = vec[i];
102 BASE_NS::vector<Type> vec; variable
104 vec
[all...]
/foundation/communication/ipc/interfaces/innerkits/rust/include/
H A Dparcel_wrapper.h43 bool ReadBuffer(MessageParcel &msgParcel, size_t len, rust::vec<uint8_t> &buffer);
51 bool WriteString16Vec(Parcel &parcel, const rust::vec<rust::string &> &v);
52 rust::vec<rust::string> ReadString16Vec(Parcel &parcel);
68 bool ReadBoolVector(Parcel &parcel, rust::vec<bool> &val);
69 bool ReadInt8Vector(Parcel &parcel, rust::vec<int8_t> &val);
70 bool ReadInt16Vector(Parcel &parcel, rust::vec<int16_t> &val);
71 bool ReadInt32Vector(Parcel &parcel, rust::vec<int32_t> &val);
72 bool ReadInt64Vector(Parcel &parcel, rust::vec<int64_t> &val);
73 bool ReadUInt8Vector(Parcel &parcel, rust::vec<uint8_t> &val);
74 bool ReadUInt16Vector(Parcel &parcel, rust::vec<uint16_
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/engine/
H A Dutil.h25 BASE_NS::vector<IEngineValue::Ptr> vec; local
27 value, EngineValueOptions { options.namePrefix, &vec, options.pushValuesDirectlyToEngine })) {
29 options.values->insert(options.values->end(), vec.begin(), vec.end());
31 for (auto&& v : vec) {
40 BASE_NS::vector<IEngineValue::Ptr> vec; local
42 handle, EngineValueOptions { options.namePrefix, &vec, options.pushValuesDirectlyToEngine })) {
44 options.values->insert(options.values->end(), vec.begin(), vec.end());
46 for (auto&& v : vec) {
[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...]
/foundation/graphic/graphic_3d/lume/metaobject/test/src/
H A Dserialisation_utils.cpp30 MemFile::MemFile(BASE_NS::vector<char> vec) : data_(BASE_NS::move(vec)) {} in MemFile() argument
79 TestSerialiser::TestSerialiser(BASE_NS::vector<char> vec) : data_(BASE_NS::move(vec)) {}
112 BASE_NS::vector<char> vec; in LoadFile() local
113 vec.resize(f->GetLength()); in LoadFile()
114 f->Read(vec.data(), vec.size()); in LoadFile()
115 data_ = MemFile { BASE_NS::move(vec) }; in LoadFile()
129 void WriteToFile(const BASE_NS::vector<char>& vec, BASE_N argument
[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()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_basic_base.cpp130 bool WebGLRenderingContextBasicBase::SetWebGLContextAttributes(const std::vector<std::string>& vec) in SetWebGLContextAttributes() argument
132 if (vec.size() <= 1) { in SetWebGLContextAttributes()
141 for (size_t i = 1; i < vec.size(); i++) { in SetWebGLContextAttributes()
142 if (GetContextAttr(vec[i], "alpha", 7, 4) == "true") { // 7 alpha length 4 true in SetWebGLContextAttributes()
145 if (GetContextAttr(vec[i], "depth", 7, 4) == "true") { // 7 depth length 4 true in SetWebGLContextAttributes()
148 if (GetContextAttr(vec[i], "stencil", 9, 4) == "true") { // 9 stencil length 4 true in SetWebGLContextAttributes()
151 if (GetContextAttr(vec[i], "premultipliedAlpha", 23, 4) == "true") { // 23 premultipliedAlpha length 4 true in SetWebGLContextAttributes()
155 if (GetContextAttr(vec[i], "preserveDrawingBuffer", 18, 4) == "true") { in SetWebGLContextAttributes()
159 if (GetContextAttr(vec[i], "failIfMajorPerformanceCaveat", 30, 4) == "true") { in SetWebGLContextAttributes()
162 if (GetContextAttr(vec[ in SetWebGLContextAttributes()
[all...]
/base/hiviewdfx/hidumper/test/unittest/common/
H A Dmemory_dumper_test.cpp278 std::vector<std::string> vec; in HWTEST_F() local
279 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
280 ASSERT_GT(vec.size(), 0); in HWTEST_F()
291 std::vector<std::string> vec; in HWTEST_F() local
292 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
294 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
296 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
298 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
309 std::vector<std::string> vec; in HWTEST_F() local
310 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); in HWTEST_F()
[all...]

Completed in 10 milliseconds

12345678910>>...22