/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
H A D | rdb_asset_loader.cpp | 32 DBStatus RdbAssetLoader::Download(const std::string &tableName, const std::string &gid, const Type &prefix, in Download() 33 std::map<std::string, Assets> &assets) in Download() 36 std::set<std::string> skipAssets; in Download() 37 std::set<std::string> deleteAssets; in Download() 49 DistributedData::VBucket deleteAssets = ValueProxy::Convert(std::map<std::string, Assets>{{ "", assets }}); in RemoveLocalAssets() 54 void RdbAssetLoader::PostEvent(std::set<std::string>& skipAssets, std::map<std::string, DistributedData::Value>& assets, in PostEvent() 55 DistributedData::AssetEvent eventId, std::set<std::string>& deleteAssets) in PostEvent() 67 std::set<std::string> in PostEvent() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/communicator/include/ |
H A D | network_adapter.h | 32 explicit NetworkAdapter(const std::string &inProcessLabel); 33 NetworkAdapter(const std::string &inProcessLabel, const std::shared_ptr<IProcessCommunicator> &inCommunicator); 41 uint32_t GetMtuSize(const std::string &target) override; 44 uint32_t GetTimeout(const std::string &target) override; 45 int GetLocalIdentity(std::string &outTarget) override; 47 int SendBytes(const std::string &dstTarget, const uint8_t *bytes, uint32_t length, 54 bool IsDeviceOnline(const std::string &device) override; 66 std::string processLabel_; 72 std::string localIdentity_; 76 std::map<std::string, uint32_ [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/mock/ |
H A D | log_print.cpp | 26 const std::string Logger::PRIVATE_TAG = "{private}"; 27 const std::string Logger::PUBLIC_TAG = "{public}"; 29 void Logger::Print(Level level, const char *func, int line, const std::string &tag, const std::string &msg) in Print() 54 void Logger::Log(Level level, const std::string &tag, const char *func, int line, const char *format, ...) in Log() 63 std::string msg; in Log() 64 std::string formatTemp; in Log() 84 void Logger::PreparePrivateLog(const char *format, std::string &outStrFormat) in PreparePrivateLog() 87 std::string::size_type pos; in PreparePrivateLog() 88 while ((pos = outStrFormat.find(PRIVATE_TAG)) != std::string in PreparePrivateLog() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/ |
H A D | feature_stub_impl.cpp | 48 int32_t FeatureStubImpl::OnAppExit(pid_t uid, pid_t pid, uint32_t tokenId, const std::string &bundleName) in OnAppExit() 56 int32_t FeatureStubImpl::OnAppUninstall(const std::string &bundleName, int32_t user, int32_t index) in OnAppUninstall() 64 int32_t FeatureStubImpl::OnAppUpdate(const std::string &bundleName, int32_t user, int32_t index) in OnAppUpdate() 72 int32_t FeatureStubImpl::OnAppInstall(const std::string &bundleName, int32_t user, int32_t index) in OnAppInstall() 80 int32_t FeatureStubImpl::ResolveAutoLaunch(const std::string &identifier, DistributedDB::AutoLaunchParam ¶m) in ResolveAutoLaunch() 88 int32_t FeatureStubImpl::OnUserChange(uint32_t code, const std::string &user, const std::string &account) in OnUserChange() 96 int32_t FeatureStubImpl::Online(const std::string &device) in Online() 104 int32_t FeatureStubImpl::Offline(const std::string &device) in Offline() 112 int32_t FeatureStubImpl::OnReady(const std::string [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/ |
H A D | document_store_manager.cpp | 40 bool CheckDBCreate(uint32_t flags, const std::string &path) in CheckDBCreate() 50 std::map<std::string, int> DocumentStoreManager::dbConnCount_; 52 int DocumentStoreManager::GetDocumentStore(const std::string &path, const std::string &config, uint32_t flags, in GetDocumentStore() 55 std::string canonicalPath; in GetDocumentStore() 56 std::string dbName; in GetDocumentStore() 80 std::string dbRealPath = canonicalPath + "/" + dbName; in GetDocumentStore() 128 int DocumentStoreManager::CheckDBPath(const std::string &path, std::string &canonicalPath, std::string [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | connection.h | 22 #include <string> 36 using Notifier = std::function<void(const std::set<std::string> &tables)>; 40 using Collector = std::map<std::string, Info> (*)(const RdbStoreConfig &config); 44 static std::map<std::string, Info> Collect(const RdbStoreConfig &config); 54 virtual std::pair<int32_t, Stmt> CreateStatement(const std::string &sql, SConn conn) = 0; 60 virtual int32_t ConfigLocale(const std::string &localeStr) = 0; 61 virtual int32_t CleanDirtyData(const std::string &table, uint64_t cursor) = 0; 66 virtual int32_t Subscribe(const std::string &event, 68 virtual int32_t Unsubscribe(const std::string &event, 70 virtual int32_t Backup(const std::string [all...] |
/foundation/distributedhardware/device_manager/test/servicesfuzztest/deviceprofileconnector_fuzzer/ |
H A D | device_profile_connector_fuzzer.cpp | 16 #include <string> 31 std::string trustDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 32 std::string requestDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 33 std::string pkgName(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 34 std::string trustUdid(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 35 std::string localDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 36 std::string targetDeviceId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 37 std::string requestAccountId(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 38 std::string deviceIdHash(reinterpret_cast<const char*>(data), size); in DeviceProfileConnectorFuzzTest() 39 std::string trustBundleNam in DeviceProfileConnectorFuzzTest() [all...] |
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/include/ |
H A D | napi_preferences_error.h | 93 virtual std::string GetMsg() = 0; 99 ParamTypeError(const std::string &errmsg) : errmsg_(errmsg){}; in ParamTypeError() 100 std::string GetMsg() override 110 std::string errmsg_; 115 InnerError(const std::string &msg) in InnerError() 134 std::string GetMsg() override 145 std::string msg_; 150 ParamNumError(const std::string &wantNum) : wantNum(wantNum){}; in ParamNumError() 151 std::string GetMsg() override 161 std::string apinam [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/src/ |
H A D | daudio_ipc_callback_stub.cpp | 63 std::string networkId = data.ReadString(); in OnNotifyRegResultInner() 64 std::string dhId = data.ReadString(); in OnNotifyRegResultInner() 65 std::string reqId = data.ReadString(); in OnNotifyRegResultInner() 67 std::string resultData = data.ReadString(); in OnNotifyRegResultInner() 75 std::string networkId = data.ReadString(); in OnNotifyUnregResultInner() 76 std::string dhId = data.ReadString(); in OnNotifyUnregResultInner() 77 std::string reqId = data.ReadString(); in OnNotifyUnregResultInner() 79 std::string resultData = data.ReadString(); in OnNotifyUnregResultInner() 87 std::string networkId = data.ReadString(); in OnHardwareStateChangedInner() 88 std::string dhI in OnHardwareStateChangedInner() [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/servicesink/src/ |
H A D | daudio_sink_service_test.cpp | 37 std::string params = "params"; in SetUp() 71 std::string dhId = "oh123"; in HWTEST_F() 72 std::string pram = "test"; in HWTEST_F() 96 std::string param = "sink"; in HWTEST_F() 109 std::string dhId = "oh123"; in HWTEST_F() 110 std::string pram = "test"; in HWTEST_F() 125 std::string devId = "efwewf"; in HWTEST_F() 126 std::string dhId = "oh123"; in HWTEST_F() 128 std::string eventContent = "OPEN_MIC"; in HWTEST_F() 129 std::string para in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_protocol_test.cpp | 44 static std::string g_testDeviceId; 45 static const std::string TEST_CAPTURE_INFO_CMD_JSON = R"({ 56 static const std::string TEST_CHANNEL_INFO_CMD_JSON = R"({ 63 static const std::string TEST_EVENT_CMD_JSON = R"({ 70 static const std::string TEST_INFO_CMD_JSON = R"({ 77 static const std::string TEST_METADATA_SETTING_CMD_JSON = R"({ 125 std::string jsonStr; in HWTEST_F() 142 std::string jsonStr; in HWTEST_F() 159 std::string jsonStr; in HWTEST_F() 176 std::string jsonSt in HWTEST_F() [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_context.h | 39 std::string device; 40 std::string tableName; 41 std::vector<std::string> tablesNames; 42 std::string whereClause; 43 std::string sql; 45 std::vector<std::string> columns; 49 std::map<std::string, ValueObject> numberMaps; 56 std::string aliasName; 57 std::string pathName; 58 std::string srcNam [all...] |
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | link_test.cpp | 19 #include <string> 66 EXPECT_EQ(link.url_, std::get<std::string>(value)); in HWTEST_F() 78 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F() 79 const std::string description(MAX_TEXT_LEN, 'a'); in HWTEST_F() 95 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F() 96 const std::string description(20, 'a'); in HWTEST_F() 112 const std::string url(20, 'a'); in HWTEST_F() 113 const std::string description(MAX_TEXT_LEN, 'a'); in HWTEST_F() 129 const std::string url(MAX_TEXT_LEN, 'a'); in HWTEST_F() 144 const std::string descriptio in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesource/src/ |
H A D | daudio_ipc_callback_proxy.cpp | 25 int32_t DAudioIpcCallbackProxy::OnNotifyRegResult(const std::string &devId, const std::string &dhId, in OnNotifyRegResult() 26 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyRegResult() 45 int32_t DAudioIpcCallbackProxy::OnNotifyUnregResult(const std::string &devId, const std::string &dhId, in OnNotifyUnregResult() 46 const std::string &reqId, int32_t status, const std::string &resultData) in OnNotifyUnregResult() 66 int32_t DAudioIpcCallbackProxy::OnHardwareStateChanged(const std::string &devId, const std::string [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcamera/ |
H A D | dcamera_service_state_listener.cpp | 48 int32_t DCameraServiceStateListener::OnRegisterNotify(const std::string& devId, const std::string& dhId, in OnRegisterNotify() 49 const std::string& reqId, int32_t status, std::string& data) in OnRegisterNotify() 84 int32_t DCameraServiceStateListener::OnUnregisterNotify(const std::string& devId, const std::string& dhId, in OnUnregisterNotify() 85 const std::string& reqId, int32_t status, std::string& data) in OnUnregisterNotify() 118 int32_t DCameraServiceStateListener::OnHardwareStateChanged(const std::string &devId, in OnHardwareStateChanged() 119 const std::string in OnHardwareStateChanged() [all...] |
/foundation/distributedhardware/distributed_input/sourcehandler/include/ |
H A D | distributed_input_source_handler.h | 21 #include <string> 40 int32_t InitSource(const std::string ¶ms) override; 42 int32_t RegisterDistributedHardware(const std::string &devId, const std::string &dhId, 44 int32_t UnregisterDistributedHardware(const std::string &devId, const std::string &dhId, 46 int32_t ConfigDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &key, 47 const std::string [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_dispatcher.cpp | 29 map<int32_t, std::pair<std::string, std::string>> SoftbusSessionDispatcher::idMap_; 31 map<string, weak_ptr<SoftbusAgent>> SoftbusSessionDispatcher::busNameToAgent_; 33 void SoftbusSessionDispatcher::RegisterSessionListener(const string busName, weak_ptr<SoftbusAgent> softbusAgent) in RegisterSessionListener() 53 void SoftbusSessionDispatcher::UnregisterSessionListener(const string busName) in UnregisterSessionListener() 67 weak_ptr<SoftbusAgent> SoftbusSessionDispatcher::GetAgent(int32_t sessionId, std::string peerSessionName) in GetAgent() 73 auto agent = busNameToAgent_.find(string(peerSessionName)); in GetAgent() 84 std::string peerSessionName(info.name); in OnSessionOpened() 85 std::string peerDevId = info.networkId; in OnSessionOpened() 102 std::string peerSessionNam in OnSessionClosed() [all...] |
/foundation/filemanagement/app_file_service/test/fuzztest/svcrestoredepsmanager_fuzzer/ |
H A D | svcrestoredepsmanager_fuzzer.cpp | 44 bundleInfo.name = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i % base); in GetInfo() 46 bundleInfo.versionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 48 bundleInfo.extensionName = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 52 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 54 bundleInfo.restoreDeps = string(reinterpret_cast<const char*>(data + pos), len) + "," + to_string(i); in GetInfo() 58 bundleInfo.supportScene = string(reinterpret_cast<const char*>(data + pos), len) + to_string(i); in GetInfo() 86 bundleInfo.name = string(reinterpret_cast<const char*>(data), size); in SvcRestoreDepsManagerFuzzTest() 93 string bundleName(string(reinterpret_cast<const char*>(data), pos)); in SvcRestoreDepsManagerFuzzTest() 94 string fileNam in SvcRestoreDepsManagerFuzzTest() [all...] |
/foundation/filemanagement/file_api/interfaces/test/unittest/remote_uri/ |
H A D | remote_uri_test.cpp | 18 #include <string> 47 string remoteUri = ""; in HWTEST_F() 48 string expectUri = "datashare:////#fdFromBinder=10"; in HWTEST_F() 70 const string fileStr = "/data/test/remote_uri_test.txt"; in HWTEST_F() 72 vector<string>remoteUriRecords; in HWTEST_F() 76 string remoteUri = ""; in HWTEST_F() 102 string remoteUri = "datashar:////#fdFromBinder=10"; in HWTEST_F() 119 string remoteUri = "datashare:////fdFromBinder=10"; in HWTEST_F() 136 string remoteUri = "datashare:////#fdFromBinde=10"; in HWTEST_F() 153 string remoteUr in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | av_trans_message.cpp | 22 const std::string KEY_TYPE = "type";
23 const std::string KEY_CONTENT = "content";
24 const std::string KEY_DST_DEVID = "dstDevId";
31 AVTransMessage::AVTransMessage(uint32_t type, std::string content, std::string dstDevId)
in AVTransMessage() 40 std::string AVTransMessage::MarshalMessage()
in MarshalMessage() 54 std::string jsonstr(data);
in MarshalMessage() 60 bool AVTransMessage::UnmarshalMessage(const std::string& jsonStr, const std::string &peerDevId)
in UnmarshalMessage() 88 bool AVTransMessage::IsUInt32(const cJSON *msgJson, const std::string [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/client/include/ |
H A D | storage_daemon_client.h | 37 static int32_t PrepareUserSpace(uint32_t userId, const std::string &volumId, uint32_t flags); 38 static int32_t DestroyUserSpace(uint32_t userId, const std::string &volumId, uint32_t flags); 56 static int32_t FscryptEnable(const std::string &fscryptOptions); 63 static int32_t GenerateAppkey(uint32_t userId, uint32_t hashId, std::string &keyId); 64 static int32_t DeleteAppkey(uint32_t userId, const std::string keyId); 65 static int32_t MountDfsDocs(int32_t userId, const std::string &relativePath, 66 const std::string &networkId, const std::string &deviceId); 67 static int32_t UMountDfsDocs(int32_t userId, const std::string &relativePath, 68 const std::string [all...] |
/foundation/filemanagement/dfs_service/frameworks/native/distributed_file_inner/include/ |
H A D | distributed_file_daemon_proxy.h | 41 int32_t OpenP2PConnectionEx(const std::string &networkId, sptr<IFileDfsListener> remoteReverseObj) override; 42 int32_t CloseP2PConnectionEx(const std::string &networkId) override; 43 int32_t PrepareSession(const std::string &srcUri, 44 const std::string &dstUri, 45 const std::string &srcDeviceId, 48 int32_t CancelCopyTask(const std::string &sessionName) override; 49 int32_t RequestSendFile(const std::string &srcUri, 50 const std::string &dstPath, 51 const std::string &dstDeviceId, 52 const std::string [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | setting_provider_test.cpp | 63 std::string key = ""; in HWTEST_F() 75 std::string key = ""; in HWTEST_F() 87 std::string key = ""; in HWTEST_F() 111 SettingObserver::UpdateFunc updateFunc = [&](const std::string&) {}; in HWTEST_F() 125 SettingObserver::UpdateFunc updateFunc = [&](const std::string&) {}; in HWTEST_F() 138 SettingObserver::UpdateFunc updateFunc = [&](const std::string&) {}; in HWTEST_F() 139 std::string key = "key"; in HWTEST_F() 140 std::string value = "value"; in HWTEST_F() 154 SettingObserver::UpdateFunc updateFunc = [&](const std::string&) {}; in HWTEST_F() 155 std::string ke in HWTEST_F() [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | session_permission_test.cpp | 83 const std::string *permissionNode = new string; in HWTEST_F() 96 const std::string *permissionNode = new string; in HWTEST_F() 108 const std::string *bundleName = new string; in HWTEST_F() 112 const std::string *bundleName2 = new string("test"); in HWTEST_F() 124 const std::string appIdentifier = "123"; in HWTEST_F() 125 const std::string bundleNam in HWTEST_F() [all...] |
/test/xts/acts/distributed_schedule_lite/distributed_schedule_posix/src/ |
H A D | MsgParserLenFuncTest.cpp | 68 std::string tLenStr = GetStringByLen(BYTE_CAPA - 1); // - \0
in HWTEST_F() 69 std::string bundleName = tLenStr;
in HWTEST_F() 70 std::string abilityName = tLenStr;
in HWTEST_F() 71 std::string signature = tLenStr;
in HWTEST_F() 102 std::string tLenStr = GetStringByLen(BYTE_CAPA);
in HWTEST_F() 103 std::string bundleName = tLenStr;
in HWTEST_F() 104 std::string abilityName = tLenStr;
in HWTEST_F() 105 std::string signature = tLenStr;
in HWTEST_F() 135 std::string bundleName = GetStringByLen(NODE_MAX_LENGTH);
in HWTEST_F() 136 std::string abilityNam in HWTEST_F() [all...] |