Home
last modified time | relevance | path

Searched refs:Box (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
H A Ddlp_file_kits_test.cpp179 fileFdParam.SetParam(TAG_KEY_FD_VALUE, Integer::Box(g_dlpFileFd));
180 TopParam.SetParam(TAG_KEY_FD, WantParamWrapper::Box(fileFdParam));
202 fileFdParam.SetParam(TAG_KEY_FD_VALUE, Integer::Box(g_dlpFileFd));
203 TopParam.SetParam(TAG_KEY_FD, WantParamWrapper::Box(fileFdParam));
240 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box(".dlp"));
245 fileFdParam.SetParam(TAG_KEY_FD_VALUE, Integer::Box(g_dlpFileFd));
246 TopParam.SetParam(TAG_KEY_FD, WantParamWrapper::Box(fileFdParam));
267 fileNameParam.SetParam(TAG_FILE_NAME_VALUE, String::Box("lp"));
272 fileFdParam.SetParam(TAG_KEY_FD_VALUE, Integer::Box(g_dlpFileFd));
320 fileFdParam.SetParam(TAG_KEY_FD_TYPE, String::Box("FD1"));
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/insight_intent/insight_intent_execute_param_test/
H A Dinsight_intent_execute_param_test.cpp71 wantParams.SetParam(AppExecFwk::INSIGHT_INTENT_EXECUTE_PARAM_ID, AAFwk::String::Box("1"));
72 wantParams.SetParam(Want::PARAM_RESV_CALLER_TOKEN, Integer::Box(1000));
73 wantParams.SetParam(Want::PARAM_RESV_CALLER_UID, Integer::Box(1001));
74 wantParams.SetParam(Want::PARAM_RESV_CALLER_PID, Integer::Box(1002));
75 …wantParams.SetParam(Want::PARAM_RESV_CALLER_BUNDLE_NAME, AAFwk::String::Box(TEST_CALLER_BUNDLE_NAN…
78 insightIntentParam.SetParam("dummy", Integer::Box(-1));
79 …wantParams.SetParam(AppExecFwk::INSIGHT_INTENT_EXECUTE_PARAM_PARAM, WantParamWrapper::Box(insightI…
117 wantParams.SetParam(Want::PARAM_RESV_CALLER_TOKEN, Integer::Box(1000));
118 wantParams.SetParam(Want::PARAM_RESV_CALLER_UID, Integer::Box(1001));
119 wantParams.SetParam(Want::PARAM_RESV_CALLER_PID, Integer::Box(1002));
[all …]
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/volume/src/
H A Dnotification.cpp41 wantParams.SetParam("id", AAFwk::String::Box(volume->GetId())); in NotifyVolumeChange()
42 wantParams.SetParam("diskId", AAFwk::String::Box(volume->GetDiskId())); in NotifyVolumeChange()
43 wantParams.SetParam("fsUuid", AAFwk::String::Box(volume->GetUuid())); in NotifyVolumeChange()
44 wantParams.SetParam("flags", AAFwk::Integer::Box(volume->GetFlags())); in NotifyVolumeChange()
52 wantParams.SetParam("volumeState", AAFwk::Integer::Box(UNMOUNTED)); in NotifyVolumeChange()
57 wantParams.SetParam("volumeState", AAFwk::Integer::Box(MOUNTED)); in NotifyVolumeChange()
58 wantParams.SetParam("path", AAFwk::String::Box(volume->GetPath())); in NotifyVolumeChange()
59 wantParams.SetParam("fsType", AAFwk::Integer::Box(volume->GetFsType())); in NotifyVolumeChange()
68 wantParams.SetParam("volumeState", AAFwk::Integer::Box(EJECTING)); in NotifyVolumeChange()
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/napicommonwant_fuzzer/
H A Dnapicommonwant_fuzzer.cpp106 ao->Set(i, Boolean::Box(boolParam)); in NapiCommonWantFuzztest1()
140 ao->Set(i, Boolean::Box(boolParam)); in NapiCommonWantFuzztest2()
180 ao->Set(i, Boolean::Box(boolParam)); in NapiCommonWantFuzztest3()
248 ao1->Set(i, Boolean::Box(boolParam)); in NapiCommonWantFuzztest5()
259 ao2->Set(i, Char::Box(int32Param)); in NapiCommonWantFuzztest5()
270 ao3->Set(i, Byte::Box(int32Param)); in NapiCommonWantFuzztest5()
281 ao4->Set(i, Short::Box(int32Param)); in NapiCommonWantFuzztest5()
302 ao1->Set(i, Long::Box(int32Param)); in NapiCommonWantFuzztest6()
313 ao2->Set(i, Float::Box(int32Param)); in NapiCommonWantFuzztest6()
324 ao3->Set(i, Double::Box(int32Param)); in NapiCommonWantFuzztest6()
[all …]
/ohos5.0/commonlibrary/rust/ylong_json/src/
H A Dadapter.rs58 Box::into_raw(Box::from(value)) as *mut YlongJson in ylong_json_parse()
121 return Box::into_raw(Box::from(value_clone)) as *mut YlongJson; in ylong_json_duplicate()
125 Box::into_raw(Box::from(value.clone())) as *mut YlongJson in ylong_json_duplicate()
131 Box::into_raw(Box::from(JsonValue::Null)) as *mut YlongJson in ylong_json_create_null()
151 Box::into_raw(Box::from(JsonValue::Boolean(boolean != FALSE))) as *mut YlongJson in ylong_json_create_bool()
365 Box::into_raw(Box::from(JsonValue::String(string))) as *mut YlongJson in ylong_json_create_string()
427 Box::into_raw(Box::from(JsonValue::Array(Array::new()))) as *mut YlongJson in ylong_json_create_array()
557 return Box::into_raw(Box::new(v)) as *mut YlongJson; in ylong_json_remove_array_item_by_index()
673 Box::into_raw(Box::new(node.remove_self().unwrap())) as *mut YlongJson in ylong_json_remove_array_node()
878 return Box::into_raw(Box::new(v)) as *mut YlongJson; in ylong_json_remove_object_item_by_index()
[all …]
/ohos5.0/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_plugin.cpp136 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
137 … parameters.SetParam("accountName", OHOS::AAFwk::String::Box(options.accountInfo.accountName_)); in GetDomainAccountInfo()
138 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("222")); in GetDomainAccountInfo()
144 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
146 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("555")); in GetDomainAccountInfo()
152 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
154 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("444")); in GetDomainAccountInfo()
160 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
162 parameters.SetParam("accountId", OHOS::AAFwk::String::Box("3333")); in GetDomainAccountInfo()
168 parameters.SetParam("domain", OHOS::AAFwk::String::Box(options.accountInfo.domain_)); in GetDomainAccountInfo()
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/dns/
H A Dresolver.rs27 pub type Addrs = Box<dyn Iterator<Item = SocketAddr> + Sync + Send>;
30 pub type StdError = Box<dyn std::error::Error + Send + Sync>;
32 pub type SocketFuture = Pin<Box<dyn Future<Output = Result<Addrs, StdError>> + Sync + Send>>;
83 Ok(Ok(addrs)) => Ok(Box::new(addrs) as Addrs), in poll()
84 Ok(Err(err)) => Err(Box::new(err) as StdError), in poll()
85 Err(err) => Err(Box::new(Error::new(io::ErrorKind::Interrupted, err)) as StdError), in poll()
96 let domain: Box<str> = domain.into(); in resolve()
102 Box::pin(DefaultDnsFuture { inner: blocking }) in resolve()
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/src/remote/
H A Dwrapper.rs46 fn new_remote_obj(wrap: UniquePtr<IRemoteObjectWrapper>) -> Box<RemoteObj>; in new_remote_obj()
67 fn FromRemoteStub(stub: Box<RemoteStubWrapper>) -> UniquePtr<IRemoteObjectWrapper>; in FromRemoteStub()
90 cb: fn(Box<RemoteObj>), in AddDeathRecipient()
100 fn new_remote_obj(wrap: UniquePtr<ffi::IRemoteObjectWrapper>) -> Box<RemoteObj> { in new_remote_obj()
101 Box::new(RemoteObj::try_new(wrap).unwrap()) in new_remote_obj()
105 inner: Box<dyn RemoteStub>,
111 inner: Box::new(remote), in new()
138 RemoteObj::try_new(FromRemoteStub(Box::new(self))) in into_remote()
/ohos5.0/base/request/request/services/src/task/
H A Dclient.rs35 ) -> Result<Client, Box<dyn Error + Send + Sync>> { in build_client()
93 return Err(Box::new(HttpClientError::other( in build_client()
118 client.build().map_err(Box::new), in build_client()
123 fn build_task_proxy(config: &TaskConfig) -> Result<Option<Proxy>, Box<dyn Error + Send + Sync>> { in build_task_proxy()
129 Proxy::all(&config.proxy).build().map_err(Box::new), in build_task_proxy()
136 ) -> Result<Option<PubKeyPins>, Box<dyn Error + Send + Sync>> { in build_task_certificate_pins()
145 .map_err(Box::new), in build_task_certificate_pins()
153 ) -> Result<Option<Proxy>, Box<dyn Error + Send + Sync>> { in build_system_proxy()
170 .map_err(Box::new), in build_system_proxy()
175 fn build_task_certs(config: &TaskConfig) -> Result<Vec<Certificate>, Box<dyn Error + Send + Sync>> { in build_task_certs()
[all …]
/ohos5.0/foundation/ability/ability_base/test/unittest/base/
H A Dbase_test.cpp336 sptr<IBoolean> boolean = Boolean::Box(true);
338 boolean = Boolean::Box(false);
415 sptr<IChar> charObj = Char::Box(U'天');
460 EXPECT_EQ(Object::ToString(Char::Box(U'好')), "好");
517 sptr<IByte> byteObj = Byte::Box(129);
562 EXPECT_EQ(Object::ToString(Byte::Box(129)), "129");
591 sptr<IShort> shortObj = Short::Box(32767);
665 sptr<IInteger> intObj = Integer::Box(2147483647);
739 sptr<ILong> longObj = Long::Box(2147483647L);
813 sptr<IFloat> floatObj = Float::Box(-0.003);
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dtimeout.rs24 pub(crate) timeout: Option<Pin<Box<Sleep>>>,
28 impl<T> TimeoutFuture<Pin<Box<T>>> {
31 timeout: Some(Box::pin(sleep(timeout))), in new()
32 future: Box::pin(future), in new()
84 let future1 = Box::pin(async { in ut_timeout_future()
93 Box::new([].as_slice()), in ut_timeout_future()
102 let future2 = Box::pin(async { in ut_timeout_future()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/rust/src/
H A Dadapter.rs91 Ok(Box::into_raw(Box::new(reader)) as *mut c_void) in reader_iterator()
98 let reader = Box::from_raw(iter as *mut BufReader<File>); in drop_reader_iterator()
116 Ok(Box::into_raw(Box::new(item))) in next_line()
168 return Ok(Box::into_raw(Box::new(item))); in get_parent()
195 Box::into_raw(Box::new(result)) in cut_file_name()
/ohos5.0/base/msdp/device_status/rust/plugin_manager/src/
H A Dlib.rs51 let boxed = Box::new(<$plugin_type>::default());
52 Box::into_raw(boxed)
92 fn do_load_plugin(&mut self, intention: Intention) -> Option<Box<dyn IPlugin>> { in do_load_plugin()
112 Box::from_raw(plugin_ptr) in do_load_plugin()
128 pub fn load_plugin(&mut self, intention: Intention) -> Option<Box<dyn IPlugin>> in load_plugin()
133 Some(Box::<FusionBasicServer>::default()) in load_plugin()
/ohos5.0/foundation/ability/dmsfwk/test/fuzztest/distributedwantparams_fuzzer/
H A Ddistributedwantparams_fuzzer.cpp67 sptr<IInterface> stringIt = String::Box(key); in DoSomethingInterestingWithMyApiDistributedWantParams001()
96 sptr<IInterface> longIt = Long::Box(longValue); in DoSomethingInterestingWithMyApiDistributedWantParams002()
99 sptr<IInterface> floatIt = Float::Box(floatValue); in DoSomethingInterestingWithMyApiDistributedWantParams002()
127 sptr<IInterface> byteIt = Byte::Box(byteValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
129 sptr<IInterface> stringIt = String::Box(key); in DoSomethingInterestingWithMyApiDistributedWantParams003()
132 sptr<IInterface> boolIt = Boolean::Box(boolValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
135 sptr<IInterface> charIt = Char::Box(charValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
138 sptr<IInterface> shortIt = Short::Box(shortValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
141 sptr<IInterface> doubleIt = Double::Box(doubleValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
144 sptr<IInterface> intIt = Integer::Box(intValue); in DoSomethingInterestingWithMyApiDistributedWantParams003()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/pariter/
H A Dmod.rs87 ) -> Pin<Box<dyn std::future::Future<Output = Result<(), ScheduleError>> + Send + 'a>> in for_each()
93 Box::pin(fut) in for_each()
99 ) -> Pin<Box<dyn std::future::Future<Output = Result<Self::Item, ScheduleError>> + Send + 'a>> in sum()
105 Box::pin(fut) in sum()
112 ) -> Pin<Box<dyn std::future::Future<Output = Result<C::Output, ScheduleError>> + Send + 'a>> in drive()
118 Box::pin(fut) in drive()
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/
H A Dlib.rs53 Box::into_raw(Box::new(hsd)) in LoadHashSignedData()
115 unsafe { drop(Box::from_raw(signed_data as *mut HashSignedData)); } in ReleaseHashSignedData()
138 Box::into_raw(Box::new(hash_data)) in LoadImgHashData()
167 Box::into_raw(Box::new(hash_data)) in LoadImgHashDataNew()
246 unsafe { drop(Box::from_raw(hash_data as *mut ImgHashData<u32>)); } in ReleaseImgHashData()
262 unsafe { drop(Box::from_raw(hash_data as *mut ImgHashData<u64>)); } in ReleaseImgHashDataNew()
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/distributedWant/
H A Ddistributed_want_params_wrapper_test.cpp59 wantParams_.SetParam(STRING_WANT_PARAMS_KEY_01, String::Box(STRING_WANT_PARAMS_VALUE_01)); in SetUp()
110 wantParams.SetParam(STRING_WANT_PARAMS_KEY_01, String::Box(STRING_WANT_PARAMS_VALUE_01));
141 auto wantParamsPtr = DistributedWantParamWrapper::Box(wantParams_);
158 auto wantParamsPtr = DistributedWantParamWrapper::Box({});
180 auto wantParamsPtr = DistributedWantParamWrapper::Box(wantParams_);
320 wantParams.SetParam(STRING_WANT_PARAMS_KEY_02, String::Box(STRING_WANT_PARAMS_VALUE_02));
321 wantParams.SetParam(STRING_WANT_PARAMS_KEY_01, DistributedWantParamWrapper::Box(wantParams));
/ohos5.0/foundation/ability/ability_base/test/unittest/want/
H A Dwant_params_wrapper_test.cpp58 wantParams_.SetParam(STRING_WANT_PARAMS_KEY_01, String::Box(STRING_WANT_PARAMS_VALUE_01)); in SetUp()
106 wantParams.SetParam(STRING_WANT_PARAMS_KEY_01, String::Box(STRING_WANT_PARAMS_VALUE_01));
136 auto wantParamsPtr = WantParamWrapper::Box(wantParams_);
153 auto wantParamsPtr = WantParamWrapper::Box({});
175 auto wantParamsPtr = WantParamWrapper::Box(wantParams_);
314 wantParams.SetParam(STRING_WANT_PARAMS_KEY_02, String::Box(STRING_WANT_PARAMS_VALUE_02));
315 wantParams.SetParam(STRING_WANT_PARAMS_KEY_01, WantParamWrapper::Box(wantParams));
/ohos5.0/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/epoll_manager/
H A Dffi.rs39 let epoll_manager: Box::<EpollManager> = Box::default(); in StreamSocketCreate()
40 Box::into_raw(epoll_manager) in StreamSocketCreate()
55 drop(Box::from_raw(raw)); in StreamSocketDelete()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/ffrt/
H A Dspawner.rs37 drop(Box::from_raw(data as *mut Task)); in ffrt_submit()
52 let t: Box<Task> = Box::new(t); in ffrt_submit()
53 let data = Box::into_raw(t) as *mut c_void; in ffrt_submit()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
H A Derror.rs41 Custom(Box<Custom>),
56 error: Box<dyn std::error::Error + Send + Sync>,
127 E: Into<Box<dyn std::error::Error + Send + Sync>>, in new()
132 fn _new(kind: ErrorKind, error: Box<dyn std::error::Error + Send + Sync>) -> ScheduleError { in _new()
134 repr: Repr::Custom(Box::new(Custom { kind, error })), in _new()
157 pub fn into_inner(self) -> Option<Box<dyn std::error::Error + Send + Sync>> { in into_inner()
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dwant_params.cpp777 ao->Set(i, className::Box(value[i])); in SetArray()
820 ao->Set(i, T2::Box(array[i])); in SetNewArray()
1213 sptr<IInterface> intf = Boolean::Box(value); in ReadFromParcelBool()
1230 sptr<IInterface> intf = Byte::Box(value); in ReadFromParcelInt8()
1247 sptr<IInterface> intf = Char::Box(value); in ReadFromParcelChar()
1264 sptr<IInterface> intf = Short::Box(value); in ReadFromParcelShort()
1329 wp.SetParam(TYPE_PROPERTY, String::Box(FD)); in ReadFromParcelFD()
1330 wp.SetParam(VALUE_PROPERTY, Integer::Box(fd)); in ReadFromParcelFD()
1359 sptr<IInterface> intf = Long::Box(value); in ReadFromParcelLong()
1379 sptr<IInterface> intf = Float::Box(value); in ReadFromParcelFloat()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dqueue.rs83 drop(Box::from_raw(ptr)); in insert()
110 let block = Box::new(Block::new()); in new()
111 let block_ptr = Box::into_raw(block); in new()
130 new_block: Option<Box<Block<T>>>, in send_inner()
135 let new_block_ptr = Box::into_raw(new_block.unwrap()); in send_inner()
166 new_block = Some(Box::new(Block::<T>::new())); in send()
269 drop(Box::from_raw(block_ptr)); in drop()
282 drop(Box::from_raw(block_ptr)); in drop()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/src/
H A Dspin_rwlock.rs49 let val = Box::new(data); in new()
50 let val_ptr = Box::into_raw(val); in new()
146 let val = Box::new(val); in store()
147 let val_ptr = Box::into_raw(val); in store()
161 drop(Box::from_raw(old_data)); in store()
/ohos5.0/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/include/
H A Dsystem_ability_wrapper.h37 …SystemAbilityWrapper(rust::Box<AbilityWrapper> ability, int32_t systemAbilityId, bool runOnCreate);
42 bool PublishWrapper(rust::Box<AbilityStub> ability);
76 bool StubPublish(SystemAbilityWrapper *systemAbilityWrapper, rust::Box<AbilityStub> ability);
82 rust::Box<AbilityWrapper> ability, int32_t systemAbilityId, bool runOnCreate);

12345678910>>...12