diff options
author | Robert Ly <robertly@google.com> | 2011-08-15 12:16:41 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-08-15 12:16:41 -0700 |
commit | 154aa355f0ed0374a4b4db222419639ec1a385fe (patch) | |
tree | bdbe5cc6a937515b8b7fc52ebbc53412b4076f72 | |
parent | 269cf1b2145d1f4d51615a98809522af65a8ec16 (diff) | |
parent | 7ec9e02cbfde5da5a89eab496ca66d773ebe2c71 (diff) | |
download | frameworks_base-154aa355f0ed0374a4b4db222419639ec1a385fe.zip frameworks_base-154aa355f0ed0374a4b4db222419639ec1a385fe.tar.gz frameworks_base-154aa355f0ed0374a4b4db222419639ec1a385fe.tar.bz2 |
Merge "docs: fix for bug 5057581"
-rw-r--r-- | docs/html/guide/topics/usb/host.jd | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/html/guide/topics/usb/host.jd b/docs/html/guide/topics/usb/host.jd index 4967033..b561754 100644 --- a/docs/html/guide/topics/usb/host.jd +++ b/docs/html/guide/topics/usb/host.jd @@ -135,7 +135,9 @@ page.title=USB Host devices that you want to filter. The following list describes the attributes of <code><usb-device></code>. In general, use vendor and product ID if you want to filter for a specific device and use class, subclass, and protocol if you want to filter for a group - of USB devices, such as mass storage devices or digital cameras.</p> + of USB devices, such as mass storage devices or digital cameras. You can specify none or + all of these attributes. Specifying no attributes matches every USB device, so only do this + if your application requires it:</p> <ul> <li><code>vendor-id</code></li> @@ -179,14 +181,13 @@ page.title=USB Host </pre> <p>In this case, the following resource file should be saved in - <code>res/xml/device_filter.xml</code> and specifies that any USB device with the corresponding - vendor ID and product ID should be filtered. These IDs are specific to the device and are - specified by the device's manufacturer:</p> + <code>res/xml/device_filter.xml</code> and specifies that any USB device with the specified + attributes should be filtered:</p> <pre> <?xml version="1.0" encoding="utf-8"?> <resources> - <usb-device vendor-id="1234" product-id="5678" /> + <usb-device vendor-id="1234" product-id="5678" class="255" subclass="66" protocol="1" /> </resources> </pre> |