Home
last modified time | relevance | path

Searched refs:MILLI_TO_BASE (Results 1 – 5 of 5) sorted by relevance

/base/time/time_service/test/unittest/js_test/permission/
DSystemDateTimeGet.test.js21 const MILLI_TO_BASE = 1000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
141 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
158 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
173 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
190 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
223 expect((data / MILLI_TO_BASE) > 0).assertTrue();
239 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE >= 0).assertTrue();
256 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
272 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
[all …]
DSystemTimeGet.test.js21 const MILLI_TO_BASE = 1000;
23 const NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
141 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
158 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
173 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
190 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
223 expect((data / MILLI_TO_BASE) > 0).assertTrue();
239 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE >= 0).assertTrue();
256 expect(typeof (data) === 'number' && (data / MILLI_TO_BASE) > 0).assertTrue();
272 expect(typeof (milliTime) === 'number' && milliTime / MILLI_TO_BASE > 0).assertTrue();
[all …]
/base/time/time_service/services/
Dtime_system_ability.cpp53 static const int MILLI_TO_BASE = 1000LL; variable
62 constexpr int32_t MILLI_TO_MICR = MICR_TO_BASE / MILLI_TO_BASE;
63 constexpr int32_t NANO_TO_MILLI = NANO_TO_BASE / MILLI_TO_BASE;
358 tv.tv_sec = (time_t)(time / MILLI_TO_BASE); in SetRealTime()
359 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime()
604 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
624 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
644 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()
670 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetThreadTimeMs()
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp37 const int32_t MILLI_TO_BASE = 1000; variable
70 if ((now / MILLI_TO_BASE - lastSystemTime_) < MAX_UPDATE_TIME) { in ProcessNitzUpdate()
206 currentSystemTime = currentSystemTime / MILLI_TO_BASE; in IsValidTime()
298 …esult = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(networkTime * MILLI_TO_BASE); in SaveTime()
/base/telephony/core_service/services/network_search/test/
Dtest.cpp545 static const int32_t MILLI_TO_BASE = 1000; in TestInitTimeAndTimeZone() local
557 … bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTime(time * MILLI_TO_BASE); in TestInitTimeAndTimeZone()