Debian Codegraph @

core/java/android/debug/AdbManagerInternal.java

raw symbols SCIP
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 import java.io.File;
20
21 /**
22 * This class allows the control of ADB-related functions that should only be called from the system
23 * server.
24 *
25 * @hide Only should be called from the system server.
26 */
27 public abstract class AdbManagerInternal {
28 /**
29 * Registers a ADB transport mechanism.
30 *
31 * @param transport ADB transport interface to register
32 */
33 public abstract void registerTransport(IAdbTransport transport);
34
35 /**
36 * Unregisters a previously registered ADB transport mechanism.
37 *
38 * @param transport previously-added ADB transport interface to be removed
39 */
40 public abstract void unregisterTransport(IAdbTransport transport);
41
42 /**
43 * Returns {@code true} if ADB debugging is enabled.
44 */
45 public abstract boolean isAdbEnabled(byte transportType);
46
47 /**
48 * Returns the file that contains all of the ADB keys used by the device.
49 */
50 public abstract File getAdbKeysFile();
51
52 /**
53 * Returns the file that contains all of the ADB keys and their last used time.
54 */
55 public abstract File getAdbTempKeysFile();
56
57 /**
58 * Notify the AdbManager that the key files have changed and any in-memory state should be
59 * reloaded.
60 */
61 public abstract void notifyKeyFilesUpdated();
62
63 /**
64 * Starts adbd for a transport.
65 */
66 public abstract void startAdbdForTransport(byte transportType);
67
68 /**
69 * Stops adbd for a transport.
70 */
71 public abstract void stopAdbdForTransport(byte transportType);
72 }