mirror of
https://gitee.com/openharmony/distributedhardware_device_manager
synced 2024-11-23 08:19:49 +00:00
fix typos
Signed-off-by: Neil Chen <jingsi.chen@petalmail.com>
This commit is contained in:
parent
0d046aa760
commit
86079ced2d
@ -50,7 +50,7 @@ int32_t PinAuthUi::ShowPinDialog(int32_t code, std::shared_ptr<DmAuthManager> au
|
||||
authManager->SetPageId(id);
|
||||
}
|
||||
if (params == EVENT_CANCEL_CODE) {
|
||||
LOGI("CancelDialog start id:%d,event:%s,parms:%s", id, event.c_str(), params.c_str());
|
||||
LOGI("CancelDialog start id:%d,event:%s,params:%s", id, event.c_str(), params.c_str());
|
||||
Ace::UIServiceMgrClient::GetInstance()->CancelDialog(id);
|
||||
}
|
||||
});
|
||||
@ -79,7 +79,7 @@ int32_t PinAuthUi::InputPinDialog(std::shared_ptr<DmAuthManager> authManager)
|
||||
if (event == EVENT_INIT) {
|
||||
authManager->SetPageId(id);
|
||||
} else if (event == EVENT_CONFIRM) {
|
||||
LOGI("On confirm event for page id:%d, parms:%s", id, params.c_str());
|
||||
LOGI("On confirm event for page id:%d, params:%s", id, params.c_str());
|
||||
if (params.length() <= DEFAULT_PIN_CODE_LENGTH) {
|
||||
authManager->AddMember(std::stoi(params));
|
||||
}
|
||||
@ -121,4 +121,4 @@ int32_t PinAuthUi::StartFaUiService(std::shared_ptr<DmAbilityManager> dmAbilityM
|
||||
return DM_OK;
|
||||
}
|
||||
} // namespace DistributedHardware
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -25,7 +25,7 @@
|
||||
# // __BASE is used for defining the basic info of the event.
|
||||
# // "type" optional values are: FAULT, STATISTICS, SECURITY, BEHAVIOR.
|
||||
# // "level" optional values are: CRITICAL, MINOR.
|
||||
# // "tag" set tags with may used by subscriber of this event, multiple tags devided by space.
|
||||
# // "tag" set tags with may used by subscriber of this event, multiple tags divided by space.
|
||||
# // "desc" full description of this event.
|
||||
# @PARAMETER: {type: parameter type, arrsize: array length(optional), desc: parameter description}.
|
||||
# // follow the __BASE block, each line defines a parameter of this event.
|
||||
|
@ -49,11 +49,11 @@ void ShowConfirm::ShowConfirmDialog(const std::string ¶ms, std::shared_ptr<D
|
||||
ACE_X, ACE_Y, ACE_WIDTH, ACE_HEIGHT,
|
||||
[authManager](int32_t id, const std::string& event, const std::string& params) {
|
||||
if (params == EVENT_INIT_CODE) {
|
||||
LOGI("Dialog start id:%d,event:%s,parms:%s", id, event.c_str(), params.c_str());
|
||||
LOGI("Dialog start id:%d,event:%s,params:%s", id, event.c_str(), params.c_str());
|
||||
authManager->SetPageId(id);
|
||||
} else {
|
||||
Ace::UIServiceMgrClient::GetInstance()->CancelDialog(id);
|
||||
LOGI("CancelDialog start id:%d,event:%s,parms:%s", id, event.c_str(), params.c_str());
|
||||
LOGI("CancelDialog start id:%d,event:%s,params:%s", id, event.c_str(), params.c_str());
|
||||
authManager->StartAuthProcess(std::stoi(params));
|
||||
}
|
||||
});
|
||||
@ -61,4 +61,4 @@ void ShowConfirm::ShowConfirmDialog(const std::string ¶ms, std::shared_ptr<D
|
||||
#endif
|
||||
}
|
||||
} // namespace DistributedHardware
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
@ -441,7 +441,7 @@ ON_IPC_CMD(SERVER_GET_DMFA_INFO, MessageParcel &data, MessageParcel &reply)
|
||||
std::string packName = data.ReadString();
|
||||
DmAuthParam authParam;
|
||||
if (DeviceManagerService::GetInstance().GetFaParam(packName, authParam) != DM_OK) {
|
||||
LOGE("ipc read fa parm failed");
|
||||
LOGE("ipc read fa param failed");
|
||||
return ERR_DM_IPC_READ_FAILED;
|
||||
}
|
||||
int32_t appIconLen = authParam.imageinfo.GetAppIconLen();
|
||||
|
@ -131,7 +131,7 @@ int32_t IpcServerStub::RegisterDeviceManagerListener(std::string &pkgName, sptr<
|
||||
return ERR_DM_NOT_INIT;
|
||||
}
|
||||
|
||||
LOGI("Register device manager listener for pakage name: %s", pkgName.c_str());
|
||||
LOGI("Register device manager listener for package name: %s", pkgName.c_str());
|
||||
std::lock_guard<std::mutex> autoLock(listenerLock_);
|
||||
auto iter = dmListener_.find(pkgName);
|
||||
if (iter != dmListener_.end()) {
|
||||
|
@ -3544,7 +3544,7 @@ HWTEST_F(DeviceManagerNotifyTest, OnAuthResult1, testing::ext::TestSize.Level0)
|
||||
* 3. call DeviceManagerNotifyTest RegisterAuthenticateCallback with parameter
|
||||
* 4. Get checkMap from DeviceManagerNotify
|
||||
* 5. check checkMap not null
|
||||
* 6. call DeviceManagerNotify OnAuthResult wiht testPkgName
|
||||
* 6. call DeviceManagerNotify OnAuthResult with testPkgName
|
||||
* 7. check if callback OnDiscoverySuccess called
|
||||
*/
|
||||
HWTEST_F(DeviceManagerNotifyTest, OnAuthResult2, testing::ext::TestSize.Level0)
|
||||
@ -3587,7 +3587,7 @@ HWTEST_F(DeviceManagerNotifyTest, OnAuthResult2, testing::ext::TestSize.Level0)
|
||||
* 3. call DeviceManagerNotifyTest RegisterAuthenticateCallback with parameter
|
||||
* 4. Get checkMap from DeviceManagerNotify
|
||||
* 5. check checkMap not null
|
||||
* 6. call DeviceManagerNotify OnAuthResult wiht testDeviceId
|
||||
* 6. call DeviceManagerNotify OnAuthResult with testDeviceId
|
||||
* 7. check if callback OnDiscoverySuccess called
|
||||
*/
|
||||
HWTEST_F(DeviceManagerNotifyTest, OnAuthResult3, testing::ext::TestSize.Level0)
|
||||
@ -4061,4 +4061,4 @@ void DeviceManagerFaCallbackTest::OnCall(const std::string ¶mJson)
|
||||
*count_ = *count_ + 1;
|
||||
}
|
||||
} // namespace DistributedHardware
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
Loading…
Reference in New Issue
Block a user