Searched refs:systemTime (Results 1 – 6 of 6) sorted by relevance
/base/time/time_service/test/unittest/js_test/permission/ |
D | SystemTimeGet.test.js | 18 import systemTime from '@ohos.systemTime' 34 const milliTime = await systemTime.getCurrentTime(); 50 systemTime.getCurrentTime((err, data) => { 69 const milliTime = await systemTime.getCurrentTime(false); 85 systemTime.getCurrentTime(false, (err, data) => { 104 const nanoTime = await systemTime.getCurrentTime(true); 121 systemTime.getCurrentTime(true, (err, data) => { 139 const milliTime = await systemTime.getRealActiveTime(); 154 systemTime.getRealActiveTime((err, data) => { 172 const milliTime = await systemTime.getRealActiveTime(false); [all …]
|
D | SystemTimeSet.test.js | 18 import systemTime from '@ohos.systemTime' 38 systemTime.setTime(123235423411).then(() => { 57 systemTime.setTime(time, (err) => { 76 systemTime.setTime(time).then(() => { 95 systemTime.setTime(time, (err) => { 116 systemTime.setTime("time").then(() => { 139 systemTime.setTime("time", (err) => { 164 systemTime.setTime(-1).then(() => { 187 systemTime.setTime(-1, (err) => { 211 systemTime.setDate(date).then(() => { [all …]
|
/base/time/time_service/test/unittest/js_test/nopermission/acl/ |
D | SystemTime.test.js | 18 import systemTime from '@ohos.systemTime' 31 systemTime.setTime(nowTime).then(() => { 50 systemTime.setTime(nowTime, (err) => { 71 systemTime.setTimezone(timezone).then(() => { 90 systemTime.setTimezone(timezone, (err) => {
|
/base/time/time_service/ |
D | README.md | 30 **Table 1** Major functions of systemTime 66 Example fo using systemTime 70 import systemTime from '@ohos.systemTime'; 74 systemTime.setTime(time).then((value) => { 75 console.log(`success to systemTime.setTime: ${value}`); 77 console.error(`failed to systemTime.setTime because ${err.message}`) 82 systemTime.setTime(time, (err, value) => { 84 console.error(`failed to systemTime.setTime because ${err.message}`); 87 console.log(`success to systemTime.setTime: ${value}`);
|
D | README_zh.md | 31 > - 从API Version 9 开始,模块接口[@ohos.systemTime](https://gitee.com/openharmony/docs/blob/master/zh-cn/a…
|
/base/powermgr/power_manager/services/native/src/ |
D | power_state_machine.cpp | 772 int64_t systemTime = stateMachine->GetDisplayOffTime(); in DisplayOffTimeUpdateFunc() local 773 auto settingTime = SettingHelper::GetSettingDisplayOffTime(systemTime); in DisplayOffTimeUpdateFunc() 774 if (settingTime == systemTime) { in DisplayOffTimeUpdateFunc() 778 systemTime, settingTime); in DisplayOffTimeUpdateFunc()
|