Home
last modified time | relevance | path

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

123

/base/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/
Dfreeze_detector_plugin_module_test.cpp92 long startTime = time(nullptr); variable
95 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S");
101 auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "FWK_BLOCK");
123 long startTime = time(nullptr); variable
126 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_3S");
133 …auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "APP_NOT_RESPONSE");
155 long startTime = time(nullptr); variable
158 auto event = CreateFreezeEvent(json, false, startTime, "FRAMEWORK", "TRANSPARENT_WINDOWS");
179 long startTime = time(nullptr); variable
182 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S");
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
Dhc_time.c36 int64_t HcGetIntervalTime(int64_t startTime) in HcGetIntervalTime() argument
38 if (startTime < 0) { in HcGetIntervalTime()
48 if (end.tv_sec < startTime) { in HcGetIntervalTime()
52 return (end.tv_sec - startTime); in HcGetIntervalTime()
/base/sensors/sensor_lite/interfaces/kits/native/test/performance/src/
Dsensor_lite_test_performance.cpp74 uint64_t startTime = GetCurrentMillSecTime(); variable
77 uint64_t duration = endTime - startTime;
80 startTime, endTime, duration);
109 uint64_t startTime = GetCurrentMillSecTime(); variable
112 uint64_t duration = endTime - startTime;
116 startTime, endTime, duration);
143 uint64_t startTime = GetCurrentMillSecTime(); variable
146 uint64_t duration = endTime - startTime;
149 startTime, endTime, duration);
170 uint64_t startTime = GetCurrentMillSecTime(); variable
[all …]
/base/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp98 std::string startTime; in DumpDevicestatusSubscriber() local
99 DumpCurrentTime(startTime); in DumpDevicestatusSubscriber()
100 dprintf(fd, "Current time: %s \n", startTime.c_str()); in DumpDevicestatusSubscriber()
104 … appInfo->startTime.c_str(), appInfo->uid, appInfo->pid, GetStatusType(appInfo->type).c_str(), in DumpDevicestatusSubscriber()
117 std::string startTime; in DumpDevicestatusChanges() local
118 DumpCurrentTime(startTime); in DumpDevicestatusChanges()
119 dprintf(fd, "Current time: %s \n", startTime.c_str()); in DumpDevicestatusChanges()
131 record->startTime.c_str(), GetStatusType(record->data.type).c_str(), in DumpDevicestatusChanges()
140 std::string startTime; in DumpDevicestatusCurrentStatus() local
141 DumpCurrentTime(startTime); in DumpDevicestatusCurrentStatus()
[all …]
/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_publish_system_test.cpp156 struct tm startTime = {0}; variable
157 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
166 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
216 struct tm startTime = {0}; variable
217 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
226 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
276 struct tm startTime = {0}; variable
277 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
286 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
336 struct tm startTime = {0}; variable
[all …]
/base/hiviewdfx/hiview/base/event_pool/test/unittest/common/
Devent_pool_test.cpp57 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable
58 printf("start time is %s\n", std::to_string(startTime).c_str());
102 printf("all time is %s ms\n", std::to_string(end - startTime).c_str());
104 ASSERT_LE(end - startTime, 10200);
117 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable
118 printf("start time is %s\n", std::to_string(startTime).c_str());
162 printf("all time is %s ms\n", std::to_string(end - startTime).c_str());
164 ASSERT_LE(end - startTime, 11200);
177 auto startTime = OHOS::HiviewDFX::TimeUtil::GetMilliseconds(); variable
178 printf("start time is %s\n", std::to_string(startTime).c_str());
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/
Dcommon_event_services_publish_ordered_system_test.cpp161 struct tm startTime = {0}; in ProcessSubscriberTestCase3() local
162 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase3()
169 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase3()
192 struct tm startTime = {0}; in ProcessSubscriberTestCase5() local
193 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase5()
200 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase5()
222 struct tm startTime = {0}; in AsyncProcess() local
223 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in AsyncProcess()
231 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in AsyncProcess()
318 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() local
[all …]
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/
Dcommon_event_services_publish_ordered_module_test.cpp170 struct tm startTime = {0}; in ProcessSubscriberTestCase3() local
171 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase3()
178 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase3()
203 struct tm startTime = {0}; in ProcessSubscriberTestCase5() local
204 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase5()
211 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase5()
234 struct tm startTime = {0}; in AsyncProcess() local
235 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in AsyncProcess()
243 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in AsyncProcess()
330 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() local
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_system_test/
Dcommon_event_services_system_test.cpp679 struct tm startTime = {0}; variable
693 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
699 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
715 struct tm startTime = {0}; variable
731 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
738 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
754 struct tm startTime = {0}; variable
769 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
776 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
792 struct tm startTime = {0}; variable
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_subscribe_module_test.cpp117 struct tm startTime = {0}; variable
118 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
122 int64_t seconds = GetSecondsBetween(startTime, doingTime);
169 struct tm startTime = {0}; variable
170 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
174 int64_t seconds = GetSecondsBetween(startTime, doingTime);
/base/hiviewdfx/hilog/services/hilogd/
Dflow_control.cpp39 LogTimeStamp startTime;
55 LogTimeStamp start = it->second.startTime; in FlowCtrlDomain()
59 it->second.startTime = tsNow; in FlowCtrlDomain()
/base/startup/init/services/loopevent/task/
Dle_asynctask.c28 struct timespec startTime; in DoAsyncEvent_() local
31 clock_gettime(CLOCK_MONOTONIC, &(startTime)); in DoAsyncEvent_()
46 diff = (long long)((endTime.tv_sec - startTime.tv_sec) * MILLION_MICROSECOND); in DoAsyncEvent_()
47 if (endTime.tv_nsec > startTime.tv_nsec) { in DoAsyncEvent_()
48 diff += (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_()
50 diff -= (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_()
/base/sensors/miscdevice/services/miscdevice_service/include/
Dmiscdevice_dump.h29 std::string startTime; member
45 void DumpCurrentTime(std::string &startTime);
/base/msdp/device_status/services/native/include/
Ddevicestatus_dumper.h42 std::string startTime; member
51 std::string startTime; member
71 void DumpCurrentTime(std::string &startTime) const;
/base/notification/common_event_service/test/systemtest/common/ces/ces_check_service/
Dces_check_service.cpp124 struct tm startTime = {0}; variable
125 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
132 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
/base/startup/init/services/param/liteos/
Dparam_client.c88 time_t startTime; in SystemWaitParameter() local
92 (void)time(&startTime); in SystemWaitParameter()
107 diff = (uint32_t)difftime(finishTime, startTime); in SystemWaitParameter()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_subscribe_module_test.cpp270 struct tm startTime = {0}; variable
271 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
280 seconds = GetSecondsBetween(startTime, doingTime);
487 struct tm startTime = {0}; variable
488 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
497 seconds = GetSecondsBetween(startTime, doingTime);
578 struct tm startTime = {0}; variable
579 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
588 seconds = GetSecondsBetween(startTime, doingTime);
666 struct tm startTime = {0}; variable
[all …]
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/
Dapp_usage_event_factory.cpp99 int64_t startTime = today0Time > gapTime ? (today0Time - gapTime) : 0; in GetAppUsageInfosByUserId() local
103 startTime, endTime, userId); in GetAppUsageInfosByUserId()
110 startTime, endTime, pkgStats.size()); in GetAppUsageInfosByUserId()
111 std::string dateStr = TimeUtil::TimestampFormatToDate(startTime / MILLISEC_TO_SEC, DATE_FORMAT); in GetAppUsageInfosByUserId()
/base/startup/init/test/moduletest/
Dparam_test_cmds.c337 static long long DiffLocalTime(struct timespec *startTime) in DiffLocalTime() argument
341 long long diff = (long long)((endTime.tv_sec - startTime->tv_sec) * 1000000); // 1000000 1000ms in DiffLocalTime()
342 if (endTime.tv_nsec > startTime->tv_nsec) { in DiffLocalTime()
343 diff += (endTime.tv_nsec - startTime->tv_nsec) / 1000; // 1000 1ms in DiffLocalTime()
345 diff -= (startTime->tv_nsec - endTime.tv_nsec) / 1000; // 1000 1ms in DiffLocalTime()
352 struct timespec startTime; in TestPerformance() local
354 clock_gettime(CLOCK_MONOTONIC, &(startTime)); in TestPerformance()
360 printf("CachedParameterGet time %lld us value %s \n", DiffLocalTime(&startTime), value); in TestPerformance()
/base/sensors/miscdevice/services/miscdevice_service/src/
Dmiscdevice_dump.cpp145 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
149 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
155 void MiscdeviceDump::DumpCurrentTime(std::string &startTime) in DumpCurrentTime() argument
161 startTime.append(std::to_string(timeinfo->tm_year + BASE_YEAR)).append("-") in DumpCurrentTime()
181 DumpCurrentTime(record.startTime); in SaveVibrateRecord()
/base/security/device_auth/deps_adapter/os_adapter/interfaces/
Dhc_time.h32 int64_t HcGetIntervalTime(int64_t startTime);
/base/notification/common_event_service/services/test/moduletest/common_event_services_module_test/
Dcommon_event_services_module_test.cpp584 struct tm startTime = {0}; variable
585 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
591 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
628 struct tm startTime = {0}; variable
629 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
635 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
677 struct tm startTime = {0}; variable
678 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
684 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
726 struct tm startTime = {0}; variable
[all …]
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/
Dstatistic_reporter.cpp45 int nDiff = stat.startTime - timeStat.startTime; in ReportUsageTimeStatistic()
120 int nDiff = curTime - stat.startTime; in InvokeUsageTime()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_interface.cpp88 struct tm startTime = {0}; in SendToAMSAccountStop() local
90 OHOS::GetSystemCurrentTime(&startTime); in SendToAMSAccountStop()
92 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToAMSAccountStop()
141 struct tm startTime = {0}; in SendToIDMAccountDelete() local
143 OHOS::GetSystemCurrentTime(&startTime); in SendToIDMAccountDelete()
145 while (OHOS::GetSecondsBetween(startTime, nowTime) < Constants::TIME_WAIT_TIME_OUT && in SendToIDMAccountDelete()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dcommon_utils.cpp61 uint64_t startTime = TimeUtil::GetNanoTime(); in ExecCommand() local
68 uint64_t duration = TimeUtil::GetNanoTime() - startTime; in ExecCommand()

123