1*4e2b41f1SAndroid Build Coastguard Worker /* 2*4e2b41f1SAndroid Build Coastguard Worker * Copyright (C) 2019 The Android Open Source Project 3*4e2b41f1SAndroid Build Coastguard Worker * 4*4e2b41f1SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*4e2b41f1SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*4e2b41f1SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*4e2b41f1SAndroid Build Coastguard Worker * 8*4e2b41f1SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*4e2b41f1SAndroid Build Coastguard Worker * 10*4e2b41f1SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*4e2b41f1SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*4e2b41f1SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4e2b41f1SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*4e2b41f1SAndroid Build Coastguard Worker * limitations under the License. 15*4e2b41f1SAndroid Build Coastguard Worker */ 16*4e2b41f1SAndroid Build Coastguard Worker 17*4e2b41f1SAndroid Build Coastguard Worker package android.gsi; 18*4e2b41f1SAndroid Build Coastguard Worker 19*4e2b41f1SAndroid Build Coastguard Worker /** {@hide} */ 20*4e2b41f1SAndroid Build Coastguard Worker interface IProgressCallback { 21*4e2b41f1SAndroid Build Coastguard Worker /** 22*4e2b41f1SAndroid Build Coastguard Worker * Report progress for a long-running task. 23*4e2b41f1SAndroid Build Coastguard Worker * 24*4e2b41f1SAndroid Build Coastguard Worker * The percentage can be computed using current / total. The task is 25*4e2b41f1SAndroid Build Coastguard Worker * done when current == total. 26*4e2b41f1SAndroid Build Coastguard Worker * 27*4e2b41f1SAndroid Build Coastguard Worker * Different APIs may have different meanings for the parameters; see 28*4e2b41f1SAndroid Build Coastguard Worker * specific APIs for details. 29*4e2b41f1SAndroid Build Coastguard Worker * 30*4e2b41f1SAndroid Build Coastguard Worker * @param current a value indicating the current progress. Should be treated as uint64. 31*4e2b41f1SAndroid Build Coastguard Worker * @param total a value indicating 100% progress. Should be treated as uint64. 32*4e2b41f1SAndroid Build Coastguard Worker */ onProgress(long current, long total)33*4e2b41f1SAndroid Build Coastguard Worker void onProgress(long current, long total); 34*4e2b41f1SAndroid Build Coastguard Worker } 35