内源检视问题修改

Signed-off-by: zuojiangjiang <zuojiangjiang@huawei.com>
This commit is contained in:
zuojiangjiang 2022-03-10 14:32:14 +08:00
parent 31ecff52e2
commit a32ca9adf6
12 changed files with 14 additions and 14 deletions

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

Before

Width:  |  Height:  |  Size: 138 KiB

After

Width:  |  Height:  |  Size: 138 KiB

View File

@ -40,7 +40,7 @@ namespace OHOS::DistributedKv {
struct OptionsIpc {
bool createIfMissing;
bool encrypt;
bool persistant;
bool persistent;
bool backup;
bool autoSync;
int securityLevel;

View File

@ -49,7 +49,7 @@ Status KvStoreDataServiceProxy::GetKvStore(const Options &options, const AppId &
OptionsIpc optionsIpc;
optionsIpc.createIfMissing = options.createIfMissing;
optionsIpc.encrypt = options.encrypt;
optionsIpc.persistant = options.persistant;
optionsIpc.persistent = options.persistent;
optionsIpc.backup = options.backup;
optionsIpc.autoSync = options.autoSync;
optionsIpc.securityLevel = options.securityLevel;
@ -101,7 +101,7 @@ Status KvStoreDataServiceProxy::GetSingleKvStore(const Options &options, const A
OptionsIpc optionsIpc;
optionsIpc.createIfMissing = options.createIfMissing;
optionsIpc.encrypt = options.encrypt;
optionsIpc.persistant = options.persistant;
optionsIpc.persistent = options.persistent;
optionsIpc.backup = options.backup;
optionsIpc.autoSync = options.autoSync;
optionsIpc.securityLevel = options.securityLevel;
@ -430,7 +430,7 @@ int32_t KvStoreDataServiceStub::GetKvStoreOnRemote(MessageParcel &data, MessageP
Options options;
options.createIfMissing = optionsIpc.createIfMissing;
options.encrypt = optionsIpc.encrypt;
options.persistant = optionsIpc.persistant;
options.persistent = optionsIpc.persistent;
options.backup = optionsIpc.backup;
options.autoSync = optionsIpc.autoSync;
options.securityLevel = optionsIpc.securityLevel;

View File

@ -112,7 +112,7 @@ void AppConflictTest::SetUp(void)
Options options;
options.createIfMissing = true;
options.encrypt = false; // not supported yet.
options.persistant = true; // not supported yet.
options.persistent = true; // not supported yet.
std::string appId = "odmf"; // define app name.
std::string storeId = "conflictdb"; // define kvstore(database) name.

View File

@ -63,11 +63,11 @@ void AppDistributedKvDataManagerTest::SetUpTestCase(void)
{
create.createIfMissing = true;
create.encrypt = false;
create.persistant = true;
create.persistent = true;
noCreate.createIfMissing = false;
noCreate.encrypt = false;
noCreate.persistant = true;
noCreate.persistent = true;
appId = "com.ohos.nb.service";
std::string dataDir = "data/misc_ce/0/com.ohos.nb.service";
@ -325,7 +325,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore001, TestSize.L
/**
* @tc.name: AppManagerDeleteKvStore002
* @tc.desc: Delete a opened KvStore, and the callback should return ILLEGAL_STATE.
* @tc.desc: Delete an opened KvStore, and the callback should return ILLEGAL_STATE.
* @tc.type: FUNC
* @tc.require: AR000CCPOJ
* @tc.author: liqiao

View File

@ -76,7 +76,7 @@ void AppDistributedKvStoreTest::SetUpTestCase(void)
syncWrite.local = false;
options.createIfMissing = true;
options.encrypt = false;
options.persistant = true;
options.persistent = true;
}
void AppDistributedKvStoreTest::TearDownTestCase(void)

View File

@ -151,7 +151,7 @@ int32_t RdbNotifierStub::OnChangeInner(MessageParcel &data, MessageParcel &reply
}
std::vector<std::string> devices;
if (!data.ReadStringVector(&devices)) {
ZLOGE("read devices faield");
ZLOGE("read devices failed");
return RDB_ERROR;
}
return OnChange(storeName, devices);

View File

@ -20,7 +20,7 @@
namespace OHOS {
namespace AppDistributedKv {
// This is a abstract classes. Client needs to implement this class by self.
// This is an abstract classes. Client needs to implement this class by self.
class AppKvStoreObserver {
public:
KVSTORE_API AppKvStoreObserver() = default;

View File

@ -72,7 +72,7 @@ public:
// delete a list of entries in the kvstore,
// delete key not exist still return success,
// key length should not be greater than 256, and can not be empty.
// if keys contains invaid key, all delete will fail.
// if keys contains invalid key, all delete will fail.
// keys memory size should not be greater than IPC transport limit, and can not be empty.
KVSTORE_API virtual Status DeleteBatch(const std::vector<Key> &keys) = 0;

View File

@ -264,7 +264,7 @@ enum class DeviceFilterStrategy {
struct Options {
bool createIfMissing = true;
bool encrypt = false;
bool persistant = false;
bool persistent = false;
bool backup = true;
bool autoSync = true;
int securityLevel = SecurityLevel::NO_LABEL;

View File

@ -1603,7 +1603,7 @@ void SingleKvStoreImpl::OnDump(int fd) const
dprintf(fd, "%s backup : %d\n", prefix.c_str(), static_cast<int>(options_.backup));
dprintf(fd, "%s encrypt : %d\n", prefix.c_str(), static_cast<int>(options_.encrypt));
dprintf(fd, "%s autoSync : %d\n", prefix.c_str(), static_cast<int>(options_.autoSync));
dprintf(fd, "%s persistant : %d\n", prefix.c_str(), static_cast<int>(options_.persistant));
dprintf(fd, "%s persistent : %d\n", prefix.c_str(), static_cast<int>(options_.persistent));
dprintf(fd, "%s kvStoreType : %d\n", prefix.c_str(), static_cast<int>(options_.kvStoreType));
dprintf(fd, "%s createIfMissing : %d\n", prefix.c_str(), static_cast<int>(options_.createIfMissing));
dprintf(fd, "%s schema : %s\n", prefix.c_str(), options_.schema.c_str());