blob: c0e29f5059ed669340802baf96c3e9af3a0066f1 [file] [log] [blame]
Christopher Wiley9e1eda92015-11-16 15:23:37 -08001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.os;
18
Tao Baoe78e3fb2016-01-04 17:57:53 -080019import android.os.IUpdateEngineCallback;
Christopher Wiley9e1eda92015-11-16 15:23:37 -080020
Christopher Wiley811cd6e2016-06-23 17:45:19 -070021/** @hide */
Christopher Wiley9e1eda92015-11-16 15:23:37 -080022interface IUpdateEngine {
Christopher Wiley811cd6e2016-06-23 17:45:19 -070023 /** @hide */
Tao Baoe78e3fb2016-01-04 17:57:53 -080024 void applyPayload(String url,
Alex Deymo95b8f242016-01-28 16:06:57 -080025 in long payload_offset,
26 in long payload_size,
Tao Baoe78e3fb2016-01-04 17:57:53 -080027 in String[] headerKeyValuePairs);
Christopher Wiley811cd6e2016-06-23 17:45:19 -070028 /** @hide */
Tao Baoe78e3fb2016-01-04 17:57:53 -080029 boolean bind(IUpdateEngineCallback callback);
Christopher Wiley811cd6e2016-06-23 17:45:19 -070030 /** @hide */
Sen Jiang5caab192017-07-07 17:22:29 -070031 boolean unbind(IUpdateEngineCallback callback);
32 /** @hide */
Christopher Wiley9e1eda92015-11-16 15:23:37 -080033 void suspend();
Christopher Wiley811cd6e2016-06-23 17:45:19 -070034 /** @hide */
Christopher Wiley9e1eda92015-11-16 15:23:37 -080035 void resume();
Christopher Wiley811cd6e2016-06-23 17:45:19 -070036 /** @hide */
Christopher Wiley9e1eda92015-11-16 15:23:37 -080037 void cancel();
Christopher Wiley811cd6e2016-06-23 17:45:19 -070038 /** @hide */
Alex Deymo3b678db2016-02-09 11:50:06 -080039 void resetStatus();
Tao Bao07fbb1b2018-01-09 22:38:57 -080040 /** @hide */
41 boolean verifyPayloadApplicable(in String metadataFilename);
Christopher Wiley9e1eda92015-11-16 15:23:37 -080042}