2021092201

Signed-off-by: guduhanyan <xuyanjun27@163.com>
This commit is contained in:
guduhanyan
2021-09-22 06:04:36 +08:00
parent 45b924a33a
commit 25fe485f32
4 changed files with 5 additions and 6 deletions
@@ -27,7 +27,6 @@ constexpr int TIMER_TYPE_EXACT = 2;
constexpr int TIMER_TYPE_IDLE = 3;
napi_value TimerTypeInit(napi_env env, napi_value exports);
} // namespace MiscServicesNapi
} // namespace OHOS
+1 -1
View File
@@ -562,7 +562,7 @@ int32_t TimeService::GetThreadTimeNs(int64_t &times)
}
bool TimeService::GetTimeByClockid(clockid_t clk_id, struct timespec* tv)
bool TimeService::GetTimeByClockid(clockid_t clk_id, struct timespec *tv)
{
if (clock_gettime(clk_id, tv) < 0) {
TIME_HILOGE(TIME_MODULE_SERVICE, "Failed clock_gettime.");
+3 -3
View File
@@ -1,6 +1,6 @@
/*
* Copyright(C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0(the "License");
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@@ -29,7 +29,7 @@
namespace OHOS {
namespace MiscServices {
namespace{
namespace {
static const uint32_t ALARM_TIME_CHANGE_MASK = 1 << 16;
static const clockid_t alarm_to_clock_id[N_TIMER_FDS] = {
CLOCK_REALTIME_ALARM,
+1 -1
View File
@@ -18,7 +18,7 @@
namespace OHOS {
namespace MiscServices {
namespace{
namespace {
static const int UID_TO_USERID = 100000;
}
sptr<AppExecFwk::IBundleMgr> TimePermission::bundleMgrProxy_;