/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/ |
H A D | object_asset_loader.cpp | 38 bool ObjectAssetLoader::Transfer(const int32_t userId, const std::string& bundleName, const std::string& deviceId, in Transfer() 48 [block](const std::string& uri, int32_t status) { in Transfer() 67 void ObjectAssetLoader::TransferAssetsAsync(const int32_t userId, const std::string& bundleName, in TransferAssetsAsync() 68 const std::string& deviceId, const std::vector<DistributedData::Asset>& assets, const TransferFunc& callback) in TransferAssetsAsync() 101 downloading_.ComputeIfAbsent(asset.uri, [asset](const std::string& key) { in TransferAssetsAsync() 118 void ObjectAssetLoader::FinishTask(const std::string& uri, bool result) in FinishTask() 136 downloaded_.ComputeIfAbsent(asset.uri, [asset](const std::string& key) { in UpdateDownloaded() 170 ObjectStore::RadarReporter::ReportStage(std::string(__FUNCTION__), ObjectStore::SAVE, in PushAsset() 179 ObjectStore::RadarReporter::ReportStateError(std::string(__FUNCTION_ in PushAsset() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/sync_fuzzer/ |
H A D | sync_fuzzer.cpp | 40 const std::string DEVICE_B = "deviceB"; 41 const std::string STORE_ID = "kv_strore_sync_test"; 115 std::vector<std::string> devices; in NormalSyncPush() 117 std::map<std::string, DBStatus> result; in NormalSyncPush() 148 std::vector<std::string> devices; in NormalSyncPull() 150 std::map<std::string, DBStatus> result; in NormalSyncPull() 171 std::vector<std::string> devices; in NormalSyncPushAndPull() 173 std::map<std::string, DBStatus> result; in NormalSyncPushAndPull() 191 std::vector<std::string> devices; in SubscribeOperation() 215 std::string tmpIdentifie in OtherOperation() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/distributedhardwarefwkkit/src/ |
H A D | distributed_hardware_fwk_kit_test.cpp | 35 std::map<DHTopic, std::string> TOPIC_MSGS = { 41 const std::string DHARDWARE_PROC_NAME = "dhardware"; 64 void DistributedHardwareFwkKitTest::TestPublisherListener::OnMessage(const DHTopic topic, const std::string& message) in OnMessage() 129 std::string message; in HWTEST_F() 145 std::string message; in HWTEST_F() 161 std::string message = "TOPIC_STOP_DSCREEN"; in HWTEST_F() 177 std::string message; in HWTEST_F() 279 std::string ret = dhfwkPtr_->QueryLocalSysSpec(spec); in HWTEST_F() 295 std::string ret = dhfwkPtr_->QueryLocalSysSpec(spec); in HWTEST_F() 344 std::string peerDevI in HWTEST_F() [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/backupext_fuzzer/ |
H A D | backupext_fuzzer.cpp | 79 want.SetElementName(string(reinterpret_cast<const char*>(data + pos), len), in OnCommandFuzzTest() 80 string(reinterpret_cast<const char*>(data + pos + len), len)); in OnCommandFuzzTest() 90 want.SetElementName(string(reinterpret_cast<const char*>(data), len), in OnConnectFuzzTest() 91 string(reinterpret_cast<const char*>(data + len), size - len)); in OnConnectFuzzTest() 112 function<void(ErrCode, string)> callback; in OnRestoreFuzzTest() 113 function<void(ErrCode, const string)> callbackEx; in OnRestoreFuzzTest() 120 function<void(ErrCode, string)> callback = nullptr; in GetBackupInfoFuzzTest() 145 string result = string(reinterpret_cast<const char*>(data), size); in InvokeAppExtMethodFuzzTest() 162 msg.WriteString(string(reinterpret_cas in CmdGetFileHandleFuzzTest() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_system_event_processer.cpp | 26 HfpAgSystemEventProcesser::HfpAgSystemEventProcesser(HfpAgProfile &profile, const std::string &address) in HfpAgSystemEventProcesser() 154 void HfpAgSystemEventProcesser::ProcessDialOutCallEvent(const std::string &number, int dialType) in ProcessDialOutCallEvent() 156 std::string dialNumber; in ProcessDialOutCallEvent() 199 std::string strValue("bt_headset_nrec+"); in ProcessNoiseReductionEvent() 211 std::string strValue("bt_wbs+"); in ProcessWideBandSpeechEvent() 247 std::string number = systemInterface_.GetSubscriberNumber(); in GetSubscriberNumber() 309 std::string networkOperator = systemInterface_.GetNetworkOperator(); in GetNetworkOperator() 322 void HfpAgSystemEventProcesser::ProcessAtUnknownEvent(const std::string &atString) const in ProcessAtUnknownEvent() 328 void HfpAgSystemEventProcesser::ProcessATBindEvent(const std::string &atString) const in ProcessATBindEvent() 364 void HfpAgSystemEventProcesser::GetResponseHoldState(std::string addres [all...] |
/foundation/filemanagement/user_file_service/utils/ |
H A D | file_util.h | 84 static int CheckFsStatByPath(const string &path, uv_fs_t* req)
in CheckFsStatByPath() 94 static bool GetStat(const string &path, StatEntity &statEntity)
in GetStat() 110 static bool CheckDir(const string &path)
in CheckDir() 121 static tuple<bool, int> Access(const string &path)
in Access() 137 static bool Mkdir(const string &path)
in Mkdir() 155 static int CopyAndDeleteFile(const string &src, const string &dest)
in CopyAndDeleteFile() 200 static int RenameFile(const string &src, const string &dest)
in RenameFile() 220 static NError RmDirent(const string [all...] |
/test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
H A D | mock_idevice.cpp | 15 #include <string> 29 void PrintRetLog(int32_t ret, int32_t nnrtSuccess, const std::string& makeName) in PrintRetLog() 41 std::string deviceName; in HDIDeviceV2_0Creator() 42 std::string vendorName; in HDIDeviceV2_0Creator() 43 std::string version; in HDIDeviceV2_0Creator() 55 std::string makeName = "Get device name"; in HDIDeviceV2_0Creator() 62 std::string makeName = "Get vendor name"; in HDIDeviceV2_0Creator() 70 std::string makeName = "Get version"; in HDIDeviceV2_0Creator() 75 const std::string& backendName = GenUniqueName(deviceName, vendorName, version); in HDIDeviceV2_0Creator() 83 std::shared_ptr<Backend> backend = std::make_shared<NNBackend>(device, std::hash<std::string>{}(backendNam in HDIDeviceV2_0Creator() [all...] |
/test/xts/acts/ai/nncore/opstest/src/ |
H A D | mock_idevice.cpp | 15 #include <string> 29 void PrintRetLog(int32_t ret, int32_t nnrtSuccess, const std::string& makeName) in PrintRetLog() 41 std::string deviceName; in HDIDeviceV2_1Creator() 42 std::string vendorName; in HDIDeviceV2_1Creator() 43 std::string version; in HDIDeviceV2_1Creator() 55 std::string makeName = "Get device name"; in HDIDeviceV2_1Creator() 62 std::string makeName = "Get vendor name"; in HDIDeviceV2_1Creator() 70 std::string makeName = "Get version"; in HDIDeviceV2_1Creator() 75 const std::string& backendName = GenUniqueName(deviceName, vendorName, version); in HDIDeviceV2_1Creator() 83 std::shared_ptr<Backend> backend = std::make_shared<NNBackend>(device, std::hash<std::string>{}(backendNam in HDIDeviceV2_1Creator() [all...] |
/test/xts/acts/ai/nncore/common/ |
H A D | mock_idevice.cpp | 15 #include <string> 29 void PrintRetLog(int32_t ret, int32_t nnrtSuccess, const std::string& makeName) in PrintRetLog() 41 std::string deviceName; in HDIDeviceV2_0Creator() 42 std::string vendorName; in HDIDeviceV2_0Creator() 43 std::string version; in HDIDeviceV2_0Creator() 55 std::string makeName = "Get device name"; in HDIDeviceV2_0Creator() 62 std::string makeName = "Get vendor name"; in HDIDeviceV2_0Creator() 70 std::string makeName = "Get version"; in HDIDeviceV2_0Creator() 75 const std::string& backendName = GenUniqueName(deviceName, vendorName, version); in HDIDeviceV2_0Creator() 83 std::shared_ptr<Backend> backend = std::make_shared<NNBackend>(device, std::hash<std::string>{}(backendNam in HDIDeviceV2_0Creator() [all...] |
/foundation/ability/idl_tool/idl_tool_2/codegen/HDI/cpp/ |
H A D | cpp_service_stub_code_emitter.cpp | 22 bool CppServiceStubCodeEmitter::ResolveDirectory(const std::string &targetDirectory)
in ResolveDirectory() 48 std::string filePath =
in EmitStubHeaderFile() 62 std::string data = sb.ToString();
in EmitStubHeaderFile() 109 void CppServiceStubCodeEmitter::EmitStubBody(StringBuilder &sb, const std::string &prefix) const
in EmitStubBody() 121 void CppServiceStubCodeEmitter::EmitStubConstructorDecl(StringBuilder &sb, const std::string &prefix) const
in EmitStubConstructorDecl() 127 void CppServiceStubCodeEmitter::EmitStubOnRequestDecl(StringBuilder &sb, const std::string &prefix) const
in EmitStubOnRequestDecl() 133 void CppServiceStubCodeEmitter::EmitStubMethodDecls(StringBuilder &sb, const std::string &prefix) const
in EmitStubMethodDecls() 158 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitStubMethodDecl() 166 const AutoPtr<ASTMethod> &method, StringBuilder &sb, const std::string &prefix) const
in EmitStubStaticMethodDecl() 175 void CppServiceStubCodeEmitter::EmitStubPrivateData(StringBuilder &sb, const std::string [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/declaration/textfield/ |
H A D | textfield_declaration.h | 34 std::string value; 35 std::string placeholder; 36 std::string inputFilter; 63 std::string actionLabel; 66 std::string iconImage; 70 std::string showImage; 71 std::string hideImage; 160 bool SetSpecializedAttr(const std::pair<std::string, std::string>& attr) override; 161 bool SetSpecializedStyle(const std::pair<std::string, st [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_rdb.cpp | 37 bmsRdbConfig.createTableSql = std::string( in BundleResourceRdb() 39 + std::string(BundleResourceConstants::BUNDLE_RESOURCE_RDB_TABLE_NAME) in BundleResourceRdb() 42 bmsRdbConfig.insertColumnSql.push_back(std::string("ALTER TABLE " + in BundleResourceRdb() 43 std::string(BundleResourceConstants::BUNDLE_RESOURCE_RDB_TABLE_NAME) + in BundleResourceRdb() 45 bmsRdbConfig.insertColumnSql.push_back(std::string("ALTER TABLE " + in BundleResourceRdb() 46 std::string(BundleResourceConstants::BUNDLE_RESOURCE_RDB_TABLE_NAME) + in BundleResourceRdb() 134 bool BundleResourceRdb::DeleteResourceInfo(const std::string &key) in DeleteResourceInfo() 146 if (key.find(ServiceConstants::PATH_SEPARATOR) == std::string::npos) { in DeleteResourceInfo() 159 bool BundleResourceRdb::GetAllResourceName(std::vector<std::string> &keyNames) in GetAllResourceName() 162 std::string systemStat in GetAllResourceName() [all...] |
/foundation/communication/netstack/frameworks/js/napi/http/async_context/src/ |
H A D | request_context.cpp | 21 #include <string> 247 std::for_each(names.begin(), names.end(), [header, this](const std::string &name) { in ParseHeader() 249 std::string valueStr = NapiUtils::NapiValueToString(GetEnv(), value); in ParseHeader() 256 std::string url = options.GetUrl(); in HandleMethodForGet() 257 std::string param; in HandleMethodForGet() 259 if (index != std::string::npos) { in HandleMethodForGet() 266 std::string extraParam = NapiUtils::GetStringFromValueUtf8(GetEnv(), extraData); in HandleMethodForGet() 275 std::string extraParam; in HandleMethodForGet() 277 std::for_each(names.begin(), names.end(), [this, extraData, &extraParam](std::string name) { in HandleMethodForGet() 340 std::string hos in ParseUsingHttpProxy() [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_kit_inner/src/ |
H A D | service_proxy.cpp | 53 string str = "Failed to send out the request because of " + to_string(ret); in InitRestoreSession() 80 string str = "Failed to send out the request because of " + to_string(ret); in InitBackupSession() 100 string str = "Failed to send out the request because of " + to_string(ret); in Start() 151 string str = "Failed to send out the request because of " + to_string(ret); in PublishFile() 157 ErrCode ServiceProxy::AppFileReady(const string &fileName, UniqueFd fd, int32_t errCode) in AppFileReady() 183 string str = "Failed to send out the request because of " + to_string(ret); in AppFileReady() 207 string str = "Failed to send out the request because of " + to_string(ret); in AppDone() 213 ErrCode ServiceProxy::ServiceResultReport(const std::string restoreRetInfo, in ServiceResultReport() 237 string str = "Failed to send out the request because of " + to_string(ret); in ServiceResultReport() 243 ErrCode ServiceProxy::GetFileHandle(const string [all...] |
/foundation/filemanagement/app_file_service/services/backup_sa/src/module_ipc/ |
H A D | service_incremental.cpp | 57 const std::string FILE_BACKUP_EVENTS = "FILE_BACKUP_EVENTS"; 63 const static string UNICAST_TYPE = "unicast"; 128 string path = BConstants::GetSaBundleBackupRootDir(GetUserIdDefault()); in GetLocalCapabilitiesIncremental() 163 void Service::StartGetFdTask(std::string bundleName, wptr<Service> ptr) in StartGetFdTask() 195 string path = BConstants::GetSaBundleBackupRootDir(session->GetSessionUserId()). in StartGetFdTask() 224 std::string bundleName = VerifyCallerAndGetCallerName(); in GetAppLocalListAndDoIncrementalBackup() 276 vector<string> Service::GetBundleNameByDetails(const std::vector<BIncrementalData> &bundlesToBackup) in GetBundleNameByDetails() 278 vector<string> bundleNames {}; in GetBundleNameByDetails() 295 vector<string> bundleNames = GetBundleNameByDetails(bundlesToBackup); in AppendBundlesIncrementalBackupSession() 302 std::string bundleNameIndexInf in AppendBundlesIncrementalBackupSession() [all...] |
/foundation/filemanagement/user_file_service/services/native/file_access_service/src/ |
H A D | file_access_service.cpp | 36 const std::string FILE_SCHEME = "file://"; 104 static bool IsParentUri(const string &comparedUriStr, string &srcUriStr) in IsParentUri() 111 if (slashIndex != string::npos) { in IsParentUri() 119 static bool IsChildUri(const string &comparedUriStr, string &srcUriStr) in IsChildUri() 126 if (slashIndex != string::npos) { in IsChildUri() 148 static bool GetBundleNameFromUri(Uri &uri, string &bundleName) in GetBundleNameFromUri() 150 string scheme = uri.GetScheme(); in GetBundleNameFromUri() 154 string pat in GetBundleNameFromUri() [all...] |
/applications/standard/contacts_data/dataBusiness/contacts/src/ |
H A D | contacts_database.cpp | 47 static std::string g_databaseName; 143 int64_t ContactsDataBase::InsertRawContact(std::string table, OHOS::NativeRdb::ValuesBucket rawContactValues) in InsertRawContact() 169 std::string contactIdKey = RawContactColumns::CONTACT_ID; in InsertRawContact() 171 std::string upWhereClause; in InsertRawContact() 173 std::vector<std::string> upWhereArgs; in InsertRawContact() 210 std::string tempString; in GetContactByValue() 226 int64_t ContactsDataBase::InsertContactData(std::string table, OHOS::NativeRdb::ValuesBucket contactDataValues) in InsertContactData() 245 std::string typeText; in InsertContactData() 266 std::vector<std::string> typeTextVector; in InsertContactData() 280 OHOS::NativeRdb::ValuesBucket &contactDataValues, int &typeId, int &rawContactId, std::string in GetTypeText() [all...] |
/foundation/communication/netmanager_base/test/fuzztest/netsysclient_fuzzer/ |
H A D | net_sys_client_fuzzer.cpp | 57 std::string NetSysGetString(int strlen) in NetSysGetString() 64 std::string str(cstr); in NetSysGetString() 191 std::string iface = NetSysGetString(STR_LEN); in NetworkAddInterfaceFuzzTest() 206 std::string iface = NetSysGetString(STR_LEN); in NetworkRemoveInterfaceFuzzTest() 222 std::string ifName = NetSysGetString(STR_LEN); in NetworkAddRouteFuzzTest() 223 std::string destination = NetSysGetString(STR_LEN); in NetworkAddRouteFuzzTest() 224 std::string nextHop = NetSysGetString(STR_LEN); in NetworkAddRouteFuzzTest() 241 std::string ifName = NetSysGetString(STR_LEN); in NetworkRemoveRouteFuzzTest() 242 std::string destination = NetSysGetString(STR_LEN); in NetworkRemoveRouteFuzzTest() 243 std::string nextHo in NetworkRemoveRouteFuzzTest() [all...] |
/foundation/distributeddatamgr/pasteboard/services/test/unittest/src/ |
H A D | paste_service_test.cpp | 44 std::string g_webviewPastedataTag = "WebviewPasteDataTag"; 51 static bool ExecuteCmd(std::string &result); 102 void PasteboardEventObserverCallback::OnPasteboardEvent(std::string bundleName, int32_t status) in OnPasteboardEvent() 109 bool PasteboardServiceTest::ExecuteCmd(std::string &result) in ExecuteCmd() 127 result = std::string(output); in ExecuteCmd() 186 string GetTime() in GetTime() 191 std::string targetTime = std::to_string(1900 + nowtime->tm_year) + "-" + std::to_string(1 + nowtime->tm_mon) + in GetTime() 206 std::string plainText = "plain text"; in HWTEST_F() 229 std::string plainText = "helloWorld"; in HWTEST_F() 244 std::string htmlTex in HWTEST_F() [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | scene_session_manager_test2.cpp | 39 const std::string EMPTY_DEVICE_ID = ""; 42 ConfigItem ReadConfig(const std::string& xmlStr) in ReadConfig() 57 std::map<std::string, ConfigItem> configMap; in ReadConfig() 91 const std::string& bundleName, GestureBackType type) { 95 const std::string& bundleName) { 107 void DumpRootSceneElementInfoFuncTest(const std::vector<std::string>& params, std::vector<std::string>& infos) in DumpRootSceneElementInfoFuncTest() 141 std::string dumpInfo = session->handler_->GetEventRunner()->GetEventQueue()->DumpCurrentQueueSize(); in GetTaskCount() 231 std::string xmlStr = "<?xml version='1.0' encoding=\"utf-8\"?>" in HWTEST_F() 257 std::string xmlSt in HWTEST_F() [all...] |
/applications/standard/contacts_data/ability/sinicization/src/ |
H A D | character_transliterate.cpp | 1958 std::map<std::string, std::string> CharacterTransliterate::multiPronunciationMap = { 1984 std::string CharacterTransliterate::getMultiPronunciation(std::string chineseCharacter) in getMultiPronunciation() 2005 std::string pronunciation = getMultiPronunciation(WstringToString(childwChineseCharacter)); in GetContainer() 2038 std::string chineseCharacterString = WstringToString(chineseCharacter); in GetCommonPronunciation() 2044 std::string::size_type find = in GetCommonPronunciation() 2046 if (find != std::string::npos) { in GetCommonPronunciation() 2103 std::string CharacterTransliterate::WstringToString(std::wstring wstr) in WstringToString() 2110 // convert string t [all...] |
/applications/standard/contacts_data/ability/merge/src/ |
H A D | candidate_status.cpp | 49 std::set<std::string> names = mergeUtils.QueryRawContactByType(store, rawId, nameType); in QueryAllForMerge() 53 std::set<std::string> phones = mergeUtils.QueryRawContactByType(store, rawId, phoneType); in QueryAllForMerge() 61 std::set<std::string> otherPhones = mergeUtils.QueryRawContactByType(store, nameIds[i], phoneType); in QueryAllForMerge() 106 std::string isNeedMergeSql = "SELECT "; in IsNeedMerge() 141 std::string isMergeSwitchSql = "SELECT "; in IsMergeStatus() 176 std::string isNeedMergeSql = "SELECT "; in IsMerged() 209 std::set<std::string> names = mergeUtils.QueryRawContactByType(store, rawId, nameType); in JudgeDataDifferent() 210 std::set<std::string> phones = mergeUtils.QueryRawContactByType(store, rawId, phoneType); in JudgeDataDifferent() 214 std::set<std::string> idNames = mergeIdUtils.QueryRawContactByType(store, ids[i], nameType); in JudgeDataDifferent() 215 std::set<std::string> idPhone in JudgeDataDifferent() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/test/unittest/ |
H A D | dms_token_callback_test.cpp | 108 string localDeviceId; in HWTEST_F() 152 string remoteDeviceId = "remoteDeviceId"; in HWTEST_F() 173 std::string localDeviceId; in HWTEST_F() 174 std::string remoteDeviceId; in HWTEST_F() 190 std::string localDeviceId = "1"; in HWTEST_F() 191 std::string remoteDeviceId = "1"; in HWTEST_F() 207 std::string localDeviceId = "1"; in HWTEST_F() 208 std::string remoteDeviceId = "2"; in HWTEST_F() 224 std::string remoteDeviceId; in HWTEST_F() 240 std::string remoteDeviceI in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/theme/ |
H A D | theme_utils.cpp | 58 IdParseResult ThemeUtils::ParseThemeIdReference(const std::string& str, const RefPtr<ThemeConstants>& themeConstants) in ParseThemeIdReference() 107 uint32_t styleId, const ResValueWrapper& model, const std::string& value) in ParseStyleValue() 141 std::string ThemeUtils::ProcessImageSource(const std::string& imageSrc, const RefPtr<ThemeConstants>& themeConstants) in ProcessImageSource() 145 std::string resName; in ProcessImageSource() 165 std::string imagePath = themeConstants->GetString(resId); in ProcessImageSource() 167 if (seperatorPos == std::string::npos) { in ProcessImageSource() 171 std::string imageSuffix = imagePath.substr(seperatorPos); in ProcessImageSource() 175 std::string colorMode; in ProcessImageSource() 187 std::string resul in ProcessImageSource() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_multitext_component.cpp | 60 std::string PickerMultiTextComponent::GetSelectedObject(bool isColumnChange, in GetSelectedObject() 61 const std::string& changeColumnTag, int32_t status) const in GetSelectedObject() 79 return std::string("{\"column\":") + changeColumnTag + ",\"value\":" + "\"" + in GetSelectedObject() 82 return std::string("{\"column\":") + changeColumnTag + ",\"newValue\":" + "\"" + in GetSelectedObject() 87 std::string result = "{\"newValue\":["; in GetSelectedObject() 132 void PickerMultiTextComponent::OnDataLinking(const std::string& tag, bool isAdd, uint32_t index, in OnDataLinking() 133 std::vector<std::string>& resultTags) in OnDataLinking() 216 bool PickerMultiTextComponent::IsEqualRange(const std::vector<std::vector<std::string>>& value) const in IsEqualRange() 231 bool PickerMultiTextComponent::IsEqualStrings(const std::vector<std::string>& first, in IsEqualStrings() 232 const std::vector<std::string> in IsEqualStrings() [all...] |