/base/security/security_guard/test/fuzztest/data_collect/datacollect_fuzzer/ |
H A D | database_mock.cpp | 33 int Database::Insert(int64_t &outRowId, const std::string &table, const NativeRdb::ValuesBucket &initialValues) in Insert() 38 int Database::BatchInsert(int64_t &outInsertNum, const std::string &table, in BatchInsert() 39 const std::vector<NativeRdb::ValuesBucket> &initialBatchValues) in BatchInsert() 55 std::shared_ptr<NativeRdb::ResultSet> Database::Query( in Query() 56 const NativeRdb::AbsRdbPredicates &predicates, const std::vector<std::string> columns) in Query() 61 int Database::ExecuteSql(const std::string &sql) in ExecuteSql() 66 int Database::ExecuteAndGetLong(int64_t &outValue, const std::string &sql, in ExecuteAndGetLong() 67 const std::vector<NativeRdb::ValueObject> &bindArgs) in ExecuteAndGetLong() 92 int Database::Attach(const std [all...] |
/base/sensors/miscdevice/services/miscdevice_service/include/ |
H A D | vibration_priority_manager.h | 66 VibrateStatus ShouldIgnoreVibrate(const VibrateInfo &vibrateInfo, std::shared_ptr<VibratorThread> vibratorThread);
69 bool IsCurrentVibrate(std::shared_ptr<VibratorThread> vibratorThread) const;
76 int32_t GetIntValue(const std::string &key, int32_t &value);
77 int32_t GetLongValue(const std::string &key, int64_t &value);
78 int32_t GetStringValue(const std::string &key, std::string &value);
79 Uri AssembleUri(const std::string &key);
80 std::shared_ptr<DataShare::DataShareHelper> CreateDataShareHelper();
81 bool ReleaseDataShareHelper(std::shared_ptr<DataShare::DataShareHelper> &helper);
88 std [all...] |
/base/security/security_guard/frameworks/js/napi/ |
H A D | security_guard_sdk_adaptor.h | 30 static int32_t RequestSecurityEventInfo(std::string &devId, std::string &eventList, 32 static int32_t RequestSecurityModelResult(const std::string &devId, uint32_t modelId, 33 const std::string ¶m, ResultCallback callback); 34 static int32_t ReportSecurityInfo(const std::shared_ptr<EventInfo> &info); 39 static int32_t QuerySecurityEvent(std::vector<SecurityCollector::SecurityEventRuler> rulers, 40 std::shared_ptr<SecurityEventQueryCallback> callback); 41 static int32_t Subscribe(const std::shared_ptr<SecurityCollector::ICollectorSubscriber> &subscriber); 42 static int32_t Unsubscribe(const std::shared_ptr<SecurityCollector::ICollectorSubscriber> &subscriber); 47 static std [all...] |
/base/telephony/call_manager/services/call/include/ |
H A D | voip_call.h | 47 int32_t GetSubCallIdList(std::vector<std::u16string> &callIdList) override; 48 int32_t GetCallIdListForConference(std::vector<std::u16string> &callIdList) override; 52 std::string GetVoipCallId(); 53 std::string GetVoipBundleName(); 60 std::string voipCallId_ = ""; 61 std::string userName_ = ""; 62 std::string extensionId_ = ""; 63 std [all...] |
/base/telephony/call_manager/services/audio/include/ |
H A D | audio_device_manager.h | 32 class AudioDeviceManager : public std::enable_shared_from_this<AudioDeviceManager> { 46 void AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType, const std::string &deviceName); 47 void RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType); 59 std::string ConvertAddress(); 74 void UpdateBluetoothDeviceName(const std::string &macAddress, const std::string &deviceName); 77 std::mutex mutex_; 78 std::mutex infoMutex_; 85 std [all...] |
/base/telephony/core_service/services/tel_ril/include/ |
H A D | observer_handler.h | 34 void RegObserver(int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> handler); 36 void RegUniqueObserver(int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> handler); 38 void Remove(int32_t what, const std::shared_ptr<AppExecFwk::EventHandler> handler); 46 std::lock_guard<std::mutex> lock(mutex_); in NotifyObserver() 59 void NotifyObserver(int32_t what, std::shared_ptr<T> object) in NotifyObserver() 61 std::lock_guard<std::mutex> lock(mutex_); in NotifyObserver() 73 std::unordered_map<int32_t, std [all...] |
/base/telephony/core_service/services/network_search/include/ |
H A D | network_search_state.h | 31 NetworkSearchState(const std::weak_ptr<NetworkSearchManager> &networkSearchManager, int32_t slotId); 34 void SetOperatorInfo(const std::string &longName, const std::string &shortName, const std::string &numeric, 46 std::unique_ptr<NetworkState> GetNetworkStatus(); 52 void SetLongOperatorName(const std::string &longName, DomainType domainType); 64 std::mutex mutex_; 65 std::weak_ptr<NetworkSearchManager> networkSearchManager_; 66 std::unique_ptr<NetworkState> networkState_ = nullptr; 67 std [all...] |
/base/update/sys_installer/interfaces/innerkits/ipc_client/include/ |
H A D | sys_installer_kits_impl.h | 31 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath); 34 virtual int32_t StartUpdateParaZip(const std::string &pkgPath, 35 const std::string &location, const std::string &cfgDir); 36 virtual int32_t StartDeleteParaZip(const std::string &location, const std::string &cfgDir); 37 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath, 38 const std::string &dstPath, const uint32_t type); 39 virtual int32_t AccDeleteDir(const std::string &dstPath); 64 std [all...] |
/base/update/updater/services/include/log/ |
H A D | log.h | 56 void InitUpdaterLogger(const std::string &tag, const std::string &logFile, const std::string &stageFile, 57 const std::string &errorCodeFile); 69 std::ostream& OutputUpdaterLog(const std::string &path, int line); 72 std::stringstream oss_; 74 static inline std::unordered_map<int, std::string> logLevelMap_ = { 89 std [all...] |
/base/update/sys_installer/frameworks/installer_manager/src/ |
H A D | installer_manager.cpp | 27 void InstallerManager::RegisterDump(std::unique_ptr<IInstallerManagerHelper> ptr) in RegisterDump() 29 helper_ = std::move(ptr); in RegisterDump() 45 RegisterDump(std::make_unique<InstallerManagerHelper>()); in SysInstallerInit() 51 int32_t InstallerManager::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() 78 int32_t InstallerManager::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() 79 const std::string &location, const std::string &cfgDir) in StartUpdateParaZip() 88 int32_t InstallerManager::StartDeleteParaZip(const std::string &location, const std::string &cfgDir) in StartDeleteParaZip() 97 int32_t InstallerManager::AccDecompressAndVerifyPkg(const std [all...] |
H A D | installer_manager_helper.cpp | 36 statusManager_ = std::make_shared<StatusManager>(); in SysInstallerInit() 43 int32_t InstallerManagerHelper::StartUpdatePackageZip(const std::string &pkgPath) in StartUpdatePackageZip() 54 ActionProcesser::GetInstance().AddAction(std::make_unique<PkgVerify>(statusManager_, pkgPath)); in StartUpdatePackageZip() 55 ActionProcesser::GetInstance().AddAction(std::make_unique<ABUpdate>(statusManager_, pkgPath)); in StartUpdatePackageZip() 78 int32_t InstallerManagerHelper::StartUpdateParaZip(const std::string &pkgPath, in StartUpdateParaZip() 79 const std::string &location, const std::string &cfgDir) in StartUpdateParaZip() 84 int32_t InstallerManagerHelper::StartDeleteParaZip(const std::string &location, const std::string &cfgDir) in StartDeleteParaZip() 89 int32_t InstallerManagerHelper::AccDecompressAndVerifyPkg(const std [all...] |
/base/update/sys_installer/frameworks/installer_manager/include/ |
H A D | installer_manager.h | 28 void RegisterDump(std::unique_ptr<IInstallerManagerHelper> ptr); 32 virtual int32_t StartUpdatePackageZip(const std::string &pkgPath); 35 virtual int32_t StartUpdateParaZip(const std::string &pkgPath, 36 const std::string &location, const std::string &cfgDir); 37 virtual int32_t StartDeleteParaZip(const std::string &location, const std::string &cfgDir); 38 virtual int32_t AccDecompressAndVerifyPkg(const std::string &srcPath, 39 const std::string &dstPath, const uint32_t type); 40 virtual int32_t AccDeleteDir(const std [all...] |
/base/useriam/user_auth_framework/frameworks/native/client/inc/ |
H A D | user_idm_client_impl.h | 31 std::vector<uint8_t> OpenSession(int32_t userId) override; 34 const std::shared_ptr<UserIdmClientCallback> &callback) override; 36 const std::shared_ptr<UserIdmClientCallback> &callback) override; 38 void DeleteCredential(int32_t userId, uint64_t credentialId, const std::vector<uint8_t> &authToken, 39 const std::shared_ptr<UserIdmClientCallback> &callback) override; 40 void DeleteUser(int32_t userId, const std::vector<uint8_t> &authToken, 41 const std::shared_ptr<UserIdmClientCallback> &callback) override; 42 int32_t EraseUser(int32_t userId, const std::shared_ptr<UserIdmClientCallback> &callback) override; 44 const std::shared_ptr<GetCredentialInfoCallback> &callback) override; 45 int32_t GetSecUserInfo(int32_t userId, const std [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_ohos_web_data_base_adapter_wrapper.h | 34 const std::string& host, const std::string& realm, const std::string& username, const char* password) override; 36 void GetHttpAuthCredentials(const std::string& host, const std::string& realm, std::string& username, 47 bool ExistPermissionByOrigin(const std::string& origin, const OHOS::NWeb::WebPermissionType& key) override; 50 const std::string& origin, const OHOS::NWeb::WebPermissionType& key, bool& result) override; 53 const std::string& origin, const OHOS::NWeb::WebPermissionType& key, bool result) override; 55 void ClearPermissionByOrigin(const std [all...] |
H A D | ark_system_properties_adapter_wrapper.h | 32 std::string GetDeviceInfoProductModel() override; 34 std::string GetDeviceInfoBrand() override; 44 std::string GetUserAgentOSName() override; 46 std::string GetUserAgentOSVersion() override; 48 std::string GetUserAgentBaseOSName() override; 54 std::string GetNetlogMode() override; 58 std::string GetSiteIsolationMode() override; 70 bool GetBoolParameter(const std::string& key, bool defaultValue) override; 72 std::vector<NWeb::FrameRateSetting> GetLTPOConfig(const std [all...] |
H A D | ark_video_device_descriptor_adapter_wrapper.cpp | 30 std::string ArkVideoDeviceDescriptorAdapterWrapper::GetDisplayName() in GetDisplayName() 33 std::string result = ArkWebStringStructToClass(str); in GetDisplayName() 39 std::string ArkVideoDeviceDescriptorAdapterWrapper::GetDeviceId() in GetDeviceId() 42 std::string result = ArkWebStringStructToClass(str); in GetDeviceId() 48 std::string ArkVideoDeviceDescriptorAdapterWrapper::GetModelId() in GetModelId() 51 std::string result = ArkWebStringStructToClass(str); in GetModelId() 57 std::shared_ptr<NWeb::VideoControlSupportAdapter> ArkVideoDeviceDescriptorAdapterWrapper::GetControlSupport() in GetControlSupport() 63 return std::make_shared<ArkVideoControlSupportAdapterWrapper>(adapter); in GetControlSupport() 76 std::vector<std [all...] |
/base/useriam/user_auth_framework/services/context/inc/ |
H A D | base_context.h | 36 public std::enable_shared_from_this<BaseContext>, 41 BaseContext(const std::string &type, uint64_t contextId, std::shared_ptr<ContextCallback> callback); 45 std::shared_ptr<ScheduleNode> GetScheduleNode(uint64_t scheduleId) const override; 49 void OnScheduleProcessed(ExecutorRole src, int32_t moduleType, const std::vector<uint8_t> &acquireMsg) override; 50 void OnScheduleStoped(int32_t resultCode, const std::shared_ptr<Attributes> &finalResult) override; 57 virtual void OnResult(int32_t resultCode, const std::shared_ptr<Attributes> &scheduleResultAttr) = 0; 59 std::shared_ptr<ContextCallback> callback_ = nullptr; 60 std::vector<std [all...] |
/base/useriam/user_auth_framework/services/core/inc/ |
H A D | ipc_common.h | 50 using Recipient = std::function<void()>; 52 static int32_t GetActiveUserId(std::optional<int32_t> &userId); 53 static int32_t GetAllUserId(std::vector<int32_t> &userIds); 58 static bool GetCallerName(IPCObjectStub &stub, std::string &callerName, int32_t &callerType); 59 static bool GetCallingAppID(IPCObjectStub &stub, std::string &callingAppID); 60 static bool CheckForegroundApplication(const std::string &bundleName); 64 explicit PeerDeathRecipient(Recipient &&recipient) : recipient_(std::forward<Recipient>(recipient)) in PeerDeathRecipient() 84 static bool CheckDirectCallerAndFirstCallerIfSet(IPCObjectStub &stub, const std::string &permission); 85 static bool CheckDirectCaller(IPCObjectStub &stub, const std::string &permission); 87 static std [all...] |
/base/useriam/user_auth_framework/services/core/src/ |
H A D | enrollment_impl.h | 34 void SetAuthToken(const std::vector<uint8_t> &authToken) override; 39 bool Start(std::vector<std::shared_ptr<ScheduleNode>> &scheduleList, 40 std::shared_ptr<ScheduleNodeCallback> callback) override; 41 bool Update(const std::vector<uint8_t> &scheduleResult, uint64_t &credentialId, 42 std::shared_ptr<CredentialInfoInterface> &info, std::shared_ptr<UpdatePinParamInterface> &pinInfo, 43 std::optional<uint64_t> &secUserId) override; 53 bool GetSecUserId(std::optional<uint64_t> &secUserId); 58 std [all...] |
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | system_properties_adapter.h | 52 virtual std::string GetDeviceInfoProductModel() = 0; 54 virtual std::string GetDeviceInfoBrand() = 0; 64 virtual std::string GetUserAgentOSName() = 0; 70 virtual std::string GetNetlogMode() = 0; 74 virtual std::string GetSiteIsolationMode() = 0; 86 virtual bool GetBoolParameter(const std::string& key, bool defaultValue) = 0; 88 virtual std::vector<FrameRateSetting> GetLTPOConfig(const std::string& settingName) = 0; 90 virtual std::string GetOOPGPUStatus() = 0; 92 virtual bool IsLTPODynamicApp(const std [all...] |
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
H A D | ark_web_context_menu_params_wrapper.cpp | 42 std::string ArkWebContextMenuParamsWrapper::GetLinkUrl() in GetLinkUrl() 46 std::string objLinkUrl = ArkWebStringStructToClass(stLinkUrl); in GetLinkUrl() 51 std::string ArkWebContextMenuParamsWrapper::GetPageUrl() in GetPageUrl() 55 std::string objPageUrl = ArkWebStringStructToClass(stPageUrl); in GetPageUrl() 60 std::string ArkWebContextMenuParamsWrapper::GetSourceUrl() in GetSourceUrl() 64 std::string objSourceUrl = ArkWebStringStructToClass(stSourceUrl); in GetSourceUrl() 69 std::string ArkWebContextMenuParamsWrapper::GetTitleText() in GetTitleText() 73 std::string objTitleText = ArkWebStringStructToClass(stTitleText); in GetTitleText() 78 std::string ArkWebContextMenuParamsWrapper::GetSelectionText() in GetSelectionText() 82 std in GetSelectionText() [all...] |
/base/useriam/user_auth_framework/services/remote_connect/src/ |
H A D | device_manager_util.cpp | 29 static const std::string USER_AUTH_PACKAGE_NAME = "ohos.useriam"; 38 bool DeviceManagerUtil::GetUdidByNetworkId(const std::string &networkId, std::string &udid) in GetUdidByNetworkId() 47 bool DeviceManagerUtil::GetLocalDeviceNetWorkId(std::string &networkId) in GetLocalDeviceNetWorkId() 56 bool DeviceManagerUtil::GetLocalDeviceUdid(std::string &udid) in GetLocalDeviceUdid() 58 std::lock_guard<std::recursive_mutex> lock(mutex_); in GetLocalDeviceUdid() 77 bool DeviceManagerUtil::GetNetworkIdByUdid(const std::string &udid, std::string &networkId) in GetNetworkIdByUdid() 79 std in GetNetworkIdByUdid() [all...] |
/base/useriam/user_auth_framework/test/fuzztest/dummy/ |
H A D | dummy_context_pool.h | 39 void OnContextPoolInsert(const std::shared_ptr<Context> &context) {}; in OnContextPoolInsert() 40 void OnContextPoolDelete(const std::shared_ptr<Context> &context) {}; in OnContextPoolDelete() 47 bool Insert(const std::shared_ptr<Context> &context) in Insert() 56 std::weak_ptr<Context> Select(uint64_t contextId) const in Select() 61 auto contextCallback = Common::MakeShared<ContextCallbackImpl>(new (std::nothrow) DummyIamCallbackInterface(), in Select() 66 std::vector<std::weak_ptr<Context>> Select(ContextType contextType) const in Select() 70 void InsertRemoteScheduleNode(std::shared_ptr<ScheduleNode> scheduleNode) {}; in InsertRemoteScheduleNode() 71 void RemoveRemoteScheduleNode(std::shared_ptr<ScheduleNode> scheduleNode) {}; in RemoveRemoteScheduleNode() 72 std in RemoveRemoteScheduleNode() [all...] |
/base/web/webview/interfaces/kits/cj/src/ |
H A D | web_data_base.cpp | 30 CArrString WebDataBase::CJGetHttpAuthCredentials(const std::string &host, const std::string &realm) in CJGetHttpAuthCredentials() 33 std::string username_s; in CJGetHttpAuthCredentials() 35 std::shared_ptr<NWebDataBase> database = NWebHelper::Instance().GetDataBase(); in CJGetHttpAuthCredentials() 65 result[1] = std::char_traits<char>::copy(result[1], password, MAX_PWD_LENGTH); in CJGetHttpAuthCredentials() 72 void WebDataBase::CJSaveHttpAuthCredentials(const std::string &host, const std::string &realm, in CJSaveHttpAuthCredentials() 73 const std::string &username, const std::string &password) in CJSaveHttpAuthCredentials() 76 std in CJSaveHttpAuthCredentials() [all...] |
/base/web/webview/test/fuzztest/ohos_adapter/printmanager_fuzzer/ |
H A D | printmanager_adapter_fuzz.cpp | 33 std::vector<std::string> fileList; in StartPrintFuzzTest() 34 std::vector<uint32_t> fdList; in StartPrintFuzzTest() 37 std::string fileName(reinterpret_cast<const char*>(data), std::min(size, MAX_LEN_STRING - 1)); in StartPrintFuzzTest() 42 std::string taskId; in StartPrintFuzzTest() 50 std::string printJobName(reinterpret_cast<const char*>(data), std::min(size, MAX_LEN_STRING - 1)); in PrintFuzzTest() 51 std::shared_ptr<PrintDocumentAdapterAdapter> listener = nullptr; in PrintFuzzTest() 60 std in PrintWithContextFuzzTest() [all...] |