blob: 4469f0f965c3f10204c9c32f593b52ad7e3558c4 [file] [log] [blame]
Kenny Rootdc14eb72018-10-18 10:15:22 +09001/*
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
17package 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 */
25public abstract class AdbManagerInternal {
Kenny Root61fd3602018-01-19 09:01:46 -050026 /**
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 Roota269b332018-01-19 13:24:01 -050039
40 /**
41 * Returns {@code true} if ADB debugging is enabled.
42 */
43 public abstract boolean isAdbEnabled();
Kenny Rootdc14eb72018-10-18 10:15:22 +090044}