mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-27 01:01:16 +00:00
commit
1802fdda8c
@ -560,7 +560,7 @@ static bool CheckNeedUpgrade(KeyBlob &inData)
|
||||
return false;
|
||||
}
|
||||
|
||||
struct HksParam *keyVersion = NULL;
|
||||
struct HksParam *keyVersion = nullptr;
|
||||
ret = HksGetParam(keyBlobParamSet, HKS_TAG_KEY_VERSION, &keyVersion);
|
||||
if (ret != HKS_SUCCESS) {
|
||||
LOGE("version get key param failed!");
|
||||
|
@ -320,7 +320,7 @@ HWTEST_F(AclTest, acl_serialize_test_2, TestSize.Level1)
|
||||
|
||||
Acl acl2;
|
||||
size_t bias = 1;
|
||||
rc = acl2.DeSerialize(buf, bufSize + bias);
|
||||
rc = acl2.DeSerialize(buf, sizeof(AclXattrHeader) + sizeof(AclXattrEntry) * 100 + bias);
|
||||
EXPECT_TRUE(rc != 0) << "de-serializing with wrong bufSize should fail";
|
||||
}
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ void Notification::NotifyVolumeChange(int32_t notifyCode, std::shared_ptr<Volume
|
||||
AAFwk::WantParams wantParams;
|
||||
wantParams.SetParam("id", AAFwk::String::Box(volume->GetId()));
|
||||
wantParams.SetParam("diskId", AAFwk::String::Box(volume->GetDiskId()));
|
||||
wantParams.SetParam("fsUuid", AAFwk::String::Box(volume->GetUuid()));
|
||||
switch (notifyCode) {
|
||||
case VOLUME_REMOVED:
|
||||
LOGI("notifycode: VOLUME_REMOVED");
|
||||
@ -49,7 +50,6 @@ void Notification::NotifyVolumeChange(int32_t notifyCode, std::shared_ptr<Volume
|
||||
case VOLUME_MOUNTED:
|
||||
LOGI("notifycode: VOLUME_MOUNTED");
|
||||
wantParams.SetParam("volumeState", AAFwk::Integer::Box(MOUNTED));
|
||||
wantParams.SetParam("fsUuid", AAFwk::String::Box(volume->GetUuid()));
|
||||
wantParams.SetParam("path", AAFwk::String::Box(volume->GetPath()));
|
||||
wantParams.SetParam("fsType", AAFwk::Integer::Box(volume->GetFsType()));
|
||||
want.SetAction(EventFwk::CommonEventSupport::COMMON_EVENT_VOLUME_MOUNTED);
|
||||
|
Loading…
Reference in New Issue
Block a user