!166 miscservices_inputmethod 规范编码

Merge pull request !166 from GlaryCastle/master
This commit is contained in:
openharmony_ci
2022-07-17 15:10:31 +00:00
committed by Gitee
+5 -5
View File
@@ -175,18 +175,18 @@ namespace MiscServices {
dprintf(fd, "\n - InputMethodSystemAbility::DumpAllMethod get Active Id failed.\n");
return;
}
dprintf(fd, "\n - DumpAllMethod get Active Id succeed,count=%d,", ids.size());
for (auto it : ids) {
dprintf(fd, "\n - DumpAllMethod get Active Id succeed,count=%zu,", ids.size());
for (auto id : ids) {
std::vector<InputMethodProperty *> properties;
listInputMethodByUserId(it, &properties);
listInputMethodByUserId(id, &properties);
if (properties.empty()) {
IMSA_HILOGI("The IME properties is empty.");
dprintf(fd, "\n - The IME properties is empty.\n");
dprintf(fd, "\n - The IME properties about the Active Id %d is empty.\n", id);
continue;
}
std::string params;
GetInputMethodParam(properties, params);
dprintf(fd, "\n - The Active Id:%d get input method:\n%s\n", it, params.c_str());
dprintf(fd, "\n - The Active Id:%d get input method:\n%s\n", id, params.c_str());
}
IMSA_HILOGI("InputMethodSystemAbility::DumpAllMethod end.");
}