mirror of
https://github.com/openharmony/device_profile_core.git
synced 2026-07-19 17:05:37 -04:00
fix typo
Signed-off-by: Gymee <yumeijie@huawei.com> Change-Id: I64eacb149e095e61072492daf27e3bbfa238ca37
This commit is contained in:
@@ -245,7 +245,7 @@ void DistributedDeviceProfileClient::MergeSubscribeInfoLocked(std::list<Subscrib
|
||||
subscribeInfos.emplace_back(newSubscribeInfo);
|
||||
continue;
|
||||
}
|
||||
// override with the new suscribe info for same profile event
|
||||
// override with the new subscribe info for same profile event
|
||||
*iter = newSubscribeInfo;
|
||||
}
|
||||
}
|
||||
@@ -299,4 +299,4 @@ void DistributedDeviceProfileClient::DeviceProfileDeathRecipient::OnRemoteDied(c
|
||||
DistributedDeviceProfileClient::GetInstance().OnServiceDied(remote.promote());
|
||||
}
|
||||
} // namespace DeviceProfile
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -40,7 +40,7 @@ bool SyncCoordinator::Init()
|
||||
bool SyncCoordinator::AcquireSync()
|
||||
{
|
||||
if (isOnSync_) {
|
||||
HILOGI("acquire from %{publiic}s", isOnlineTrigger_ ? "online" : "manual");
|
||||
HILOGI("acquire from %{public}s", isOnlineTrigger_ ? "online" : "manual");
|
||||
return false;
|
||||
}
|
||||
isOnSync_ = true;
|
||||
@@ -72,4 +72,4 @@ bool SyncCoordinator::DispatchSyncTask(const SyncTask& syncTask, int64_t delayTi
|
||||
return true;
|
||||
}
|
||||
} // namespace DeviceProfile
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -194,7 +194,7 @@ void ProfileChangeHandler::NotifyProfileChangedLocked(const ProfileChangeNotific
|
||||
for (auto index : indexes) {
|
||||
filteredEntries.emplace_back(profileEntries[index]);
|
||||
}
|
||||
HILOGI("filtered with %{public}zu entrie(s)", size);
|
||||
HILOGI("filtered with %{public}zu entries", size);
|
||||
bool isLocal = changeNotification.IsLocal();
|
||||
std::string deviceId = changeNotification.GetDeviceId();
|
||||
ProfileChangeNotification filteredNotification(filteredEntries, deviceId, isLocal);
|
||||
|
||||
@@ -173,7 +173,7 @@ HWTEST_F(ProfileAuthorityTest, CheckAuthority_006, TestSize.Level0)
|
||||
|
||||
/**
|
||||
* @tc.name: CheckAuthority_007
|
||||
* @tc.desc: check authority of mulitiple serviceIds
|
||||
* @tc.desc: check authority of multiple serviceIds
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(ProfileAuthorityTest, CheckAuthority_007, TestSize.Level0)
|
||||
@@ -206,4 +206,4 @@ HWTEST_F(ProfileAuthorityTest, CheckAuthority_008, TestSize.Level0)
|
||||
EXPECT_FALSE(AuthorityManager::GetInstance().CheckInterfaceAuthority(""));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user