/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
H A D | kv_store.c | 136 static int InitKv(const char* dataPath) in InitKv() argument 138 if (dataPath == NULL) { in InitKv() 161 static int GetCurrentItem(const char* dataPath) in GetCurrentItem() argument 217 const char* dataPath = g_dataPath; in UtilsGetValue() local 218 if (dataPath == NULL) { in UtilsGetValue() 246 const char* dataPath = g_dataPath; in UtilsSetValue() local 247 int ret = InitKv(dataPath); in UtilsSetValue() 254 g_kvSum = GetCurrentItem(dataPath); in UtilsSetValue() 261 boolean newItem = NewItem(dataPath, key); in UtilsSetValue() 285 const char* dataPath = g_dataPath; in UtilsDeleteValue() local [all …]
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
H A D | nativeapi_kv.cpp | 75 int ret = GetFullPath(dataPath, key); in GetValueInner() 84 int ret = GetFullPath(dataPath, key); in SetValueInner() 93 int ret = GetFullPath(dataPath, key); in DeleteValueInner() 127 const char* dataPath = GetDataPath(); in ExecuteGet() local 135 ret = InitKv(dataPath); in ExecuteGet() 168 const char* dataPath = GetDataPath(); in ExecuteSet() local 169 int ret = InitKv(dataPath); in ExecuteSet() 179 DeleteValueInner(dataPath, key); in ExecuteSet() 205 int ret = InitKv(dataPath); in ExecuteDelete() 235 int ret = InitKv(dataPath); in ExecuteClear() [all …]
|
H A D | nativeapi_kv_impl.c | 45 static int GetKvFolder(const char* dataPath) in GetKvFolder() argument 47 if (dataPath == NULL) { in GetKvFolder() 53 if (sprintf_s(g_kvFolder, sizeof(g_kvFolder), "%s/%s", dataPath, DEFAULT_FOLDER_PATH) < 0) { in GetKvFolder() 79 int InitKv(const char* dataPath) in InitKv() argument 81 int ret = GetKvFolder(dataPath); in InitKv() 164 int ClearKVStore(const char* dataPath) in ClearKVStore() argument 166 int ret = GetKvFolder(dataPath); in ClearKVStore()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_sandbox_app_system_test/ |
H A D | bundle_mgr_sandbox_app_system_test.cpp | 259 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 263 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 267 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 271 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 275 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 279 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 283 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 295 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 299 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 303 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_daemon_handler.cpp | 131 int32_t BundleDaemonHandler::CreateDataDirectory(const char *dataPath, int32_t uid, int32_t gid, bo… in CreateDataDirectory() argument 133 if (!IsValideDataPath(dataPath)) { in CreateDataDirectory() 137 std::string dataDir = std::string(dataPath); in CreateDataDirectory() 156 int32_t BundleDaemonHandler::RemoveInstallDirectory(const char *codePath, const char *dataPath, boo… in RemoveInstallDirectory() argument 160 result = IsValideDataPath(dataPath) && BundleFileUtils::RemoveFile(dataPath) && result; in RemoveInstallDirectory() 268 bool BundleDaemonHandler::IsValideDataPath(const char *dataPath) in IsValideDataPath() argument 270 if (dataPath == nullptr) { in IsValideDataPath() 273 return BundleFileUtils::IsValidPath(STORAGE + HAP_DATA_PATH, dataPath) || in IsValideDataPath() 274 BundleFileUtils::IsValidPath(SDCARD + HAP_DATA_PATH, dataPath); in IsValideDataPath()
|
H A D | bundle_daemon.cpp | 196 const char *dataPath = reinterpret_cast<char *>(ReadString(req, &len)); in CreateDataDirectoryInvoke() local 197 if (dataPath == nullptr || len == 0) { in CreateDataDirectoryInvoke() 207 return BundleDaemon::GetInstance().handler_.CreateDataDirectory(dataPath, uid, gid, isChown); in CreateDataDirectoryInvoke() 253 std::string dataPath = ""; in RemoveInstallDirectoryInvoke() local 254 int32_t ret = ObtainStringFromIpc(req, codePath, dataPath); in RemoveInstallDirectoryInvoke() 260 …return BundleDaemon::GetInstance().handler_.RemoveInstallDirectory(codePath.c_str(), dataPath.c_st… in RemoveInstallDirectoryInvoke()
|
/ohos5.0/foundation/multimedia/media_foundation/test/scenetest/helper/ |
H A D | lite_stream_player.cpp | 133 int ReadDataFromFile(std::string dataPath) in ReadDataFromFile() argument 136 if (OSAL::ConvertFullPath(dataPath, dataFullPath) && !dataFullPath.empty()) { in ReadDataFromFile() 137 dataPath = dataFullPath; in ReadDataFromFile() 139 std::fstream fs(dataPath); in ReadDataFromFile() 141 std::cout << "failed to open " << dataPath << '\n'; in ReadDataFromFile() 164 int StartLiteStreamPlayer(const std::string& dataPath) in StartLiteStreamPlayer() argument 180 testDataSize = ReadDataFromFile(dataPath); in StartLiteStreamPlayer()
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
H A D | js_app_context.cpp | 359 const char *dataPath = GetDataPath(); in GetResourcePath() local 360 if (dataPath == nullptr || strlen(dataPath) == 0) { in GetResourcePath() 361 dataPath = currentBundleName_; in GetResourcePath() 363 char *relocatedPath = RelocateResourceFilePath(dataPath, path); in GetResourcePath() 382 char *dataPath = StringUtil::Malloc(dataPathSize); in ProcessResourcePathByConfiguration() local 383 if (dataPath == nullptr) { in ProcessResourcePathByConfiguration() 391 if (sprintf_s(dataPath, dataPathSize + 1, fmtStr, appDataRoot, currentBundleName_) < 0) { in ProcessResourcePathByConfiguration() 393 ACE_FREE(dataPath); in ProcessResourcePathByConfiguration() 396 char *relocatedPath = RelocateResourceFilePath(dataPath, slicedFilePath); in ProcessResourcePathByConfiguration() 397 ACE_FREE(dataPath); in ProcessResourcePathByConfiguration()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_info_utils.cpp | 56 SetBundleInfoDataPath(des, src.dataPath); in CopyBundleInfo() 97 des->dataPath = src.dataPath; in CopyBundleInfoNoReplication() 197 bool BundleInfoUtils::SetBundleInfoDataPath(BundleInfo *bundleInfo, const char *dataPath) in SetBundleInfoDataPath() argument 199 if (bundleInfo == nullptr || dataPath == nullptr) { in SetBundleInfoDataPath() 203 AdapterFree(bundleInfo->dataPath); in SetBundleInfoDataPath() 204 bundleInfo->dataPath = Utils::Strdup(dataPath); in SetBundleInfoDataPath() 205 return bundleInfo->dataPath != nullptr; in SetBundleInfoDataPath()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_sandbox_app_test/ |
H A D | bms_bundle_sandbox_app_test.cpp | 321 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 325 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 329 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 333 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 337 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 341 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 345 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 357 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 361 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 365 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() [all …]
|
/ohos5.0/base/account/os_account/dfx/hisysevent_adapter/ |
H A D | account_hisysevent_adapter.cpp | 188 void ReportOsAccountDataTampered(int32_t id, const std::string& dataPath, const std::string& dataLa… in ReportOsAccountDataTampered() argument 194 "DATA_PATH", dataPath, in ReportOsAccountDataTampered() 198 ret, id, dataPath.c_str(), dataLabel.c_str()); in ReportOsAccountDataTampered() 202 (void)dataPath; in ReportOsAccountDataTampered()
|
/ohos5.0/foundation/ability/ability_lite/frameworks/ability_lite/src/ |
H A D | ability_scheduler.cpp | 48 char *dataPath = reinterpret_cast<char *>(ReadString(data, nullptr)); in AmsCallback() local 49 if ((bundleName == nullptr) || (srcPath == nullptr) || (dataPath == nullptr)) { in AmsCallback() 55 appInfo.dataPath = dataPath; in AmsCallback()
|
H A D | ability_env.cpp | 36 const std::string &dataPath = OHOS::AbilityEnvImpl::GetInstance().GetDataPath(); in GetDataPath() local 37 return dataPath.c_str(); in GetDataPath()
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/include/ |
H A D | nativeapi_kv_impl.h | 28 int InitKv(const char* dataPath); 32 int ClearKVStore(const char* dataPath);
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_daemon_client.cpp | 270 int32_t BundleDaemonClient::CreateDataDirectory(const char *dataPath, int32_t uid, int32_t gid, boo… in RegisterCallback() argument 275 if (dataPath == nullptr) { in RegisterCallback() 282 WriteString(&request, dataPath); in RegisterCallback() 364 int32_t BundleDaemonClient::RemoveInstallDirectory(const char *codePath, const char *dataPath, bool… in RegisterCallback() argument 369 if (codePath == nullptr || dataPath == nullptr) { in RegisterCallback() 374 return CallClientInvoke(REMOVE_INSTALL_DIRECTORY, codePath, dataPath, keepData); in RegisterCallback()
|
H A D | bundle_info_creator.cpp | 56 index = std::string(info->dataPath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo() 63 dataDirPath = std::string(info->dataPath).substr(0, index); in SaveBundleInfo() 125 std::string dataPath = dataDirPath + PATH_SEPARATOR + bundleProfile.bundleName; in SetBundleInfo() local 126 if (codePath.size() > PATH_LENGTH || dataPath.size() > PATH_LENGTH) { in SetBundleInfo() 155 !BundleInfoUtils::SetBundleInfoDataPath(bundleInfo, dataPath.c_str()) || in SetBundleInfo()
|
H A D | gt_bundle_installer.cpp | 301 …errorCode = HandleFileAndBackUpRecord(installRecord, tmpCodePath, randStr, bundleInfo->dataPath, i… in ProcessBundleInstall() 345 …char *dstRawFilePathComp[] = {const_cast<char *>(bundleInfo->dataPath), const_cast<char *>(RAW_FIL… in MoveRawFileToDataPath() 450 const char *randStr, const char *dataPath, bool isUpdate) in HandleFileAndBackUpRecord() argument 452 if (tmpPath == nullptr || dataPath == nullptr) { in HandleFileAndBackUpRecord() 481 (void) BundleUtil::RemoveDir(dataPath); in HandleFileAndBackUpRecord() 482 if (!BundleUtil::MkDirs(dataPath)) { in HandleFileAndBackUpRecord() 612 …if (!(BundleUtil::RemoveDir(bundleInfo->codePath) && BundleUtil::RemoveDir(bundleInfo->dataPath)))… in Uninstall()
|
H A D | gt_bundle_parser.cpp | 893 char *dataPath = reinterpret_cast<char *>(UI_Malloc(len)); in SetBundleInfo() local 894 if (dataPath == nullptr) { in SetBundleInfo() 897 if (sprintf_s(dataPath, len, "%s/%s", DATA_PATH, bundleProfile.bundleName) < 0) { in SetBundleInfo() 898 UI_Free(dataPath); in SetBundleInfo() 902 bundleInfo->dataPath = Utils::Strdup(dataPath); in SetBundleInfo() 903 UI_Free(dataPath); in SetBundleInfo() 904 if (bundleInfo->dataPath == nullptr) { in SetBundleInfo()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/ |
H A D | bundle_daemon_handler.h | 30 int32_t CreateDataDirectory(const char *dataPath, int32_t uid, int32_t gid, bool isChown); 34 int32_t RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData);
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | bundle_daemon_client.h | 39 int32_t CreateDataDirectory(const char *dataPath, int32_t uid, int32_t gid, bool isChown); 43 int32_t RemoveInstallDirectory(const char *codePath, const char *dataPath, bool keepData);
|
H A D | gt_bundle_installer.h | 48 const char *dataPath, bool isUpdate); 100 BundleUtil::RemoveDir(bundleInfo->dataPath); \
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | application_env_impl_test.cpp | 87 appInfo.dataPath = "/dataDir"; 106 appInfo.dataPath = "/dataDir";
|
/ohos5.0/foundation/ability/ability_lite/frameworks/ability_lite/include/ |
H A D | app_info.h | 25 std::string dataPath; member
|
/ohos5.0/foundation/multimedia/media_foundation/test/scenetest/ |
H A D | test_lite_stream_player.h | 23 int StartLiteStreamPlayer(std::string dataPath);
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | share-data-by-silent-access.md | 44 - 数据访问方的URI需严格按照如下格式:`datashareproxy://{bundleName}/{dataPath}` 48 dataPath为数据标识,可以自行定义,在同一个数据提供方应用中需要保持唯一。 50 - URI还支持添加其他参数来设置具体的访问方式或访问对象,URI添加参数需严格遵循格式:`datashareproxy://{bundleName}/{dataPath}?{arg1}&{arg2… 58 …URI和参数时,请注意同步设置"Proxy"参数和"appIndex"参数。例如“datashareproxy://{bundleName}/{dataPath}?Proxy=true&appIn…
|