/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_default_rule_parser.h | 36 static bool GetDefaultRules(std::vector<sptr<NetFirewallRule>> &ruleList); 84 static std::string ReadJsonFile(const std::string &filePath); 93 static void ParseIpList(std::vector<NetFirewallIpParam> &ipParamlist, const cJSON * const mem, 94 const std::string jsonKey); 103 static void ParsePortList(std::vector<NetFirewallPortParam> &portParamlist, const cJSON * const mem, 104 const std::string jsonKey); 113 static void ParseDomainList(std::vector<NetFirewallDomainParam> &domainParamlist, const cJSON * const mem, 114 const std::string jsonKey); 123 static void ParseDnsObject(NetFirewallDnsParam &dnsParam, const cJSON * const mem, const std [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/network_select/ |
H A D | external_wifi_common_builder_manager.cpp | 30 void ExternalWifiCommonBuildManager::RegisterCommonBuilder(const TagType &tagType, const std::string &tagName, in RegisterCommonBuilder() 38 std::lock_guard<std::mutex> lock(mutex); in RegisterCommonBuilder() 44 void ExternalWifiCommonBuildManager::DeregisterCommonBuilder(const TagType &tagType, const std::string &tagName) in DeregisterCommonBuilder() 46 std::lock_guard<std::mutex> lock(mutex); in DeregisterCommonBuilder() 55 std::lock_guard<std::mutex> lock(mutex); in BuildScore() 68 std::lock_guard<std in BuildFilter() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/ |
H A D | mock_sta_auto_connect_service.cpp | 29 void MockStaAutoConnectService::OnScanInfosReadyHandler(const std::vector<InterScanInfo> &scanInfos) in OnScanInfosReadyHandler() 35 bool MockStaAutoConnectService::EnableOrDisableBssid(std::string bssid, bool enable, int reason) in EnableOrDisableBssid() 45 const std::vector<InterScanInfo> &scanInfos, std::vector<std::string> &blockedBssids, WifiLinkedInfo &info) in AutoSelectDevice() 62 void MockStaAutoConnectService::EnableAutoJoin(const std::string &conditionName) in EnableAutoJoin() 68 void MockStaAutoConnectService::DisableAutoJoin(const std::string &conditionName) in DisableAutoJoin() 74 void MockStaAutoConnectService::RegisterAutoJoinCondition(const std::string &conditionName, in RegisterAutoJoinCondition() 75 const std::function<bool()> &autoJoinCondition) in RegisterAutoJoinCondition() 82 void MockStaAutoConnectService::DeregisterAutoJoinCondition(const std [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_datashare_utils.h | 75 ErrCode Query(Uri &uri, const std::string &key, std::string &value, bool onlySettingsData = false); 85 ErrCode Insert(Uri &uri, const std::string &key, const std::string &value); 95 ErrCode Update(Uri &uri, const std::string &key, const std::string &value); 117 std::string GetLoactionDataShareUri(); 120 std::shared_ptr<DataShare::DataShareHelper> WifiCreateDataShareHelper(bool onlySettingsData = false); 121 void ClearResources(std::shared_ptr<DataShare::DataShareHelper> operatrPtr, 122 std [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/test/unittest/ |
H A D | profile_entry_test.cpp | 37 DTEST_LOG << "SetUpTestCase" << std::endl; in SetUpTestCase() 43 DTEST_LOG << "TearDownTestCase" << std::endl; in TearDownTestCase() 48 DTEST_LOG << "SetUp" << std::endl; in SetUp() 53 DTEST_LOG << "TearDown" << std::endl; in TearDown() 65 std::shared_ptr<ProfileEntry> temp = std::make_shared<ProfileEntry>(); in HWTEST_F() 79 std::shared_ptr<ProfileEntry> temp = std::make_shared<ProfileEntry>(); in HWTEST_F() 93 std::shared_ptr<ProfileEntry> temp = std in HWTEST_F() [all...] |
/foundation/communication/netmanager_ext/interfaces/innerkits/ethernetclient/include/proxy/ |
H A D | i_ethernet_service.h | 38 virtual int32_t GetMacAddress(std::vector<MacAddressInfo> &macAddrList) = 0; 39 virtual int32_t SetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ic) = 0; 40 virtual int32_t GetIfaceConfig(const std::string &iface, sptr<InterfaceConfiguration> &ifaceConfig) = 0; 41 virtual int32_t IsIfaceActive(const std::string &iface, int32_t &activeStatus) = 0; 42 virtual int32_t GetAllActiveIfaces(std::vector<std::string> &activeIfaces) = 0; 46 virtual int32_t SetInterfaceUp(const std::string &iface) = 0; 47 virtual int32_t SetInterfaceDown(const std::string &iface) = 0; 48 virtual int32_t GetInterfaceConfig(const std::string &iface, OHOS::nmd::InterfaceConfigurationParcel &cfg) = 0; 49 virtual int32_t SetInterfaceConfig(const std [all...] |
/foundation/deviceprofile/device_info_manager/old/services/core/src/contentsensor/ |
H A D | system_info_collector.cpp | 28 const std::string TAG = "SystemInfoCollector"; 30 const std::string SERVICE_ID = "system"; 31 const std::string SERVICE_TYPE = "system"; 32 const std::string SYSTEM_OS_TYPE = "type"; 33 const std::string DEVICE_OHOS_VERSION = "harmonyVersion"; 34 const std::string DEVICE_API_LEVEL = "harmonyApiLevel"; 35 const std::string DEVICE_OHOS_NAME = "OpenHarmony"; 54 std::string osFullName = DistributedDeviceProfile::ContentSensorManagerUtils::GetInstance().ObtainOsFullName(); in GetOsType() 60 if (found != std::string::npos) { in GetOsType() 67 std [all...] |
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/kvdb/include/ |
H A D | store_factory.h | 27 std::shared_ptr<SingleKvStore> GetOrOpenStore(const AppId &appId, const StoreId &storeId, const Options &options, 29 Status Delete(const AppId &appId, const StoreId &storeId, const std::string &path); 39 std::shared_ptr<DBManager> GetDBManager(const std::string &path, const AppId &appId); 41 ConcurrentMap<std::string, std::shared_ptr<DBManager>> dbManagers_; 42 ConcurrentMap<std::string, std::map<std::string, std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | task_pool_impl.h | 44 int Schedule(const std::string &queueTag, const Task &task) override; 47 void ShrinkMemory(const std::string &tag) override; 54 bool IdleExit(std::unique_lock<std::mutex> &lock); 68 std::mutex tasksMutex_; 69 std::condition_variable hasTasks_; 70 std::map<std::string, TaskQueue> queuedTasks_; 72 std::thread::id genericThread_; // execute generic task only. 77 std [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/metadata/ |
H A D | matrix_meta_data.h | 34 std::string deviceId; 35 std::vector<std::string> dynamicInfo; 36 std::vector<std::string> staticsInfo; 40 std::string GetKey() const; 41 std::string GetConsistentKey() const; 44 API_EXPORT static std::string GetPrefix(const std::initializer_list<std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_vacuum_executor_impl.h | 31 int GetVacuumAbleCommits(std::list<MultiVerCommitInfo> &leftBranchCommits, 32 std::list<MultiVerCommitInfo> &rightBranchCommits) const override; 35 int GetVacuumNeedRecordsByVersion(uint64_t version, std::list<MultiVerRecordInfo> &vacuumNeedRecords) override; 38 int GetShadowRecordsOfClearTypeRecord(uint64_t version, const std::vector<uint8_t> &hashKey, 39 std::list<MultiVerRecordInfo> &shadowRecords) override; 42 int GetShadowRecordsOfNonClearTypeRecord(uint64_t version, const std::vector<uint8_t> &hashKey, 43 std::list<MultiVerRecordInfo> &shadowRecords) override; 55 int DeleteRecordTotally(uint64_t version, const std::vector<uint8_t> &hashKey) override; 58 int MarkRecordAsVacuumDone(uint64_t version, const std::vector<uint8_t> &hashKey) override; 61 int MarkCommitAsVacuumDone(const std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/ |
H A D | sqlite_relational_utils.h | 30 static std::vector<DataValue> GetSelectValues(sqlite3_stmt *stmt); 40 static bool GetDbFileName(sqlite3 *db, std::string &fileName); 42 static int SelectServerObserver(sqlite3 *db, const std::string &tableName, bool isChanged); 45 const std::vector<std::pair<std::string, std::string>> &fieldList, std::vector<std::string> &sqlList); 49 static int QueryCount(sqlite3 *db, const std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_data_message_schedule.h | 32 void Initialize(const std::string &label, const std::string &deviceId); 40 void UpdateMsgMapInner(std::queue<Message *> &msgTmpQueue); 58 std::mutex queueLock_; 59 std::queue<Message *> msgQueue_; 62 std::mutex workingLock_; 65 std::mutex lock_; 66 std::map<uint32_t, Message *> messageMap_; 73 std::string label_; 74 std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/ |
H A D | ref_object.h | 46 void OnLastRef(const std::function<void(void)> &callback) const; 49 void OnKill(const std::function<void(void)> &callback); 55 bool WaitLockedUntil(std::condition_variable &cv, 56 const std::function<bool(void)> &condition, int seconds = 0); 65 virtual std::string GetObjectTag() const; 73 mutable std::atomic<int> refCount_; 74 mutable std::mutex objLock_; 75 std::atomic<bool> isKilled_; 76 mutable std::function<void(void)> onLast_; 77 std [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/cj/include/ |
H A D | paste_data_impl.h | 32 explicit PasteDataImpl(std::shared_ptr<MiscServices::PasteData> pasteData); 33 PasteDataImpl(std::string mimeType, CJValueType value); 34 std::shared_ptr<MiscServices::PasteData> GetRealPasteData(); 44 void CreateHtmlData(std::string mimeType, CJValueType value); 45 void CreatePlainTextData(std::string mimeType, CJValueType value); 46 void CreateUriData(std::string mimeType, CJValueType value); 47 void CreatePixelMapData(std::string mimeType, CJValueType value); 48 void CreateWantData(std::string mimeType, CJValueType value); 50 std::shared_ptr<MiscServices::PasteData> value_ = nullptr; 53 int64_t CreateCjPasteDataObject(std [all...] |
/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_auth_manager_first.h | 46 std::shared_ptr<SoftbusConnector> softbusConnector = std::make_shared<SoftbusConnector>(); 47 std::shared_ptr<DeviceManagerServiceListener> listener = std::make_shared<DeviceManagerServiceListener>(); 48 std::shared_ptr<HiChainConnector> hiChainConnector = std::make_shared<HiChainConnector>(); 49 std::shared_ptr<HiChainAuthConnector> hiChainAuthConnector = std::make_shared<HiChainAuthConnector>(); 51 std::shared_ptr<DmAuthManager> authManager_ = 52 std [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcamera/ |
H A D | distributed_camera_source_stub.h | 38 bool CheckRegParams(const std::string& devId, const std::string& dhId, 39 const std::string& reqId, const EnableParam& param); 40 bool CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId); 41 bool CheckNotifyParams(const std::string& devId, const std::string& dhId, std::string& events); 45 std [all...] |
/foundation/distributedhardware/device_manager/test/commonfuzztest/dmdiscoverymanager_fuzzer/ |
H A D | dm_discovery_manager_fuzzer.cpp | 37 std::shared_ptr<SoftbusConnector> softbusConnector = std::make_shared<SoftbusConnector>(); in DmDiscoveryManagerFuzzTest() 38 std::shared_ptr<DeviceManagerServiceListener> listener = std::make_shared<DeviceManagerServiceListener>(); in DmDiscoveryManagerFuzzTest() 39 std::shared_ptr<HiChainConnector> hiChainConnector = std::make_shared<HiChainConnector>(); in DmDiscoveryManagerFuzzTest() 40 std::shared_ptr<DmDiscoveryManager> dmDiscoveryManager = in DmDiscoveryManagerFuzzTest() 41 std::make_shared<DmDiscoveryManager>(softbusConnector, listener, hiChainConnector); in DmDiscoveryManagerFuzzTest() 42 std::string pkgName(reinterpret_cast<const char*>(data), size); in DmDiscoveryManagerFuzzTest() 44 std in DmDiscoveryManagerFuzzTest() [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/decodeonoutputbufferavailable_fuzzer/ |
H A D | decodeonoutputbufferavailable_fuzzer.cpp | 35 std::shared_ptr<DCameraPipelineSource> sourcePipeline = std::make_shared<DCameraPipelineSource>(); in DecodeOnOutputBufferAvailableFuzzTest() 36 std::shared_ptr<AppExecFwk::EventRunner> runner = AppExecFwk::EventRunner::Create(true); in DecodeOnOutputBufferAvailableFuzzTest() 37 std::shared_ptr<AppExecFwk::EventHandler> pipeEventHandler = std::make_shared<AppExecFwk::EventHandler>(runner); in DecodeOnOutputBufferAvailableFuzzTest() 38 std::shared_ptr<DecodeDataProcess> decodeDataProcess = in DecodeOnOutputBufferAvailableFuzzTest() 39 std::make_shared<DecodeDataProcess>(pipeEventHandler, sourcePipeline); in DecodeOnOutputBufferAvailableFuzzTest() 40 std::shared_ptr<DecodeVideoCallback> decodeVideoCallback = std::make_shared<DecodeVideoCallback>(decodeDataProcess); in DecodeOnOutputBufferAvailableFuzzTest() 41 std in DecodeOnOutputBufferAvailableFuzzTest() [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/ |
H A D | common_func.h | 24 constexpr int64_t INVALID_POSITION = std::numeric_limits<decltype(INVALID_POSITION)>::max(); 40 static std::tuple<bool, void *, size_t, int64_t, int64_t> GetReadArg(napi_env env, 43 static std::tuple<bool, void *, int64_t, bool, int64_t> GetReadArgV9(napi_env env, 46 static std::tuple<bool, std::unique_ptr<char[]>, void *, size_t, int64_t> GetWriteArg(napi_env env, 49 static std::tuple<bool, std::unique_ptr<char[]>, void *, int64_t, bool, int64_t> GetWriteArgV9(napi_env env, 51 static std::tuple<bool, std::unique_ptr<char[]>, std [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/resourcemanager/ |
H A D | capability_utils.h | 42 int32_t GetCapabilityByValue(const std::string &value, std::shared_ptr<T> &capPtr) in GetCapabilityByValue() 45 capPtr = std::make_shared<T>(); in GetCapabilityByValue() 50 std::string GetCapabilityKey(const std::string &deviceId, const std::string &dhId); 51 bool IsCapKeyMatchDeviceId(const std::string &key, const std::string &deviceId); 54 bool IsCapInfoJsonEqual(const std::string &firstData, const std [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/ |
H A D | datashare_helper.h | 41 DataSharePredicates *EqualTo(const std::string &field, const std::string &value); 49 static std::shared_ptr<DataShareHelper> Creator( 50 const std::string &strUri, const CreateOptions &options, const std::string &bundleName = "com.ohos.photos"); 51 std::shared_ptr<DataShareResultSet> Query(Uri &uri, const DataSharePredicates &predicates, 52 std::vector<std::string> &columns, DatashareBusinessError *businessError = nullptr); 59 static std::shared_ptr<DataShareHelper> instance_; 60 std [all...] |
/foundation/distributedhardware/distributed_screen/services/common/utils/include/ |
H A D | dscreen_hidumper.h | 46 bool Dump(const std::vector<std::string> &args, std::string &result); 58 void SaveFile(std::string file, const VideoData &video); 63 void ShowHelp(std::string &result); 64 int32_t ShowIllegalInfomation(std::string &result); 65 int32_t ProcessDump(const std::string &args, std::string &result); 67 int32_t DumpScreenData(std::string &result); 68 int32_t ReDumpScreenData(std [all...] |
/foundation/filemanagement/app_file_service/tests/mock/file_permission_native/src/ |
H A D | sandbox_mock.cpp | 22 const std::vector<PolicyInfo> &policy, std::vector<bool> &result) in CheckPersistPolicy() 27 int32_t SandboxManagerKit::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicy() 32 int32_t SandboxManagerKit::UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicy() 37 int32_t SandboxManagerKit::StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in StartAccessingPolicy() 42 int32_t SandboxManagerKit::StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_anony/ |
H A D | b_anony.cpp | 21 using namespace std;
23 std::string GetAnonyString(const std::string &value)
in GetAnonyString() 28 std::string result;
in GetAnonyString() 29 std::string tmpStr("******");
in GetAnonyString() 48 std::string GetAnonyPath(const std::string &value)
in GetAnonyPath() 50 std::string res;
in GetAnonyPath() 51 std::string sub;
in GetAnonyPath() 53 if (found == std in GetAnonyPath() [all...] |