Home
last modified time | relevance | path

Searched refs:isReadOnly (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/test/fuzztest/usbreadonlyplugin_fuzzer/
H A Dusb_read_only_plugin_fuzzer.cpp56 int32_t isReadOnly = CommonFuzzer::GetU32Data(data) % 2; in LLVMFuzzerTestOneInput() local
57 parcel.WriteInt32(isReadOnly); in LLVMFuzzerTestOneInput()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dconnection_pool.h46 SharedConn AcquireConnection(bool isReadOnly);
47 SharedConn Acquire(bool isReadOnly, std::chrono::milliseconds ms = INVALID_TIME);
49 SharedConn AcquireRef(bool isReadOnly, std::chrono::milliseconds ms = INVALID_TIME);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dconnection_pool.cpp219 std::shared_ptr<Conn> ConnPool::AcquireConnection(bool isReadOnly) in AcquireConnection() argument
222 return Acquire(isReadOnly); in AcquireConnection()
265 std::shared_ptr<Conn> ConnPool::Acquire(bool isReadOnly, std::chrono::milliseconds ms) in Acquire() argument
267 Container *container = (isReadOnly && maxReader_ != 0) ? &readers_ : &writers_; in Acquire()
270 const char *header = (isReadOnly && maxReader_ != 0) ? "readers_" : "writers_"; in Acquire()
277 SharedConn ConnPool::AcquireRef(bool isReadOnly, std::chrono::milliseconds ms) in AcquireRef() argument
281 return Acquire(isReadOnly, ms); in AcquireRef()
H A Drdb_store_config.cpp29 RdbStoreConfig::RdbStoreConfig(const std::string &name, StorageMode storageMode, bool isReadOnly, in RdbStoreConfig() argument
33 …: readOnly_(isReadOnly), isCreateNecessary_(isCreateNecessary), autoCheck_(autoCheck), journalSize… in RdbStoreConfig()
/ohos5.0/base/hiviewdfx/hiview/adapter/service/server/include/
H A Dhiview_log_config_manager.h28 bool isReadOnly { false };
/ohos5.0/foundation/distributeddatamgr/relational_store/test/js/relationalstore/unittest/src/
H A DRdbStoreReadOnlyJsunit.test.js32 isReadOnly: true, property in STORE_CONFIG1
38 isReadOnly: true, property in STORE_CONFIG2
H A DRdbStoreTransaction.test.js1672 storeConfig.isReadOnly = true;
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/sa_main/
H A Ddlp_permission_service.cpp243 static int32_t GetAppIndexFromRetentionInfo(const std::string& bundleName, bool isReadOnly, const s… in GetAppIndexFromRetentionInfo() argument
254 if (isReadOnly && iter->dlpFileAccess_ == DLPFileAccess::READ_ONLY) { in GetAppIndexFromRetentionInfo()
260 if (isReadOnly) { in GetAppIndexFromRetentionInfo()
284 bool isReadOnly = dlpFileAccess == DLPFileAccess::READ_ONLY; in InstallDlpSandbox() local
288 …int32_t res = GetAppIndexFromRetentionInfo(bundleName, isReadOnly, uri, dlpSandboxInfo, isNeedInst… in InstallDlpSandbox()
292 if (isNeedInstall && isReadOnly) { in InstallDlpSandbox()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_natural_store.cpp118 …void UpdateSecProperties(KvDBProperties &properties, bool isReadOnly, const SchemaObject &savedSch… in UpdateSecProperties() argument
121 if (isReadOnly) { in UpdateSecProperties()
419 bool isReadOnly = false; in Open() local
444 errCode = DecideReadOnlyBaseOnSchema(kvDBProp, isReadOnly, savedSchemaObj); in Open()
451 UpdateSecProperties(MyProp(), isReadOnly, savedSchemaObj, storageEngine_); in Open()
464 isReadOnly_ = isReadOnly; in Open()
1693 …SingleVerNaturalStore::DecideReadOnlyBaseOnSchema(const KvDBProperties &kvDBProp, bool &isReadOnly, in DecideReadOnlyBaseOnSchema() argument
1698 isReadOnly = false; in DecideReadOnlyBaseOnSchema()
1709 isReadOnly = true; in DecideReadOnlyBaseOnSchema()
1714 isReadOnly = false; in DecideReadOnlyBaseOnSchema()
H A Dsqlite_multi_ver_transaction.h41 …int Initialize(const std::string &uri, bool isReadOnly, CipherType type, const CipherPassword &pas…
H A Dsqlite_single_ver_natural_store.h262 int DecideReadOnlyBaseOnSchema(const KvDBProperties &kvDBProp, bool &isReadOnly,
H A Dsqlite_multi_ver_transaction.cpp141 bool isReadOnly, CipherType type, const CipherPassword &passwd) in Initialize() argument
155 isReadOnly_ = isReadOnly; in Initialize()
/ohos5.0/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_log_config_manager.cpp96 configInfoPtr->isReadOnly = jsonRoot[type][READ_ONLY_KEY].asBool(); in GetLogConfigFromFile()
H A Dhiview_service_ability.cpp214 if (isMove && configInfoPtr->isReadOnly) { in CopyOrMoveFile()
246 if (configInfoPtr->isReadOnly) { in Remove()
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/
H A Dnapi_rdb_js_utils.h58 bool isReadOnly = false; member
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_js_utils.cpp373 GetNamedProperty(env, jsValue, "isReadOnly", rdbConfig.isReadOnly, true); in Convert2Value()
505 rdbStoreConfig.SetReadOnly(rdbConfig.isReadOnly); in GetRdbStoreConfig()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dkvdb_manager.cpp395 bool isReadOnly = property.GetBoolProp(KvDBProperties::READ_ONLY_MODE, false); in CreateDataBase() local
397 databaseType == KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL && isReadOnly) { in CreateDataBase()
/ohos5.0/docs/zh-cn/application-dev/database/
H A Ddata-persistence-by-rdb-store.md82isReadOnly: false // 可选参数,指定数据库是否以只读方式打开。该参数默认为false,表示数据库可读可写。该参数为true时,只允许从数据库读取数据,不允许对数据库进行写操作,…
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/
H A Dfile_asset_napi.cpp3087 unique_ptr<FileAssetAsyncContext> &context, bool isReadOnly) in ParseArgsUserFileMgrOpen() argument
3089 if (!isReadOnly && !MediaLibraryNapiUtils::IsSystemApp()) { in ParseArgsUserFileMgrOpen()
3096 if (!isReadOnly) { in ParseArgsUserFileMgrOpen()
3106 if (isReadOnly) { in ParseArgsUserFileMgrOpen()
3643 unique_ptr<FileAssetAsyncContext> &context, bool isReadOnly) in ParseArgsPhotoAccessHelperOpen() argument
3645 if (!isReadOnly && !MediaLibraryNapiUtils::IsSystemApp()) { in ParseArgsPhotoAccessHelperOpen()
3651 if (!isReadOnly) { in ParseArgsPhotoAccessHelperOpen()
3661 if (isReadOnly) { in ParseArgsPhotoAccessHelperOpen()
/ohos5.0/docs/en/application-dev/database/
H A Ddata-persistence-by-rdb-store.md77isReadOnly: false // (Optional) Specify whether the RDB store is opened in read-only mode. The def…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-data-relationalStore.md566 | isReadOnly<sup>12+</sup> | boolean | 否 | 指定数据库是否只读,默认为数据库可读写。<br/>true:只允许从数据库读取数据,不允许对数据库进行写操作,否…
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-data-relationalStore.md561 | isReadOnly<sup>12+</sup> | boolean | No| Whether the RDB store is read-only. The default value is…