From 6ac79c642c6eda46ed074ea71697b2c503539276 Mon Sep 17 00:00:00 2001
From: wuchsh <272088231@qq.com>
Date: Thu, 23 Jun 2022 21:04:41 +0800
Subject: [PATCH 1/2] fix deive to device
Signed-off-by: wuchsh <272088231@qq.com>
---
interfaces/kits/want_lite/want.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/interfaces/kits/want_lite/want.h b/interfaces/kits/want_lite/want.h
index af568db..9499d97 100644
--- a/interfaces/kits/want_lite/want.h
+++ b/interfaces/kits/want_lite/want.h
@@ -93,7 +93,7 @@ extern "C" {
void ClearWant(Want *want);
/**
- * @brief Sets key and value to the want which would be passed to remote deive to start remote ability.
+ * @brief Sets key and value to the want which would be passed to remote device to start remote ability.
*
* @param want Indicates the pointer to the Want object to set.
* @param key Indicates the pointer to the key which would be added to the want.
@@ -105,7 +105,7 @@ void ClearWant(Want *want);
bool SetIntParam(Want *want, const char *key, uint8_t keyLen, int32_t value);
/**
- * @brief Sets key and value to the want which would be passed to remote deive to start remote ability.
+ * @brief Sets key and value to the want which would be passed to remote device to start remote ability.
*
* @param want Indicates the pointer to the Want object to set.
* @param key Indicates the pointer to the key which would be added to the want.
--
Gitee
From 4d0b675f733071f151fee2d1269b296b39ab38dd Mon Sep 17 00:00:00 2001
From: wuchsh <272088231@qq.com>
Date: Thu, 23 Jun 2022 21:41:19 +0800
Subject: [PATCH 2/2] fix Qurey to query
Signed-off-by: wuchsh <272088231@qq.com>
---
services/abilitymgr_lite/src/ability_mgr_handler.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/services/abilitymgr_lite/src/ability_mgr_handler.cpp b/services/abilitymgr_lite/src/ability_mgr_handler.cpp
index e9efa64..c3448af 100644
--- a/services/abilitymgr_lite/src/ability_mgr_handler.cpp
+++ b/services/abilitymgr_lite/src/ability_mgr_handler.cpp
@@ -180,7 +180,7 @@ int AbilityMgrHandler::StartAbility(const Want *want, pid_t callingUid)
CHECK_NULLPTR_RETURN_CODE(want, "AbilityMgrHandler", "invalid argument", EC_FAILURE);
CHECK_NULLPTR_RETURN_CODE(want->element, "AbilityMgrHandler", "invalid argument", EC_FAILURE);
- // Qurey BundleInfo note: bundleInfo not need clear
+ // query BundleInfo note: bundleInfo not need clear
BundleInfo bundleInfo = {};
AbilityMsStatus status = bundleMsClient_.QueryBundleInfo(want->element->bundleName, &bundleInfo);
CHECK_RESULT_LOG_CODE(status, EC_INVALID);
@@ -241,7 +241,7 @@ void AbilityMgrHandler::RestartApp(const char *bundleName)
{
PRINTD("AbilityMgrHandler", "start %{public}s", bundleName);
CHECK_NULLPTR_RETURN(bundleName, "AbilityMgrHandler", "invalid argument");
- // Qurey BundleInfo
+ // query BundleInfo
BundleInfo bundleInfo = {};
AbilityMsStatus status = bundleMsClient_.QueryBundleInfo(bundleName, &bundleInfo);
if (!status.IsOk()) {
@@ -267,7 +267,7 @@ int AbilityMgrHandler::ConnectAbility(AbilityConnectTransParam *transParam)
const Want *want = transParam->GetWant();
CHECK_NULLPTR_RETURN_CODE(want, "AbilityMgrHandler", "invalid argument", EC_FAILURE);
CHECK_NULLPTR_RETURN_CODE(want->element, "AbilityMgrHandler", "invalid argument", EC_FAILURE);
- // Qurey BundleInfo note: bundleInfo not need clear
+ // query BundleInfo note: bundleInfo not need clear
BundleInfo bundleInfo = {};
AbilityMsStatus status = bundleMsClient_.QueryBundleInfo(want->element->bundleName, &bundleInfo);
CHECK_RESULT_LOG_CODE(status, EC_INVALID);
@@ -318,7 +318,7 @@ void AbilityMgrHandler::TerminateService(Want *want, pid_t callingUid)
CHECK_NULLPTR_RETURN(want, "AbilityMgrHandler", "invalid argument");
CHECK_NULLPTR_RETURN(want->element, "AbilityMgrHandler", "invalid argument");
- // Qurey BundleInfo note: bundleInfo not need clear
+ // query BundleInfo note: bundleInfo not need clear
BundleInfo bundleInfo = {};
AbilityMsStatus status = bundleMsClient_.QueryBundleInfo(want->element->bundleName, &bundleInfo);
CHECK_RESULT_LOG(status);
--
Gitee