/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/ |
H A D | bit.rs | 258 Mask::new(0, 0), in ut_mask_new_bit32() 265 Mask::new(0, 16), in ut_mask_new_bit32() 272 Mask::new(0, 32), in ut_mask_new_bit32() 279 Mask::new(0, 64), in ut_mask_new_bit32() 286 Mask::new(1, 0), in ut_mask_new_bit32() 293 Mask::new(1, 16), in ut_mask_new_bit32() 300 Mask::new(1, 31), in ut_mask_new_bit32() 321 Mask::new(4, 0), in ut_mask_new_bit32() 450 Mask::new(0, 0), in ut_mask_new_bit64() 479 Mask::new(1, 0), in ut_mask_new_bit64() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | component_factory.h | 88 component = new CameraComponent(options, children, styleManager); in CreateComponent() 93 component = new CanvasComponent(options, children, styleManager); in CreateComponent() 97 component = new DivComponent(options, children, styleManager); in CreateComponent() 100 component = new StackComponent(options, children, styleManager); in CreateComponent() 103 component = new ImageComponent(options, children, styleManager); in CreateComponent() 120 component = new TabBarComponent(options, children, styleManager); in CreateComponent() 126 component = new TabsComponent(options, children, styleManager); in CreateComponent() 130 component = new TextComponent(options, children, styleManager); in CreateComponent() 142 component = new ListComponent(options, children, styleManager); in CreateComponent() 145 component = new DivComponent(options, children, styleManager); in CreateComponent() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/reader/ |
H A D | io_reader.rs | 47 fn new() -> Self { in new() method 49 cache: Vec::new(), in new() 63 pos: Position::new(1, 1), in new() 259 fn new() -> Self { in new() method 281 fn new() -> Self { in new() method 302 let io = TestIo::new(Vec::new()); in ut_io_reader_new() 509 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_len() 529 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_slice() 562 let io = TestIo::new(Vec::new()); in ut_io_reader_cached_data() 580 let io = TestIo::new(Vec::new()); in ut_io_reader_end_caching() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | queue.rs | 51 inner: Arc::new(InnerBuffer::new(LOCAL_QUEUE_CAP as u16)), in new() 450 globals: Mutex::new(LinkedList::new()), in new() 830 let local_queue = Arc::new(LocalQueue::new()); in ut_inner_buffer_pop_front() 869 let local_queue = Arc::new(LocalQueue::new()); in ut_inner_buffer_pop_front() 932 let multi_scheduler = Arc::new(MultiThreadScheduler::new(1, arc_handle)); in ut_inner_buffer_steal_into_less_than_half() 965 let multi_scheduler = Arc::new(MultiThreadScheduler::new(1, arc_handle)); in ut_inner_buffer_steal_into_multi_thread() 967 let local_queue = Arc::new(LocalQueue::new()); in ut_inner_buffer_steal_into_multi_thread() 970 let other_local_queue = Arc::new(LocalQueue::new()); in ut_inner_buffer_steal_into_multi_thread() 1021 let local_queue_one = Arc::new(LocalQueue::new()); in ut_inner_buffer_steal_into_multi_threaded_complex() 1024 let local_queue_two = Arc::new(LocalQueue::new()); in ut_inner_buffer_steal_into_multi_threaded_complex() [all …]
|
H A D | async_pool.rs | 69 let mut locals = Vec::new(); in new() 77 handles: RwLock::new(Vec::new()), in new() 421 shutdown_handle: Arc::new((Mutex::new(0), Condvar::new())), in new() 429 exe_mng_info: Arc::new(MultiThreadScheduler::new(thread_num, handle)), in new() 440 Box::new(worker::Inner::new(local_queue, Parker::new(driver.clone()))); in create_async_thread_pool() 446 yielded: RefCell::new(Vec::new()), in create_async_thread_pool() 764 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_cancel() 793 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_all() 832 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_rand_one() 868 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_if_one_task_left() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | arkts-styled-string.md | 98 styledValue: new TextShadowStyle({ 239 styledValue: new LetterSpacingStyle(new LengthMetrics(20, LengthUnit.VP)) 273 lineHeightStyle1: LineHeightStyle= new LineHeightStyle(new LengthMetrics(24)); 286 styledValue: new LineHeightStyle(new LengthMetrics(50)) 348 styledValue: new DecorationStyle({ 376 lineHeightStyle1: LineHeightStyle= new LineHeightStyle(new LengthMetrics(24)); 417 styledValue: new LineHeightStyle(new LengthMetrics(60)) 463 this.mutableStr = new MutableStyledString(new ImageAttachment({ 509 const brush = new drawing.Brush(); 516 const font = new drawing.Font(); [all …]
|
/ohos5.0/drivers/peripheral/camera/vdi_base/usb_camera/camera_config/pipeline_core/ |
H A D | config.hcs | 27 status = "new"; 40 status = "new"; 56 status = "new"; 70 status = "new"; 83 status = "new"; 99 status = "new"; 113 status = "new"; 126 status = "new"; 142 status = "new"; 156 status = "new"; [all …]
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | how-to-group-contacts-with-alphabet.md | 34 new Contact('Donna', $r('app.media.contact6')), 35 new Contact('朵朵', $r('app.media.contact1')), 42 new Contact('孔孔', $r('app.media.contact2')), 43 new Contact('康康', $r('app.media.contact3')), 49 new Contact('Lisa', $r('app.media.contact4')), 50 new Contact('玲玲', $r('app.media.contact5')), 56 new Contact('牛牛', $r('app.media.contact6')), 157 private listScroller:Scroller = new Scroller() 218 new Contact('安琪', $r('app.media.contact2')), 226 new Contact('勃勃', $r('app.media.contact5')), [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-styled-string.md | 96 styledValue: new TextShadowStyle({ 234 styledValue: new LetterSpacingStyle(new LengthMetrics(20, LengthUnit.VP)) 268 lineHeightStyle1: LineHeightStyle= new LineHeightStyle(new LengthMetrics(24)); 281 styledValue: new LineHeightStyle(new LengthMetrics(50)) 343 styledValue: new DecorationStyle({ 371 lineHeightStyle1: LineHeightStyle= new LineHeightStyle(new LengthMetrics(24)); 412 styledValue: new LineHeightStyle(new LengthMetrics(60)) 458 this.mutableStr = new MutableStyledString(new ImageAttachment({ 504 const brush = new drawing.Brush(); 506 const font = new drawing.Font() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/ |
H A D | value.rs | 737 let mut vec = Vec::new(); in to_formatted_string() 754 let mut vec = Vec::new(); in to_compact_string() 1647 JsonValue::new_array(Array::new()), in ut_json_value_eq() 1648 JsonValue::new_array(Array::new()) in ut_json_value_eq() 1670 JsonValue::from(Array::new()), in ut_json_value_from() 1671 JsonValue::new_array(Array::new()) in ut_json_value_from() 1674 JsonValue::from(Object::new()), in ut_json_value_from() 1681 JsonValue::from(&Array::new()), in ut_json_value_from() 1682 JsonValue::new_array(Array::new()) in ut_json_value_from() 1685 JsonValue::from(&Object::new()), in ut_json_value_from() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/ |
H A D | thread_communication.md | 25 iconItemSourceList.push(new IconItemSource($r('app.media.nearby'), `item${numStart + 1}`)); 26 iconItemSourceList.push(new IconItemSource($r('app.media.scan'), `item${numStart + 2}`)); 27 iconItemSourceList.push(new IconItemSource($r('app.media.shop'), `item${numStart + 3}`)); 28 iconItemSourceList.push(new IconItemSource($r('app.media.cards'), `item${numStart + 4}`)); 39 let lodePictureTask: taskpool.Task = new taskpool.Task(loadPicture, 30); 53 let taskGroup: taskpool.TaskGroup = new taskpool.TaskGroup(); 54 taskGroup.addTask(new taskpool.Task(loadPicture, 30)); 55 taskGroup.addTask(new taskpool.Task(loadPicture, 20)); 56 taskGroup.addTask(new taskpool.Task(loadPicture, 10)); 104 let lodePictureTask: taskpool.Task = new taskpool.Task(loadPictureSendData, 30); [all …]
|
/ohos5.0/commonlibrary/ets_utils/ |
H A D | README.md | 339 4、new URLSearchParams() 2514 var result = proc.isArrayBufferView(new DataView(new ArrayBuffer(16))); 2683 const set = new Set(); 3816 let list = new List(); 3822 let list = new List(); 3833 let list = new List(); 3844 let list = new List(); 3852 let list = new List(); 3862 let list = new List(); 3872 let list = new List(); [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | sync.rs | 66 let mutex1 = Arc::new(YlongMutex::new(0)); in sdv_concurrency_with_mutex1() 179 let mutex1 = Arc::new(YlongMutex::new(0)); in sdv_concurrency_with_mutex4() 240 let mutex = Arc::new(Mutex::new(0)); in sdv_rwlock_multi_threads() 279 let rwlock = Arc::new(RwLock::new(5)); in sdv_rwlock_with_read1() 310 let rwlock = Arc::new(RwLock::new(5)); in sdv_rwlock_with_read2() 335 let rwlock = Arc::new(RwLock::new(5)); in sdv_rwlock_read_and_write() 376 let rwlock = Arc::new(RwLock::new(5)); in sdv_rwlock_with_write1() 412 let rwlock = Arc::new(RwLock::new(5)); in sdv_rwlock_with_write2() 439 let waiter = Arc::new(Waiter::new()); in sdv_waiter_with_wake_one() 469 let waiter = Arc::new(Waiter::new()); in sdv_waiter_with_wake_all() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/h2/ |
H A D | frame.rs | 232 pub fn new(flags: u8) -> Self { in new() method 325 pub fn new(parts: Parts) -> Self { in new() method 392 Frame::new( in ack() 394 FrameFlags::new(0x1), in ack() 416 pub fn new() -> Self { in new() method 464 Settings::new(self.settings) in build() 470 Self::new() in default() 592 Frame::new(0, FrameFlags::new(0x1), Payload::Ping(ping)) in ack() 651 let ping = Ping::new(data); in ut_ping() 711 let payload_headers = Payload::Headers(Headers::new(Parts::new())); in ut_payload() [all …]
|
H A D | pseudo.rs | 33 pub(crate) fn new() -> Self { in new() method 154 PseudoHeaders::new() in default() 169 let pseudo = PseudoHeaders::new(); in ut_pseudo_headers_new() 187 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_contains_authority() 203 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_authority() 219 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_set_authority() 239 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_take_authority() 256 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_contains_method() 272 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_method() 287 let mut pseudo = PseudoHeaders::new(); in ut_pseudo_headers_set_method() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
H A D | chunk.rs | 408 fn new(buf: Vec<u8>) -> Self { in new() method 432 fn new() -> Self { in new() method 576 fn new(hex: String) -> Self { in new() method 595 fn new() -> Self { in new() method 611 fn new() -> Self { in new() method 687 pub fn new() -> Self { in new() method 689 map: HashMap::new(), in new() 782 fn new() -> Self { in new() method 880 Self::new() in default() 1436 let mut vec = Vec::new(); in data_message() [all …]
|
/ohos5.0/base/startup/appspawn/etc/sandbox/ |
H A D | appdata_sandbox_fixer.py | 53 def _merge_list(origin, new): argument 56 for data1 in new: 82 for data1 in new: 109 for data1 in new: 121 def _merge_scope_app(origin, new): argument 144 item = new[0].get(name) 150 for k, v in new.items(): 158 for k, v in new.items(): 168 if new.get(name) : 172 app = new.get("app-base") [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hcs/camera/hal/mpp/hispark_taurus/pipeline_core/ |
H A D | config.hcs | 27 status = "new"; 40 status = "new"; 56 status = "new"; 72 status = "new"; 86 status = "new"; 99 status = "new"; 115 status = "new"; 131 status = "new"; 147 status = "new"; 161 status = "new"; [all …]
|
/ohos5.0/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | update_abnormal.rs | 22 let mut update = AssetMap::new(); in update_query_without_alias() 25 let query = AssetMap::new(); in update_query_without_alias() 35 let mut update = AssetMap::new(); in update_query_invalid_alias() 38 let mut query = AssetMap::new(); in update_query_invalid_alias() 55 let mut update = AssetMap::new(); in update_query_alias_with_unmatched_type() 58 let mut query = AssetMap::new(); in update_query_alias_with_unmatched_type() 75 let mut update = AssetMap::new(); in update_query_invalid_accessibility() 77 let mut query = AssetMap::new(); in update_query_invalid_accessibility() 92 let mut query = AssetMap::new(); in update_query_invalid_auth_type() 112 let mut query = AssetMap::new(); in update_query_invalid_sync_type() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.31/ |
H A D | changelogs-arkcompiler.md | 31 let uint8: collections.Uint8Array = new collections.Uint8Array(arr); 57 let uint8: collections.Uint8Array = new collections.Uint8Array(arr); 134 this.arr.push(new NonSendableClass()); // Runtime ERROR 137 let sendableclassObject: SendableClass = new SendableClass(); 154 this.arr.push(new NonSendableClass()); 157 let sendableclassObject: SendableClass = new SendableClass(); 265 return new NonSendableClass(); 269 new SendableData(new NonSendableClassT<number>()); 314 new SendableData(new NonSendableClassT<number>()); // ArkTS compile-time error 336 return new NonSendableClass(); [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/tests/ |
H A D | ylong_json_sdv_test.rs | 207 assert_eq!($json[4]["array1"], Array::new().into()); 208 assert_eq!($json[4]["array2"], Array::new().into()); 289 json["array"] = Array::new().into(); in sdv_json_modify() 290 json["object"] = Object::new().into(); in sdv_json_modify() 296 assert_eq!(json["array"], Array::new().into()); in sdv_json_modify() 297 assert_eq!(json["object"], Object::new().into()); in sdv_json_modify() 309 json["array"] = Array::new().into(); in sdv_json_modify() 321 json["object"] = Object::new().into(); in sdv_json_modify() 330 let mut vec = Vec::new(); in sdv_json_output() 347 let mut vec = Vec::new(); in sdv_json_output() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | http_body.rs | 73 pub(crate) fn new( in new() method 277 pub(crate) fn new( in new() method 511 let mut ptrs = Vec::new(); in merge_chunks() 582 let mut chunk = HttpBody::new( in async_chunk_trailer_1() 583 Arc::new(IdleInterceptor), in async_chunk_trailer_1() 606 let mut chunk = HttpBody::new( in async_chunk_trailer_1() 607 Arc::new(IdleInterceptor), in async_chunk_trailer_1() 672 let box_stream = Box::new( in http_body_chunk2() 740 match HttpBody::new( in http_body_empty_err() 769 let mut text = HttpBody::new( in http_body_text() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/ |
H A D | semaphore.rs | 105 match SemaphoreInner::new(permits) { in new() 236 match SemaphoreInner::new(number) { in new() 362 let sem = Semaphore::new(4).unwrap(); in ut_sem_close_test() 377 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_auto_release_sem_acquire_test() 395 let sem = Semaphore::new(2).unwrap(); in ut_release_test() 409 let sem = Arc::new(AutoRelSemaphore::new(2).unwrap()); in ut_auto_release_sem_close_test() 432 let sem = Arc::new(AutoRelSemaphore::new(5).unwrap()); in ut_auto_release_sem_stress_test() 433 let mut tasks: Vec<JoinHandle<()>> = Vec::new(); in ut_auto_release_sem_stress_test() 469 let sem = Arc::new(AutoRelSemaphore::new(1).unwrap()); in ut_async_stress_test() 491 let sem = Semaphore::new(2).unwrap(); in ut_try_acquire_test() [all …]
|
H A D | rwlock.rs | 79 pub fn new(t: T) -> RwLock<T> { in new() method 86 read_wait: AtomicI64::new(0), in new() 87 data: UnsafeCell::new(t), in new() 388 let lock = Arc::new(RwLock::new(100)); in ut_rwlock_read_02() 410 let lock = RwLock::new(100); in ut_rwlock_try_read_01() 425 let lock = Arc::new(RwLock::new(100)); in ut_rwlock_try_read_02() 445 let lock = Arc::new(RwLock::new(100)); in ut_rwlock_write_01() 466 let lock = Arc::new(RwLock::new(100)); in ut_rwlock_write_test_02() 497 let lock = RwLock::new(100); in ut_rwlock_try_write_01() 510 let lock = Arc::new(RwLock::new(100)); in ut_rwlock_try_write_02() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/manager/ |
H A D | BUILD.gn | 17 type = "new" 23 type = "new" 32 type = "new" 42 type = "new" 48 type = "new" 54 type = "new" 60 type = "new" 66 type = "new" 72 type = "new" 78 type = "new" [all …]
|