xref: /aosp_15_r20/development/samples/USB/AdbTest/_index.html (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker<p>AdbTest is a sample program that implements a subset of the <code>adb</code> USB protocol.
2*90c8c64dSAndroid Build Coastguard WorkerCurrently it only implements the <code>adb logcat</code> command and displays the log
3*90c8c64dSAndroid Build Coastguard Workeroutput in a text view and only allows connecting to one device at a time.
4*90c8c64dSAndroid Build Coastguard WorkerHowever, the support classes are structured in a way that would allow
5*90c8c64dSAndroid Build Coastguard Workerconnecting to multiple devices and running multiple <code>adb</code> commands simultaneously.</p>
6*90c8c64dSAndroid Build Coastguard Worker
7*90c8c64dSAndroid Build Coastguard Worker<p>This program serves as an example of the following USB host features:</p>
8*90c8c64dSAndroid Build Coastguard Worker
9*90c8c64dSAndroid Build Coastguard Worker<ul>
10*90c8c64dSAndroid Build Coastguard Worker<li>Matching devices based on interface class, subclass and protocol (see <code>device_filter.xml</code>)</li>
11*90c8c64dSAndroid Build Coastguard Worker
12*90c8c64dSAndroid Build Coastguard Worker<li>Asynchronous IO on bulk endpoints</li>
13*90c8c64dSAndroid Build Coastguard Worker</ul>