Home
last modified time | relevance | path

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

123

/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/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/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/
Dfreeze_detector_plugin_module_test.cpp93 long startTime = time(nullptr); variable
96 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S");
102 auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "FWK_BLOCK");
124 long startTime = time(nullptr); variable
127 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_3S");
134 …auto eventTrigger = CreateFreezeEvent(json, false, startTime + 6, "FRAMEWORK", "APP_NOT_RESPONSE");
156 long startTime = time(nullptr); variable
159 auto event = CreateFreezeEvent(json, false, startTime, "FRAMEWORK", "TRANSPARENT_WINDOWS");
180 long startTime = time(nullptr); variable
183 auto event = CreateFreezeEvent(json, false, startTime, "APPEXECFWK", "UI_BLOCK_6S");
[all …]
/base/notification/common_event_service/tools/test/systemtest/cem/
Dcommon_event_command_publish_system_test.cpp176 struct tm startTime = {0}; variable
177 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
186 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
236 struct tm startTime = {0}; variable
237 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
246 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
296 struct tm startTime = {0}; variable
297 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
306 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
356 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/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/msdp/device_status/services/native/src/
Ddevicestatus_dumper.cpp155 std::string startTime; in DumpDeviceStatusSubscriber() local
156 GetTimeStamp(startTime); in DumpDeviceStatusSubscriber()
157 dprintf(fd, "Current time:%s \n", startTime.c_str()); in DumpDeviceStatusSubscriber()
161 … appInfo->startTime.c_str(), appInfo->uid, appInfo->pid, GetStatusType(appInfo->type).c_str(), in DumpDeviceStatusSubscriber()
174 std::string startTime; in DumpDeviceStatusChanges() local
175 GetTimeStamp(startTime); in DumpDeviceStatusChanges()
176 dprintf(fd, "Current time:%s\n", startTime.c_str()); in DumpDeviceStatusChanges()
185 record->startTime.c_str(), GetStatusType(record->data.type).c_str(), in DumpDeviceStatusChanges()
193 std::string startTime; in DumpDeviceStatusCurrentStatus() local
194 GetTimeStamp(startTime); in DumpDeviceStatusCurrentStatus()
[all …]
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/
Dcommon_event_services_publish_ordered_module_test.cpp171 struct tm startTime = {0}; in ProcessSubscriberTestCase3() local
172 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase3()
179 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase3()
204 struct tm startTime = {0}; in ProcessSubscriberTestCase5() local
205 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in ProcessSubscriberTestCase5()
212 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in ProcessSubscriberTestCase5()
235 struct tm startTime = {0}; in AsyncProcess() local
236 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true); in AsyncProcess()
244 seconds = OHOS::GetSecondsBetween(startTime, doingTime); in AsyncProcess()
331 struct tm startTime = {0}; in ProcessSubscriberAnotherTestCase5() local
[all …]
/base/sensors/miscdevice/services/miscdevice_service/include/
Dvibrator_infos.h57 return startTime < rhs.startTime;
61 int32_t startTime = 0; member
Dmiscdevice_dump.h29 std::string startTime; member
45 void DumpCurrentTime(std::string &startTime);
/base/sensors/miscdevice/services/miscdevice_service/custom_vibrate_decode/src/
Ddefault_vibrator_decoder.cpp156 cJSON* startTime = parser.GetObjectItem(event, "StartTime"); in ParseEvent() local
157 CHKPR(startTime, ERROR); in ParseEvent()
158 vibrateEvent.startTime = startTime->valueint; in ParseEvent()
168 …_HILOGE("Parameter check of vibration event failed, startTime:%{public}d", vibrateEvent.startTime); in ParseEvent()
172 MISC_HILOGI("The event intensity is 0, startTime:%{public}d", vibrateEvent.startTime); in ParseEvent()
177 MISC_HILOGE("Vibration event is duplicated, startTime:%{public}d", vibrateEvent.startTime); in ParseEvent()
185 if (vibrateEvent.startTime < STARTTMIE_MIN || vibrateEvent.startTime > STARTTMIE_MAX) { in CheckParameters()
186 … MISC_HILOGE("The event startTime is out of range, startTime:%{public}d", vibrateEvent.startTime); in CheckParameters()
Dcustom_vibration_matcher.cpp55 if ((preDuration != 0) && (event.startTime < preStartTime + preDuration)) { in TransformEffect()
86 if ((!compositeEffects.empty()) && (event.startTime == preStartTime + preDuration)) { in ProcessContinuousEvent()
98 primitiveEffect.delay = event.startTime - preStartTime; in ProcessContinuousEvent()
103 preStartTime = event.startTime; in ProcessContinuousEvent()
126 primitiveEffect.delay = event.startTime - preStartTime; in ProcessTransientEvent()
131 preStartTime = event.startTime; in ProcessTransientEvent()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_subscribe_module_test.cpp116 struct tm startTime = {0}; variable
117 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
121 int64_t seconds = GetSecondsBetween(startTime, doingTime);
168 struct tm startTime = {0}; variable
169 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
173 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 = {0}; 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/src/
Dmiscdevice_dump.cpp147 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
151 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
155 record.startTime.c_str(), info.uid, info.pid, info.packageName.c_str(), in DumpMiscdeviceRecord()
161 void MiscdeviceDump::DumpCurrentTime(std::string &startTime) in DumpCurrentTime() argument
167 startTime.append(std::to_string(timeinfo->tm_year + BASE_YEAR)).append("-") in DumpCurrentTime()
187 DumpCurrentTime(record.startTime); in SaveVibrateRecord()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_subscribe_module_test.cpp268 struct tm startTime = {0}; variable
269 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
278 seconds = GetSecondsBetween(startTime, doingTime);
430 struct tm startTime = {0}; variable
431 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
440 seconds = GetSecondsBetween(startTime, doingTime);
521 struct tm startTime = {0}; variable
522 EXPECT_EQ(GetSystemCurrentTime(&startTime), true);
531 seconds = GetSecondsBetween(startTime, doingTime);
609 struct tm startTime = {0}; variable
[all …]
/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.c74 struct timespec startTime = {0}; in SystemWaitParameter() local
78 (void)clock_gettime(CLOCK_MONOTONIC, &startTime); in SystemWaitParameter()
93 diff = IntervalTime(&finishTime, &startTime); in SystemWaitParameter()
/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/appspawn/common/
Dappspawn_server.c34 long long DiffTime(struct timespec *startTime) in DiffTime() argument
38 long long diff = (long long)((tmEnd.tv_sec - startTime->tv_sec) * 1000000); // 1000000 1000ms in DiffTime()
39 if (tmEnd.tv_nsec > startTime->tv_nsec) { in DiffTime()
40 diff += (tmEnd.tv_nsec - startTime->tv_nsec) / 1000; // 1000 ms in DiffTime()
42 diff -= (startTime->tv_nsec - tmEnd.tv_nsec) / 1000; // 1000 ms in DiffTime()
/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.cpp588 struct tm startTime = {0}; variable
589 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
595 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
632 struct tm startTime = {0}; variable
633 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
639 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
681 struct tm startTime = {0}; variable
682 EXPECT_EQ(OHOS::GetSystemCurrentTime(&startTime), true);
688 seconds = OHOS::GetSecondsBetween(startTime, doingTime);
730 struct tm startTime = {0}; variable
[all …]
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/
Dstatistic_reporter.cpp48 int nDiff = stat.startTime - timeStat.startTime; in ReportUsageTimeStatistic()
122 int nDiff = curTime - stat.startTime; in InvokeUsageTime()

123