Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 56) sorted by relevance

123

/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c34 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/
Dpower_mgr_time_util.c20 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()
Dpower_mgr_timer_util.c42 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/
Dfs_dm.c108 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/
Dhilogclient_fuzzer.cpp32 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/
Dutils_common.cpp64 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/
Dkmsg_parser.cpp96 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/
Dmusl_cutil.h130 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()
Ddfx_cutil.c127 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/
Dtrace.txt1 at judgeDeviceType (/ets/vm/notificationManagenmentViewModel.ts:67:9)
2 at ViewModelInit (/ets/vm/notificationManag3enmentrViewModel.ts:32:5)
Djscrash-com.example.jsinject-20010041-1970042418312330 at judgeDeviceType (/ets/vm/notificationManagenmentViewModel.ts:67:9)
31 at ViewModelInit (/ets/vm/notificationManag3enmentrViewModel.ts:32:5)
/base/hiviewdfx/hilog/frameworks/libhilog/base/
Dhilog_base.c56 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/
Dmodule.json55 "srcEntrance": "./ets/Application/AbilityStage.ts",
28 "srcEntrance": "./ets/MainAbility/MainAbility.ts",
70 "srcEntrance": "./ets/ServiceExtAbility/service.ts"
/base/startup/init/services/param/liteos/
Dparam_osadp.c51 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/
Dcrash_exception.cpp36 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/
Dtime_util.cpp149 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/
Dfaultlog_info.cpp93 void FaultLogInfo::SetTimeStamp(int64_t ts) in SetTimeStamp() argument
95 ts_ = ts; in SetTimeStamp()
/base/hiviewdfx/faultloggerd/common/dfxutil/
Ddfx_util.cpp91 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/
Dhilog_printf.cpp125 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/
Dsensor_lite_test_performance.cpp59 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/
Dtee_client_socket.c197 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/
Dcharger_graphic_engine.cpp89 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/
Dsys_event_query.h43 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/
Dhril_event.cpp32 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/
Dmodule.json520 "srcEntrance": "./ets/Application/AbilityStage.ts",
54 "srcEntrance": "./ets/MainAbility/MainAbility.ts",

123