/ohos5.0/foundation/multimodalinput/input/service/rust/src/ |
H A D | lib.rs | 111 data: vec![ in get_instance() 113 speeds: vec![8.0, 32.0, 128.0], in get_instance() 114 slopes: vec![0.16, 0.30, 0.56], in get_instance() 124 slopes: vec![0.64, 1.2, 2.24], in get_instance() 181 data: vec![ in get_instance() 251 data: vec![ in get_instance() 321 data: vec![ in get_instance() 391 data: vec![ in get_instance() 461 data: vec![ in get_instance() 531 data: vec![ in get_instance() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_collection_ffi.cpp | 79 auto actualVec = reinterpret_cast<std::vector<int32_t>*>(vec); in FFICJCommonVectorInt32SetElement() 85 auto actualVec = reinterpret_cast<std::vector<int32_t>*>(vec); in FFICJCommonVectorInt32GetElement() 92 auto actualVec = reinterpret_cast<std::vector<int64_t>*>(vec); in FFICJCommonVectorInt64SetElement() 98 auto actualVec = reinterpret_cast<std::vector<int64_t>*>(vec); in FFICJCommonVectorInt64GetElement() 105 auto actualVec = reinterpret_cast<std::vector<uint8_t>*>(vec); in FFICJCommonVectorUInt8SetElement() 131 auto actualVec = reinterpret_cast<std::vector<float>*>(vec); in FFICJCommonVectorFloat32SetElement() 137 auto actualVec = reinterpret_cast<std::vector<float>*>(vec); in FFICJCommonVectorFloat32GetElement() 144 auto actualVec = reinterpret_cast<std::vector<double>*>(vec); in FFICJCommonVectorFloat64SetElement() 150 auto actualVec = reinterpret_cast<std::vector<double>*>(vec); in FFICJCommonVectorFloat64GetElement() 157 auto actualVec = reinterpret_cast<std::vector<bool>*>(vec); in FFICJCommonVectorBoolSetElement() [all …]
|
H A D | cj_collection_ffi.h | 48 CJ_EXPORT void FFICJCommonVector##typeName##Delete(Vector##typeName##Handle vec); \ 49 CJ_EXPORT int64_t FFICJCommonVector##typeName##GetSize(Vector##typeName##Handle vec); \ 66 CJ_EXPORT const char* FFICJCommonVectorStringGetElement(VectorStringHandle vec, int64_t index); in VECTOR_H() 69 CJ_EXPORT int32_t FFICJCommonVectorInt32GetElement(VectorInt32Handle vec, int64_t index); in VECTOR_H() 72 CJ_EXPORT int64_t FFICJCommonVectorInt64GetElement(VectorInt64Handle vec, int64_t index); in VECTOR_H() 75 CJ_EXPORT uint8_t FFICJCommonVectorUInt8GetElement(VectorUInt8Handle vec, int64_t index); in VECTOR_H() 78 CJ_EXPORT uint32_t FFICJCommonVectorUInt32GetElement(VectorUInt32Handle vec, int64_t index); in VECTOR_H() 81 CJ_EXPORT float FFICJCommonVectorFloat32GetElement(VectorFloat32Handle vec, int64_t index); in VECTOR_H() 84 CJ_EXPORT double FFICJCommonVectorFloat64GetElement(VectorFloat64Handle vec, int64_t index); in VECTOR_H() 87 CJ_EXPORT bool FFICJCommonVectorBoolGetElement(VectorBoolHandle vec, int64_t index); in VECTOR_H() [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/ |
H A D | basic_rust_types.rs | 335 VectorCffi::I32(vec) => get_content!(vec, index, value), in OhCloudExtVectorGet() 336 VectorCffi::U32(vec) => get_content!(vec, index, value), in OhCloudExtVectorGet() 427 VectorCffi::I32(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 428 VectorCffi::U32(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 429 VectorCffi::String(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 430 VectorCffi::Value(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 433 VectorCffi::Table(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 434 VectorCffi::Field(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 437 VectorCffi::AppInfo(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() 438 VectorCffi::VecU32(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | accessibility_node_test_ng.cpp | 177 vec.emplace_back(EVENT); 178 vec.emplace_back(CLICK); 180 vec.emplace_back(FOCUS); 181 vec.emplace_back(BLUR); 182 vec.emplace_back(FAKE); 249 currentNode.SetAttr(vec); 259 currentNode.SetAttr(vec); 268 currentNode.SetAttr(vec); 287 vec.pop_back(); 297 vec.pop_back(); [all …]
|
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/tests/ |
H A D | interactive.rs | 64 vec![String::from("TEST"); 3] in check_parcel() 69 vec![String::from("TEST"); 3] in check_parcel() 106 msg.write(&vec![true; 3]).unwrap(); in interactive_msg_parcel_write() 107 msg.write(&vec![u8::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 108 msg.write(&vec![u16::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 109 msg.write(&vec![u32::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 110 msg.write(&vec![u64::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 112 msg.write(&vec![i8::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 113 msg.write(&vec![i16::MAX; 3]).unwrap(); in interactive_msg_parcel_write() 114 msg.write(&vec![i32::MAX; 3]).unwrap(); in interactive_msg_parcel_write() [all …]
|
H A D | parcel_remote.rs | 159 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() 170 msg.write(&vec![u8::MIN; 3]).unwrap(); in read_and_write_vec() 175 msg.write(&vec![u8::MAX; 3]).unwrap(); in read_and_write_vec() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_toolkit/unittest/ |
H A D | wifi_config_file_test.cpp | 53 vec.push_back(tmp); 54 mWifiCfg.SetValue(vec); 57 vec.clear(); 111 vec.push_back(tmp); 115 vec.clear(); 158 vec.push_back(tmp); 162 vec.clear(); 196 vec.push_back(tmp); 200 vec.push_back(tmp); 204 vec.clear(); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | vector_util.h | 49 static inline constexpr float SqrMagnitude(const Vec2& vec) in BASE_BEGIN_NAMESPACE() 51 return vec.x * vec.x + vec.y * vec.y; in BASE_BEGIN_NAMESPACE() 55 static inline float Magnitude(const Vec2& vec) in BASE_BEGIN_NAMESPACE() 57 return Math::sqrt(vec.x * vec.x + vec.y * vec.y); in BASE_BEGIN_NAMESPACE() 168 static inline constexpr float SqrMagnitude(const Vec3& vec) in BASE_BEGIN_NAMESPACE() 170 return vec.x * vec.x + vec.y * vec.y + vec.z * vec.z; in BASE_BEGIN_NAMESPACE() 174 static inline float Magnitude(const Vec3& vec) in BASE_BEGIN_NAMESPACE() 176 return Math::sqrt(vec.x * vec.x + vec.y * vec.y + vec.z * vec.z); in BASE_BEGIN_NAMESPACE() 222 static inline constexpr float SqrMagnitude(const Vec4& vec) in BASE_BEGIN_NAMESPACE() 224 return vec.x * vec.x + vec.y * vec.y + vec.z * vec.z + vec.w * vec.w; in BASE_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/test/unittest/src/ |
H A D | pasteboard_linked_list_test.cpp | 60 std::vector<int32_t> vec; variable 62 vec.push_back(value); in __anon5926d87b0102() 66 EXPECT_EQ(vec[0], 2); 67 EXPECT_EQ(vec[1], 1); 68 EXPECT_EQ(vec[2], 0); 89 EXPECT_EQ(vec[0], 0); 90 EXPECT_EQ(vec[1], 1); 91 EXPECT_EQ(vec[2], 2); 112 EXPECT_EQ(vec[0], 1); 113 EXPECT_EQ(vec[1], 0); [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_install_device_type_test.cpp | 101 std::vector<std::string> vec; variable 102 SetDeviceTypes(infos, vec); 122 SetDeviceTypes(infos, vec); 143 SetDeviceTypes(infos, vec); 164 SetDeviceTypes(infos, vec); 185 SetDeviceTypes(infos, vec); 206 SetDeviceTypes(infos, vec); 227 SetDeviceTypes(infos, vec); 246 SetDeviceTypes(infos, vec); 263 SetDeviceTypes(infos, vec); [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_sorted_vector_test.cpp | 30 std::vector<int> vec; variable 33 vec.push_back(i); 41 auto it2 = vec.begin(); 51 std::vector<int> vec; variable 54 vec.push_back(i); 74 std::vector<int> vec; variable 77 vec.push_back(i); 102 std::vector<int> vec; variable 105 vec.push_back(i); 511 svec.Merge(vec); [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/test/unittest/common/ |
H A D | memory_dumper_test.cpp | 194 std::vector<std::string> vec; variable 195 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); 196 ASSERT_GT(vec.size(), 0); 207 std::vector<std::string> vec; variable 208 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); 210 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); 212 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); 214 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); 225 std::vector<std::string> vec; variable 226 ASSERT_TRUE(MemoryUtil::GetInstance().RunCMD(cmd, vec)); [all …]
|
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/include/ |
H A D | parcel_wrapper.h | 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_t> &val); 75 bool ReadUInt32Vector(Parcel &parcel, rust::vec<uint32_t> &val); 77 bool ReadFloatVector(Parcel &parcel, rust::vec<float> &val); [all …]
|
/ohos5.0/base/hiviewdfx/hilog/test/unittest/common/ |
H A D | hilog_print_test.cpp | 104 vector<string> vec; variable 106 Split(res, vec, "\n"); 108 log = vec[i].substr(LOGINDEX); 142 vector<string> vec; variable 144 Split(res, vec, "\n"); 146 log = vec[i].substr(LOGINDEX); 168 vector<string> vec; variable 170 Split(res, vec, "\n"); 172 log = vec[i].substr(LOGINDEX); 200 vector<string> vec; variable [all …]
|
/ohos5.0/base/powermgr/powermgr_lite/services/src/ |
H A D | running_lock_mgr.c | 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() 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() 99 RunningLockEntry* e = VECTOR_At(vec, i); in ShowLocks() 116 Vector *vec = &g_runningLocks[entry->lock.type]; in RunningLockMgrAcquireEntry() local 117 BOOL ret = AddRunningLockEntryLocked(vec, entry); in RunningLockMgrAcquireEntry() 131 Vector *vec = &g_runningLocks[entry->lock.type]; in RunningLockMgrReleaseEntry() local [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/ |
H A D | zombie_manager.rs | 25 vec: Mutex<Vec<StdChild>>, field 37 vec: Mutex::new(Vec::new()), in get_instance() 46 self.vec.lock().unwrap().push(child) in push() 60 reap_vec(self.vec.lock().unwrap()) in release_zombie_when_some_receiver() 65 let vec = self.vec.lock().unwrap(); in release_zombile_when_no_receiver() localVariable 66 if !vec.is_empty() { in release_zombile_when_no_receiver() 69 reap_vec(vec); in release_zombile_when_no_receiver() 75 fn reap_vec(mut vec: MutexGuard<'_, Vec<StdChild>>) { in reap_vec() 76 vec.retain_mut(|child| { in reap_vec() 83 drop(vec) in reap_vec()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | linear_map.h | 38 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) < … 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 <… in BinarySearchFindIndex() 54 if (it == vec + length || it->key != key) { in BinarySearchFindIndex() 57 return it - vec; in BinarySearchFindIndex()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/engine/ |
H A D | internal_access.h | 78 BASE_NS::vector<Type> vec; in SyncToEngine() local 82 … size_t size = params.property.count < vec.size() ? params.property.count : vec.size(); in SyncToEngine() 88 cont->resize(params.Offset(), vec.size()); in SyncToEngine() 89 for (size_t i = 0; i != vec.size(); ++i) { in SyncToEngine() 90 *((Type*)cont->get(params.Offset(), i)) = vec[i]; in SyncToEngine() 102 BASE_NS::vector<Type> vec; in SyncFromEngine() local 104 vec.resize(params.property.count); in SyncFromEngine() 105 for (size_t i = 0; i != vec.size(); ++i) { in SyncFromEngine() 110 vec.resize(cont->size(params.Offset())); in SyncFromEngine() 111 for (size_t i = 0; i != vec.size(); ++i) { in SyncFromEngine() [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/test/unittest/ |
H A D | TestAlgoExt.cpp | 31 std::vector<int> vec {1, 2, 3, 4}; variable 32 …ASSERT_EQ(true, CppExt::AnyOf(std::begin(vec), std::end(vec), [](int item) { return item == 3; })); in __anon00c4d0c90102() 36 std::vector<std::string> vec {"one", "two", "three"}; variable 37 ASSERT_EQ(true, CppExt::AnyOf(std::begin(vec), std::end(vec), 43 std::vector<int> vec {1, 2, 3, 4}; variable 44 …ASSERT_EQ(false, CppExt::AnyOf(std::begin(vec), std::end(vec), [](int item) { return item == 8; })… in __anon00c4d0c90302()
|
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/socket/ |
H A D | hilog_input_socket_client.cpp | 42 iovec vec[3]; in WriteLogMessage() local 43 …vec[0].iov_base = header; // 0 : index of hos log hea… in WriteLogMessage() 44 …vec[0].iov_len = sizeof(HilogMsg); // 0 : index of hos log hea… 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 vect… in WriteLogMessage() 52 ret = WriteV(vec, 3); // 3 : written size of vector in WriteLogMessage()
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/sorted_vector_benchmark_test/ |
H A D | sorted_vector_benchmark_test.cpp | 65 std::vector<int> vec; in BENCHMARK_F() local 67 vec.push_back(i); in BENCHMARK_F() 75 auto it2 = vec.begin(); in BENCHMARK_F() 88 std::vector<int> vec; in BENCHMARK_F() local 90 vec.push_back(i); in BENCHMARK_F() 110 vec.push_back(i); in AddElement() 127 std::vector<int> vec; in BENCHMARK_F() local 148 std::vector<int> vec; in BENCHMARK_F() local 150 vec.push_back(i); in BENCHMARK_F() 621 svec.Merge(vec); in BENCHMARK_F() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/engine/ |
H A D | util.h | 25 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; variable 42 … handle, EngineValueOptions { options.namePrefix, &vec, options.pushValuesDirectlyToEngine })) { 44 options.values->insert(options.values->end(), vec.begin(), vec.end()); 46 for (auto&& v : vec) {
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_rendering_context_basic_base.cpp | 130 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() 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[i], "desynchronized", 16, 4) == "true") { // 16 desynchronized length 4 true in SetWebGLContextAttributes() 170 … string lowPower = GetContextAttr(vec[i], "powerPreference", 18, 9); // 18 9 powerPreference length in SetWebGLContextAttributes() [all …]
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | wm_math.cpp | 303 Vector2 Transform(const Vector2& vec, const Matrix3& mat) in Transform() argument 306 retVal.x_ = vec.x_ * mat.mat_[0][0] + vec.y_ * mat.mat_[1][0] + mat.mat_[2][0]; // 2: row2 in Transform() 307 retVal.y_ = vec.x_ * mat.mat_[0][1] + vec.y_ * mat.mat_[1][1] + mat.mat_[2][1]; // 2: row2 in Transform() 312 Vector3 Transform(const Vector3& vec, const Matrix4& mat) in Transform() argument 315 retVal.x_ = vec.x_ * mat.mat_[0][0] + vec.y_ * mat.mat_[1][0] + in Transform() 317 retVal.y_ = vec.x_ * mat.mat_[0][1] + vec.y_ * mat.mat_[1][1] + in Transform() 319 retVal.z_ = vec.x_ * mat.mat_[0][2] + vec.y_ * mat.mat_[1][2] + // 2: row2 in Transform() 328 retVal.x_ = vec.x_ * mat.mat_[0][0] + vec.y_ * mat.mat_[1][0] + in TransformWithPerspDiv() 330 retVal.y_ = vec.x_ * mat.mat_[0][1] + vec.y_ * mat.mat_[1][1] + in TransformWithPerspDiv() 332 retVal.z_ = vec.x_ * mat.mat_[0][2] + vec.y_ * mat.mat_[1][2] + in TransformWithPerspDiv() [all …]
|