mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 12:02:04 -04:00
@@ -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
|
||||
|
||||
|
||||
@@ -562,7 +562,7 @@ int32_t TimeService::GetThreadTimeNs(int64_t ×)
|
||||
}
|
||||
|
||||
|
||||
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.");
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace OHOS {
|
||||
namespace MiscServices {
|
||||
namespace{
|
||||
namespace {
|
||||
static const int UID_TO_USERID = 100000;
|
||||
}
|
||||
sptr<AppExecFwk::IBundleMgr> TimePermission::bundleMgrProxy_;
|
||||
|
||||
Reference in New Issue
Block a user