Home
last modified time | relevance | path

Searched refs:curTime (Results 1 - 25 of 53) sorted by relevance

123

/base/hiviewdfx/hidumper/frameworks/native/
H A Dcommon.h37 struct tm curTime = {0}; \
38 if (localtime_r(&tp.tv_sec, &curTime) != nullptr) { \
39 fprintf(stdout, "[%04d%02d%02d %02d:%02d:%02d]", curTime.tm_year + 1900, 1 + curTime.tm_mon, \
40 curTime.tm_mday, curTime.tm_hour, curTime.tm_min, curTime.tm_sec); \
/base/security/huks/frameworks/huks_standard/main/os_dependency/posix/
H A Dhks_util.c26 struct timespec curTime; in HksElapsedRealTime() local
27 int32_t ret = clock_gettime(CLOCK_MONOTONIC, &curTime); in HksElapsedRealTime()
32 if ((curTime.tv_sec >= (time_t)((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS >= S_TO_MS)) { in HksElapsedRealTime()
36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksElapsedRealTime()
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core_dependency/src/
H A Dhks_core_hal_api_test.cpp62 uint64_t curTime = 0; in HWTEST_F() local
63 int32_t ret = HksElapsedRealTime(&curTime); in HWTEST_F()
65 EXPECT_EQ(curTime > 0, true) << "HksElapsedRealTime failed, curTime = " << curTime; in HWTEST_F()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_grant_event.cpp30 struct timespec curTime; in GetRealTimeStamp() local
31 if (clock_gettime(CLOCK_MONOTONIC, &curTime) != 0) { in GetRealTimeStamp()
35 return curTime.tv_sec * MS_PER_S + curTime.tv_nsec / NS_PER_MS; in GetRealTimeStamp()
/base/notification/common_event_service/services/test/unittest/
H A Dcommon_event_publish_system_event_test.cpp113 struct tm curTime {0}; in HWTEST_F() struct
116 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
143 struct tm curTime {0}; in HWTEST_F() struct
146 data, publishInfo, nullptr, curTime, PID, NON_SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
174 struct tm curTime{0}; in HWTEST_F() struct
177 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F()
195 data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
225 struct tm curTime{0}; in HWTEST_F() struct
228 subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); in HWTEST_F()
246 data, publishInfo, nullptr, curTime, PI in HWTEST_F()
[all...]
H A Dcommon_event_freeze_unit_test.cpp93 struct tm curTime {0}; in HWTEST_F() struct
97 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
125 struct tm curTime {0}; in HWTEST_F() struct
129 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
157 struct tm curTime {0}; in HWTEST_F() struct
161 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
207 struct tm curTime {0}; in HWTEST_F() struct
211 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); in HWTEST_F()
430 struct tm curTime {0}; in HWTEST_F() struct
434 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo in HWTEST_F()
460 struct tm curTime {0}; HWTEST_F() struct
492 struct tm curTime {0}; HWTEST_F() struct
540 struct tm curTime {0}; HWTEST_F() struct
[all...]
H A Dcommon_event_publish_permission_event_unit_test.cpp111 struct tm curTime {0}; in HWTEST_F() struct
121 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
134 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
153 struct tm curTime {0}; in HWTEST_F() struct
163 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
177 data, publishInfo, listener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
196 struct tm curTime {0}; in HWTEST_F() struct
206 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); in HWTEST_F()
220 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in HWTEST_F()
239 struct tm curTime { in HWTEST_F() struct
658 struct tm curTime {0}; HWTEST_F() struct
989 struct tm curTime { HWTEST_F() struct
1034 struct tm curTime { HWTEST_F() struct
1079 struct tm curTime { HWTEST_F() struct
1124 struct tm curTime { HWTEST_F() struct
1169 struct tm curTime { HWTEST_F() struct
1214 struct tm curTime { HWTEST_F() struct
1259 struct tm curTime { HWTEST_F() struct
1304 struct tm curTime { HWTEST_F() struct
1349 struct tm curTime { HWTEST_F() struct
1394 struct tm curTime { HWTEST_F() struct
[all...]
H A Dcommon_event_publish_ordered_event_unit_test.cpp154 struct tm curTime { in HWTEST_F() struct
159 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
202 struct tm curTime { in HWTEST_F() struct
208 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
593 struct tm curTime { in HWTEST_F() struct
599 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
650 struct tm curTime { in HWTEST_F() struct
656 data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundlename"); in HWTEST_F()
707 struct tm curTime { in HWTEST_F() struct
713 data, publishInfo, commonEventListener, curTime, PI in HWTEST_F()
764 struct tm curTime { HWTEST_F() struct
[all...]
H A Dcommon_event_subscribe_unit_test.cpp640 struct tm curTime {0}; in HWTEST_F() struct
646 subscribeInfo, commonEventListenerPtr, curTime, pid, uid, tokenID, "")); in HWTEST_F()
668 struct tm curTime {0}; in HWTEST_F() struct
674 subscribeInfo, commonEventListenerPtr, curTime, pid, uid, tokenID, "")); in HWTEST_F()
693 struct tm curTime {0}; in HWTEST_F() struct
698 EXPECT_FALSE(innerCommonEventManager.SubscribeCommonEvent(subscribeInfo, sp, curTime, pid, uid, tokenID, "")); in HWTEST_F()
723 struct tm curTime {0}; in HWTEST_F() struct
730 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo); in HWTEST_F()
756 struct tm curTime {0}; in HWTEST_F() struct
763 commonEventSubscriberManager.InsertSubscriber(nullptr, commonEventListenerPtr, curTime, eventRecordInf in HWTEST_F()
787 struct tm curTime {0}; HWTEST_F() struct
822 struct tm curTime {0}; HWTEST_F() struct
[all...]
H A Dcommon_event_dump_test.cpp560 struct tm curTime {0}; in SubscribeDoubleEvent() struct
563 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent()
595 struct tm curTime {0}; in PublishUnorderedEvent() struct
598 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent()
630 struct tm curTime {0}; in PublishStickyEvent() struct
633 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
663 struct tm curTime {0}; in PublishStickyEvent() struct
666 eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
769 struct tm curTime {0}; in HWTEST_F() struct
775 subscribeInfo, listener->AsObject(), curTime, PI in HWTEST_F()
803 struct tm curTime {0}; HWTEST_F() struct
836 struct tm curTime {0}; HWTEST_F() struct
868 struct tm curTime {0}; HWTEST_F() struct
899 struct tm curTime {0}; HWTEST_F() struct
930 struct tm curTime {0}; HWTEST_F() struct
1094 struct tm curTime {0}; HWTEST_F() struct
1127 struct tm curTime {0}; HWTEST_F() struct
[all...]
/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_log_limit.c65 uint16 curTime = (uint16)(HIVIEW_GetCurrentTime() / MS_PER_SECOND); in LogIsLimited() local
85 if ((curTime < baseTime) || ((curTime - baseTime) >= LOG_LIMIT_CHECK_DURATION)) { in LogIsLimited()
86 pLimitRule->baseTime = curTime; in LogIsLimited()
/base/sensors/medical_sensor/utils/src/
H A Ddmd_report.cpp85 int64_t curTime = GetSecondsSince1970ToNow(); in ReportException() local
86 if ((curTime - eventIt->second) > SECONDS_HALF_HOUR) { in ReportException()
91 eventMap_[eventId] = curTime; in ReportException()
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/
H A Ddfx_processdump_test.cpp155 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
159 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
174 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
178 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
193 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
197 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
212 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
216 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); in HWTEST_F()
231 auto curTime = GetTimeMilliSeconds(); in HWTEST_F() local
235 ASSERT_EQ(std::to_string(curTime) in HWTEST_F()
251 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
270 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
289 auto curTime = GetTimeMilliSeconds(); HWTEST_F() local
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_ptrace.cpp64 int64_t curTime = std::chrono::duration_cast<std::chrono::milliseconds>( in Attach() local
66 if (curTime - startTime > timeout) { in Attach()
/base/powermgr/battery_manager/services/native/src/
H A Dbattery_dump.cpp49 timespec curTime = { 0, 0 }; in DumpCurrentTime() local
50 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime()
51 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime()
59 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_dump.cpp169 timespec curTime; in DumpCurrentTime() local
170 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime()
171 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime()
177 .append(std::to_string(curTime.tv_nsec / (CONVERSION_RATE * CONVERSION_RATE))); in DumpCurrentTime()
/base/notification/common_event_service/frameworks/native/test/unittest/
H A Dcommon_event_subscribe_test.cpp308 struct tm curTime {0}; in HWTEST_F() struct
311 EXPECT_EQ(false, innerCommonEventManager->SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, tokenID, "")); in HWTEST_F()
334 struct tm curTime {0}; in HWTEST_F() struct
341 nullptr, commonEventListenerPtr, curTime, eventRecordInfo); in HWTEST_F()
364 struct tm curTime {0}; in HWTEST_F() struct
371 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo); in HWTEST_F()
397 struct tm curTime {0}; in HWTEST_F() struct
404 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo); in HWTEST_F()
/base/account/os_account/frameworks/domain_account/test/moduletest/src/
H A Dmock_domain_so_plugin.cpp157 time_t curTime; in IsAuthenticationExpired() local
158 (void)time(&curTime); in IsAuthenticationExpired()
159 int32_t calTime = static_cast<int32_t>(curTime - g_authTime); in IsAuthenticationExpired()
/base/security/huks/services/huks_standard/huks_service/main/core/src/
H A Dhks_session_manager.c125 uint64_t curTime = 0; in DeleteFirstTimeOutBatchOperation() local
126 int32_t ret = HksElapsedRealTime(&curTime); in DeleteFirstTimeOutBatchOperation()
131 if (operation->batchOperationTimestamp >= curTime) { in DeleteFirstTimeOutBatchOperation()
266 uint64_t curTime = 0; in HksAddBatchTimeToOperation() local
267 int32_t ret = HksElapsedRealTime(&curTime); in HksAddBatchTimeToOperation()
272 operation->batchOperationTimestamp = curTime + DEFAULT_BATCH_TIME_OUT * S_TO_MS; in HksAddBatchTimeToOperation()
284 operation->batchOperationTimestamp = curTime + (uint64_t)paramSet->params[i].uint32Param * S_TO_MS; in HksAddBatchTimeToOperation()
/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_repeat_guard.cpp138 int64_t curTime = time(nullptr); in RegisterListeningUeSwitch()
139 SysEventRepeatDb::GetInstance().Clear(curTime); in RegisterListeningUeSwitch()
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/fuzzer/generatecert_fuzzer/
H A Dgeneratecert_fuzzer.cpp48 uint64_t curTime = static_cast<uint64_t>( in FuzzTest() local
64 perminfo.permExpiryTime = curTime + *temp2 % 200; // time range 0 to 200 in FuzzTest()
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/
H A Dcustom_vibration_matcher.cpp324 int32_t curTime = curve.front().time; in ProcessContinuousEvent() local
329 while (curTime < endTime) { in ProcessContinuousEvent()
332 if ((endTime - curTime) >= (2 * SLICE_STEP)) { in ProcessContinuousEvent()
333 nextTime = curTime + SLICE_STEP; in ProcessContinuousEvent()
341 curTime = nextTime; in ProcessContinuousEvent()
349 .time = curTime, in ProcessContinuousEvent()
350 .duration = nextTime - curTime, in ProcessContinuousEvent()
355 curTime = nextTime; in ProcessContinuousEvent()
/base/hiviewdfx/hicollie/frameworks/native/
H A Dwatchdog_task.cpp213 time_t curTime = time(nullptr); in SendEvent() local
214 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + in SendEvent()
265 time_t curTime = time(nullptr); in SendXCollieEvent() local
266 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + "\n"+ in SendXCollieEvent()
/base/msdp/device_status/utils/common/src/
H A Dutil.cpp99 timespec curTime; in GetTimeStamp() local
100 clock_gettime(CLOCK_REALTIME, &curTime); in GetTimeStamp()
101 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in GetTimeStamp()
107 .append(std::to_string(curTime.tv_nsec / MS_NS)); in GetTimeStamp()
/base/sensors/medical_sensor/services/medical_sensor/src/
H A Dmedical_dump.cpp162 timespec curTime = { 0, 0 }; in DumpCurrentTime() local
163 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime()
164 tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime()
170 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()

Completed in 18 milliseconds

123