Kenny Root | dc14eb7 | 2018-10-18 10:15:22 +0900 | [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 | |
| 17 | package android.debug; |
| 18 | |
| 19 | /** |
| 20 | * This class allows the control of ADB-related functions that should only be called from the system |
| 21 | * server. |
| 22 | * |
| 23 | * @hide Only should be called from the system server. |
| 24 | */ |
| 25 | public abstract class AdbManagerInternal { |
Kenny Root | 61fd360 | 2018-01-19 09:01:46 -0500 | [diff] [blame] | 26 | /** |
| 27 | * Registers a ADB transport mechanism. |
| 28 | * |
| 29 | * @param transport ADB transport interface to register |
| 30 | */ |
| 31 | public abstract void registerTransport(IAdbTransport transport); |
| 32 | |
| 33 | /** |
| 34 | * Unregisters a previously registered ADB transport mechanism. |
| 35 | * |
| 36 | * @param transport previously-added ADB transport interface to be removed |
| 37 | */ |
| 38 | public abstract void unregisterTransport(IAdbTransport transport); |
Kenny Root | a269b33 | 2018-01-19 13:24:01 -0500 | [diff] [blame] | 39 | |
| 40 | /** |
| 41 | * Returns {@code true} if ADB debugging is enabled. |
| 42 | */ |
| 43 | public abstract boolean isAdbEnabled(); |
Kenny Root | dc14eb7 | 2018-10-18 10:15:22 +0900 | [diff] [blame] | 44 | } |