• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 "default_access.h"
17 
18 #include "update_log.h"
19 
20 namespace OHOS {
21 namespace UpdateEngine {
DefaultAccess()22 DefaultAccess::DefaultAccess()
23 {
24     ENGINE_LOGD("DefaultAccess constructor");
25 }
26 
~DefaultAccess()27 DefaultAccess::~DefaultAccess()
28 {
29     ENGINE_LOGD("DefaultAccess deConstructor");
30 }
31 
Init(StartupReason startupReason)32 void DefaultAccess::Init(StartupReason startupReason)
33 {
34     ENGINE_LOGI("DefaultAccess Init");
35 }
36 
IsIdle()37 bool DefaultAccess::IsIdle()
38 {
39     return true;
40 }
41 
GetScheduleTasks()42 std::vector<ScheduleTask> DefaultAccess::GetScheduleTasks()
43 {
44     return {};
45 }
46 
Exit()47 bool DefaultAccess::Exit()
48 {
49     return true;
50 }
51 } // namespace UpdateEngine
52 } // namespace OHOS