1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #include "startup_schedule.h" 17 18 #include "service_control.h" 19 20 #include "constant.h" 21 #include "firmware_preferences_utils.h" 22 #include "startup_constant.h" 23 #include "system_ability_operator.h" 24 #include "time_utils.h" 25 #include "update_log.h" 26 27 namespace OHOS { 28 namespace UpdateEngine { StartupSchedule()29StartupSchedule::StartupSchedule() 30 { 31 ENGINE_LOGD("StartupSchedule constructor"); 32 } 33 ~StartupSchedule()34StartupSchedule::~StartupSchedule() 35 { 36 ENGINE_LOGD("StartupSchedule deConstructor"); 37 } 38 RegisterLooper(const ScheduleLooper & looper)39void StartupSchedule::RegisterLooper(const ScheduleLooper &looper) 40 { 41 ENGINE_LOGI("RegisterLooper"); 42 } 43 UnregisterLooper()44void StartupSchedule::UnregisterLooper() 45 { 46 ENGINE_LOGI("UnregisterLooper"); 47 } 48 Schedule(const ScheduleTask & task)49bool StartupSchedule::Schedule(const ScheduleTask &task) 50 { 51 ENGINE_LOGI("Schedule"); 52 return true; 53 } 54 OnDemandSchedule(const std::vector<ScheduleTask> & tasks)55bool StartupSchedule::OnDemandSchedule(const std::vector<ScheduleTask> &tasks) 56 { 57 ENGINE_LOGI("OnDemandSchedule"); 58 return true; 59 } 60 } // namespace UpdateEngine 61 } // namespace OHOS