diff --git a/interfaces/kits/want_lite/want.h b/interfaces/kits/want_lite/want.h index af568db0897355ce9eb83408188910953aabde9b..9499d976a21ed0860d117782125335012253c86c 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. diff --git a/services/abilitymgr_lite/src/ability_mgr_handler.cpp b/services/abilitymgr_lite/src/ability_mgr_handler.cpp index e9efa641093aad316ad23d0937c3b58fa26706a4..c3448afad42917fbd63cb241d9c0ac7415c231df 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);