Home
last modified time | relevance | path

Searched refs:Box (Results 1 - 25 of 125) sorted by relevance

12345

/foundation/ability/ability_runtime/test/unittest/insight_intent/insight_intent_execute_param_test/
H A Dinsight_intent_execute_param_test.cpp70 wantParams.SetParam(AppExecFwk::INSIGHT_INTENT_EXECUTE_PARAM_NAME, AAFwk::String::Box(TEST_INSIGHT_INTENT_NANE)); in HWTEST_F()
71 wantParams.SetParam(AppExecFwk::INSIGHT_INTENT_EXECUTE_PARAM_ID, AAFwk::String::Box("1")); in HWTEST_F()
72 wantParams.SetParam(Want::PARAM_RESV_CALLER_TOKEN, Integer::Box(1000)); in HWTEST_F()
73 wantParams.SetParam(Want::PARAM_RESV_CALLER_UID, Integer::Box(1001)); in HWTEST_F()
74 wantParams.SetParam(Want::PARAM_RESV_CALLER_PID, Integer::Box(1002)); in HWTEST_F()
75 wantParams.SetParam(Want::PARAM_RESV_CALLER_BUNDLE_NAME, AAFwk::String::Box(TEST_CALLER_BUNDLE_NANE)); in HWTEST_F()
78 insightIntentParam.SetParam("dummy", Integer::Box(-1)); in HWTEST_F()
79 wantParams.SetParam(AppExecFwk::INSIGHT_INTENT_EXECUTE_PARAM_PARAM, WantParamWrapper::Box(insightIntentParam)); in HWTEST_F()
117 wantParams.SetParam(Want::PARAM_RESV_CALLER_TOKEN, Integer::Box(1000)); in HWTEST_F()
118 wantParams.SetParam(Want::PARAM_RESV_CALLER_UID, Integer::Box(100 in HWTEST_F()
[all...]
/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()
/foundation/ability/ability_runtime/test/fuzztest/napicommonwant_fuzzer/
H A Dnapicommonwant_fuzzer.cpp93 wantParams1.SetParam("intf1", String::Box(stringParam)); in NapiCommonWantFuzztest1()
94 wantParams1.SetParam("intf2", Long::Box(int32Param)); in NapiCommonWantFuzztest1()
95 wantParams1.SetParam("intf3", Boolean::Box(boolParam)); in NapiCommonWantFuzztest1()
96 wantParams1.SetParam("intf4", Integer::Box(int32Param)); in NapiCommonWantFuzztest1()
97 wantParams1.SetParam("intf5", Float::Box(int32Param)); in NapiCommonWantFuzztest1()
98 wantParams1.SetParam("intf5", RemoteObjectWrap::Box(nullptr)); in NapiCommonWantFuzztest1()
99 wantParams1.SetParam("intf6", Char::Box(int32Param)); in NapiCommonWantFuzztest1()
100 wantParams1.SetParam("intf7", Double::Box(int32Param)); in NapiCommonWantFuzztest1()
101 wantParams1.SetParam("intf8", Byte::Box(int32Param)); in NapiCommonWantFuzztest1()
106 ao->Set(i, Boolean::Box(boolPara in NapiCommonWantFuzztest1()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/rust/src/
H A Dadapter.rs91 Ok(Box::into_raw(Box::new(reader)) as *mut c_void)
98 let reader = Box::from_raw(iter as *mut BufReader<File>);
116 Ok(Box::into_raw(Box::new(item)))
168 return Ok(Box::into_raw(Box::new(item)));
195 Box::into_raw(Box::new(result))
/foundation/ability/dmsfwk/test/fuzztest/distributedwantparams_fuzzer/
H A Ddistributedwantparams_fuzzer.cpp67 sptr<IInterface> stringIt = String::Box(key); in DoSomethingInterestingWithMyAPI_DistributedWantParams_001()
96 sptr<IInterface> longIt = Long::Box(longValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_002()
99 sptr<IInterface> floatIt = Float::Box(floatValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_002()
127 sptr<IInterface> byteIt = Byte::Box(byteValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
129 sptr<IInterface> stringIt = String::Box(key); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
132 sptr<IInterface> boolIt = Boolean::Box(boolValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
135 sptr<IInterface> charIt = Char::Box(charValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
138 sptr<IInterface> shortIt = Short::Box(shortValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
141 sptr<IInterface> doubleIt = Double::Box(doubleValue); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
144 sptr<IInterface> intIt = Integer::Box(intValu in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
[all...]
/foundation/ability/ability_base/test/unittest/base/
H A Dbase_test.cpp292 * Function: Box and Unbox
294 * FunctionPoints: Box and Unbox
296 * CaseDescription: Verify Box and Unbox method of Boolean.
300 sptr<IBoolean> boolean = Boolean::Box(true); in HWTEST_F()
302 boolean = Boolean::Box(false); in HWTEST_F()
349 EXPECT_EQ(Object::ToString(Boolean::Box(true)), "true"); in HWTEST_F()
350 EXPECT_EQ(Object::ToString(Boolean::Box(false)), "false"); in HWTEST_F()
371 * Function: Box and Unbox
373 * FunctionPoints: Box and Unbox
375 * CaseDescription: Verify Box an
[all...]
H A Dshort_wrapper_test.cpp65 * @tc.name: Box
72 short result = shortValue.Unbox(shortValue.Box(value)); in HWTEST_F()
78 * @tc.name: Box
86 short result = shortValue.Unbox(shortValue.Box(value)); in HWTEST_F()
/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)); in HWTEST_F()
136 * @tc.name: Box
137 * @tc.desc: Verify the "Box" function.
141 auto wantParamsPtr = DistributedWantParamWrapper::Box(wantParams_); in HWTEST_F()
153 * @tc.name: Box
154 * @tc.desc: Verify the "Box" function with am empty object.
158 auto wantParamsPtr = DistributedWantParamWrapper::Box({}); in HWTEST_F()
180 auto wantParamsPtr = DistributedWantParamWrapper::Box(wantParams_); in HWTEST_F()
320 wantParams.SetParam(STRING_WANT_PARAMS_KEY_02, String::Box(STRING_WANT_PARAMS_VALUE_0 in HWTEST_F()
[all...]
/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)); in HWTEST_F()
131 * @tc.name: Box
132 * @tc.desc: Verify the "Box" function.
136 auto wantParamsPtr = WantParamWrapper::Box(wantParams_); in HWTEST_F()
148 * @tc.name: Box
149 * @tc.desc: Verify the "Box" function with am empty object.
153 auto wantParamsPtr = WantParamWrapper::Box({}); in HWTEST_F()
175 auto wantParamsPtr = WantParamWrapper::Box(wantParams_); in HWTEST_F()
314 wantParams.SetParam(STRING_WANT_PARAMS_KEY_02, String::Box(STRING_WANT_PARAMS_VALUE_0 in HWTEST_F()
[all...]
H A Dwant_params_test.cpp83 wantParamsIn_->SetParam(keyStr, String::Box(valueStr)); in HWTEST_F()
102 wantParamsIn_->SetParam(keyStr, Boolean::Box(valueBool)); in HWTEST_F()
121 wantParamsIn_->SetParam(keyStr, Integer::Box(valueInteger)); in HWTEST_F()
144 wantParamsIn_->SetParam(keyStr, Long::Box(valueLong)); in HWTEST_F()
163 wp.SetParam("hello", String::Box("World")); in HWTEST_F()
164 ao->Set(i, AAFwk::WantParamWrapper::Box(wp)); in HWTEST_F()
169 l2.SetParam("l2", AAFwk::WantParamWrapper::Box(l1)); in HWTEST_F()
170 wantParamsIn_->SetParam("l3", AAFwk::WantParamWrapper::Box(l2)); in HWTEST_F()
208 wp.SetParam("hello", String::Box("World")); in HWTEST_F()
209 wp.SetParam("welcome", String::Box("N in HWTEST_F()
[all...]
/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);
/foundation/communication/ipc/interfaces/innerkits/rust/include/
H A Dremote_object_wrapper.h54 std::unique_ptr<DeathRecipientRemoveHandler> AddDeathRecipient(rust::Fn<void(rust::Box<RemoteObj>)>) const;
65 DeathRecipientWrapper(rust::Fn<void(rust::Box<RemoteObj>)> cb);
69 rust::Fn<void(rust::Box<RemoteObj>)> inner_;
99 std::unique_ptr<IRemoteObjectWrapper> FromRemoteStub(rust::Box<RemoteStubWrapper> stub);
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/
H A Derror.rs22 cause: Option<Box<dyn Error + Send + Sync>>,
51 pub fn other<T: Into<Box<dyn Error + Send + Sync>>>(cause: Option<T>) -> Self { in other()
78 T: Into<Box<dyn Error + Send + Sync>>,
101 cause: Some(Box::new(err)), in from()
/foundation/ability/ability_base/test/fuzztest/wantparamsthird_fuzzer/
H A Dwantparamsthird_fuzzer.cpp48 sptr<IInterface> charIt = Char::Box(charValue); in DoSomethingInterestingWithMyAPI()
51 sptr<IInterface> shortIt = Short::Box(shortValue); in DoSomethingInterestingWithMyAPI()
54 sptr<IInterface> doubleIt = Double::Box(doubleValue); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dinsight_intent_execute_param.cpp134 AAFwk::Integer::Box(wantParams.GetIntParam(AAFwk::Want::PARAM_RESV_CALLER_TOKEN, 0))); in UpdateInsightIntentCallerInfo()
138 AAFwk::Integer::Box(wantParams.GetIntParam(AAFwk::Want::PARAM_RESV_CALLER_UID, 0))); in UpdateInsightIntentCallerInfo()
142 AAFwk::Integer::Box(wantParams.GetIntParam(AAFwk::Want::PARAM_RESV_CALLER_PID, 0))); in UpdateInsightIntentCallerInfo()
146 AAFwk::String::Box(wantParams.GetStringParam(AAFwk::Want::PARAM_RESV_CALLER_BUNDLE_NAME))); in UpdateInsightIntentCallerInfo()
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/src/cxx/
H A Dsystem_ability_wrapper.cpp29 rust::Box<AbilityWrapper> ability_, int32_t systemAbilityId, bool runOnCreate) in SystemAbilityWrapper()
37 rust::Box<AbilityWrapper>::from_raw(this->ability_); in ~SystemAbilityWrapper()
70 bool SystemAbilityWrapper::PublishWrapper(rust::Box<AbilityStub> ability) in PublishWrapper()
179 rust::Box<AbilityWrapper> ability_, int32_t systemAbilityId, bool runOnCreate) in BuildSystemAbility()
191 auto ability = rust::Box<AbilityStub>::from_raw(this->inner_); in ~RemoteServiceStub()
/foundation/ability/ability_base/interfaces/kits/native/want/src/
H A Dwant_params.cpp183 dest.params_[it->first] = String::Box(String::Unbox(IString::Query(o))); in NewParams()
185 dest.params_[it->first] = Boolean::Box(Boolean::Unbox(IBoolean::Query(o))); in NewParams()
187 dest.params_[it->first] = Byte::Box(Byte::Unbox(IByte::Query(o))); in NewParams()
189 dest.params_[it->first] = Char::Box(Char::Unbox(IChar::Query(o))); in NewParams()
191 dest.params_[it->first] = Short::Box(Short::Unbox(IShort::Query(o))); in NewParams()
193 dest.params_[it->first] = Integer::Box(Integer::Unbox(IInteger::Query(o))); in NewParams()
195 dest.params_[it->first] = Long::Box(Long::Unbox(ILong::Query(o))); in NewParams()
197 dest.params_[it->first] = Float::Box(Float::Unbox(IFloat::Query(o))); in NewParams()
199 dest.params_[it->first] = Double::Box(Double::Unbox(IDouble::Query(o))); in NewParams()
201 dest.params_[it->first] = RemoteObjectWrap::Box(RemoteObjectWra in NewParams()
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dwant_params_wrapper.h56 static sptr<IWantParams> Box(const WantParams &value);
63 static sptr<IWantParams> Box(WantParams &&value);
/foundation/communication/ipc/interfaces/innerkits/rust/src/ipc_async/
H A Dipc_ylong.rs47 Box::pin(after_handle(result)) in spawn()
50 Box::pin(async move { in spawn()
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
H A Dcommon_want.cpp70 wantParams.SetParam(strProName, AAFwk::String::Box(natValue)); in InnerUnwrapJS()
76 wantParams.SetParam(strProName, AAFwk::Boolean::Box(natValue)); in InnerUnwrapJS()
92 wantParams.SetParam(strProName, AAFwk::Double::Box(natValueDouble)); in InnerUnwrapJS()
94 wantParams.SetParam(strProName, AAFwk::Integer::Box(natValue32)); in InnerUnwrapJS()
97 wantParams.SetParam(strProName, AAFwk::Integer::Box(natValue32)); in InnerUnwrapJS()
99 wantParams.SetParam(strProName, AAFwk::Double::Box(natValueDouble)); in InnerUnwrapJS()
/foundation/ability/dmsfwk/services/dtbschedmgr/src/distributedWant/
H A Ddistributed_want_params.cpp324 dest.params_[it->first] = AAFwk::String::Box(AAFwk::String::Unbox(AAFwk::IString::Query(o))); in NewParams()
326 dest.params_[it->first] = AAFwk::Boolean::Box(AAFwk::Boolean::Unbox(AAFwk::IBoolean::Query(o))); in NewParams()
328 dest.params_[it->first] = AAFwk::Byte::Box(AAFwk::Byte::Unbox(AAFwk::IByte::Query(o))); in NewParams()
330 dest.params_[it->first] = AAFwk::Char::Box(AAFwk::Char::Unbox(AAFwk::IChar::Query(o))); in NewParams()
332 dest.params_[it->first] = AAFwk::Short::Box(AAFwk::Short::Unbox(AAFwk::IShort::Query(o))); in NewParams()
334 dest.params_[it->first] = AAFwk::Integer::Box(AAFwk::Integer::Unbox(AAFwk::IInteger::Query(o))); in NewParams()
336 dest.params_[it->first] = AAFwk::Long::Box(AAFwk::Long::Unbox(AAFwk::ILong::Query(o))); in NewParams()
338 dest.params_[it->first] = AAFwk::Float::Box(AAFwk::Float::Unbox(AAFwk::IFloat::Query(o))); in NewParams()
340 dest.params_[it->first] = AAFwk::Double::Box(AAFwk::Double::Unbox(AAFwk::IDouble::Query(o))); in NewParams()
343 AAFwk::RemoteObjectWrap::Box(AAFw in NewParams()
[all...]
/foundation/ability/ability_runtime/test/unittest/want_agent_info_test/
H A Dwant_agent_info_test.cpp88 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
122 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
156 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
203 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
229 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
255 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
281 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
308 extraInfo->SetParam(key, Boolean::Box(value)); in HWTEST_F()
/foundation/communication/ipc/interfaces/innerkits/rust/src/cxx/
H A Dremote_object_wrapper.cpp62 rust::Fn<void(rust::Box<RemoteObj>)> callback) const in AddDeathRecipient()
100 DeathRecipientWrapper::DeathRecipientWrapper(rust::Fn<void(rust::Box<RemoteObj>)> cb) in DeathRecipientWrapper()
140 auto ability = rust::Box<RemoteStubWrapper>::from_raw(this->inner_); in ~RemoteServiceStub()
191 std::unique_ptr<IRemoteObjectWrapper> FromRemoteStub(rust::Box<RemoteStubWrapper> stub) in FromRemoteStub()
/foundation/ability/dmsfwk/services/dtbschedmgr/include/distributedWant/
H A Ddistributed_want_params_wrapper.h60 static sptr<IDistributedWantParams> Box(const DistributedWantParams& value);
67 static sptr<IDistributedWantParams> Box(DistributedWantParams&& value);
/foundation/ability/ability_runtime/services/abilitymgr/src/utils/
H A Dwindow_options_utils.cpp108 params.SetParam(Want::PARAM_RESV_DISPLAY_ID, AAFwk::String::Box("0")); in UpdateWantToSetDisplayID()
116 params.SetParam(Want::PARAM_RESV_DISPLAY_ID, AAFwk::String::Box(displayId)); in UpdateWantToSetDisplayID()
119 params.SetParam(Want::PARAM_RESV_DISPLAY_ID, AAFwk::String::Box("0")); in UpdateWantToSetDisplayID()

Completed in 15 milliseconds

12345