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 "module_ipc/service_stub.h"
17 #include "service_stub_mock.h"
18
19 namespace OHOS::FileManagement::Backup {
20 using namespace std;
21
ServiceStub()22 ServiceStub::ServiceStub()
23 {
24 }
25
ServiceStubSupplement()26 void ServiceStub::ServiceStubSupplement()
27 {
28 }
29
OnRemoteRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)30 int32_t ServiceStub::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
31 {
32 return BServiceStub::stub->OnRemoteRequest(code, data, reply, option);
33 }
34
CmdInitRestoreSession(MessageParcel & data,MessageParcel & reply)35 int32_t ServiceStub::CmdInitRestoreSession(MessageParcel &data, MessageParcel &reply)
36 {
37 return BServiceStub::stub->CmdInitRestoreSession(data, reply);
38 }
39
CmdInitBackupSession(MessageParcel & data,MessageParcel & reply)40 int32_t ServiceStub::CmdInitBackupSession(MessageParcel &data, MessageParcel &reply)
41 {
42 return BServiceStub::stub->CmdInitBackupSession(data, reply);
43 }
44
CmdStart(MessageParcel & data,MessageParcel & reply)45 int32_t ServiceStub::CmdStart(MessageParcel &data, MessageParcel &reply)
46 {
47 return BServiceStub::stub->CmdStart(data, reply);
48 }
49
CmdGetLocalCapabilities(MessageParcel & data,MessageParcel & reply)50 int32_t ServiceStub::CmdGetLocalCapabilities(MessageParcel &data, MessageParcel &reply)
51 {
52 return BServiceStub::stub->CmdGetLocalCapabilities(data, reply);
53 }
54
CmdPublishFile(MessageParcel & data,MessageParcel & reply)55 int32_t ServiceStub::CmdPublishFile(MessageParcel &data, MessageParcel &reply)
56 {
57 return BServiceStub::stub->CmdPublishFile(data, reply);
58 }
59
CmdAppFileReady(MessageParcel & data,MessageParcel & reply)60 int32_t ServiceStub::CmdAppFileReady(MessageParcel &data, MessageParcel &reply)
61 {
62 return BServiceStub::stub->CmdAppFileReady(data, reply);
63 }
64
CmdAppDone(MessageParcel & data,MessageParcel & reply)65 int32_t ServiceStub::CmdAppDone(MessageParcel &data, MessageParcel &reply)
66 {
67 return BServiceStub::stub->CmdAppDone(data, reply);
68 }
69
CmdResultReport(MessageParcel & data,MessageParcel & reply)70 int32_t ServiceStub::CmdResultReport(MessageParcel &data, MessageParcel &reply)
71 {
72 return BServiceStub::stub->CmdResultReport(data, reply);
73 }
74
CmdGetFileHandle(MessageParcel & data,MessageParcel & reply)75 int32_t ServiceStub::CmdGetFileHandle(MessageParcel &data, MessageParcel &reply)
76 {
77 return BServiceStub::stub->CmdGetFileHandle(data, reply);
78 }
79
CmdAppendBundlesRestoreSession(MessageParcel & data,MessageParcel & reply)80 int32_t ServiceStub::CmdAppendBundlesRestoreSession(MessageParcel &data, MessageParcel &reply)
81 {
82 return BServiceStub::stub->CmdAppendBundlesRestoreSession(data, reply);
83 }
84
CmdAppendBundlesDetailsRestoreSession(MessageParcel & data,MessageParcel & reply)85 int32_t ServiceStub::CmdAppendBundlesDetailsRestoreSession(MessageParcel &data, MessageParcel &reply)
86 {
87 return BServiceStub::stub->CmdAppendBundlesDetailsRestoreSession(data, reply);
88 }
89
CmdAppendBundlesBackupSession(MessageParcel & data,MessageParcel & reply)90 int32_t ServiceStub::CmdAppendBundlesBackupSession(MessageParcel &data, MessageParcel &reply)
91 {
92 return BServiceStub::stub->CmdAppendBundlesBackupSession(data, reply);
93 }
94
CmdFinish(MessageParcel & data,MessageParcel & reply)95 int32_t ServiceStub::CmdFinish(MessageParcel &data, MessageParcel &reply)
96 {
97 return BServiceStub::stub->CmdFinish(data, reply);
98 }
99
CmdGetBackupInfo(MessageParcel & data,MessageParcel & reply)100 int32_t ServiceStub::CmdGetBackupInfo(MessageParcel &data, MessageParcel &reply)
101 {
102 return BServiceStub::stub->CmdGetBackupInfo(data, reply);
103 }
104
CmdUpdateTimer(MessageParcel & data,MessageParcel & reply)105 int32_t ServiceStub::CmdUpdateTimer(MessageParcel &data, MessageParcel &reply)
106 {
107 return BServiceStub::stub->CmdUpdateTimer(data, reply);
108 }
109
CmdUpdateSendRate(MessageParcel & data,MessageParcel & reply)110 int32_t ServiceStub::CmdUpdateSendRate(MessageParcel &data, MessageParcel &reply)
111 {
112 return BServiceStub::stub->CmdUpdateSendRate(data, reply);
113 }
114
CmdRelease(MessageParcel & data,MessageParcel & reply)115 int32_t ServiceStub::CmdRelease(MessageParcel &data, MessageParcel &reply)
116 {
117 return BServiceStub::stub->CmdRelease(data, reply);
118 }
119
CmdCancel(MessageParcel & data,MessageParcel & reply)120 int32_t ServiceStub::CmdCancel(MessageParcel &data, MessageParcel &reply)
121 {
122 return BServiceStub::stub->CmdCancel(data, reply);
123 }
124
CmdGetLocalCapabilitiesIncremental(MessageParcel & data,MessageParcel & reply)125 int32_t ServiceStub::CmdGetLocalCapabilitiesIncremental(MessageParcel &data, MessageParcel &reply)
126 {
127 return BServiceStub::stub->CmdGetLocalCapabilitiesIncremental(data, reply);
128 }
129
CmdGetAppLocalListAndDoIncrementalBackup(MessageParcel & data,MessageParcel & reply)130 int32_t ServiceStub::CmdGetAppLocalListAndDoIncrementalBackup(MessageParcel &data, MessageParcel &reply)
131 {
132 return BServiceStub::stub->CmdGetAppLocalListAndDoIncrementalBackup(data, reply);
133 }
134
CmdInitIncrementalBackupSession(MessageParcel & data,MessageParcel & reply)135 int32_t ServiceStub::CmdInitIncrementalBackupSession(MessageParcel &data, MessageParcel &reply)
136 {
137 return BServiceStub::stub->CmdInitIncrementalBackupSession(data, reply);
138 }
139
CmdAppendBundlesIncrementalBackupSession(MessageParcel & data,MessageParcel & reply)140 int32_t ServiceStub::CmdAppendBundlesIncrementalBackupSession(MessageParcel &data, MessageParcel &reply)
141 {
142 return BServiceStub::stub->CmdAppendBundlesIncrementalBackupSession(data, reply);
143 }
144
CmdAppendBundlesDetailsIncrementalBackupSession(MessageParcel & data,MessageParcel & reply)145 int32_t ServiceStub::CmdAppendBundlesDetailsIncrementalBackupSession(MessageParcel &data, MessageParcel &reply)
146 {
147 return BServiceStub::stub->CmdAppendBundlesDetailsIncrementalBackupSession(data, reply);
148 }
149
CmdPublishIncrementalFile(MessageParcel & data,MessageParcel & reply)150 int32_t ServiceStub::CmdPublishIncrementalFile(MessageParcel &data, MessageParcel &reply)
151 {
152 return BServiceStub::stub->CmdPublishIncrementalFile(data, reply);
153 }
154
CmdAppIncrementalFileReady(MessageParcel & data,MessageParcel & reply)155 int32_t ServiceStub::CmdAppIncrementalFileReady(MessageParcel &data, MessageParcel &reply)
156 {
157 return BServiceStub::stub->CmdAppIncrementalFileReady(data, reply);
158 }
159
CmdGetIncrementalFileHandle(MessageParcel & data,MessageParcel & reply)160 int32_t ServiceStub::CmdGetIncrementalFileHandle(MessageParcel &data, MessageParcel &reply)
161 {
162 return BServiceStub::stub->CmdGetIncrementalFileHandle(data, reply);
163 }
164
CmdStopExtTimer(MessageParcel & data,MessageParcel & reply)165 int32_t ServiceStub::CmdStopExtTimer(MessageParcel &data, MessageParcel &reply)
166 {
167 return BServiceStub::stub->CmdStopExtTimer(data, reply);
168 }
169
CmdRefreshDataSize(MessageParcel & data,MessageParcel & reply)170 int32_t ServiceStub::CmdRefreshDataSize(MessageParcel &data, MessageParcel &reply)
171 {
172 return BServiceStub::stub->CmdRefreshDataSize(data, reply);
173 }
174
CmdGetLocalCapabilitiesForBdInfos(MessageParcel & data,MessageParcel & reply)175 int32_t ServiceStub::CmdGetLocalCapabilitiesForBdInfos(MessageParcel &data, MessageParcel &reply)
176 {
177 return BServiceStub::stub->CmdGetLocalCapabilitiesForBdInfos(data, reply);
178 }
179
CmdGetBackupDataSize(MessageParcel & data,MessageParcel & reply)180 int32_t ServiceStub::CmdGetBackupDataSize(MessageParcel &data, MessageParcel &reply)
181 {
182 return BServiceStub::stub->CmdGetBackupDataSize(data, reply);
183 }
184 } // namespace OHOS::FileManagement::Backup
185