| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 1 | /* | 
|  | 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 |  | 
|  | 17 | package android.os; | 
|  | 18 |  | 
| Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame] | 19 | import android.os.IUpdateEngineCallback; | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 20 |  | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 21 | /** @hide */ | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 22 | interface IUpdateEngine { | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 23 | /** @hide */ | 
| Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame] | 24 | void applyPayload(String url, | 
| Alex Deymo | 95b8f24 | 2016-01-28 16:06:57 -0800 | [diff] [blame] | 25 | in long payload_offset, | 
|  | 26 | in long payload_size, | 
| Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame] | 27 | in String[] headerKeyValuePairs); | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 28 | /** @hide */ | 
| Tao Bao | e78e3fb | 2016-01-04 17:57:53 -0800 | [diff] [blame] | 29 | boolean bind(IUpdateEngineCallback callback); | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 30 | /** @hide */ | 
| Sen Jiang | 5caab19 | 2017-07-07 17:22:29 -0700 | [diff] [blame] | 31 | boolean unbind(IUpdateEngineCallback callback); | 
|  | 32 | /** @hide */ | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 33 | void suspend(); | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 34 | /** @hide */ | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 35 | void resume(); | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 36 | /** @hide */ | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 37 | void cancel(); | 
| Christopher Wiley | 811cd6e | 2016-06-23 17:45:19 -0700 | [diff] [blame] | 38 | /** @hide */ | 
| Alex Deymo | 3b678db | 2016-02-09 11:50:06 -0800 | [diff] [blame] | 39 | void resetStatus(); | 
| Tao Bao | 07fbb1b | 2018-01-09 22:38:57 -0800 | [diff] [blame] | 40 | /** @hide */ | 
|  | 41 | boolean verifyPayloadApplicable(in String metadataFilename); | 
| Christopher Wiley | 9e1eda9 | 2015-11-16 15:23:37 -0800 | [diff] [blame] | 42 | } |