Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 79) sorted by relevance

1234

/base/useriam/user_auth_framework/services/remote_connect/src/
Dsoft_bus_message.cpp25 const std::shared_ptr<Attributes> &attributes) in SoftBusMessage() argument
27 destEndPoint_(destEndPoint), attributes_(attributes) in SoftBusMessage()
72 auto attributes = Common::MakeShared<Attributes>(attributes_->Serialize()); in CreateMessage() local
73 if (attributes == nullptr) { in CreateMessage()
78 bool ret = attributes->SetInt32Value(Attributes::ATTR_MSG_SEQ_NUM, messageSeq_); in CreateMessage()
82 ret = attributes->SetBoolValue(Attributes::ATTR_MSG_ACK, true); in CreateMessage()
85 ret = attributes->SetBoolValue(Attributes::ATTR_MSG_ACK, false); in CreateMessage()
89 ret = attributes->SetStringValue(Attributes::ATTR_MSG_SRC_END_POINT, srcEndPoint_); in CreateMessage()
92 ret = attributes->SetStringValue(Attributes::ATTR_MSG_DEST_END_POINT, destEndPoint_); in CreateMessage()
95 ret = attributes->SetStringValue(Attributes::ATTR_CONNECTION_NAME, connectioneName_); in CreateMessage()
[all …]
Dsoft_bus_base_socket.cpp175 …aseSocket::SetDeviceNetworkId(const std::string networkId, std::shared_ptr<Attributes> &attributes) in SetDeviceNetworkId() argument
178 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SetDeviceNetworkId()
180 …bool setDeviceNetworkIdRet = attributes->SetStringValue(Attributes::ATTR_COLLECTOR_NETWORK_ID, net… in SetDeviceNetworkId()
190 …tring &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, in SendRequest() argument
194 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SendRequest()
199 connectionName, srcEndPoint, destEndPoint, attributes); in SendRequest()
230 …tring &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, in SendResponse() argument
234 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SendResponse()
238 connectionName, srcEndPoint, destEndPoint, attributes); in SendResponse()
274 std::shared_ptr<Attributes> attributes = softBusMessage->ParseMessage(message, messageLen); in ParseMessage() local
[all …]
Dremote_connect_manager.cpp78 const std::shared_ptr<Attributes> &attributes, MsgCallback &callback) in SendMessage() argument
82 srcEndPoint, destEndPoint, attributes, callback); in SendMessage()
Dsoft_bus_client_socket.cpp31 …const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, MsgCallback &callb… in SendMessage() argument
39 return SendRequest(socketId, connectionName, srcEndPoint, destEndPoint, attributes, callback); in SendMessage()
/base/security/asset/services/core_service/src/operations/
Doperation_add.rs123 fn check_accessibity_validity(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_accessibity_validity()
128attributes.get_enum_attr::<Accessibility>(&Tag::Accessibility).unwrap_or(Accessibility::DeviceFirs… in check_accessibity_validity()
142 fn check_persistent_permission(attributes: &AssetMap) -> Result<()> { in check_persistent_permission()
143 if attributes.get(&Tag::IsPersistent).is_some() { in check_persistent_permission()
152 fn check_arguments(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_arguments()
153 common::check_required_tags(attributes, &REQUIRED_ATTRS)?; in check_arguments()
161 common::check_tag_validity(attributes, &valid_tags)?; in check_arguments()
162 common::check_value_validity(attributes)?; in check_arguments()
163 check_accessibity_validity(attributes, calling_info)?; in check_arguments()
164 common::check_system_permission(attributes)?; in check_arguments()
[all …]
Doperation_pre_query.rs31 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments()
38 common::check_tag_validity(attributes, &valid_tags)?; in check_arguments()
39 common::check_value_validity(attributes)?; in check_arguments()
40 common::check_system_permission(attributes)?; in check_arguments()
42 match attributes.get(&Tag::AuthType) { in check_arguments()
Doperation_remove.rs41 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments()
48 common::check_tag_validity(attributes, &valid_tags)?; in check_arguments()
49 common::check_value_validity(attributes)?; in check_arguments()
50 common::check_system_permission(attributes) in check_arguments()
/base/print/print_fwk/frameworks/helper/print_helper/src/
Dprint_attributes_helper.cpp32 napi_value PrintAttributesHelper::MakeJsObject(napi_env env, const PrintAttributes &attributes) in MakeJsObject() argument
36 NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_JOB_COPYNUMBER, attributes.GetCopyNumber()); in MakeJsObject()
38 if (!CreatePageRange(env, jsObj, attributes)) { in MakeJsObject()
43 …NapiPrintUtils::SetBooleanProperty(env, jsObj, PARAM_JOB_ISSEQUENTIAL, attributes.GetIsSequential(… in MakeJsObject()
45 if (!CreatePageSize(env, jsObj, attributes)) { in MakeJsObject()
50 …NapiPrintUtils::SetBooleanProperty(env, jsObj, PARAM_JOB_ISLANDSCAPE, attributes.GetIsLandscape()); in MakeJsObject()
51 …NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_JOB_DIRECTIONMODE, attributes.GetDirectionMode… in MakeJsObject()
52 NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_JOB_COLORMODE, attributes.GetColorMode()); in MakeJsObject()
53 NapiPrintUtils::SetUint32Property(env, jsObj, PARAM_JOB_DUPLEXMODE, attributes.GetDuplexMode()); in MakeJsObject()
55 if (!CreateMargin(env, jsObj, attributes)) { in MakeJsObject()
[all …]
/base/print/print_fwk/frameworks/helper/print_helper/include/
Dprint_attributes_helper.h32 static napi_value MakeJsObject(napi_env env, const PrintAttributes &attributes);
37 …ol CreatePageRange(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes);
38 …ool CreatePageSize(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes);
39 … bool CreateMargin(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes);
/base/security/asset/services/plugin/src/
Dasset_plugin.rs99 fn add(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in add()
101 .insert_datas(attributes) in add()
106 fn query(&mut self, attributes: &ExtDbMap) -> std::result::Result<Vec<ExtDbMap>, u32> { in query()
108 .query_datas(&vec![], attributes, None, false) in query()
113 fn remove(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in remove()
115 .delete_datas(attributes, None, false) in remove()
120 …fn update(&mut self, attributes: &ExtDbMap, attrs_to_update: &ExtDbMap) -> std::result::Result<i32… in update()
122 .update_datas(attributes, false, attrs_to_update) in update()
/base/security/asset/interfaces/inner_api/rs/src/
Dplugin_interface.rs78 fn add(&mut self, attributes: &ExtDbMap) -> Result<i32, u32>; in add()
81 fn query(&mut self, attributes: &ExtDbMap) -> Result<Vec<ExtDbMap>, u32>; in query()
84 fn remove(&mut self, attributes: &ExtDbMap) -> Result<i32, u32>; in remove()
87 fn update(&mut self, attributes: &ExtDbMap, attrs_to_update: &ExtDbMap) -> Result<i32, u32>; in update()
/base/web/webview/ohos_adapter/print_manager_adapter/src/
Dprint_manager_adapter_impl.cpp57 auto attributes = std::make_shared<OHOS::Print::PrintAttributes>(); in Print() local
58 if (!attributes) { in Print()
62 …t ret = OHOS::Print::PrintManagerClient::GetInstance()->Print(printJobName, iCallback, attributes); in Print()
88 auto attributes = std::make_shared<OHOS::Print::PrintAttributes>(); in Print() local
89 if (!attributes) { in Print()
94 …OHOS::Print::PrintManagerClient::GetInstance()->Print(printJobName, iCallback, attributes, context… in Print()
/base/useriam/user_auth_framework/services/remote_connect/inc/
Dsoft_bus_base_socket.h49 …const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, MsgCallback &callb…
51 …tring &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes,
54 …tring &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes,
87 …esultCode SetDeviceNetworkId(const std::string networkId, std::shared_ptr<Attributes> &attributes);
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
Dexecutor_messenger_stub.cpp83 std::vector<uint8_t> attributes; in FinishStub() local
93 if (!data.ReadUInt8Vector(&attributes)) { in FinishStub()
97 auto finalResult = Common::MakeShared<Attributes>(attributes); in FinishStub()
/base/useriam/user_auth_framework/frameworks/native/common/
DBUILD.gn20 ohos_source_set("attributes") {
33 sources = [ "attributes/src/attributes.cpp" ]
/base/security/asset/interfaces/kits/c/src/
Dasset_api.c21 int32_t OH_Asset_Add(const Asset_Attr *attributes, uint32_t attrCnt) in OH_Asset_Add() argument
23 return AssetAdd((const AssetAttr *)attributes, attrCnt); in OH_Asset_Add()
/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_config.h32 USBConfig(uint32_t id, uint32_t attributes, std::string name, uint32_t maxPower, in USBConfig() argument
36 this->attributes_ = attributes; in USBConfig()
150 void SetAttribute(uint32_t attributes) in SetAttribute() argument
152 this->attributes_ = attributes; in SetAttribute()
/base/security/asset/interfaces/inner_api/c/src/
Dasset_system_api.c23 int32_t add_asset(const AssetAttr *attributes, uint32_t attr_cnt);
31 int32_t AssetAdd(const AssetAttr *attributes, uint32_t attrCnt) in AssetAdd() argument
33 return add_asset(attributes, attrCnt); in AssetAdd()
/base/useriam/user_auth_framework/test/fuzztest/executors/userauthexecutor_fuzzer/
Duser_auth_executor_fuzzer.cpp308 void FillIAttributes(std::shared_ptr<Parcel> parcel, Attributes &attributes) in FillIAttributes() argument
315 attributes.SetUint64Value(Attributes::ATTR_TEMPLATE_ID, parcel->ReadUint64()); in FillIAttributes()
316 attributes.SetUint64Value(Attributes::ATTR_CALLER_UID, parcel->ReadUint64()); in FillIAttributes()
317 attributes.SetUint32Value(Attributes::ATTR_PROPERTY_MODE, parcel->ReadUint32()); in FillIAttributes()
320 attributes.GetUint64ArrayValue(Attributes::ATTR_TEMPLATE_ID_LIST, templateIdList); in FillIAttributes()
323 attributes.GetUint64ArrayValue(Attributes::ATTR_EXTRA_INFO, templateIdList); in FillIAttributes()
324 attributes.SetUint64Value(Attributes::ATTR_CALLER_UID, parcel->ReadUint64()); in FillIAttributes()
325 attributes.SetUint32Value(Attributes::ATTR_SCHEDULE_MODE, parcel->ReadUint32()); in FillIAttributes()
/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/
Didentify_command.cpp29 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in IdentifyCommand() argument
31 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in IdentifyCommand()
Dcollect_command.cpp31 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in CollectCommand() argument
33 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in CollectCommand()
Dcustom_command.cpp36 CustomCommand::CustomCommand(std::weak_ptr<Executor> executor, const Attributes &attributes) in CustomCommand() argument
38 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())) in CustomCommand()
Denroll_command.cpp33 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in EnrollCommand() argument
35 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in EnrollCommand()
Dauth_command.cpp31 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in AuthCommand() argument
33 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in AuthCommand()
/base/security/selinux_adapter/sepolicy/ohos_policy/developtools/lldb/public/
Dlldb.te15 # existing attributes for processes other than 'domain' because rules for
20 # of not inheritting other file-related attributes is the same as above.

1234