/ohos5.0/foundation/arkui/ui_lite/frameworks/animator/ |
H A D | easing_equation.cpp | 31 if (curTime < durationTime) { in BackEaseIn() 42 if (curTime < durationTime) { in BackEaseOut() 56 if (curTime < halfTime) { in BackEaseInOut() 65 if (curTime < durationTime) { in CircEaseIn() 78 if (curTime < durationTime) { in CircEaseOut() 92 if (curTime < halfTime) { in CircEaseInOut() 101 if (curTime < durationTime) { in CubicEaseIn() 129 if (curTime < halfTime) { in CubicEaseInOut() 176 if (curTime < halfTime) { in QuadEaseInOut() 217 if (curTime < halfTime) { in QuintEaseInOut() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/animator/ |
H A D | easing_equation.h | 52 typedef int16_t (*EasingFunc)(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t duration… 91 …static int16_t BackEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 109 …static int16_t BackEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 127 …static int16_t BackEaseInOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t duration… 145 …static int16_t CircEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 163 …static int16_t CircEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 199 …static int16_t CubicEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 217 …static int16_t CubicEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationT… 270 …static int16_t QuadEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 288 …static int16_t QuadEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 27 struct timespec curTime; in GetRtcTime() local 28 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetRtcTime() 33 return curTime.tv_sec * MS_OF_S + curTime.tv_nsec / NS_OF_MS; in GetRtcTime() 38 struct timespec curTime; in GetSystemTime() local 39 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetSystemTime() 44 return curTime.tv_sec * MS_OF_S + curTime.tv_nsec / NS_OF_MS; in GetSystemTime() 49 struct timeval curTime; in GetReeTime() local 50 int res = gettimeofday(&curTime, NULL); in GetReeTime() 55 return curTime.tv_sec * MS_OF_S + curTime.tv_usec / MS_OF_S; in GetReeTime()
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/ |
H A D | adaptor_time.c | 26 struct timespec curTime; in GetRtcTime() local 27 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetRtcTime() 32 return curTime.tv_sec * MS_OF_S + curTime.tv_nsec / NS_OF_MS; in GetRtcTime() 37 struct timespec curTime; in GetSystemTime() local 38 int res = clock_gettime(CLOCK_MONOTONIC, &curTime); in GetSystemTime() 43 return curTime.tv_sec * MS_OF_S + curTime.tv_nsec / NS_OF_MS; in GetSystemTime()
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/ |
H A 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); \
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_timer.c | 154 FILLP_LLONG curTime = SYS_ARCH_GET_CUR_TIME_LONGLONG(); in FillpPackTimerCb() local 156 pack->packTimePassed = curTime - pack->packSendTime; in FillpPackTimerCb() 157 pack->packSendTime = curTime; in FillpPackTimerCb() 159 FILLP_LOGDBG("pack fire time =%lld", pcb->pcbInst->curTime); in FillpPackTimerCb() 172 pack->packRttDetectTime = curTime; in FillpPackTimerCb() 175 pack->packSendTime = pcb->pcbInst->curTime; in FillpPackTimerCb() 187 pcb->pcbInst->curTime, realDetaTime, flowControl->sendInterval); in FillpSendTimerCb() 207 pcb->send.flowControl.sendTime = pcb->pcbInst->curTime; in FillpEnableSendTimer() 209 FILLP_LOGDBG("enable time =%lld\t next expire timer=%lld", pcb->pcbInst->curTime, in FillpEnableSendTimer() 228 pcb->packTimerNode.interval + pcb->pcbInst->curTime, &pcb->packTimerNode); in FillpEnablePackTimer() [all …]
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/posix/ |
H A D | hks_util.c | 26 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 … in HksElapsedRealTime() 36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksElapsedRealTime()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/ |
H A D | time_helper.cpp | 30 uint64_t curTime = 0; in GetSysCurrentTime() local 32 int errCode = OS::GetCurrentSysTimeInMicrosecond(curTime); in GetSysCurrentTime() 38 if (curTime == lastSystemTimeUs_) { in GetSysCurrentTime() 44 lastSystemTimeUs_ = curTime; in GetSysCurrentTime() 47 return (curTime * TO_100_NS) + currentIncCount_; // Currently Timestamp is uint64_t in GetSysCurrentTime() 50 int TimeHelper::GetSysCurrentRawTime(uint64_t &curTime) in GetSysCurrentRawTime() argument 52 int errCode = OS::GetCurrentSysTimeInMicrosecond(curTime); in GetSysCurrentRawTime() 56 if (curTime > (UINT64_MAX / TO_100_NS)) { in GetSysCurrentRawTime() 57 LOGD("curTime is too large %" PRIu64, curTime); in GetSysCurrentRawTime() 60 curTime *= TO_100_NS; in GetSysCurrentRawTime()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/InnerAPI/ |
H A D | InnerStablityTest.cpp | 345 time_t curTime = startTime; variable 359 curTime = time(nullptr); 360 ASSERT_NE(curTime, -1); 376 time_t curTime = startTime; variable 391 curTime = time(nullptr); 392 ASSERT_NE(curTime, -1); 408 time_t curTime = startTime; variable 422 curTime = time(nullptr); 423 ASSERT_NE(curTime, -1); 439 time_t curTime = startTime; variable [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avmuxer/ |
H A D | avmuxer_demo_runner.cpp | 33 time_t curTime = 0; in RunLoopNativeMuxer() local 35 (void)time(&curTime); in RunLoopNativeMuxer() 36 while (difftime(curTime, startTime) < RUN_TIME) { in RunLoopNativeMuxer() 38 (void)time(&curTime); in RunLoopNativeMuxer() 78 time_t curTime = 0; in RunLoopEngineMuxer() local 80 (void)time(&curTime); in RunLoopEngineMuxer() 81 while (difftime(curTime, startTime) < RUN_TIME) { in RunLoopEngineMuxer() 83 (void)time(&curTime); in RunLoopEngineMuxer()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/core/ |
H A D | render_manager.cpp | 93 uint32_t curTime = HALTick::GetInstance().GetTime(); in UpdateFPSByFixedTimeMethod() local 94 if (curTime - lastTime > MILLISECONDS_PER_SECOND) { in UpdateFPSByFixedTimeMethod() 95 fps_ = 1.f * frameCount / (curTime - lastTime) * MILLISECONDS_PER_SECOND; in UpdateFPSByFixedTimeMethod() 98 lastTime = curTime; in UpdateFPSByFixedTimeMethod() 117 uint32_t curTime = HALTick::GetInstance().GetTime(); in UpdateFPSByAverageSamplingMethod() local 118 int32_t deltaTime = curTime - lastTime; in UpdateFPSByAverageSamplingMethod() 119 lastTime = curTime; in UpdateFPSByAverageSamplingMethod() 149 uint32_t curTime = HALTick::GetInstance().GetTime(); in UpdateFPSByPreciseSamplingMethod() local 150 int32_t deltaTime = curTime - lastTime; in UpdateFPSByPreciseSamplingMethod() 151 lastTime = curTime; in UpdateFPSByPreciseSamplingMethod()
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | dfx_processdump_test.cpp | 154 auto curTime = GetTimeMilliSeconds(); variable 158 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 173 auto curTime = GetTimeMilliSeconds(); variable 177 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 192 auto curTime = GetTimeMilliSeconds(); variable 196 ASSERT_EQ(std::to_string(curTime).length(), filename.length() - filename.find_last_of('-') - 1); 211 auto curTime = GetTimeMilliSeconds(); variable 230 auto curTime = GetTimeMilliSeconds(); variable 250 auto curTime = GetTimeMilliSeconds(); variable 269 auto curTime = GetTimeMilliSeconds(); variable [all …]
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/ |
H A 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");
|
H A D | common_event_publish_permission_event_unit_test.cpp | 111 struct tm curTime {0}; struct 153 struct tm curTime {0}; struct 196 struct tm curTime {0}; struct 989 struct tm curTime { struct 1034 struct tm curTime { struct 1079 struct tm curTime { struct 1124 struct tm curTime { struct 1169 struct tm curTime { struct 1214 struct tm curTime { struct 1259 struct tm curTime { struct [all …]
|
H A 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 430 struct tm curTime {0}; struct 460 struct tm curTime {0}; struct 492 struct tm curTime {0}; struct [all …]
|
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_datetime_test.cpp | 76 struct tm curTime = {0}; variable 77 bool ret = GetSystemCurrentTime(&curTime); 82 int64_t second2 = GetSecondsSince1970ToPointTime(curTime); 94 int64_t ret2 = GetSecondsBetween(curTime, info); 116 struct tm curTime = { 0 }; variable 117 bool ret = GetSystemCurrentTime(&curTime); 125 int64_t betweensec = GetSecondsBetween(curTime, curTime2);
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/flowctrl_manager/ |
H A D | kvstore_flowctrl_manager.cpp | 48 uint64_t curTime = CurrentTimeMicros(); in IsTokenEnough() local 49 …if (IsTokenEnoughSlice(burstTokenBucket_, curTime) && IsTokenEnoughSlice(sustainedTokenBucket_, cu… in IsTokenEnough() 50 burstTokenBucket_.lastAccessTime = curTime; in IsTokenEnough() 53 sustainedTokenBucket_.lastAccessTime = curTime; in IsTokenEnough()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_decoder/NativeAPI/ |
H A D | NativeStablityTest.cpp | 868 time_t curTime = startTime; variable 890 curTime = time(nullptr); 891 ASSERT_NE(curTime, -1); 911 time_t curTime = startTime; variable 926 ASSERT_NE(curTime, -1); 950 time_t curTime = startTime; variable 964 ASSERT_NE(curTime, -1); 988 time_t curTime = startTime; variable 1020 ASSERT_NE(curTime, -1); 1163 time_t curTime = startTime; variable [all …]
|
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core_dependency/src/ |
H A D | hks_core_hal_api_test.cpp | 62 uint64_t curTime = 0; variable 63 int32_t ret = HksElapsedRealTime(&curTime); 65 EXPECT_EQ(curTime > 0, true) << "HksElapsedRealTime failed, curTime = " << curTime;
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | performance_analysis.cpp | 126 uint64_t curTime = 0; in StepTimeRecordStart() local 127 int errCode = OS::GetCurrentSysTimeInMicrosecond(curTime); in StepTimeRecordStart() 131 timePair.startTime = curTime; in StepTimeRecordStart() 132 …GD("[performance_analysis] StepTimeRecordStart step:%" PRIu32 ", curTime:%" PRIu64, step, curTime); in StepTimeRecordStart() 152 uint64_t curTime = 0; in StepTimeRecordEnd() local 153 (void)OS::GetCurrentSysTimeInMicrosecond(curTime); in StepTimeRecordEnd() 154 timePair.endTime = curTime; in StepTimeRecordEnd() 155 …LOGD("[performance_analysis] StepTimeRecordEnd step:%" PRIu32 ", curTime:%" PRIu64, step, curTime); in StepTimeRecordEnd()
|
/ohos5.0/foundation/communication/wifi/wifi/base/state_machine/src/ |
H A D | handler.cpp | 173 struct timespec curTime = {0, 0}; in MessageExecutedLater() local 174 if (clock_gettime(CLOCK_MONOTONIC, &curTime) != 0) { in MessageExecutedLater() 179 int64_t nowTime = static_cast<int64_t>(curTime.tv_sec) * USEC_1000 + in MessageExecutedLater() 180 curTime.tv_nsec / (USEC_1000 * USEC_1000); in MessageExecutedLater() 220 struct timespec curTime = {0, 0}; in MessageExecutedAtTime() local 221 if (clock_gettime(CLOCK_MONOTONIC, &curTime) != 0) { in MessageExecutedAtTime() 226 int64_t nowTime = static_cast<int64_t>(curTime.tv_sec) * USEC_1000 + in MessageExecutedAtTime() 227 curTime.tv_nsec / (USEC_1000 * USEC_1000); in MessageExecutedAtTime()
|
/ohos5.0/foundation/resourceschedule/ffrt/src/util/ |
H A D | time_format.h | 54 struct tm curTime; variable 55 if (memset_s(&curTime, sizeof(curTime), 0, sizeof(curTime)) != EOK) { 59 localtime_r(&tt, &curTime); 61 std::strftime(sysTime, sizeof(char) * DatetimeStringLength, "%Y-%m-%d %H:%M:%S.", &curTime);
|
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/datatime_benchmark_test/ |
H A D | datatime_benchmark_test.cpp | 98 struct tm curTime = {0}; in BENCHMARK_F() local 99 bool ret = GetSystemCurrentTime(&curTime); in BENCHMARK_F() 104 int64_t second2 = GetSecondsSince1970ToPointTime(curTime); in BENCHMARK_F() 117 int64_t ret2 = GetSecondsBetween(curTime, info); in BENCHMARK_F() 149 struct tm curTime = { 0 }; in BENCHMARK_F() local 150 bool ret = GetSystemCurrentTime(&curTime); in BENCHMARK_F() 156 int64_t betweensec = GetSecondsBetween(curTime, curTime2); in BENCHMARK_F()
|
/ohos5.0/foundation/multimedia/av_codec/test/moduletest/audio_encoder/NativeAPI/ |
H A D | NativeStablityTest.cpp | 97 time_t curTime = startTime; in RunLongTimeFlush() local 111 ASSERT_NE(curTime, -1); in RunLongTimeFlush() 756 time_t curTime = startTime; variable 778 curTime = time(nullptr); 779 ASSERT_NE(curTime, -1); 799 time_t curTime = startTime; variable 814 ASSERT_NE(curTime, -1); 838 time_t curTime = startTime; variable 852 ASSERT_NE(curTime, -1); 876 time_t curTime = startTime; variable [all …]
|
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/ |
H A 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()
|