/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 >= (time_t)((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS … 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 | 64 uint64_t curTime = 0; variable 65 int32_t ret = HksCoreHalElapsedRealTime(&curTime); 67 EXPECT_EQ(curTime > 0, true) << "HksCoreHalElapsedRealTime failed, curTime = " << curTime;
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
D | dfx_processdump_test.cpp | 115 auto curTime = GetTimeMilliSeconds(); variable 119 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 134 auto curTime = GetTimeMilliSeconds(); variable 138 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 153 auto curTime = GetTimeMilliSeconds(); variable 157 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 172 auto curTime = GetTimeMilliSeconds(); variable 176 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 191 auto curTime = GetTimeMilliSeconds(); variable 195 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); [all …]
|
/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_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 | 154 struct tm curTime { struct 159 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 202 struct tm curTime { struct 208 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 593 struct tm curTime { struct 599 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 650 struct tm curTime { struct 656 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… 707 struct tm curTime { struct 713 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle… [all …]
|
D | common_event_subscribe_unit_test.cpp | 586 struct tm curTime {0}; struct 590 subscribeInfo, commonEventListenerPtr, curTime, 0, 0, tokenID, "")); 612 struct tm curTime {0}; struct 616 subscribeInfo, commonEventListenerPtr, curTime, 0, 0, tokenID, "")); 635 struct tm curTime {0}; struct 638 …EXPECT_FALSE(innerCommonEventManager.SubscribeCommonEvent(subscribeInfo, sp, curTime, 0, 0, tokenI… 663 struct tm curTime {0}; struct 670 subscribeInfoPtr, commonEventListener, curTime, eventRecordInfo); 696 struct tm curTime {0}; struct 703 …commonEventSubscriberManager.InsertSubscriber(nullptr, commonEventListenerPtr, curTime, eventRecor… [all …]
|
D | common_event_dump_test.cpp | 557 struct tm curTime {0}; in SubscribeDoubleEvent() struct 560 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent() 592 struct tm curTime {0}; in PublishUnorderedEvent() struct 595 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent() 627 struct tm curTime {0}; in PublishStickyEvent() struct 630 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent() 660 struct tm curTime {0}; in PublishStickyEvent() struct 663 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent() 766 struct tm curTime {0}; struct 772 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/hiviewdfx/hicollie/frameworks/native/ |
D | watchdog_task.cpp | 139 time_t curTime = time(nullptr); in SendEvent() local 140 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + in SendEvent() 159 time_t curTime = time(nullptr); in SendXCollieEvent() local 160 std::string sendMsg = std::string((ctime(&curTime) == nullptr) ? "" : ctime(&curTime)) + "\n"+ in SendXCollieEvent()
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_dump.cpp | 45 timespec curTime = { 0, 0 }; in DumpCurrentTime() local 46 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 47 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 55 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
D | miscdevice_dump.cpp | 163 timespec curTime; in DumpCurrentTime() local 164 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 165 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 171 .append(std::to_string(curTime.tv_nsec / (CONVERSION_RATE * CONVERSION_RATE))); in DumpCurrentTime()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/generatecert_fuzzer/ |
D | generatecert_fuzzer.cpp | 44 uint64_t curTime = static_cast<uint64_t>( in FuzzTest() local 56 … perminfo.permExpiryTime = curTime + GetRandomUint32() % 200; // time range 0 to 200 in FuzzTest()
|
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/generatecertstub_fuzzer/ |
D | generatecertstub_fuzzer.cpp | 39 uint64_t curTime = static_cast<uint64_t>( in FuzzTest() local 52 … perminfo.permExpiryTime = curTime + GetRandomUint32() % 200; // time range 0 to 200 in FuzzTest()
|
/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/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/ |
D | statistic_reporter.h | 29 static ReportStatus InvokeUsageTime(time_t curTime);
|
/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/utils/common/src/ |
D | util.cpp | 84 timespec curTime; in GetTimeStamp() local 85 clock_gettime(CLOCK_REALTIME, &curTime); in GetTimeStamp() 86 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in GetTimeStamp() 92 .append(std::to_string(curTime.tv_nsec / MS_NS)); in GetTimeStamp()
|
/base/sensors/sensor/services/sensor/src/ |
D | sensor_dump.cpp | 257 timespec curTime = { 0, 0 }; in DumpCurrentTime() local 258 clock_gettime(CLOCK_REALTIME, &curTime); in DumpCurrentTime() 259 struct tm *timeinfo = localtime(&(curTime.tv_sec)); in DumpCurrentTime() 262 int32_t { (curTime.tv_nsec / MS_NS) }); in DumpCurrentTime()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_thread.cpp | 132 int64_t curTime = std::chrono::duration_cast<std::chrono::milliseconds>( in Attach() local 134 if (curTime - startTime > 1000) { // 1000 : 1s timeout in Attach()
|