Home
last modified time | relevance | path

Searched refs:new (Results 1 - 25 of 358) sorted by relevance

12345678910>>...15

/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dcomponent_factory.h88 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()
106 component = new ImageAnimatorComponent(options, children, styleManager); in CreateComponent()
111 component = new CircleProgressComponent(options, children, styleManager); in CreateComponent()
114 component = new HorizonProgressComponent(options, children, styleManager); in CreateComponent()
120 component = new TabBarComponent(options, children, styleManager); in CreateComponent()
123 component = new TabContentComponen in CreateComponent()
[all...]
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/examples/audio_rust_sa/src/
H A Dproxy.rs24 pub fn new(remote: RemoteObj) -> Self { in new() functions
29 let mut data = MsgParcel::new(); in on_start_reason()
38 let mut data = MsgParcel::new(); in on_idle_reason()
47 let mut data = MsgParcel::new(); in on_active_reason()
56 let mut data = MsgParcel::new(); in on_add()
65 let mut data = MsgParcel::new(); in on_remove()
74 let mut data = MsgParcel::new(); in send_stop_reason()
81 let mut data = MsgParcel::new(); in get_stop_reason()
H A Dlib.rs60 fn new() -> Self { in new() functions
85 assert!(handler.publish(AudioService::new(handler.clone(), self.watch.clone()))); in on_start_with_reason()
109 static ONCE: Once = Once::new(); in on_idle()
123 handler: RwLock::new(None), in init()
124 watch: Arc::new(Mutex::new(Watch::new())), in init()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_base_xml_config.h97 mapValue = new std::map<std::string, ConfigItem>(*value.mapValue); in operator =()
103 new(&stringValue)std::string(value.stringValue); in operator =()
106 intsValue = new std::vector<int>(*value.intsValue); in operator =()
109 floatsValue = new std::vector<float>(*value.floatsValue); in operator =()
112 stringsValue = new std::vector<std::string>(*value.stringsValue); in operator =()
119 property = new std::map<std::string, ConfigItem>(*value.property); in operator =()
139 new(&stringValue)std::string(std::move(value.stringValue));
167 property = new std::map<std::string, ConfigItem>(prop); in SetProperty()
174 mapValue = new std::map<std::string, ConfigItem>(value); in SetValue()
188 new( in SetValue()
[all...]
/foundation/window/window_manager/utils/include/
H A Dxml_config_base.h97 mapValue_ = new std::map<std::string, ConfigItem>(*value.mapValue_); in operator =()
103 new(&stringValue_)std::string(value.stringValue_); in operator =()
106 intsValue_ = new std::vector<int>(*value.intsValue_); in operator =()
109 floatsValue_ = new std::vector<float>(*value.floatsValue_); in operator =()
112 stringsValue_ = new std::vector<std::string>(*value.stringsValue_); in operator =()
119 property_ = new std::map<std::string, ConfigItem>(*value.property_); in operator =()
139 new(&stringValue_)std::string(std::move(value.stringValue_));
167 property_ = new std::map<std::string, ConfigItem>(prop); in SetProperty()
174 mapValue_ = new std::map<std::string, ConfigItem>(value); in SetValue()
188 new( in SetValue()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/rust/src/
H A Dadapter.rs80 return Err(Error::new(ErrorKind::InvalidInput, "Invalid input"));
86 return Err(Error::new(ErrorKind::InvalidInput, "Invalid input"));
90 let reader = BufReader::new(file);
91 Ok(Box::into_raw(Box::new(reader)) as *mut c_void)
104 return Err(Error::new(ErrorKind::InvalidInput, "Invalid input"));
107 let mut line = String::new();
116 Ok(Box::into_raw(Box::new(item)))
137 return Err(Error::new(ErrorKind::InvalidInput, "Invalid input"));
143 return Err(Error::new(ErrorKind::InvalidInput, "Invalid input"));
162 let par_path = CString::new(st
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/
H A Daudio_state_manager.h77 sptr<AudioDeviceDescriptor> preferredMediaRenderDevice_ = new(std::nothrow) AudioDeviceDescriptor();
78 sptr<AudioDeviceDescriptor> preferredCallRenderDevice_ = new(std::nothrow) AudioDeviceDescriptor();
79 sptr<AudioDeviceDescriptor> preferredCallCaptureDevice_ = new(std::nothrow) AudioDeviceDescriptor();
80 sptr<AudioDeviceDescriptor> preferredRingRenderDevice_ = new(std::nothrow) AudioDeviceDescriptor();
81 sptr<AudioDeviceDescriptor> preferredRecordCaptureDevice_ = new(std::nothrow) AudioDeviceDescriptor();
82 sptr<AudioDeviceDescriptor> preferredToneRenderDevice_ = new(std::nothrow) AudioDeviceDescriptor();
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_no_destructor.h19 #include <new>
31 new (buff_) T(std::forward<Args>(args)...); in BluetoothNoDestructor()
34 explicit BluetoothNoDestructor(const T& x) { new (buff_) T(x); } in BluetoothNoDestructor()
35 explicit BluetoothNoDestructor(T&& x) { new (buff_) T(std::move(x)); } in BluetoothNoDestructor()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/uploader/
H A Dmod.rs107 UploaderBuilder::new().reader(reader).console().build() in console()
122 UploaderBuilder::new() in builder()
139 this.info = Some(UploadInfo::new()); in poll_read()
144 match Pin::new(&mut this.operator).poll_progress( in poll_read()
158 match Pin::new(&mut this.reader).poll_read(cx, buf) { in poll_read()
176 reqwest::Body::wrap_stream(ReaderStream::new(value)) in from()
196 fn new() -> Self { in new() functions
H A Dmultipart.rs30 /// let multipart = MultiPart::new()
31 /// .part(Part::new().name("name").body("xiaoming"))
32 /// .part(Part::new().name("password").body("123456789"));
48 /// let multipart = MultiPart::new();
50 pub fn new() -> Self { in new() functions
52 parts: Vec::new(), in new()
65 /// let multipart = MultiPart::new()
66 /// .part(Part::new().name("name").body("xiaoming"));
80 /// let multipart = MultiPart::new();
95 /// let multipart = MultiPart::new()
264 pub fn new() -> Self { new() functions
[all...]
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/examples/listen_rust_sa/src/
H A Dlib.rs50 handler.publish(ListenService::new(self.watch.clone())); in on_start()
62 AudioProxy::new(SystemAbilityManager::check_system_ability(TEST_AUDIO_ID).unwrap()); in on_stop_with_reason()
71 let watch = Arc::new(Mutex::new(Watch { stop_reason: None })); in init()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_linear_split.h34 instance_.reset(new NG::LinearSplitModelNG()); in GetInstance()
37 instance_.reset(new NG::LinearSplitModelNG()); in GetInstance()
39 instance_.reset(new Framework::LinearSplitModelImpl()); in GetInstance()
/foundation/ability/idl_tool/test/rust/moduletest/service/src/
H A DIIdlTestService.rs189 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_001()
195 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_002()
201 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_101()
209 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_102()
217 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_103()
225 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_104()
233 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_105()
241 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_106()
249 let mut data = MsgParcel::new().expect("MsgParcel should success"); in idl_ipc_test_basic_107()
257 let mut data = MsgParcel::new() in idl_ipc_test_basic_108()
[all...]
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/tests/
H A Dentry.rs37 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token()
38 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token()
39 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
/foundation/systemabilitymgr/samgr/interfaces/innerkits/rust/tests/
H A Dentry.rs39 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token()
40 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token()
41 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/rust/service/src/
H A Daccess_token.rs39 CString::new("ohos.permission.DISTRIBUTED_DATASYNC").expect("permission is invalid"); in init_access_token()
40 let name = CString::new("listen_test").expect("process name is invalid"); in init_access_token()
41 let apl = CString::new("system_core").expect("apl string is invalid"); in init_access_token()
/foundation/communication/ipc/interfaces/innerkits/rust/tests/
H A Dentry.rs40 let perms_str = CString::new("ohos.permission.DISTRIBUTED_DATASYNC").unwrap(); in init_access_token()
41 let name = CString::new("listen_test").unwrap(); in init_access_token()
42 let apl = CString::new("system_core").unwrap(); in init_access_token()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/
H A Dmod.rs62 /// This is the same as `ClientBuilder::new()`.
72 ClientBuilder::new() in builder()
77 /// A `Request` can be built manually with `Request::new()` or obtained
124 /// let builder = ClientBuilder::new();
138 /// let builder = ClientBuilder::new();
140 pub fn new() -> Self { in new() functions
141 Self(reqwest::ClientBuilder::new()) in new()
151 /// let builder = ClientBuilder::new().http1_only();
164 /// let builder = ClientBuilder::new().http2_prior_knowledge();
183 /// let builder = ClientBuilder::new()
[all...]
/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/base/
H A Dmemory_heap.h28 * @brief Override new operator
31 void *operator new(size_t size);
34 * @brief Override new[] operator
37 void *operator new[](size_t size);
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/
H A Dbasic_rust_types.rs112 OhCloudExtVector::new(vec, SafetyCheckId::Vector).into_ptr()
318 $typ::new($vec[index].clone(), SafetyCheckId::$id).into_ptr() as *const c_void;
366 *value = OhCloudExtVector::new(VectorCffi::U32(src.clone()), SafetyCheckId::Vector)
376 OhCloudExtVector::new(VectorCffi::String(src.clone()), SafetyCheckId::Vector)
386 OhCloudExtVector::new(VectorCffi::Database(src.clone()), SafetyCheckId::Vector)
395 let mut inner = HashMap::new();
399 *value = OhCloudExtHashMap::new(HashMapCffi::Value(inner), SafetyCheckId::HashMap)
481 OhCloudExtHashMap::new(map, SafetyCheckId::HashMap).into_ptr()
682 *key = OhCloudExtVector::new(VectorCffi::String(key_vec), SafetyCheckId::Vector)
684 *value = OhCloudExtVector::new(VectorCff
[all...]
/foundation/bundlemanager/bundle_framework_lite/utils/bundle_lite/
H A Dutils_list.h19 #include <new>
37 head_ = new (std::nothrow) Node<T>(); in List()
60 auto node = new (std::nothrow) Node<T>(value); in PushFront()
96 auto node = new (std::nothrow) Node<T>(value); in PushBack()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dvector.h41 array_ = new T[capacity]; in Vector()
47 array_ = new T[capacity_]; in Vector()
75 T* array = new T[capacity_]; in PushBack()
167 array_ = new T[capacity_]; in operator =()
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/downloader/
H A Dmod.rs147 DownloaderBuilder::new() in builder()
169 // Construct new download info, or reuse previous info.
171 self.info = Some(DownloadInfo::new(self.body.content_length()));
211 return Err(HttpClientError::new(ErrorKind::Timeout)); in check_timeout()
232 fn new(total_bytes: Option<u64>) -> Self { in new() functions
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/include/
H A Dmessage.h19 #include <new>
62 T *copiedObject = new (std::nothrow) T(inObj); in SetCopiedObject()
66 ObjectHolder *tmpHolderPtr = new (std::nothrow) ObjectHolderTyped<T>(copiedObject); in SetCopiedObject()
88 ObjectHolder *tmpHolderPtr = new (std::nothrow) ObjectHolderTyped<T>(inObj); in SetExternalObject()
/foundation/filemanagement/user_file_service/utils/
H A Dfile_util.h97 new (nothrow) uv_fs_t, fs_req_cleanup }; in GetStat()
123 unique_ptr<uv_fs_t, decltype(fs_req_cleanup)*> access_req = { new uv_fs_t, fs_req_cleanup }; in Access()
139 unique_ptr<uv_fs_t, decltype(fs_req_cleanup)*> mkdir_req = { new uv_fs_t, fs_req_cleanup }; in Mkdir()
203 new uv_fs_t, fs_req_cleanup }; in RenameFile()
223 new (nothrow) uv_fs_t, fs_req_cleanup }; in RmDirent()
239 new (nothrow) uv_fs_t, fs_req_cleanup }; in RmDirent()
257 new (nothrow) uv_fs_t, fs_req_cleanup }; in RmDirent()
272 unique_ptr<struct NameListArg, decltype(Deleter)*> pNameList = { new (nothrow) struct NameListArg, Deleter }; in ScanDir()

Completed in 11 milliseconds

12345678910>>...15