/base/hiviewdfx/hiview/plugins/faultlogger/test/common/ |
H A D | faultlogger_client_test.cpp | 22 #include <string> 27 std::string GetFaultLogName(const time_t& time, int32_t id, const std::string& type, const std::string& module) in GetFaultLogName() 39 auto fileName = type + "-" + module + "-" + std::to_string(id) + "-" + std::string(buf, strlen(buf)); in GetFaultLogName() 43 FaultLogInfoInner CreateFaultLogInfo(const time_t& time, int32_t id, int32_t type, const std::string& module) in CreateFaultLogInfo() 61 bool CheckLogFileExist(const time_t& time, int32_t id, const std::string& type, const std::string& module) in CheckLogFileExist()
|
/base/global/resource_management/dfx/hisysevent_adapter/ |
H A D | hisysevent_adapter.cpp | 24 void ReportInitResourceManagerFail(const std::string& bundleName, const std::string& errMsg)
in ReportInitResourceManagerFail() 36 void ReportGetResourceByIdFail(int32_t resId, const std::string& result, const std::string& errMsg)
in ReportGetResourceByIdFail() 50 void ReportGetResourceByNameFail(const std::string& resName, const std::string& result, const std::string& errMsg)
in ReportGetResourceByNameFail() 64 void ReportAddResourcePathFail(const char* resourcePath, const std::string& errMsg)
in ReportAddResourcePathFail()
|
/base/customization/enterprise_device_management/interfaces/inner_api/system_manager/include/ |
H A D | update_policy_utils.h | 19 #include <string> 56 std::string version; 61 std::string path; 67 std::string installTips; 68 std::string installTipsDetail; 76 std::string version; 82 std::string version; 85 std::string errorMessage;
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dfx_maps.h | 20 #include <string> 33 static std::shared_ptr<DfxMaps> Create(pid_t pid, const std::string& path); 36 static bool IsArkHapMapItem(const std::string& name); 37 static bool IsArkCodeMapItem(const std::string& name); 38 static bool IsLegalMapItem(const std::string& name, bool withArk = true); 45 bool FindMapByFileInfo(std::string name, uint64_t offset, std::shared_ptr<DfxMap>& map) const; 46 bool FindMapsByName(std::string name, std::vector<std::shared_ptr<DfxMap>>& maps) const; 55 bool Parse(const pid_t pid, const std::string& path);
|
/base/global/i18n_lite/frameworks/i18n/include/ |
H A D | plural_format_impl.h | 39 bool ParseRule(const std::string &rule, const int ruleSize, const int number) const;
40 bool ParseFormula(const std::string &rule, const int ruleSize, int &index, const int number) const;
41 bool CompareResult(const std::string &rule, const int ruleSize, int &index, const int number) const;
42 bool CompareNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int number) const;
43 int ParseNumber(const std::string &rule, const int ruleSize, int &index) const;
44 bool ParseDecimalRule(const std::string &rule, const int ruleSize, const int *numberInfo,
46 bool ParseDecimalFormula(const std::string &rule, const int ruleSize, int &index, const int *numberInfo,
49 PluralRules *InitPluralRules(std::string unprocessedPluralData);
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | test_common.cpp | 33 std::string FormatFullPath(const char *fileRelativePath) in FormatFullPath() 36 std::string result(value); in FormatFullPath() 54 void PrintMapString(const std::map<std::string, std::string> &value) in PrintMapString() 58 std::string key = iter->first; in PrintMapString() 59 std::string val = iter->second; in PrintMapString() 64 void PrintVectorString(const std::vector<std::string> &value) in PrintVectorString() 67 std::string val = value[i]; in PrintVectorString()
|
/base/customization/enterprise_device_management/services/edm_plugin/include/ |
H A D | usb_read_only_plugin.h | 31 void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGlobalChanged, 33 ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId) override; 34 void OnAdminRemoveDone(const std::string &adminName, const std::string ¤tJsonData, int32_t userId) override{}; 35 ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t userId) override; 39 bool HasConflictPolicy(int32_t accessPolicy, const std::string &allowUsbDevice); 42 ErrCode DealReadPolicy(int32_t accessPolicy, const std::string &allowUsbDevice,
|
/base/powermgr/power_manager/services/native/src/runninglock/ |
H A D | running_lock_proxy.h | 34 using WksMap = std::map<int32_t, std::pair<std::string, bool>>; 37 using RunningLockProxyMap = std::map<std::string, TokenWorkSourceMap>; 44 const std::map<int32_t, std::string>& workSources); 48 std::string DumpProxyInfo(); 52 std::string AssembleProxyKey(pid_t pid, pid_t uid); 53 void ProxyInner(const sptr<IRemoteObject>& remoteObj, const std::string& bundleNames, RunningLockEvent event); 54 std::string GetRunningLockName(const sptr<IRemoteObject>& remoteObj); 55 std::string MergeBundleName(const WksMap& wksMap);
|
/base/print/print_fwk/interfaces/kits/napi/print_napi/include/ |
H A D | napi_print_ext.h | 55 std::vector<std::string> printerIds; 57 std::string printerId = ""; 60 std::string printJobId = ""; 64 std::string extensionId = ""; 65 std::string extInfo = ""; 67 std::string printerUri = ""; 68 std::string printerName = ""; 69 std::string printerMake = "";
|
/base/powermgr/thermal_manager/services/zidl/include/ |
H A D | thermal_srv_proxy.h | 43 const std::vector<std::string>& typeList, const sptr<IThermalTempCallback>& callback) override; 47 virtual bool SubscribeThermalActionCallback(const std::vector<std::string>& actionList, const std::string& desc, 53 virtual bool SetScene(const std::string& scene) override; 54 virtual bool UpdateThermalState(const std::string& tag, const std::string& val, bool isImmed = false) override; 55 virtual std::string ShellDump(const std::vector<std::string>& args, uint32_t argc) override;
|
/base/print/print_fwk/services/print_service/src/ |
H A D | print_security_guard_manager.cpp | 20 static std::string VERSION = "1.0"; 22 void PrintSecurityGuardManager::receiveBaseInfo(const std::string jobId, const std::string callPkg, in receiveBaseInfo() 23 const std::vector<std::string> &fileList) in receiveBaseInfo() 30 void PrintSecurityGuardManager::receiveJobStateUpdate(const std::string jobId, const PrinterInfo &printerInfo, in receiveJobStateUpdate() 47 void PrintSecurityGuardManager::clearSecurityMap(const std::string jobId) in clearSecurityMap() 52 void PrintSecurityGuardManager::ReportSecurityInfo(const int32_t eventId, const std::string version, in ReportSecurityInfo() 53 const std::string content) in ReportSecurityInfo()
|
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_ipp_over_usb_manager_test.cpp | 55 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 69 std::string printerId = "com.ohos.spoolerUSB-PixLab V1-0159"; in HWTEST_F() 83 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; in HWTEST_F() 97 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 111 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F() 124 std::string printerId = "com.ohos.spoolerUSB-PixLab V1-0159"; in HWTEST_F() 137 std::string printerId = "com.ohos.test:USB-PixLab V1-0159"; in HWTEST_F() 150 std::string printerId = "com.ohos.spooler:USB-PixLab V1-0159"; in HWTEST_F()
|
/base/request/request/services/src/cxx/ |
H A D | request_utils.cpp | 53 rust::string GetCallingBundle(rust::u64 tokenId) in GetCallingBundle() 58 return rust::string(""); in GetCallingBundle() 64 return rust::string(""); in GetCallingBundle() 66 return rust::string(info.bundleName); in GetCallingBundle() 76 auto perm = std::string(permission); in CheckPermission() 97 want.SetBundle(std::string(bundleName)); in PublishStateChangeEvent() 99 std::string data = std::to_string(taskId); in PublishStateChangeEvent() 102 publishInfo.SetBundleName(std::string(bundleName)); in PublishStateChangeEvent()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
H A D | mock_notification_analytics_util.cpp | 49 HaMetaMessage& HaMetaMessage::Message(const std::string& message, bool print) in Message() 61 HaMetaMessage& HaMetaMessage::BundleName(const std::string& bundleName) in BundleName() 67 HaMetaMessage& HaMetaMessage::AgentBundleName(const std::string& agentBundleName) in AgentBundleName() 85 std::string HaMetaMessage::GetMessage() const in GetMessage() 96 std::string HaMetaMessage::Build() const in Build() 98 return std::string(""); in Build() 120 EventFwk::Want want, int32_t eventCode, const std::string& reason) in ReportNotificationEvent() 136 int32_t eventCode, const std::string& reason) in ReportNotificationEvent()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | bundle_manager_helper.h | 21 #include <string> 41 std::string GetBundleNameByUid(int32_t uid); 66 int32_t GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId); 76 int32_t GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId, const int32_t appIndex); 86 bool GetBundleInfoByBundleName(const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo); 96 bool GetDistributedNotificationEnabled(const std::string &bundleName, const int32_t userId); 108 bool GetBundleInfo(const std::string &bundleName, const AppExecFwk::BundleFlag flag, 135 bool CheckApiCompatibility(const std::string &bundleName, const int32_t &uid);
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_subscribe_info.cpp | 18 #include <string> // for basic_string, operator+ 40 void NotificationSubscribeInfo::AddAppName(const std::string appName) in AddAppName() 45 void NotificationSubscribeInfo::AddAppNames(const std::vector<std::string> &appNames) in AddAppNames() 50 std::vector<std::string> NotificationSubscribeInfo::GetAppNames() const in GetAppNames() 65 void NotificationSubscribeInfo::AddDeviceType(const std::string deviceType) in AddDeviceType() 70 std::string NotificationSubscribeInfo::GetDeviceType() const in GetDeviceType() 126 std::string NotificationSubscribeInfo::Dump() in Dump() 128 std::string appNames = ""; in Dump()
|
/base/security/access_token/frameworks/js/napi/common/src/ |
H A D | napi_error.cpp | 21 static const std::map<uint32_t, std::string> g_errorStringMap = { 44 std::string GetParamErrorMsg(const std::string& param, const std::string& type) in GetParamErrorMsg() 46 std::string msg = "Parameter Error. The type of \"" + param + "\" must be " + type + "."; in GetParamErrorMsg() 50 std::string GetErrorMessage(uint32_t errCode) in GetErrorMessage() 56 std::string errMsg = "Unknown error, errCode + " + std::to_string(errCode) + "."; in GetErrorMessage() 60 napi_value GenerateBusinessError(napi_env env, int32_t errCode, const std::string& errMsg) in GenerateBusinessError()
|
/base/security/access_token/services/el5filekeymanager/include/ |
H A D | el5_filekey_manager_service.h | 46 int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) override; 47 int32_t DeleteAppKey(const std::string& bundleName, int32_t userId) override; 49 std::vector<std::pair<int32_t, std::string>> &keyInfos) override; 50 int32_t ChangeUserAppkeysLoadInfo(int32_t userId, std::vector<std::pair<std::string, bool>> &loadInfos) override; 55 int32_t HandleUserCommonEvent(const std::string &eventName, int32_t userId); 65 bool VerifyNativeCallingProcess(const std::string &validCaller, const AccessTokenID &callerTokenId); 66 bool VerifyHapCallingProcess(int32_t userId, const std::string &validCaller, const AccessTokenID &callerTokenId);
|
/base/security/security_guard/test/unittest/mock/preferences/ |
H A D | preferences_helper.h | 21 #include <string> 30 Options(const std::string inputFilePath) : filePath(inputFilePath) in Options() 38 Options(const std::string &inputFilePath, const std::string &inputbundleName, const std::string &inputdataGroupId) in Options() 44 std::string filePath{ "" }; 45 std::string bundleName{ "" }; 46 std::string dataGroupId{ "" };
|
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_perm_manager.h | 42 int32_t GrantAppPermission(AccessToken::AccessTokenID tokenId, const std::string& permissionName); 43 int32_t RevokeAppPermission(AccessToken::AccessTokenID tokenId, const std::string& permissionName); 53 bool DelaySaveRevokePermission(AccessToken::AccessTokenID tokenId, const std::string& taskName); 54 bool RevokeSavePermissionTask(const std::string& taskName); 59 const std::string& permissionName); 61 const std::string& permissionName); 64 std::unordered_map<AccessToken::AccessTokenID, std::deque<std::string>> saveTaskDequeMap_; 69 std::unordered_map<int32_t, std::set<std::string>> grantMap_;
|
/base/telephony/cellular_call/services/utils/src/ |
H A D | emergency_utils.cpp | 26 int32_t EmergencyUtils::IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled) in IsEmergencyCall() 33 if (phoneNum.find('@') != std::string::npos || phoneNum.find("%40") != std::string::npos) { in IsEmergencyCall() 46 int32_t EmergencyUtils::IsEmergencyCallProcessing(int32_t slotId, const std::string &formatString, bool &enabled) in IsEmergencyCallProcessing() 52 std::string countryIsoCode = dependDataObtain.GetNetworkCountryCode(slotId); in IsEmergencyCallProcessing() 54 std::string mcc = config.GetMcc(slotId); in IsEmergencyCallProcessing() 57 std::vector<std::string> eccList = { "110", "120", "119", "122", "112", "000", "911", "08", "118", "999" }; in IsEmergencyCallProcessing() 58 if (std::any_of(eccList.begin(), eccList.end(), [&formatString](std::string eccNum) { in IsEmergencyCallProcessing()
|
/base/telephony/cellular_data/services/include/utils/ |
H A D | cellular_data_rdb_helper.h | 40 bool QueryApns(const std::string &mcc, const std::string &mnc, std::vector<PdpProfile> &apnVec, int32_t slotId); 41 bool QueryMvnoApnsByType(const std::string &mcc, const std::string &mnc, const std::string &mvnoType, 42 const std::string &mvnoDataFromSim, std::vector<PdpProfile> &mvnoApnVec, int32_t slotId); 54 const std::string &mvnoDataFromSim, std::vector<PdpProfile> &apnVec); 55 bool IsMvnoDataMatched(const std::string &mvnoDataFromSim, const PdpProfile &apnBean);
|
/base/telephony/sms_mms/services/sms/include/ |
H A D | sms_receive_reliability_handler.h | 30 std::string GetSmsExpire(); 34 bool CheckBlockedPhoneNumber(std::string originatingAddress); 36 const std::shared_ptr<SmsReceiveIndexer> indexer, const std::shared_ptr<std::vector<std::string>> pdus); 43 SmsReceiveIndexer &indexer, std::shared_ptr<std::vector<std::string>> userDataRaws); 45 std::shared_ptr<std::vector<std::string>> userDataRaws); 46 void ReadyDecodeWapPushUserData(SmsReceiveIndexer &indexer, std::shared_ptr<std::vector<std::string>> userDataRaws); 48 std::shared_ptr<std::vector<std::string>> pdus); 49 void ReadySendSmsBroadcast(SmsReceiveIndexer &indexerObj, std::shared_ptr<std::vector<std::string>> pdus);
|
/base/telephony/core_service/utils/vcard/src/contact_data/ |
H A D | vcard_sip_data.cpp | 48 void VCardSipData::InitSipData(std::string rawSip, int32_t type, std::string label) in InitSipData() 59 void VCardSipData::SetAddress(const std::string &address) in SetAddress() 64 std::string VCardSipData::GetAddress() in GetAddress() 69 void VCardSipData::SetLabelId(const std::string &labelId) in SetLabelId() 74 std::string VCardSipData::GetLabelId() in GetLabelId() 79 void VCardSipData::SetLabelName(const std::string &labelName) in SetLabelName() 84 std::string VCardSipData::GetLabelName() in GetLabelName()
|
H A D | vcard_phone_data.cpp | 46 void VCardPhoneData::InitPhoneData(std::string data, int32_t type, std::string label, bool isPrimary) in InitPhoneData() 53 std::string VCardPhoneData::GetNumber() in GetNumber() 58 void VCardPhoneData::SetNumber(const std::string &number) in SetNumber() 63 std::string VCardPhoneData::GetLabelId() in GetLabelId() 68 void VCardPhoneData::SetLabelId(const std::string &labelId) in SetLabelId() 73 std::string VCardPhoneData::GetLabelName() in GetLabelName() 78 void VCardPhoneData::SetLabelName(const std::string &labelName) in SetLabelName()
|