OSDN Git Service

docs: Correct labeling for two USB events
authorAndrew Solovay <asolovay@google.com>
Tue, 24 Oct 2017 18:20:38 +0000 (11:20 -0700)
committerAndrew Solovay <asolovay@google.com>
Tue, 24 Oct 2017 18:20:38 +0000 (11:20 -0700)
Per bug, these were mislabeled as broadcast actions, when they're
actually activity intents. This has consequences post-O, since
broadcast actions are now subject to limitations.

Doc is staged to:

http://go/dac-stage/reference/android/hardware/usb/UsbManager.html

Bug: 36672976
Test: make ds-docs
Change-Id: I2b515b1ac152de389f952af21166ed2ba7843044

core/java/android/hardware/usb/UsbManager.java

index d73d3d8..d7fb19d 100644 (file)
@@ -99,7 +99,7 @@ public class UsbManager {
             "android.hardware.usb.action.USB_PORT_CHANGED";
 
    /**
-     * Broadcast Action:  A broadcast for USB device attached event.
+     * Activity intent sent when a USB device is attached.
      *
      * This intent is sent when a USB device is attached to the USB bus when in host mode.
      * <ul>
@@ -125,9 +125,8 @@ public class UsbManager {
             "android.hardware.usb.action.USB_DEVICE_DETACHED";
 
    /**
-     * Broadcast Action:  A broadcast for USB accessory attached event.
+     * Activity intent sent when a USB accessory is attached.
      *
-     * This intent is sent when a USB accessory is attached.
      * <ul>
      * <li> {@link #EXTRA_ACCESSORY} containing the {@link android.hardware.usb.UsbAccessory}
      * for the attached accessory