blob: 5c6e930b39a4ce03e271a9c11c7f6e6817ec41e5 [file] [log] [blame]
raychi434cbe62020-08-07 18:43:57 +08001/*
2 * Copyright (C) 2020 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.hardware.usb.gadget@1.2;
18
19import IUsbGadgetCallback;
20import android.hardware.usb.gadget@1.1::IUsbGadget;
21
22interface IUsbGadget extends @1.1::IUsbGadget {
23 /**
24 * The function is used to query current USB speed.
25 *
26 * @param callback IUsbGadgetCallback::getUsbSpeedCb used to propagate
27 * current USB speed.
28 */
29 oneway getUsbSpeed(IUsbGadgetCallback callback);
30};