diff --git a/services/key_enable/utils/src/unlock_event_helper.cpp b/services/key_enable/utils/src/unlock_event_helper.cpp index 23d97a156f603c088a8f3cadffe75001df4d064e..a71f4a7e77c46267f5bc8a098e427d2b35fad609 100644 --- a/services/key_enable/utils/src/unlock_event_helper.cpp +++ b/services/key_enable/utils/src/unlock_event_helper.cpp @@ -27,8 +27,8 @@ namespace OHOS { namespace Security { namespace CodeSign { -constexpr int32_t SEELP_TIME_FOR_COMMON_EVENT_MGR = 500 * 1000; // 500 ms -constexpr int32_t SEELP_TIME_FOR_COMMON_EVENT_MGR_TIME_OUT = 10 * 60; // 10 min +constexpr int32_t SLEEP_TIME_FOR_COMMON_EVENT_MGR = 500 * 1000; // 500 ms +constexpr int32_t SLEEP_TIME_FOR_COMMON_EVENT_MGR_TIME_OUT = 10 * 60; // 10 min constexpr int32_t COMMON_EVENT_MANAGER_ID = 3299; void UnlockEventHelper::UnlockEventSubscriber::OnReceiveEvent(const EventFwk::CommonEventData& event) @@ -119,7 +119,7 @@ bool UnlockEventHelper::WaitForCommonEventManager() if (!OHOS::GetSystemCurrentTime(&startTime)) { return false; } - while (seconds <= SEELP_TIME_FOR_COMMON_EVENT_MGR_TIME_OUT) { + while (seconds <= SLEEP_TIME_FOR_COMMON_EVENT_MGR_TIME_OUT) { sptr samgr = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); if (samgr != nullptr && samgr->CheckSystemAbility(COMMON_EVENT_MANAGER_ID) != nullptr) { @@ -128,7 +128,7 @@ bool UnlockEventHelper::WaitForCommonEventManager() break; } LOG_DEBUG(LABEL, "Get common event manager failed."); - usleep(SEELP_TIME_FOR_COMMON_EVENT_MGR); + usleep(SLEEP_TIME_FOR_COMMON_EVENT_MGR); if (OHOS::GetSystemCurrentTime(&doingTime)) { seconds = OHOS::GetSecondsBetween(startTime, doingTime); } diff --git a/test/unittest/utils/src/enable_key_utils.cpp b/test/unittest/utils/src/enable_key_utils.cpp index 42d3e80a67531cdea0f11d397901b9b34bca0c16..91e52e019861c172c4f849f00996d51399ff08b0 100644 --- a/test/unittest/utils/src/enable_key_utils.cpp +++ b/test/unittest/utils/src/enable_key_utils.cpp @@ -20,8 +20,8 @@ namespace OHOS { namespace Security { namespace CodeSign { -constexpr int DEFUALT_CERT_CHAIN_LEN = 3; -constexpr int DEFUALT_CERT_PATH_TYPE = 0X103; +constexpr int DEFAULT_CERT_CHAIN_LEN = 3; +constexpr int DEFAULT_CERT_PATH_TYPE = 0X103; int32_t EnableTestKey(const char *signing, const char *issuer) { @@ -30,8 +30,8 @@ int32_t EnableTestKey(const char *signing, const char *issuer) arg.issuer = reinterpret_cast(issuer); arg.signing_length = strlen(signing) + 1; arg.issuer_length = strlen(issuer) + 1; - arg.path_len = DEFUALT_CERT_CHAIN_LEN; - arg.path_type = DEFUALT_CERT_PATH_TYPE; + arg.path_len = DEFAULT_CERT_CHAIN_LEN; + arg.path_type = DEFAULT_CERT_PATH_TYPE; return AddCertPath(arg); } }