/base/hiviewdfx/hidumper/frameworks/native/ |
D | common.h | 37 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/services/huks_standard/huks_engine/main/core_dependency/src/ |
D | hks_core_hal_api.c | 26 struct timespec curTime; in HksCoreHalElapsedRealTime() local 27 int32_t ret = clock_gettime(CLOCK_MONOTONIC, &curTime); in HksCoreHalElapsedRealTime() 32 …if ((curTime.tv_sec >= ((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS >= S_TO_… in HksCoreHalElapsedRealTime() 36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksCoreHalElapsedRealTime()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core_dependency/src/ |
D | hks_core_hal_api_test.cpp | 61 uint64_t curTime = 0; variable 62 int32_t ret = HksCoreHalElapsedRealTime(&curTime); 64 EXPECT_EQ(curTime > 0, true) << "HksCoreHalElapsedRealTime failed, curTime = " << curTime;
|
/base/notification/common_event_service/services/test/unittest/ |
D | common_event_publish_system_event_test.cpp | 113 struct tm curTime {0}; struct 116 … data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); 143 struct tm curTime {0}; struct 146 …data, publishInfo, nullptr, curTime, PID, NON_SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename… 174 struct tm curTime{0}; struct 177 … subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); 195 … data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename"); 225 struct tm curTime{0}; struct 228 … subscribeInfo, commonEventListenerPtr, curTime, PID, SYSTEM_APP_UID, tokenID, "bundlename")); 246 … data, publishInfo, nullptr, curTime, PID, SYSTEM_APP_UID, tokenID, UNDEFINED_USER, "bundlename");
|
D | common_event_publish_permission_event_unit_test.cpp | 111 struct tm curTime {0}; struct 121 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); 134 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); 153 struct tm curTime {0}; struct 163 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); 177 data, publishInfo, listener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); 196 struct tm curTime {0}; struct 206 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello"); 220 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); 239 struct tm curTime {0}; struct [all …]
|
D | common_event_subscribe_unit_test.cpp | 159 struct tm curTime {0}; struct 163 subscribeInfo, commonEventListenerPtr, curTime, 0, 0, tokenID, "")); 185 struct tm curTime {0}; struct 189 subscribeInfo, commonEventListenerPtr, curTime, 0, 0, tokenID, "")); 208 struct tm curTime {0}; struct 211 …EXPECT_FALSE(innerCommonEventManager.SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, tokenI… 236 struct tm curTime {0}; struct 243 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo); 269 struct tm curTime {0}; struct 276 …commonEventSubscriberManager.InsertSubscriber(nullptr, commonEventListenerPtr, curTime, eventRecor… [all …]
|
D | common_event_freeze_unit_test.cpp | 93 struct tm curTime {0}; struct 97 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); 125 struct tm curTime {0}; struct 129 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); 157 struct tm curTime {0}; struct 161 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); 207 struct tm curTime {0}; struct 211 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); 430 struct tm curTime {0}; struct 434 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo_); [all …]
|
D | common_event_publish_ordered_event_unit_test.cpp | 132 struct tm curTime { struct 137 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 180 struct tm curTime { struct 186 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 571 struct tm curTime { struct 577 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 628 struct tm curTime { struct 634 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 685 struct tm curTime { struct 691 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… [all …]
|
D | common_event_dump_test.cpp | 548 struct tm curTime {0}; in SubscribeDoubleEvent() struct 551 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent() 583 struct tm curTime {0}; in PublishUnorderedEvent() struct 586 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent() 618 struct tm curTime {0}; in PublishStickyEvent() struct 621 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent() 651 struct tm curTime {0}; in PublishStickyEvent() struct 654 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent() 757 struct tm curTime {0}; struct 763 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); [all …]
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
D | permission_grant_event.cpp | 30 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/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_log_limit.c | 65 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/ |
D | dmd_report.cpp | 85 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/hiappevent/test/unittest/common/native/ |
D | hiappevent_read_test.cpp | 107 int64_t curTime = static_cast<int64_t>(TimeUtil::GetMilliseconds()); variable 109 PullEventHistoryLog(INVALID_TIME, curTime, eventCount); 112 PullEventHistoryLog(0, curTime, eventCount);
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_dump.cpp | 52 timespec curTime = { 0, 0 }; in DumpCurrentTime() local 53 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 54 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 62 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
|
/base/hiviewdfx/hicollie/frameworks/native/ |
D | watchdog_task.cpp | 90 time_t curTime = time(nullptr); in SendEvent() local 91 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + in SendEvent()
|
D | xcollie_inner.cpp | 149 time_t curTime = time(nullptr); in SendEvent() local 150 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + "\n" + in SendEvent()
|
/base/notification/common_event_service/frameworks/native/test/unittest/ |
D | common_event_subscribe_test.cpp | 308 struct tm curTime {0}; struct 311 …EXPECT_EQ(false, innerCommonEventManager->SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, t… 334 struct tm curTime {0}; struct 341 nullptr, commonEventListenerPtr, curTime, eventRecordInfo); 364 struct tm curTime {0}; struct 371 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo); 397 struct tm curTime {0}; struct 404 commonEventSubscribeInfo, nullptr, curTime, eventRecordInfo);
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
D | miscdevice_dump.cpp | 157 timespec curTime; in DumpCurrentTime() local 158 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 159 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 165 .append(std::to_string(curTime.tv_nsec / (CONVERSION_RATE * CONVERSION_RATE))); in DumpCurrentTime()
|
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/ |
D | statistic_reporter.h | 28 static ReportStatus InvokeUsageTime(time_t curTime);
|
D | statistic_reporter.cpp | 109 ReportStatus StatisticReporter::InvokeUsageTime(time_t curTime) in InvokeUsageTime() argument 120 int nDiff = curTime - stat.startTime; in InvokeUsageTime()
|
/base/sensors/medical_sensor/services/medical_sensor/src/ |
D | medical_dump.cpp | 162 timespec curTime = { 0, 0 }; in DumpCurrentTime() local 163 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 164 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 170 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
|
/base/msdp/device_status/services/native/src/ |
D | devicestatus_dumper.cpp | 211 timespec curTime; in DumpCurrentTime() local 212 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 213 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 222 .append(std::to_string(curTime.tv_nsec / MS_NS)); in DumpCurrentTime()
|
/base/sensors/sensor/services/sensor/src/ |
D | sensor_dump.cpp | 263 timespec curTime = { 0, 0 }; in DumpCurrentTime() local 264 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 265 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 268 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
|
/base/notification/eventhandler/frameworks/eventhandler/src/ |
D | event_handler.cpp | 340 struct tm curTime = {0}; in Dump() local 343 localtime_r(&tt, &curTime); in Dump() 346 std::strftime(sysTime, sizeof(char) * DATETIME_STRING_LENGTH, "%Y%m%d %I:%M %p", &curTime); in Dump()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
D | dump_cpu_info_util.cpp | 292 time_t curTime; in CheckFrequentDumpping() local 294 (void)time(&curTime); in CheckFrequentDumpping() 295 gmtime_r(&curTime, &ptrCurtime); in CheckFrequentDumpping()
|