/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
D | log_timestamp.h | 31 timespec time; in LogTimeStamp() local 32 clock_gettime(id, &time); in LogTimeStamp() 33 tv_sec = static_cast<uint32_t>(time.tv_sec); in LogTimeStamp() 34 tv_nsec = static_cast<uint32_t>(time.tv_nsec); in LogTimeStamp() 37 explicit LogTimeStamp(const timespec& time) in LogTimeStamp() argument 38 : tv_sec(static_cast<uint32_t>(time.tv_sec)), in LogTimeStamp() 39 tv_nsec(static_cast<uint32_t>(time.tv_nsec)) {} in LogTimeStamp() 44 bool operator == (const LogTimeStamp& time) const 46 return (tv_sec == time.tv_sec) && (tv_nsec == time.tv_nsec); 49 bool operator != (const LogTimeStamp& time) const [all …]
|
/base/account/os_account/frameworks/common/perf_stat/src/ |
D | perf_stat.cpp | 36 void PerfStat::SetAccountBindStartTime(int64_t time) in SetAccountBindStartTime() argument 38 accountBindBegin_ = (time > 0) ? time : 0; in SetAccountBindStartTime() 46 void PerfStat::SetAccountBindEndTime(int64_t time) in SetAccountBindEndTime() argument 48 accountBindEnd_ = (time > 0 && time > accountBindBegin_) ? time : accountBindBegin_; in SetAccountBindEndTime() 57 void PerfStat::SetAccountAddStartTime(int64_t time) in SetAccountAddStartTime() argument 59 accountAddBegin_ = (time > 0) ? time : 0; in SetAccountAddStartTime() 67 void PerfStat::SetAccountAddEndTime(int64_t time) in SetAccountAddEndTime() argument 69 accountAddEnd_ = (time > 0 && time > accountAddBegin_) ? time : accountAddBegin_; in SetAccountAddEndTime() 78 void PerfStat::SetAccountDelStartTime(int64_t time) in SetAccountDelStartTime() argument 80 accountDelBegin_ = (time > 0) ? time : 0; in SetAccountDelStartTime() [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/ |
D | date_utils.h | 33 struct timeval time; in CurrentTimeMillis() local 34 gettimeofday(&time, nullptr); in CurrentTimeMillis() 35 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis() 46 struct timeval time; in CurrentTimeUsec() local 47 gettimeofday(&time, nullptr); in CurrentTimeUsec() 48 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
|
/base/global/resource_management/frameworks/resmgr/include/utils/ |
D | date_utils.h | 32 struct timeval time; in CurrentTimeMillis() local 33 gettimeofday(&time, nullptr); in CurrentTimeMillis() 34 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis() 45 struct timeval time; in CurrentTimeUsec() local 46 gettimeofday(&time, nullptr); in CurrentTimeUsec() 47 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
|
/base/time/time_service/interfaces/inner_api/src/ |
D | time_service_client.cpp | 85 bool TimeServiceClient::SetTime(const int64_t time) in SetTime() argument 94 return proxy->SetTime(time) == ERR_OK; in SetTime() 112 int32_t TimeServiceClient::SetTimeV9(const int64_t &time) in SetTimeV9() argument 121 return proxy->SetTime(time, ITimeService::API_VERSION_9); in SetTimeV9() 315 int64_t time; in GetWallTimeMs() local 323 if (proxy->GetWallTimeMs(time) != ERR_OK) { in GetWallTimeMs() 327 TIME_HILOGI(TIME_MODULE_SERVICE, "Result: %{public}" PRId64 "", time); in GetWallTimeMs() 328 return time; in GetWallTimeMs() 331 int32_t TimeServiceClient::GetWallTimeMs(int64_t &time) in GetWallTimeMs() argument 340 if (proxy->GetWallTimeMs(time) != ERR_OK) { in GetWallTimeMs() [all …]
|
/base/time/time_service/services/etc/init/ |
D | timeservice.cfg | 5 "mkdir /data/service/el1/public/time 0770 time time", 6 "syncexec /system/bin/chown -R time:time /data/service/el1/public/time", 14 "uid" : "time", 15 "gid" : ["time", "shell"],
|
/base/global/timezone/ |
D | README.md | 5 The time zone module provides the functions of updating, parsing, compiling, and deploying time zon… 9 The directory structure of the time zone module is as follows: 13 ├── timezone # Code repository of the time zone module 22 …time zone update tool searches for the latest version of time zone data from the [Internet Assigne… 25 cd tool/update_tool // Go to the directory where the time zone update tool is located. 29 The time zone compilation tool compiles the time zone source data and generates time zone binary da… 32 cd tool/compile_tool // Go to the directory where the time zone compilation tool is located.
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | permission_grant_event_test.cpp | 55 uint64_t time; variable 58 eventHandler.AddEvent(tokenID, permissionName, time); 61 eventHandler.NotifyPermGrantStoreResult(true, time + 1); 77 uint64_t time; variable 80 eventHandler.AddEvent(tokenID, permissionName, time); 83 eventHandler.NotifyPermGrantStoreResult(false, time + 1); 99 uint64_t time; variable 102 eventHandler.AddEvent(tokenID, permissionName, time); 105 eventHandler.NotifyPermGrantStoreResult(true, time - 1);
|
/base/account/os_account/frameworks/common/perf_stat/include/ |
D | perf_stat.h | 30 void SetAccountBindStartTime(int64_t time); 33 void SetAccountBindEndTime(int64_t time); 36 void SetAccountAddStartTime(int64_t time); 39 void SetAccountAddEndTime(int64_t time); 42 void SetAccountDelStartTime(int64_t time); 45 void SetAccountDelEndTime(int64_t time); 48 void SetAccountQueryStartTime(int64_t time); 51 void SetAccountQueryEndTime(int64_t time); 57 void SetAccountStateChangeTime(const std::string &stateStr, int64_t time);
|
/base/time/time_service/services/ |
D | BUILD.gn | 14 import("//base/time/time_service/time.gni") 21 "time/include", 47 "time/src/itimer_info.cpp", 48 "time/src/net_conn_callback_observer.cpp", 49 "time/src/nitz_subscriber.cpp", 50 "time/src/ntp_trusted_time.cpp", 51 "time/src/ntp_update_time.cpp", 52 "time/src/simple_timer_info.cpp", 53 "time/src/sntp_client.cpp", 54 "time/src/time_service_notify.cpp", [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/ |
D | faultlogger_client_test.cpp | 27 std::string GetFaultLogName(const time_t& time, int32_t id, const std::string& type, const std::str… in GetFaultLogName() argument 32 struct tm* timeInfo = localtime(&time); in GetFaultLogName() 43 FaultLogInfoInner CreateFaultLogInfo(const time_t& time, int32_t id, int32_t type, const std::strin… in CreateFaultLogInfo() argument 46 info.time = time; in CreateFaultLogInfo() 61 bool CheckLogFileExist(const time_t& time, int32_t id, const std::string& type, const std::string& … in CheckLogFileExist() argument 63 auto fileName = GetFaultLogName(time, id, type, module); in CheckLogFileExist()
|
D | faultlogger_client_test.h | 29 bool CheckLogFileExist(const time_t& time, int32_t id, const std::string& type, const std::string& … 30 FaultLogInfoInner CreateFaultLogInfo(const time_t& time, int32_t id, int32_t type, const std::strin… 31 std::string GetFaultLogName(const time_t& time, int32_t id, const std::string& type, const std::str…
|
/base/time/time_service/interfaces/inner_api/include/ |
D | time_service_client.h | 60 int32_t SetTimeV9(const int64_t &time); 91 int32_t GetWallTimeMs(int64_t &time); 99 int32_t GetWallTimeNs(int64_t &time); 106 int32_t GetBootTimeMs(int64_t &time); 113 int32_t GetBootTimeNs(int64_t &time); 120 int32_t GetMonotonicTimeMs(int64_t &time); 127 int32_t GetMonotonicTimeNs(int64_t &time); 134 int32_t GetThreadTimeMs(int64_t &time); 141 int32_t GetThreadTimeNs(int64_t &time);
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | date_time_format_impl.cpp | 153 const tm time = *tmPtr; in Format() local 154 Format(time, this->fPattern, appendTo, status); in Format() 157 void DateTimeFormatImpl::Format(const struct tm &time, const string &pattern, string &appendTo, in Format() argument 166 Process(time, appendTo, pre, count, status); in Format() 185 Process(time, appendTo, pre, count, status); in Format() 241 void DateTimeFormatImpl::Process(const tm &time, string &appendTo, char pre, uint32_t count, I18nSt… in Process() argument 247 ProcessTime(time, appendTo, pre, count, status); in Process() 252 int32_t standaloneMonth = time.tm_mon; in Process() 263 int32_t month = time.tm_mon; in Process() 274 ProcessWeekDayYear(time, appendTo, pre, count, status); in Process() [all …]
|
/base/time/time_service/services/etc/ |
D | BUILD.gn | 16 ohos_prebuilt_etc("time.para") { 17 source = "//base/time/time_service/services/etc/time.para" 22 ohos_prebuilt_etc("time.para.dac") { 23 source = "//base/time/time_service/services/etc/time.para.dac"
|
/base/time/time_service/services/time/test/unittest/src/ |
D | time_client_test.cpp | 124 int64_t time = (currentTime.tv_sec + 1000) * 1000 + currentTime.tv_usec / 1000; variable 125 ASSERT_TRUE(time > 0); 126 TIME_HILOGI(TIME_MODULE_CLIENT, "Time now : %{public}" PRId64 "", time); 127 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(time); 161 (void)time(&t); 193 int64_t time; variable 194 auto errCode = TimeServiceClient::GetInstance()->GetWallTimeMs(time); 205 int64_t time; variable 206 auto errCode = TimeServiceClient::GetInstance()->GetWallTimeNs(time); 217 int64_t time; variable [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_manager.cpp | 44 LogStoreEx::LogFileFilter CreateLogFileFilter(time_t time, int32_t id, int32_t faultLogType, const … in CreateLogFileFilter() argument 46 LogStoreEx::LogFileFilter filter = [time, id, faultLogType, module](const LogFile &file) { in CreateLogFileFilter() 48 if (info.time <= time) { in CreateLogFileFilter() 76 int32_t FaultLogManager::CreateTempFaultLogFile(time_t time, int32_t id, int32_t faultType, in CreateTempFaultLogFile() argument 80 info.time = time; in CreateTempFaultLogFile() 94 return lhsInfo.time > rhsInfo.time; in Init() 157 std::list<std::string> FaultLogManager::GetFaultLogFileList(const std::string &module, time_t time,… in GetFaultLogFileList() argument 160 LogStoreEx::LogFileFilter filter = CreateLogFileFilter(time, id, faultType, module); in GetFaultLogFileList()
|
/base/telephony/sms_mms/services/gsm/ |
D | gsm_sms_param_codec.cpp | 150 int timeZone = pTimeStamp->time.absolute.timeZone; in EncodeTime() 156 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.year % NUMBER_TEN) << 0x04) + in EncodeTime() 157 (pTimeStamp->time.absolute.year / NUMBER_TEN); in EncodeTime() 158 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.month % NUMBER_TEN) << 0x04) + in EncodeTime() 159 (pTimeStamp->time.absolute.month / NUMBER_TEN); in EncodeTime() 161 …((pTimeStamp->time.absolute.day % NUMBER_TEN) << 0x04) + (pTimeStamp->time.absolute.day / NUMBER_T… in EncodeTime() 162 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.hour % NUMBER_TEN) << 0x04) + in EncodeTime() 163 (pTimeStamp->time.absolute.hour / NUMBER_TEN); in EncodeTime() 164 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.minute % NUMBER_TEN) << 0x04) + in EncodeTime() 165 (pTimeStamp->time.absolute.minute / NUMBER_TEN); in EncodeTime() [all …]
|
/base/time/time_service/framework/js/napi/system_date_time/src/ |
D | napi_system_date_time.cpp | 53 int64_t time = 0; in SetTime() member 59 setTimeContext->status = napi_get_value_int64(env, argv[ARGV_FIRST], &setTimeContext->time); in SetTime() 66 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(setTimeContext->time); in SetTime() 79 int64_t time = 0; in SetDate() member 88 napi_get_value_int64(env, argv[ARGV_FIRST], &setDateContext->time); in SetDate() 89 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setDateContext, setDateContext->time >= 0, "invalid ti… in SetDate() 104 … setDateContext->status = napi_get_value_int64(env, getTimeResult, &setDateContext->time); in SetDate() 112 auto innerCode = TimeServiceClient::GetInstance()->SetTimeV9(setDateContext->time); in SetDate() 125 int64_t time = 0; in GetRealActiveTime() member 142 … innerCode = TimeServiceClient::GetInstance()->GetMonotonicTimeNs(getRealActiveTimeContext->time); in GetRealActiveTime() [all …]
|
/base/time/time_service/interfaces/inner_api/ |
D | BUILD.gn | 13 import("//base/time/time_service/time.gni") 24 "${time_service_path}/time/include", 30 "${time_service_path}/time/src/itimer_info.cpp", 33 "${time_service_path}/time/src/timer_call_back.cpp", 35 "${time_service_path}/time/src/timer_notify_call_back.cpp", 54 subsystem_name = "time"
|
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/ |
D | event_pool_test.cpp | 77 auto time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable 78 printf("threadPool full time is %s\n", std::to_string(time).c_str()); 82 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 83 printf("AddTask second time is %s\n", std::to_string(time).c_str()); 91 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 92 printf("first end time is %s\n", std::to_string(time).c_str()); 144 auto time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable 145 printf("first end time is %s\n", std::to_string(time).c_str()); 151 time = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); 152 printf("AddTask second time is %s\n", std::to_string(time).c_str()); [all …]
|
/base/time/time_service/utils/native/test/ |
D | BUILD.gn | 14 import("//base/time/time_service/time.gni") 21 "//base/time/time_service/interfaces/innerkits/include", 24 "//base/time/time_service/utils/native/include", 39 "//base/time/time_service/interfaces/inner_api:time_client", 40 "//base/time/time_service/utils:time_utils",
|
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
D | faultlogger_client_unittest.cpp | 54 auto now = time(nullptr); 85 auto now = time(nullptr); 157 time_t time = std::time(nullptr); variable 158 info.SetTimeStamp(time); 159 ASSERT_EQ(info.GetTimeStamp(), time);
|
D | faultlogger_unittest.cpp | 136 info.time = 1607161163; 148 std::string timeStr = GetFormatedTime(info.time); 171 info.time = 1607161163; 225 info.time = std::time(nullptr); // 3 : index of timestamp 240 std::string cmd = "hisysevent -l | grep " + std::to_string(info.time); 247 if (str.find(std::to_string(info.time).c_str()) != std::string::npos) { 303 info.time = std::time(nullptr); // 3 : index of timestamp 320 std::string cmd = "hisysevent -l | grep " + std::to_string(info.time); 327 if (str.find(std::to_string(info.time).c_str()) != std::string::npos) { 350 info.time = std::time(nullptr); // 3 : index of timestamp [all …]
|
/base/hiviewdfx/faultloggerd/common/util/ |
D | dfx_cutil.c | 101 struct timeval time; in GetTimeMilliseconds() local 102 gettimeofday(&time, NULL); in GetTimeMilliseconds() 103 return ((uint64_t)time.tv_sec * 1000) + // 1000 : second to millisecond convert ratio in GetTimeMilliseconds() 104 (((uint64_t)time.tv_usec) / 1000); // 1000 : microsecond to millisecond convert ratio in GetTimeMilliseconds()
|