1 /* 2 * Copyright (C) 2016 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 com.android.tradefed.host; 18 19 import com.android.tradefed.build.IBuildProvider; 20 import com.android.tradefed.targetprep.DeviceFlashPreparer; 21 22 import java.io.File; 23 24 /** 25 * Host options holder interface. 26 * This interface is used to access host-wide options. 27 */ 28 public interface IHostOptions { 29 30 /** 31 * Returns the max number of concurrent flashing to allow. Used by {@link DeviceFlashPreparer}. 32 * 33 * @return the concurrent flasher limit. 34 */ getConcurrentFlasherLimit()35 Integer getConcurrentFlasherLimit(); 36 37 /** 38 * Returns the max number of concurrent downloads allowed. Used by {@link IBuildProvider} that 39 * downloads remote builds. 40 */ getConcurrentDownloadLimit()41 Integer getConcurrentDownloadLimit(); 42 43 /** 44 * Returns the path that fastboot should use as temporary folder 45 * 46 * @return 47 */ getFastbootTmpDir()48 File getFastbootTmpDir(); 49 50 /** 51 * Returns the path used for storing downloaded artifacts 52 * 53 * @return 54 */ getDownloadCacheDir()55 File getDownloadCacheDir(); 56 } 57