/base/useriam/user_auth_framework/services/remote_connect/src/ |
H A D | soft_bus_message.cpp | 24 const std::shared_ptr<Attributes> &attributes) in SoftBusMessage() 26 destEndPoint_(destEndPoint), attributes_(attributes) in SoftBusMessage() 71 auto attributes = Common::MakeShared<Attributes>(attributes_->Serialize()); in CreateMessage() local 72 if (attributes == nullptr) { in CreateMessage() 73 IAM_LOGE("attributes create fail"); in CreateMessage() 77 bool ret = attributes->SetInt32Value(Attributes::ATTR_MSG_SEQ_NUM, messageSeq_); in CreateMessage() 81 ret = attributes->SetBoolValue(Attributes::ATTR_MSG_ACK, true); in CreateMessage() 84 ret = attributes->SetBoolValue(Attributes::ATTR_MSG_ACK, false); in CreateMessage() 88 ret = attributes->SetStringValue(Attributes::ATTR_MSG_SRC_END_POINT, srcEndPoint_); in CreateMessage() 91 ret = attributes in CreateMessage() 22 SoftBusMessage(int32_t messageSeq, const std::string &connectionName, const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes) SoftBusMessage() argument 127 auto attributes = Common::MakeShared<Attributes>(data); ParseMessage() local [all...] |
H A D | soft_bus_base_socket.cpp | 190 ResultCode BaseSocket::SetDeviceNetworkId(const std::string networkId, std::shared_ptr<Attributes> &attributes) in SetDeviceNetworkId() argument 193 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SetDeviceNetworkId() 195 bool setDeviceNetworkIdRet = attributes->SetStringValue(Attributes::ATTR_COLLECTOR_NETWORK_ID, networkId); in SetDeviceNetworkId() 213 const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, in SendRequest() 217 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SendRequest() 222 attributes->GetInt32Value(Attributes::ATTR_MSG_TYPE, msgType); in SendRequest() 225 connectionName, srcEndPoint, destEndPoint, attributes); in SendRequest() 256 const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, in SendResponse() 260 IF_FALSE_LOGE_AND_RETURN_VAL(attributes != nullptr, INVALID_PARAMETERS); in SendResponse() 263 attributes in SendResponse() 212 SendRequest(const int32_t socketId, const std::string &connectionName, const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, MsgCallback &callback) SendRequest() argument 255 SendResponse(const int32_t socketId, const std::string &connectionName, const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, uint32_t messageSeq) SendResponse() argument 303 std::shared_ptr<Attributes> attributes = softBusMessage->ParseMessage(message, messageLen); ParseMessage() local [all...] |
H A D | remote_connect_manager.cpp | 78 const std::shared_ptr<Attributes> &attributes, MsgCallback &callback) in SendMessage() 82 srcEndPoint, destEndPoint, attributes, callback); in SendMessage() 76 SendMessage(const std::string &connectionName, const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, MsgCallback &callback) SendMessage() argument
|
/base/security/asset/services/core_service/src/operations/ |
H A D | operation_add.rs | 103 fn check_accessibity_validity(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_accessibity_validity() 108 attributes.get_enum_attr::<Accessibility>(&Tag::Accessibility).unwrap_or(Accessibility::DeviceFirstUnlocked); in check_accessibity_validity() 122 fn check_persistent_permission(attributes: &AssetMap) -> Result<()> { in check_persistent_permission() 123 if attributes.get(&Tag::IsPersistent).is_some() { in check_persistent_permission() 132 fn check_arguments(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_arguments() 133 common::check_required_tags(attributes, &REQUIRED_ATTRS)?; in check_arguments() 141 common::check_tag_validity(attributes, &valid_tags)?; in check_arguments() 142 common::check_value_validity(attributes)?; in check_arguments() 143 check_accessibity_validity(attributes, calling_info)?; in check_arguments() 144 common::check_system_permission(attributes) in check_arguments() [all...] |
H A D | operation_remove.rs | 39 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments() 45 common::check_tag_validity(attributes, &valid_tags)?; in check_arguments() 46 common::check_value_validity(attributes)?; in check_arguments() 47 common::check_system_permission(attributes) in check_arguments()
|
H A D | operation_pre_query.rs | 31 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()
|
/base/security/asset/services/plugin/src/ |
H A D | asset_plugin.rs | 114 fn get_db_name(attributes: &ExtDbMap, is_ce: bool) -> std::result::Result<String, u32> { in get_db_name() 115 let owner = attributes.get_bytes_attr(&column::OWNER).map_err(|e| e.code as u32)?; in get_db_name() 116 let owner_type = attributes.get_enum_attr::<OwnerType>(&column::OWNER_TYPE).map_err(|e| e.code as u32)?; in get_db_name() 131 fn add(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in add() 132 let db_name = get_db_name(attributes, false)?; in add() 134 db.insert_datas(attributes).map_err(|e| e.code as u32) in add() 138 fn ce_add(&mut self, attributes: &ExtDbMap) -> std::result::Result<i32, u32> { in ce_add() 139 let db_name = get_db_name(attributes, true)?; in ce_add() 141 db.insert_datas(attributes).map_err(|e| e.code as u32) in ce_add() 145 fn replace(&mut self, condition: &ExtDbMap, attributes [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/src/ |
H A D | print_attributes_helper.cpp | 32 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() 159 CreatePageRange(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes) CreatePageRange() argument 169 CreatePageSize(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes) CreatePageSize() argument 179 CreateMargin(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes) CreateMargin() argument [all...] |
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_http_server_manager_test.cpp | 30 R"({"busNum":2,"clazz":0,"configs":[{"attributes":192,"id":1,"interfaces":[{"alternateSetting":0,"clazz":7,)"\ 31 R"("endpoints":[{"address":1,"attributes":2,"direction":0,"interfaceId":0,"interval":0,"maxPacketSize":512,)"\ 32 R"("number":1,"type":2},{"address":129,"attributes":2,"direction":128,"interfaceId":0,"interval":0,)"\ 34 R"("clazz":255,"endpoints":[{"address":2,"attributes":2,"direction":0,"interfaceId":1,"interval":0,)"\ 35 R"("maxPacketSize":512,"number":2,"type":2},{"address":130,"attributes":2,"direction":128,"interfaceId":1,)"\ 37 R"({"alternateSetting":0,"clazz":7,"endpoints":[{"address":3,"attributes":2,"direction":0,"interfaceId":2,)"\ 38 R"("interval":0,"maxPacketSize":512,"number":3,"type":2},{"address":131,"attributes":2,"direction":128,)"\ 40 R"("subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":4,"attributes":2,"direction":0,)"\ 41 R"("interfaceId":3,"interval":0,"maxPacketSize":512,"number":4,"type":2},{"address":132,"attributes":2,)"\ 43 R"("protocol":4,"subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":5,"attributes" [all...] |
H A D | print_usb_manager_test.cpp | 28 R"({"busNum":2,"clazz":0,"configs":[{"attributes":192,"id":1,"interfaces":[{"alternateSetting":0,"clazz":7,)"\ 29 R"("endpoints":[{"address":1,"attributes":2,"direction":0,"interfaceId":0,"interval":0,"maxPacketSize":512,)"\ 30 R"("number":1,"type":2},{"address":129,"attributes":2,"direction":128,"interfaceId":0,"interval":0,)"\ 32 R"("clazz":255,"endpoints":[{"address":2,"attributes":2,"direction":0,"interfaceId":1,"interval":0,)"\ 33 R"("maxPacketSize":512,"number":2,"type":2},{"address":130,"attributes":2,"direction":128,"interfaceId":1,)"\ 35 R"({"alternateSetting":0,"clazz":7,"endpoints":[{"address":3,"attributes":2,"direction":0,"interfaceId":2,)"\ 36 R"("interval":0,"maxPacketSize":512,"number":3,"type":2},{"address":131,"attributes":2,"direction":128,)"\ 38 R"("subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":4,"attributes":2,"direction":0,)"\ 39 R"("interfaceId":3,"interval":0,"maxPacketSize":512,"number":4,"type":2},{"address":132,"attributes":2,)"\ 41 R"("protocol":4,"subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":5,"attributes" [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/include/ |
H A D | print_attributes_helper.h | 32 static napi_value MakeJsObject(napi_env env, const PrintAttributes &attributes); 37 static bool CreatePageRange(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes); 38 static bool CreatePageSize(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes); 39 static bool CreateMargin(napi_env env, napi_value &jsPrintAttributes, const PrintAttributes &attributes);
|
/base/useriam/user_auth_framework/test/fuzztest/services/softbus_fuzzer/ |
H A D | soft_bus_fuzzer.cpp | 74 auto attributes = Common::MakeShared<Attributes>(attr); in FuzzSoftBusBaseSocketSecond() local 76 Common::MakeShared<SoftBusMessage>(0, networkId, networkId, networkId, attributes); in FuzzSoftBusBaseSocketSecond() 96 auto attributes = Common::MakeShared<Attributes>(attr); in FuzzSoftBusBaseSocketFisrst() local 97 std::shared_ptr<Attributes> request = Common::MakeShared<Attributes>(attributes->Serialize()); in FuzzSoftBusBaseSocketFisrst() 99 clientSocket->SendMessage(connectionName, srcEndPoint, destEndPoint, attributes, callback); in FuzzSoftBusBaseSocketFisrst() 101 clientSocket->SendResponse(socketId, connectionName, srcEndPoint, destEndPoint, attributes, messageSeq); in FuzzSoftBusBaseSocketFisrst() 113 clientSocket->SetDeviceNetworkId(networkId, attributes); in FuzzSoftBusBaseSocketFisrst() 140 auto attributes = Common::MakeShared<Attributes>(attr); in FuzzSoftBusServerSocketFisrst() local 142 serverSocket->SendMessage(connectionName, connectionName, connectionName, attributes, callback); in FuzzSoftBusServerSocketFisrst() 166 auto attributes in FuzzSoftBusManagerFisrst() local [all...] |
/base/print/print_fwk/frameworks/ohprint/src/ |
H A D | print_capi.cpp | 111 auto attributes = new (std::nothrow) Print_PrintAttributes; in NewPrintAttributes() local 112 if (attributes == nullptr) { in NewPrintAttributes() 113 PRINT_HILOGE("OH_Print new attributes failed."); in NewPrintAttributes() 116 if (memset_s(attributes, sizeof(Print_PrintAttributes), 0, sizeof(Print_PrintAttributes)) != 0) { in NewPrintAttributes() 117 PRINT_HILOGE("OH_Print attributes memset failed."); in NewPrintAttributes() 118 delete attributes; in NewPrintAttributes() 121 return attributes; in NewPrintAttributes() 497 std::unique_ptr<Print_PrintAttributes> attributes(attributesRaw); in BuildPrintAttributes() 498 attributes->copyNumber = attrs.GetCopyNumber(); in BuildPrintAttributes() 514 attributes in BuildPrintAttributes() 562 auto attributes = std::make_shared<PrintAttributes>(); OH_Print_StartPrintByNative() local [all...] |
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
H A D | executor_messenger_stub.cpp | 83 std::vector<uint8_t> attributes; in FinishStub() local 93 if (!data.ReadUInt8Vector(&attributes)) { in FinishStub() 94 IAM_LOGE("read attributes failed"); in FinishStub() 97 auto finalResult = Common::MakeShared<Attributes>(attributes); in FinishStub()
|
/base/useriam/user_auth_framework/services/remote_connect/inc/ |
H A D | soft_bus_base_socket.h | 28 #include "attributes.h" 50 const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, MsgCallback &callback) = 0; 52 const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, 55 const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr<Attributes> &attributes, 89 ResultCode SetDeviceNetworkId(const std::string networkId, std::shared_ptr<Attributes> &attributes);
|
/base/web/webview/ohos_adapter/print_manager_adapter/src/ |
H A D | print_manager_adapter_impl.cpp | 57 auto attributes = std::make_shared<OHOS::Print::PrintAttributes>(); in Print() local 58 if (!attributes) { in Print() 59 WVLOG_E("attributes get failed"); in Print() 62 int32_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() 90 WVLOG_E("attributes get failed"); in Print() 94 OHOS::Print::PrintManagerClient::GetInstance()->Print(printJobName, iCallback, attributes, contextToken); in Print()
|
/base/useriam/user_auth_framework/test/fuzztest/services/context/remoteauthcontext_fuzzer/ |
H A D | remote_auth_context_fuzzer.cpp | 26 #include "attributes.h" 222 void FillIAttributes(Parcel &parcel, Attributes &attributes) in FillIAttributes() argument 229 attributes.SetUint64Value(Attributes::ATTR_TEMPLATE_ID, parcel.ReadUint64()); in FillIAttributes() 230 attributes.SetUint64Value(Attributes::ATTR_CALLER_UID, parcel.ReadUint64()); in FillIAttributes() 231 attributes.SetUint32Value(Attributes::ATTR_PROPERTY_MODE, parcel.ReadUint32()); in FillIAttributes() 234 attributes.GetUint64ArrayValue(Attributes::ATTR_TEMPLATE_ID_LIST, templateIdList); in FillIAttributes() 237 attributes.GetUint64ArrayValue(Attributes::ATTR_EXTRA_INFO, templateIdList); in FillIAttributes() 238 attributes.SetUint64Value(Attributes::ATTR_CALLER_UID, parcel.ReadUint64()); in FillIAttributes() 239 attributes.SetUint32Value(Attributes::ATTR_SCHEDULE_MODE, parcel.ReadUint32()); in FillIAttributes()
|
/base/security/asset/interfaces/kits/c/src/ |
H A D | asset_api.c | 21 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/security/asset/frameworks/c/system_api/src/ |
H A D | asset_system_api.c | 23 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/frameworks/native/executors/src/async_command/ |
H A D | custom_command.cpp | 36 CustomCommand::CustomCommand(std::weak_ptr<Executor> executor, const Attributes &attributes) in CustomCommand() argument 38 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())) in CustomCommand()
|
H A D | collect_command.cpp | 31 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in CollectCommand() 33 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in CollectCommand() 30 CollectCommand(std::weak_ptr<Executor> executor, uint64_t scheduleId, const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) CollectCommand() argument
|
H A D | identify_command.cpp | 29 const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) in IdentifyCommand() 31 attributes_(Common::MakeShared<Attributes>(attributes.Serialize())), in IdentifyCommand() 28 IdentifyCommand(std::weak_ptr<Executor> executor, uint64_t scheduleId, const Attributes &attributes, std::shared_ptr<ExecutorMessenger> executorMessenger) IdentifyCommand() argument
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
H A D | usb_config.h | 32 USBConfig(uint32_t id, uint32_t attributes, std::string name, uint32_t maxPower, in USBConfig() argument 36 this->attributes_ = attributes; in USBConfig() 48 attributes_ = static_cast<uint32_t>(GetIntValue(config, "attributes")); in USBConfig() 150 void SetAttribute(uint32_t attributes) in SetAttribute() argument 152 this->attributes_ = attributes; in SetAttribute() 166 << "attributes=" << attributes_ << "," in ToString() 200 cJSON_AddNumberToObject(config, "attributes", static_cast<double>(attributes_)); in getJsonString()
|
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/ |
H A D | user_auth_callback_interface.h | 23 #include "attributes.h" 41 virtual void OnGetExecutorPropertyResult(int32_t result, const Attributes &attributes) = 0;
|
/base/security/asset/interfaces/inner_kits/c/src/ |
H A D | lib.rs | 30 fn into_map(attributes: *const AssetAttr, attr_cnt: u32) -> Option<AssetMap> { in into_map() 31 if attributes.is_null() && attr_cnt != 0 { in into_map() 36 loge!("[FATAL][RUST SDK]Number of attributes exceeds limit."); in into_map() 43 let attr = attributes.add(i as usize); in into_map() 72 pub extern "C" fn add_asset(attributes: *const AssetAttr, attr_cnt: u32) -> i32 { in add_asset() 73 let map = match into_map(attributes, attr_cnt) { in add_asset()
|