/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/modules/ |
H A D | jsi_router_module.cpp | 24 std::string DeclarativeParseRouteUrl(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, in DeclarativeParseRouteUrl() 25 const std::string& key) in DeclarativeParseRouteUrl() 27 std::string argStr = arg->GetJsonString(runtime); in DeclarativeParseRouteUrl() 32 std::string pageRoute; in DeclarativeParseRouteUrl() 41 std::string DeclarativeParseRouteParams(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& arg, in DeclarativeParseRouteParams() 42 const std::string& key) in DeclarativeParseRouteParams() 44 std::string argStr = arg->GetJsonString(runtime); in DeclarativeParseRouteParams() 46 std::string params; in DeclarativeParseRouteParams() 60 std::string uri = DeclarativeParseRouteUrl(runtime, argv[0], ROUTE_KEY_URI); in PagePush() 61 std::string param in PagePush() [all...] |
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | connect_server_manager.cpp | 30 using StartServer = bool (*)(const std::string& packageName); 32 using SendMessage = void (*)(const std::string& message); 33 using SendLayoutMessage = void (*)(const std::string& message); 34 using StopServer = void (*)(const std::string& packageName); 35 using StoreMessage = void (*)(int32_t instanceId, const std::string& message); 36 using StoreInspectorInfo = void (*)(const std::string& jsonTreeStr, const std::string& jsonSnapshotStr); 134 const std::string soDir = "libark_connect_inspector.so"; in InitConnectServer() 136 const std::string soDir = "libark_connect_inspector.z.so"; in InitConnectServer() 205 int32_t instanceId, const std::string in AddInstance() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/camera/large_system/ |
H A D | camera.cpp | 92 std::string param = paramStream.str(); in CreateCamera() 103 MakeEventHash(CAMERA_ON_TAKE_PHOTO), [weak = WeakClaim(this)](const std::string& param) { in CreateCamera() 110 MakeEventHash(CAMERA_PERMISSION), [weak = WeakClaim(this)](const std::string& param) { in CreateCamera() 117 MakeEventHash(CAMERA_ON_PREPARE), [weak = WeakClaim(this)](const std::string& param) { in CreateCamera() 192 std::string param = paramStream.str(); in TakePhoto() 200 std::string param = paramStream.str(); in SetFlashMode() 204 void Camera::OnTakePhoto(const std::string& param) in OnTakePhoto() 206 std::map<std::string, std::string> result = Resource::ParseMapFromString(param); in OnTakePhoto() 213 void Camera::OnError(const std::string [all...] |
/foundation/arkui/ace_engine/test/unittest/core/common/rosen/ |
H A D | rosen_test.cpp | 37 const std::string RET_TEST = "error"; 38 const std::string HAPPATTH = "/system/app/com.ohos.photos/Photos.hap"; 39 const std::string ASSETBASEPATHS = "/resources/base/profile/"; 297 std::string hapPath = "/system/app/com.ohos.photos/Photos.hap"; in HWTEST_F() 298 std::vector<std::string> assetBasePaths; in HWTEST_F() 302 std::string assetName = RET_TEST; in HWTEST_F() 303 std::string result = object.GetAssetPath(assetName, true); in HWTEST_F() 320 std::string assetName = RET_TEST; in HWTEST_F() 321 std::string ret = object.GetAssetPath(assetName, true); in HWTEST_F() 328 std::string hapPat in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/observer/ |
H A D | ui_observer.h | 22 #include <string> 37 std::string navigationId, const std::shared_ptr<UIObserverListener>& listener); 39 static void UnRegisterNavigationCallback(std::string navigationId, napi_value cb); 44 const std::string& id, const std::shared_ptr<UIObserverListener>& listener); 46 static void UnRegisterScrollEventCallback(const std::string& id, napi_value cb); 47 static void HandleScrollEventStateChange(const std::string& id, int32_t uniqueId, 71 napi_env env, napi_value uiAbilityContext, const std::optional<std::string>& navigationId, 74 int32_t uiContextInstanceId, const std::optional<std::string>& navigationId, 77 const std::optional<std::string>& navigationId, napi_value callback); 79 const std::optional<std::string> [all...] |
/foundation/bundlemanager/app_domain_verify/services/src/manager/rdb/ |
H A D | app_domain_verify_rdb_data_manager.cpp | 17 #include <string> 24 const std::string DB_BUNDLE_NAME = "BUNDLE_NAME"; 25 const std::string DB_APP_IDENTIFIER = "APP_IDENTIFIER"; 26 const std::string DB_DOMAIN = "DOMAIN"; 27 const std::string DB_STATUES = "VERIFY_STATUES"; 28 const std::string DB_VERIFY_TIME = "VERIFY_TIME"; 29 const std::string DB_VERIFY_COUNT = "VERIFY_COUNT"; 83 const std::string& bundleName, std::vector<RdbDataItem>& items) in QueryDomainByBundleName() 88 std::vector<std::string> columns = {}; in QueryDomainByBundleName() 91 bool AppDomainVerifyRdbDataManager::QueryBundleNameByDomain(const std::string in QueryDomainByBundleName() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | pre_install_exception_mgr.cpp | 38 std::set<std::string> &exceptionPaths, std::set<std::string> &exceptionBundleNames, in GetAllPreInstallExceptionInfo() 39 std::set<std::string> &exceptionAppServicePaths, std::set<std::string> &exceptionAppServiceBundleNames) in GetAllPreInstallExceptionInfo() 66 std::string preInstallExceptionStr; in LoadPreInstallExceptionInfosFromDb() 81 GetValueIfFindKey<std::set<std::string>>(jsonObject, jsonObjectEnd, EXCEPTION_PATHS, exceptionPaths_, in LoadPreInstallExceptionInfosFromDb() 83 GetValueIfFindKey<std::set<std::string>>(jsonObject, jsonObjectEnd, EXCEPTION_BUNDLENAMES, exceptionBundleNames_, in LoadPreInstallExceptionInfosFromDb() 85 GetValueIfFindKey<std::set<std::string>>(jsonObject, jsonObjectEnd, EXCEPTION_APP_SERVICE_PATHS, in LoadPreInstallExceptionInfosFromDb() 87 GetValueIfFindKey<std::set<std::string>>(jsonObject, jsonObjectEnd, EXCEPTION_APP_SERVICE_BUNDLENAMES, in LoadPreInstallExceptionInfosFromDb() 154 const std::string in SavePreInstallExceptionPath() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/ |
H A D | patch_profile.cpp | 46 std::string bundleName; 49 std::string versionName; 50 std::string patchVersionName; 54 std::string name; 55 std::string type; 56 std::vector<std::string> deviceTypes; 57 std::string originalModuleHash; 119 GetValueIfFindKey<std::vector<std::string>>(jsonObject, in from_json() 156 QuickFixType GetQuickFixType(const std::string &type) in GetQuickFixType() 168 bool CheckNameIsValid(const std::string [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/listener/ |
H A D | device_status_listener.cpp | 38 const std::string AUDIO_HDI_SERVICE_NAME = "audio_manager_service"; 39 const std::string AUDIO_HDI_PNP_SERVICE_NAME = "audio_hdi_pnp_service"; 40 const std::string AUDIO_BLUETOOTH_HDI_SERVICE_NAME = "audio_bluetooth_hdi_service"; 41 const std::string DAUDIO_HDI_SERVICE_NAME = "daudio_primary_service"; 42 const std::string DP_ADDRESS = "card=0;port="; 78 static void ReceviceDistributedInfo(struct ServiceStatus* serviceStatus, std::string & info, in ReceviceDistributedInfo() 90 AUDIO_ERR_LOG("[DeviceStatusListener]: Failed to scan info string"); in ReceviceDistributedInfo() 103 static void OnDeviceStatusChange(const std::string &info, DeviceStatusListener *devListener) in OnDeviceStatusChange() 109 AUDIO_WARNING_LOG("[DeviceStatusListener]: Failed to scan info string %{public}s", info.c_str()); in OnDeviceStatusChange() 125 std::string inf in OnServiceStatusReceived() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/ |
H A D | audio_device_parser.cpp | 139 std::string adapterName = ExtractPropertyValue("name", currNode); in ParseAudioDevicePrivacyType() 162 AudioDevicePrivacyType AudioDeviceParser::GetDevicePrivacyType(const std::string &devicePrivacyType) in GetDevicePrivacyType() 173 std::string AudioDeviceParser::ExtractPropertyValue(const std::string &propName, xmlNode *node) in ExtractPropertyValue() 175 std::string propValue = ""; in ExtractPropertyValue() 199 std::vector<std::string> split(const std::string &line, const std::string &sep) in split() 201 std::vector<std::string> buf; in split() 203 std::string in split() [all...] |
/foundation/multimedia/media_foundation/services/media_monitor/test/unittest/event_bean_test/src/ |
H A D | event_bean_unit_test.cpp | 120 std::string key = "DEVICETYPE"; in HWTEST() 129 std::string key = "APP_NAME"; in HWTEST() 130 std::string value = "com.sample.unittest"; in HWTEST() 138 std::string key = "TRANSACTIONID"; in HWTEST() 147 std::string key = "VOLUME"; in HWTEST() 156 std::string key = "DEVICETYPE"; in HWTEST() 168 std::string key = "DEVICETYPE"; in HWTEST() 180 std::string key = "APP_NAME"; in HWTEST() 181 std::string firstValue = "com.sample.unittest1"; in HWTEST() 182 std::string secondValu in HWTEST() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/ |
H A D | photos_clone.cpp | 29 std::string PhotosClone::ToString(const FileInfo &fileInfo)
in ToString() 36 std::string PhotosClone::ToLower(const std::string &str)
in ToLower() 38 std::string lowerStr;
in ToLower() 49 std::string querySql = this->SQL_PHOTOS_TABLE_COUNT_IN_PHOTO_MAP;
in GetPhotosRowCountInPhotoMap() 66 std::string querySql = this->SQL_PHOTOS_TABLE_COUNT_NOT_IN_PHOTO_MAP;
in GetPhotosRowCountNotInPhotoMap() 104 * @note If the lPath is empty, return '/Pictures/其它' string.
105 * If the lPath is '/Pictures/ScreenShots', return '/Pictures/ScreenShots' string.
137 std::string PhotosClone::FindlPath(const FileInfo &fileInfo)
in FindlPath() 155 std::string PhotosClon [all...] |
H A D | photo_album_dao.cpp | 18 #include <string>
28 std::string StringUtils::ToLower(const std::string &str)
in ToLower() 30 std::string lowerStr;
in ToLower() 39 bool PhotoAlbumDao::CheckAlbumNameUnique(const std::string &albumName, const std::string &lPath)
in CheckAlbumNameUnique() 42 std::string querySql = this->SQL_PHOTO_ALBUM_CHECK_ALBUM_NAME_UNIQUE;
in CheckAlbumNameUnique() 59 std::string PhotoAlbumDao::FindUniqueAlbumName(const PhotoAlbumDao::PhotoAlbumRowData &photoAlbum)
in FindUniqueAlbumName() 65 const std::string lPath = photoAlbum.lPath;
in FindUniqueAlbumName() 72 std::string albumNam in FindUniqueAlbumName() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_cloud_enhancement/src/utils/ |
H A D | enhancement_database_operations.cpp | 39 RdbPredicates &servicePredicates, const vector<string> &columns)
in Query() 42 const vector<string> &whereUriArgs = clientPredicates.GetWhereArgs();
in Query() 43 string uri = whereUriArgs.front();
in Query() 48 string fileId = MediaFileUri::GetPhotoId(uri);
in Query() 54 const vector<string> &columns, unordered_map<int32_t, string> &fileId2Uri)
in BatchQuery() 58 const vector<string> &whereUriArgs = clientPredicates.GetWhereArgs();
in BatchQuery() 59 vector<string> whereIdArgs;
in BatchQuery() 66 string fileId = MediaFileUri::GetPhotoId(arg);
in BatchQuery() 116 const string in InsertCloudEnhancementImageInDb() [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/services/resschedservice/src/ |
H A D | res_sched_service.cpp | 40 const std::string APP_PRELOAD_PLIGIN_NAME = "libapp_preload_plugin.z.so";
99 bool ResSchedService::IsAllowedAppPreload(const std::string& bundleName, int32_t preloadMode)
in IsAllowedAppPreload() 149 std::vector<std::string> argsInStr;
in Dump() 152 std::string ret = Str16ToStr8(arg);
in Dump() 156 std::string result;
in Dump() 165 std::vector<std::string> argsInStrToPlugin;
in Dump() 180 void ResSchedService::DumpExt(const std::vector<std::string>& argsInStr, std::string &result)
in DumpExt() 199 void ResSchedService::DumpSystemLoadInfo(std::string &result)
in DumpSystemLoadInfo() 205 std::string nativ in DumpSystemLoadInfo() [all...] |
/foundation/window/window_manager/window_scene/common/src/ |
H A D | session_permission.cpp | 108 bool SessionPermission::VerifyCallingPermission(const std::string& permissionName) in VerifyCallingPermission() 125 bool SessionPermission::VerifyPermissionByCallerToken(const uint32_t callerToken, const std::string& permissionName) in VerifyPermissionByCallerToken() 198 bool SessionPermission::IsSameBundleNameAsCalling(const std::string& bundleName) in IsSameBundleNameAsCalling() 210 std::string identity = IPCSkeleton::ResetCallingIdentity(); in IsSameBundleNameAsCalling() 211 std::string callingBundleName; in IsSameBundleNameAsCalling() 224 bool SessionPermission::IsSameAppAsCalling(const std::string& bundleName, const std::string& appIdentifier) in IsSameAppAsCalling() 236 std::string identity = IPCSkeleton::ResetCallingIdentity(); in IsSameAppAsCalling() 237 std::string callingBundleName; in IsSameAppAsCalling() 278 std::string identit in IsStartedByUIExtension() [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/cxx/ |
H A D | parcel_wrapper.cpp | 25 #include <string> 61 std::u16string s = Str8ToStr16(std::string(name)); in WriteInterfaceToken() 65 rust::string ReadInterfaceToken(MessageParcel &msgParcel) in ReadInterfaceToken() 111 bool ReadString(Parcel &parcel, rust::string &val) in ReadString() 113 std::string v; in ReadString() 124 auto s = std::string(val); in WriteString() 130 std::u16string u16string = Str8ToStr16(std::string(val)); in WriteString16() 133 rust::string ReadString16(Parcel &parcel) in ReadString16() 137 return rust::string(u16string.data()); in ReadString16() 196 bool WriteStringVector(Parcel &parcel, rust::slice<const rust::string> va [all...] |
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | notify_callback_proxy.cpp | 22 bool WriteInterfaceStateData(MessageParcel &data, const std::string &ifName) in WriteInterfaceStateData() 35 bool WriteInterfaceAddressData(MessageParcel &data, const std::string &addr, const std::string &ifName, int flags, in WriteInterfaceAddressData() 61 bool WriteLinkStateData(MessageParcel &data, const std::string &ifName, bool up) in WriteLinkStateData() 84 int32_t NotifyCallbackProxy::OnInterfaceAddressUpdated(const std::string &addr, const std::string &ifName, int flags, in OnInterfaceAddressUpdated() 111 int32_t NotifyCallbackProxy::OnInterfaceAddressRemoved(const std::string &addr, const std::string &ifName, int flags, in OnInterfaceAddressRemoved() 138 int32_t NotifyCallbackProxy::OnInterfaceAdded(const std::string &ifName) in OnInterfaceAdded() 163 int32_t NotifyCallbackProxy::OnInterfaceRemoved(const std::string [all...] |
/foundation/communication/nfc/interfaces/inner_api/tags/ |
H A D | mifare_classic_tag.cpp | 98 int MifareClassicTag::AuthenticateSector(int sectorIndex, const std::string& key, bool bIsKeyA) in AuthenticateSector() 108 std::string hexCmd = ""; in AuthenticateSector() 118 std::string tagUid = GetTagUid(); in AuthenticateSector() 136 std::string hexRespData; in AuthenticateSector() 140 int MifareClassicTag::ReadSingleBlock(uint32_t blockIndex, std::string &hexRespData) in ReadSingleBlock() 150 std::string hexCmd = ""; in ReadSingleBlock() 157 int MifareClassicTag::WriteSingleBlock(uint32_t blockIndex, const std::string& hexData) in WriteSingleBlock() 171 std::string hexCmd = ""; in WriteSingleBlock() 176 std::string hexRespData; in WriteSingleBlock() 194 std::string hexCm in IncrementBlock() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | cloud_cursor_impl.cpp | 23 static std::map<std::string, std::string> EXTEND_TO_KEYS = { 30 static std::set<std::string> EXTEND_KEYS = { 65 cursor_ = std::string(reinterpret_cast<char *>(cursor), cursorLen); in CloudCursorImpl() 81 int32_t CloudCursorImpl::GetColumnNames(std::vector<std::string> &names) const in GetColumnNames() 90 int32_t CloudCursorImpl::GetColumnName(int32_t col, std::string &name) const in GetColumnName() 173 std::vector<std::pair<std::string, DBValue>> CloudCursorImpl::GetData(OhCloudExtValueBucket *vb) in GetData() 175 std::vector<std::pair<std::string, DBValue>> result {}; in GetData() 191 auto key = std::string(str, valueLen); in GetData() 199 std::pair<std::string, DBValu in GetData() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | distributed_kv_data_manager.cpp | 46 DdsTrace trace(std::string(LOG_TAG "::") + std::string(__FUNCTION__), in GetSingleKvStore() 76 DdsTrace trace(std::string(LOG_TAG "::") + std::string(__FUNCTION__)); in GetAllKvStoreId() 84 DdsTrace trace(std::string(LOG_TAG "::") + std::string(__FUNCTION__), in CloseKvStore() 98 DdsTrace trace(std::string(LOG_TAG "::") + std::string(__FUNCTION__), in CloseKvStore() 114 DdsTrace trace(std::string(LOG_TAG "::") + std::string(__FUNCTION_ in CloseAllKvStore() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_query_object_helper_test.cpp | 31 const std::string VALID_SCHEMA_FULL_DEFINE = "{\"SCHEMA_VERSION\":\"1.0\"," 45 const std::string TEST_FIELD_NAME = "$.field_name2.field_name6"; 59 std::string sql; in GetQuerySql() 67 if (expectType.index() != TYPE_INDEX<std::string>) { in CheckType() 70 std::string expectStr = std::get<std::string>(expectType); in CheckType() 71 std::string actualStr = std::get<std::string>(actualType); in CheckType() 136 std::string testValue = "employee.sun.yong"; in HWTEST_F() 219 .fieldValue = {std::string(" in Query004GetExpectNode() [all...] |
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | ext_backup.cpp | 99 string ExtBackup::GetUsrConfig() const in GetUsrConfig() 101 vector<string> config; in GetUsrConfig() 119 string usrConfig = GetUsrConfig(); in AllowToBackupRestore() 130 string usrConfig = GetUsrConfig(); in UseFullBackupOnly() 149 string pendingMsg = "Received an empty ability. You must missed the init proc"; in VerifyAndGetAction() 155 pendingMsg = string("Want must specify a valid action instead of ").append(to_string(extActionInt)); in VerifyAndGetAction() 239 std::string appVersionFlag_ = in WasFromSpecialVersion() 249 std::string appVersionFlag_ = in SpecialVersionForCloneAndCloud() 265 ErrCode ExtBackup::OnBackup(function<void(ErrCode, std::string)> callback) in OnBackup() 271 ErrCode ExtBackup::OnBackup(std::function<void(ErrCode, std::string)> callbac [all...] |
/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_backup.cpp | 27 #include <string> 51 void UpdateBundleReceivedFiles(const BundleName &bundleName, const string &fileName) in UpdateBundleReceivedFiles() 98 set<string> receivedFile; 99 set<string> indexFile; 109 map<string, BundleStatus> bundleStatusMap_; 119 static string GenHelpMsg() in GenHelpMsg() 131 string tmpPath = string(BConstants::BACKUP_TOOL_RECEIVE_DIR) + fileInfo.owner; in OnFileReady() 135 if (fileInfo.fileName.find('/') != string::npos) { in OnFileReady() 161 static void OnResultReport(shared_ptr<Session> ctx, const std::string bundleNam [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/ |
H A D | local_capability_info_manager.cpp | 80 int32_t LocalCapabilityInfoManager::SyncDeviceInfoFromDB(const std::string &deviceId) in SyncDeviceInfoFromDB() 91 std::vector<std::string> dataVector; in SyncDeviceInfoFromDB() 122 std::vector<std::string> keys; in AddCapability() 123 std::vector<std::string> values; in AddCapability() 124 std::string key; in AddCapability() 146 int32_t LocalCapabilityInfoManager::RemoveCapabilityInfoByKey(const std::string &key) in RemoveCapabilityInfoByKey() 168 void LocalCapabilityInfoManager::GetCapabilitiesByDeviceId(const std::string &deviceId, in GetCapabilitiesByDeviceId() 183 int32_t LocalCapabilityInfoManager::GetCapability(const std::string &deviceId, const std::string &dhId, in GetCapability() 190 std::string ke in GetCapability() [all...] |