/base/security/device_security_level/baselib/utils/src/ |
D | utils_datetime.c | 34 struct timespec ts; in GetMillisecondSinceBoot() local 38 clock_gettime(CLOCK_BOOTTIME, &ts); in GetMillisecondSinceBoot() 39 result = (uint64_t)(ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC); in GetMillisecondSinceBoot() 50 struct timespec ts; in GetMillisecondSince1970() local 51 clock_gettime(CLOCK_REALTIME, &ts); in GetMillisecondSince1970() 52 return ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC; in GetMillisecondSince1970()
|
/base/powermgr/powermgr_lite/utils/src/ |
D | power_mgr_time_util.c | 20 struct timespec ts; in GetCurrentTimeMsec() local 21 clock_gettime(clkId, &ts); in GetCurrentTimeMsec() 22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
|
D | power_mgr_timer_util.c | 42 static void SetTimeSpec(struct timespec *ts, int64_t msec) in SetTimeSpec() argument 44 ts->tv_sec = MsecToSec(msec); in SetTimeSpec() 45 msec -= SecToMsec(ts->tv_sec); in SetTimeSpec() 46 ts->tv_nsec = MsecToNsec(msec); in SetTimeSpec() 51 struct itimerspec ts; in StartTimer() local 52 SetTimeSpec(&ts.it_value, whenMsec); in StartTimer() 53 SetTimeSpec(&ts.it_interval, intervalMsec); in StartTimer() 54 int32_t ret = timer_settime(timer, 0, &ts, NULL); in StartTimer()
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/ |
D | fs_dm.c | 108 struct dm_target_spec *ts = NULL; in LoadDmDeviceTable() local 114 parasTotalSize = DM_ALIGN(sizeof(*io) + sizeof(*ts) + target->paras_len + 1); in LoadDmDeviceTable() 122 ts = (struct dm_target_spec *)(parasBuf + sizeof(*io)); in LoadDmDeviceTable() 123 paras = parasBuf + sizeof(*io) + sizeof((*ts)); in LoadDmDeviceTable() 137 ts->status = 0; in LoadDmDeviceTable() 138 ts->sector_start = target->start; in LoadDmDeviceTable() 139 ts->length = target->length; in LoadDmDeviceTable() 141 err = strcpy_s(ts->target_type, sizeof(ts->target_type), "verity"); in LoadDmDeviceTable() 155 ts->next = parasTotalSize - sizeof(*io); in LoadDmDeviceTable()
|
/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/ |
D | hilogclient_fuzzer.cpp | 32 struct timespec ts = {0}; in DoSomethingInterestingWithMyAPI() local 33 (void)clock_gettime(CLOCK_REALTIME, &ts); in DoSomethingInterestingWithMyAPI() 36 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in DoSomethingInterestingWithMyAPI() 37 header.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in DoSomethingInterestingWithMyAPI()
|
/base/update/updater/utils/ |
D | utils_common.cpp | 64 struct timespec ts = { static_cast<time_t>(seconds), nanoSeconds }; in UsSleep() local 65 while (nanosleep(&ts, &ts) < 0 && errno == EINTR) { in UsSleep()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | kmsg_parser.cpp | 96 struct timespec ts = {0}; in ParseKmsg() local 97 (void)clock_gettime(CLOCK_REALTIME, &ts); in ParseKmsg() 98 msg.tv_sec = static_cast<uint32_t>(ts.tv_sec); in ParseKmsg() 99 msg.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in ParseKmsg()
|
/base/hiviewdfx/faultloggerd/common/cutil/ |
D | musl_cutil.h | 130 struct timespec ts; in GetTimeMilliseconds() local 131 (void)clock_gettime(CLOCK_REALTIME, &ts); in GetTimeMilliseconds() 132 … return ((uint64_t)ts.tv_sec * NUMBER_ONE_THOUSAND) + // 1000 : second to millisecond convert ratio in GetTimeMilliseconds() 133 …(((uint64_t)ts.tv_nsec) / NUMBER_ONE_MILLION); // 1000000 : nanosecond to millisecond convert ratio in GetTimeMilliseconds()
|
D | dfx_cutil.c | 127 struct timespec ts; in GetTimeMilliseconds() local 128 (void)clock_gettime(CLOCK_REALTIME, &ts); in GetTimeMilliseconds() 129 … return ((uint64_t)ts.tv_sec * NUMBER_ONE_THOUSAND) + // 1000 : second to millisecond convert ratio in GetTimeMilliseconds() 130 …(((uint64_t)ts.tv_nsec) / NUMBER_ONE_MILLION); // 1000000 : nanosecond to millisecond convert ratio in GetTimeMilliseconds()
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest002/ |
D | trace.txt | 1 at judgeDeviceType (/ets/vm/notificationManagenmentViewModel.ts:67:9) 2 at ViewModelInit (/ets/vm/notificationManag3enmentrViewModel.ts:32:5)
|
D | jscrash-com.example.jsinject-20010041-19700424183123 | 30 at judgeDeviceType (/ets/vm/notificationManagenmentViewModel.ts:67:9) 31 at ViewModelInit (/ets/vm/notificationManag3enmentrViewModel.ts:32:5)
|
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
D | hilog_base.c | 56 struct timespec ts = {0}; in SendMessage() local 57 (void)clock_gettime(CLOCK_REALTIME, &ts); in SendMessage() 60 header->tv_sec = (uint32_t)(ts.tv_sec); in SendMessage() 61 header->tv_nsec = (uint32_t)(ts.tv_nsec); in SendMessage()
|
/base/update/update_app/product/oh/base/src/main/ |
D | module.json5 | 5 "srcEntrance": "./ets/Application/AbilityStage.ts", 28 "srcEntrance": "./ets/MainAbility/MainAbility.ts", 70 "srcEntrance": "./ets/ServiceExtAbility/service.ts"
|
/base/startup/init/services/param/liteos/ |
D | param_osadp.c | 51 static void SetTimeSpec(struct timespec *ts, int64_t msec) in SetTimeSpec() argument 53 ts->tv_sec = msec / MSEC_PER_SEC; // 1000LL ms --> m in SetTimeSpec() 54 ts->tv_nsec = (msec - ts->tv_sec * MSEC_PER_SEC) * NSEC_PER_MSEC; in SetTimeSpec() 60 struct itimerspec ts; in StartTimer() local 61 SetTimeSpec(&ts.it_value, whenMsec); in StartTimer() 62 SetTimeSpec(&ts.it_interval, whenMsec); in StartTimer() 63 int32_t ret = timer_settime(paramTimer->timerId, 0, &ts, NULL); in StartTimer()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/crash_exception/ |
D | crash_exception.cpp | 36 struct timespec ts; in GetTimeMillisec() local 37 (void)clock_gettime(CLOCK_REALTIME, &ts); in GetTimeMillisec() 38 return ((uint64_t)ts.tv_sec * NUMBER_ONE_THOUSAND) + in GetTimeMillisec() 39 (((uint64_t)ts.tv_nsec) / NUMBER_ONE_MILLION); in GetTimeMillisec()
|
/base/hiviewdfx/hiview/base/utility/ |
D | time_util.cpp | 149 struct timespec ts; in GetBootTimeMs() local 150 if (clock_gettime(CLOCK_BOOTTIME, &ts) == 0) { in GetBootTimeMs() 151 … return static_cast<uint64_t>(ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC); in GetBootTimeMs()
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/ |
D | faultlog_info.cpp | 93 void FaultLogInfo::SetTimeStamp(int64_t ts) in SetTimeStamp() argument 95 ts_ = ts; in SetTimeStamp()
|
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
D | dfx_util.cpp | 91 struct timespec ts; in GetTimeMilliSeconds() local 92 (void)clock_gettime(CLOCK_REALTIME, &ts); in GetTimeMilliSeconds() 93 … return ((uint64_t)ts.tv_sec * NUMBER_ONE_THOUSAND) + // 1000 : second to millisecond convert ratio in GetTimeMilliSeconds() 94 …(((uint64_t)ts.tv_nsec) / NUMBER_ONE_MILLION); // 1000000 : nanosecond to millisecond convert ratio in GetTimeMilliSeconds()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ |
D | hilog_printf.cpp | 125 static int HiLogFlowCtrlProcess(int len, const struct timespec &ts) in HiLogFlowCtrlProcess() argument 137 LogTimeStamp tsNow(ts); in HiLogFlowCtrlProcess() 235 struct timespec ts = {0}; in HiLogPrintArgs() local 236 (void)clock_gettime(CLOCK_REALTIME, &ts); in HiLogPrintArgs() 239 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in HiLogPrintArgs() 240 header.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in HiLogPrintArgs()
|
/base/sensors/sensor_lite/interfaces/kits/native/test/performance/src/ |
D | sensor_lite_test_performance.cpp | 59 struct timespec ts = {0, 0}; in GetCurrentMillSecTime() local 60 clock_gettime(CLOCK_REALTIME, &ts); in GetCurrentMillSecTime() 61 return (uint64_t)((ts.tv_sec * MS_PER_SECOND) + (ts.tv_nsec / NS_PER_MS)); in GetCurrentMillSecTime()
|
/base/tee/tee_client/frameworks/libteec_vendor/ |
D | tee_client_socket.c | 197 struct timespec ts; in SleepNs() local 198 ts.tv_sec = 0; in SleepNs() 199 ts.tv_nsec = num; in SleepNs() 201 if (nanosleep(&ts, NULL) != 0) { in SleepNs()
|
/base/powermgr/battery_manager/charger/src/ |
D | charger_graphic_engine.cpp | 89 struct timespec ts = {static_cast<time_t>(seconds), nanoSeconds}; in UsSleep() local 90 while (nanosleep(&ts, &ts) < 0 && errno == EINTR) {} in UsSleep()
|
/base/hiviewdfx/hiview/base/event_store/include/ |
D | sys_event_query.h | 43 int64_t ts = 0; member 50 Entry(int64_t id, int64_t ts, std::shared_ptr<EventRaw::RawData> data) in Entry() 51 : id(id), ts(ts), data(data), sysVersion("") {} in Entry() 53 Entry(int64_t id, int64_t ts, std::shared_ptr<EventRaw::RawData> data, std::string& sysVersion) in Entry() 54 : id(id), ts(ts), data(data), sysVersion(sysVersion) {} in Entry()
|
/base/telephony/ril_adapter/services/hril/src/ |
D | hril_event.cpp | 32 struct timespec ts; in GetNowTime() local 33 clock_gettime(CLOCK_MONOTONIC, &ts); in GetNowTime() 34 tv.tv_sec = ts.tv_sec; in GetNowTime() 35 tv.tv_usec = ts.tv_nsec / TIME_UNIT; in GetNowTime()
|
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ |
D | module.json5 | 20 "srcEntrance": "./ets/Application/AbilityStage.ts", 54 "srcEntrance": "./ets/MainAbility/MainAbility.ts",
|