| Hridya Valsaraju | 31d2c26 | 2018-07-20 13:35:50 -0700 | [diff] [blame] | 1 | /* | 
|  | 2 | * Copyright (C) 2018 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 | #pragma once | 
|  | 17 |  | 
|  | 18 | #include <functional> | 
|  | 19 | #include <string> | 
|  | 20 | #include <vector> | 
|  | 21 |  | 
|  | 22 | class FastbootDevice; | 
|  | 23 |  | 
| David Anderson | 856b7ec | 2018-08-08 17:58:56 -0700 | [diff] [blame] | 24 | bool GetVersion(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 25 | bool GetBootloaderVersion(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 26 | bool GetBasebandVersion(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 27 | bool GetProduct(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 28 | bool GetSerial(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 29 | bool GetSecure(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 30 | bool GetCurrentSlot(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 31 | bool GetSlotCount(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 32 | bool GetSlotSuccessful(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 33 | bool GetSlotUnbootable(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 34 | bool GetMaxDownloadSize(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 35 | bool GetUnlocked(FastbootDevice* device, const std::vector<std::string>& args); | 
|  | 36 | bool GetHasSlot(FastbootDevice* device, const std::vector<std::string>& args); | 
| David Anderson | 12211d1 | 2018-07-24 15:21:20 -0700 | [diff] [blame] | 37 | bool GetPartitionSize(FastbootDevice* device, const std::vector<std::string>& args); | 
| David Anderson | 0d4277d | 2018-07-31 13:27:37 -0700 | [diff] [blame] | 38 | bool GetPartitionIsLogical(FastbootDevice* device, const std::vector<std::string>& args); | 
| David Anderson | d9ba061 | 2018-08-02 11:05:00 -0700 | [diff] [blame] | 39 | bool GetIsUserspace(FastbootDevice* device, const std::vector<std::string>& args); |