1 /*
2  * Copyright (C) 2022 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 "errors.h"
17 #include "ipc_skeleton.h"
18 #include "ipc_types.h"
19 #include "sam_log.h"
20 #include "string_ex.h"
21 #include "system_ability_manager_stub.h"
22 
23 namespace OHOS {
SystemAbilityManagerStub()24 SystemAbilityManagerStub::SystemAbilityManagerStub()
25 {}
26 
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)27 int32_t SystemAbilityManagerStub::OnRemoteRequest(
28     uint32_t code, MessageParcel& data, MessageParcel& reply, MessageOption& option)
29 {
30     (void)code;
31     (void)data;
32     (void)reply;
33     (void)option;
34     return 0;
35 }
36 
EnforceInterceToken(MessageParcel & data)37 bool SystemAbilityManagerStub::EnforceInterceToken(MessageParcel& data)
38 {
39     (void)data;
40     return false;
41 }
42 
GetSystemAbilityInner(MessageParcel & data,MessageParcel & reply)43 int32_t SystemAbilityManagerStub::GetSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
44 {
45     (void)data;
46     (void)reply;
47     return ERR_NONE;
48 }
49 
CheckSystemAbilityInner(MessageParcel & data,MessageParcel & reply)50 int32_t SystemAbilityManagerStub::CheckSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
51 {
52     (void)data;
53     (void)reply;
54     return ERR_NONE;
55 }
56 
AddSystemAbilityInner(MessageParcel & data,MessageParcel & reply)57 int32_t SystemAbilityManagerStub::AddSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
58 {
59     (void)data;
60     (void)reply;
61     return 0;
62 }
63 
RemoveSystemAbilityInner(MessageParcel & data,MessageParcel & reply)64 int32_t SystemAbilityManagerStub::RemoveSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
65 {
66     (void)data;
67     (void)reply;
68     return 0;
69 }
70 
ListSystemAbilityInner(MessageParcel & data,MessageParcel & reply)71 int32_t SystemAbilityManagerStub::ListSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
72 {
73     (void)data;
74     (void)reply;
75     return 0;
76 }
77 
SubsSystemAbilityInner(MessageParcel & data,MessageParcel & reply)78 int32_t SystemAbilityManagerStub::SubsSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
79 {
80     (void)data;
81     (void)reply;
82     return 0;
83 }
84 
UnSubsSystemAbilityInner(MessageParcel & data,MessageParcel & reply)85 int32_t SystemAbilityManagerStub::UnSubsSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
86 {
87     (void)data;
88     (void)reply;
89     return 0;
90 }
91 
CheckRemtSystemAbilityInner(MessageParcel & data,MessageParcel & reply)92 int32_t SystemAbilityManagerStub::CheckRemtSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
93 {
94     (void)data;
95     (void)reply;
96     return 0;
97 }
98 
AddOndemandSystemAbilityInner(MessageParcel & data,MessageParcel & reply)99 int32_t SystemAbilityManagerStub::AddOndemandSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
100 {
101     (void)data;
102     (void)reply;
103     return 0;
104 }
105 
CheckSystemAbilityImmeInner(MessageParcel & data,MessageParcel & reply)106 int32_t SystemAbilityManagerStub::CheckSystemAbilityImmeInner(MessageParcel& data, MessageParcel& reply)
107 {
108     (void)data;
109     (void)reply;
110     return 0;
111 }
112 
LoadSystemAbilityInner(MessageParcel & data,MessageParcel & reply)113 int32_t SystemAbilityManagerStub::LoadSystemAbilityInner(MessageParcel& data, MessageParcel& reply)
114 {
115     (void)data;
116     (void)reply;
117     return 0;
118 }
119 
UnmarshalingSaExtraProp(MessageParcel & data,SAExtraProp & extraProp)120 int32_t SystemAbilityManagerStub::UnmarshalingSaExtraProp(MessageParcel& data, SAExtraProp& extraProp)
121 {
122     (void)data;
123     (void)extraProp;
124     return 0;
125 }
126 
GetHapIdMultiuser(int32_t uid)127 int32_t SystemAbilityManagerStub::GetHapIdMultiuser(int32_t uid)
128 {
129     (void)uid;
130     return 0;
131 }
132 
CanRequest()133 bool SystemAbilityManagerStub::CanRequest()
134 {
135     return true;
136 }
137 } // namespace OHOS