/base/hiviewdfx/hilog/services/hilogd/ |
H A D | cmd_executor.cpp | 37 std::lock_guard<std::mutex> lg(m_clientAccess); in ~CmdExecutor() 48 void CmdExecutor::MainLoop(const std::string& socketName) in MainLoop() 52 std::cerr << "Failed to init control socket ! \n"; in MainLoop() 55 std::cout << "Server started to listen !\n"; in MainLoop() 56 using namespace std::chrono_literals; in MainLoop() 58 [this] (std::unique_ptr<Socket> handler) { in MainLoop() 59 OnAcceptedConnection(std::move(handler)); in MainLoop() 67 void CmdExecutor::OnAcceptedConnection(std::unique_ptr<Socket> handler) in OnAcceptedConnection() 69 std in OnAcceptedConnection() [all...] |
/base/inputmethod/imf/services/adapter/settings_data_provider/include/ |
H A D | enable_ime_data_parser.h | 35 std::chrono::system_clock::time_point timestamp{}; 36 std::string bundleName; 37 std::string subName; 75 int32_t GetEnableData(const std::string &key, std::vector<std::string> &enableVec, const int32_t userId); 76 int32_t GetEnableIme(int32_t userId, std::vector<std::string> &enableVec); 78 bool CheckNeedSwitch(const std::string &key, SwitchInfo &switchInfo, const int32_t userId); 82 void OnConfigChanged(int32_t userId, const std [all...] |
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/ |
H A D | hisysevent_record.h | 35 HiSysEventRecord(std::string jsonStr) in HiSysEventRecord() 42 std::string AsJson() const; 43 std::string GetDomain() const; 44 std::string GetEventName() const; 45 std::string GetLevel() const; 46 std::string GetTag() const; 47 std::string GetTimeZone() const; 57 void GetParamNames(std::vector<std::string>& params) const; 60 int GetParamValue(const std [all...] |
/base/location/services/location_locator/locator/include/ |
H A D | report_manager.h | 36 bool OnReportLocation(const std::unique_ptr<Location>& location, std::string abilityName); 37 bool ResultCheck(const std::unique_ptr<Location>& location, const std::shared_ptr<Request>& request); 38 void UpdateCacheLocation(const std::unique_ptr<Location>& location, std::string abilityName); 39 std::unique_ptr<Location> GetLastLocation(); 40 std::unique_ptr<Location> GetCacheLocation(const std::shared_ptr<Request>& request); 41 std [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | map_string_serializer.cpp | 21 bool MapStringSerializer::Deserialize(const std::string &jsonString, std::map<std::string, std::string> &dataObj) in Deserialize() 30 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize() 48 dataObj.insert(std::pair<std::string, std::string>(member, root[member].asString())); in Deserialize() 53 bool MapStringSerializer::Serialize(const std::map<std argument [all...] |
/base/msdp/device_status/intention/adapters/input_adapter/include/ |
H A D | input_adapter.h | 34 int32_t AddMonitor(std::function<void(std::shared_ptr<MMI::PointerEvent>)> callback) override; 35 int32_t AddMonitor(std::function<void(std::shared_ptr<MMI::KeyEvent>)> callback) override; 38 int32_t AddInterceptor(std::function<void(std::shared_ptr<MMI::PointerEvent>)> pointerCb) override; 39 int32_t AddInterceptor(std::function<void(std::shared_ptr<MMI::KeyEvent>)> keyCb) override; 40 int32_t AddInterceptor(std::function<void(std [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_action_button.h | 47 static std::shared_ptr<NotificationActionButton> Create(const std::shared_ptr<Media::PixelMap> &icon, 48 const std::string &title, const std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> &wantAgent, 49 const std::shared_ptr<AAFwk::WantParams> &extras = {}, 53 const std::vector<std::shared_ptr<NotificationUserInput>> &mimeTypeOnlyInputs = {}, 54 const std::shared_ptr<NotificationUserInput> &userInput = {}, bool isContextual = false); 64 static std::shared_ptr<NotificationActionButton> Create( 65 const std [all...] |
/base/update/updater/services/ui/strategy/ |
H A D | ui_strategy.cpp | 20 std::ostream &operator<<(std::ostream &os, const UiStrategyCfg &info) in operator <<() 22 os << "confirmPageId: " << info.confirmPageId << std::endl; in operator <<() 23 os << "labelLogId: { " << info.labelLogId << " }" << std::endl; in operator <<() 24 os << "labelLogResId: { " << info.labelLogResId << " }" << std::endl; in operator <<() 25 os << "labelUpdId: { " << info.labelUpdId << " }" << std::endl; in operator <<() 26 os << info.progressPage << std::endl; in operator <<() 31 std::ostream &operator<<(std::ostream &os, const ResPage &info) in operator <<() 33 os << "resPage: {" << std in operator <<() [all...] |
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | reminder_table_old.cpp | 21 const std::string ReminderTable::TABLE_NAME = "reminder"; 22 const std::string ReminderTable::REMINDER_ID = "reminder_id"; 23 const std::string ReminderTable::PKG_NAME = "package_name"; 24 const std::string ReminderTable::USER_ID = "user_id"; 25 const std::string ReminderTable::UID = "uid"; 26 const std::string ReminderTable::SYS_APP = "system_app"; 27 const std::string ReminderTable::APP_LABEL = "app_label"; 28 const std::string ReminderTable::REMINDER_TYPE = "reminder_type"; 29 const std::string ReminderTable::REMINDER_TIME = "reminder_time"; 30 const std [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
H A D | mock_device_manager_impl.cpp | 27 int32_t DeviceManagerImpl::InitDeviceManager(const std::string &pkgName, std::shared_ptr<DmInitCallback> dmInitCallback) in InitDeviceManager() 32 int32_t DeviceManagerImpl::UnInitDeviceManager(const std::string &pkgName) in UnInitDeviceManager() 37 int32_t DeviceManagerImpl::GetTrustedDeviceList(const std::string &pkgName, const std::string &extra, in GetTrustedDeviceList() 38 std::vector<DmDeviceInfo> &deviceList) in GetTrustedDeviceList() 56 int32_t DeviceManagerImpl::GetLocalDeviceInfo(const std::string &pkgName, DmDeviceInfo &info) in GetLocalDeviceInfo() 65 int32_t DeviceManagerImpl::RegisterDevStateCallback(const std::string &pkgName, const std::string &extra, in RegisterDevStateCallback() 66 std in RegisterDevStateCallback() [all...] |
/base/telephony/sms_mms/services/sms/include/cdma/ |
H A D | cdma_sms_sender.h | 30 CdmaSmsSender(int32_t slotId, std::function<void(std::shared_ptr<SmsSendIndexer>)> sendRetryFun); 32 void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string &text, 35 void TextBasedSmsDeliveryViaIms(const std::string &desAddr, const std::string &scAddr, const std::string &text, 38 bool TpduNullOrSmsPageOverNormalOrSmsEncodeFail(std::vector<struct SplitInfo> cellsInfos, 39 std [all...] |
/base/update/updater/test/unittest/script/ |
H A D | script_unittest.h | 25 int32_t CreatePackage(const std::string &path, const std::string &keyName, PkgInfoPtr header, 26 std::vector<std::pair<std::string, ZipFileInfo>> &files) override 30 int32_t CreatePackage(const std::string &path, const std::string &keyName, PkgInfoPtr header, 31 std::vector<std::pair<std [all...] |
/base/hiviewdfx/faultloggerd/test/utils/ |
H A D | dfx_test_util.cpp | 34 std::string ExecuteCommands(const std::string& cmds) in ExecuteCommands() 40 std::string cmdLog = ""; in ExecuteCommands() 54 bool ExecuteCommands(const std::string& cmds, std::vector<std::string>& ress) in ExecuteCommands() 70 ress.push_back(std::string(res)); in ExecuteCommands() 76 int GetProcessPid(const std::string& processName) in GetProcessPid() 78 std::string cmd = "pidof " + processName; in GetProcessPid() 79 std in GetProcessPid() [all...] |
/base/hiviewdfx/hiview/base/event_raw/include/encoded/ |
H A D | raw_data_builder_json_parser.h | 31 RawDataBuilderJsonParser(const std::string& jsonStr); 34 std::shared_ptr<RawDataBuilder> Parse(); 66 void BuilderAppendStringValue(const std::string& key, const std::string& value); 67 void BuilderAppendIntValue(const std::string& key, const std::string& value); 68 void BuilderAppendFloatingValue(const std::string& key, const std::string& value); 69 void BuilderAppendStringArrayValue(const std::string& key, const std [all...] |
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/ |
H A D | memory_util.h | 34 using ValueMap = std::map<std::string, uint64_t>; 35 using GroupMap = std::map<std::string, ValueMap>; 37 std::string KB_UNIT_ = " kB"; 44 void CalcGroup(const std::string &group, const std::string &type, const uint64_t &value, GroupMap &infos); 45 bool RunCMD(const std::string &cmd, std::vector<std [all...] |
/base/customization/enterprise_device_management/services/edm/include/ |
H A D | admin_policies_storage_rdb.h | 30 static std::shared_ptr<AdminPoliciesStorageRdb> GetInstance();
33 bool DeleteAdmin(int32_t userId, const std::string &packageName);
34 bool UpdateAdmin(int32_t userId, const std::string &packageName, const std::string &className,
35 const std::vector<std::string> &permissions);
36 bool UpdateEntInfo(int32_t userId, const std::string &packageName, const EntInfo &entInfo);
37 bool UpdateManagedEvents(int32_t userId, const std::string &packageName,
38 const std::vector<ManagedEvent> &managedEvents);
39 std [all...] |
/base/security/security_guard/services/config_manager/src/ |
H A D | config_data_manager.cpp | 30 std::lock_guard<std::mutex> lock(modelMutex_); in InsertModelMap() 36 std::lock_guard<std::mutex> lock(eventMutex_); in InsertEventMap() 40 void ConfigDataManager::InsertModelToEventMap(uint32_t modelId, std::set<int64_t> eventIds) in InsertModelToEventMap() 42 std::lock_guard<std::mutex> lock(modelToEventMutex_); in InsertModelToEventMap() 46 void ConfigDataManager::InsertEventToTableMap(int64_t eventId, std::string table) in InsertEventToTableMap() 48 std::lock_guard<std in InsertEventToTableMap() [all...] |
/base/usb/usb_manager/services/native/include/ |
H A D | usb_right_manager.h | 39 bool HasRight(const std::string &deviceName, const std::string &bundleName, 40 const std::string &tokenId, const int32_t &userId); 42 int32_t RequestRight(const std::string &busDev, const std::string &deviceName, const std::string &bundleName, 43 const std::string &tokenId, const int32_t &userId); 44 bool AddDeviceRight(const std::string &deviceName, const std::string &tokenIdStr); 45 bool AddDeviceRight(const std [all...] |
/base/hiviewdfx/hiview/base/include/ |
H A D | plugin_config.h | 28 std::string name; 29 std::string workHandlerType; 30 std::string workHandlerName; 31 std::list<std::string> pipelineNameList; 35 std::string name; 36 std::list<std::string> pluginNameList; 40 std::string name; 46 explicit PluginConfig(const std in ~PluginConfig() [all...] |
/base/global/i18n/frameworks/intl/include/ |
H A D | system_locale_manager.h | 41 std::string id; 47 std::string displayName; 50 std::string localName; 55 std::string localeTag; 66 std::string zoneId; 69 std::string cityId; 72 std::string cityDisplayName; 78 std::string zoneDisplayName; 94 * @return std::vector<LocaleItem> sort result. 96 std [all...] |
/base/hiviewdfx/hiappevent/interfaces/native/inner_api/include/ |
H A D | app_event.h | 34 Event(const std::string& domain, const std::string& name, EventType type);
37 void AddParam(const std::string& key, bool value);
38 void AddParam(const std::string& key, int32_t value);
39 void AddParam(const std::string& key, int64_t value);
40 void AddParam(const std::string& key, double value);
46 void AddParam(const std::string& key, const std::string& value);
48 void AddParam(const std::string& key, const std [all...] |
/base/notification/common_event_service/services/include/ |
H A D | common_event_sticky_manager.h | 27 using CommonEventRecordPtr = std::shared_ptr<CommonEventRecord>; 28 using CommonEventDataPtr = std::shared_ptr<CommonEventData>; 29 using CommonEventPublishInfoPtr = std::shared_ptr<CommonEventPublishInfo>; 30 using SubscribeInfoPtr = std::shared_ptr<CommonEventSubscribeInfo>; 40 std::vector<CommonEventRecordPtr> &commonEventRecords); 49 bool GetStickyCommonEvent(const std::string &event, CommonEventData &eventData); 66 void DumpState(const std::string &event, const int32_t &userId, std::vector<std::string> &state); 75 int32_t RemoveStickyCommonEvent(const std [all...] |
/base/update/updateservice/services/core/ability/utils/include/ |
H A D | file_utils.h | 31 std::string dirName; 38 static bool IsFileExist(const std::string &fileName); 39 static int64_t GetFileSize(const std::string &fileName); 40 static bool IsSpaceEnough(const std::string &filePath, const int64_t requiredSpace); 41 static bool SaveDataToFile(const std::string &filePath, const std::string &data); 42 static void DeleteFile(const std::string &rootPath, bool isDeleteRootDir); 43 static bool CreateMultiDirWithPermission(const std::string &fileDir, int32_t permission); 44 static void InitAndCreateBaseDirs(const std::vector<DirInfo> &dirInfos); 45 static void DestroyBaseDirectory(const std [all...] |
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | webview_javascript_result_callback.h | 40 std::string objName; 41 std::vector<std::string> syncMethodList; 42 std::vector<std::string> asyncMethodList; 43 std::string permission; 53 static std::shared_ptr<JavaScriptOb> CreateNamed( 55 static std::shared_ptr<JavaScriptOb> CreateTransient( 61 napi_env env, int32_t containerScopeId, napi_value value, std::set<int32_t> holders, size_t refCount = 1); 70 *this = std in JavaScriptOb() [all...] |
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
H A D | mock_single_kv_store.cpp | 22 std::mutex MockSingleKvStore::mutex_; 23 std::map<std::pair<std::string, std::string>, std::shared_ptr<SingleKvStore>> MockSingleKvStore::kvStoreMap_; 25 void MockSingleKvStore::InsertMockKvStore(AppId appId, StoreId storeId, std::shared_ptr<SingleKvStore> store) in InsertMockKvStore() 27 std::lock_guard<std::mutex> lock(mutex_); in InsertMockKvStore() 29 kvStoreMap_[std in InsertMockKvStore() [all...] |