Merge changes I00d6980a,I814221b4,Id88603a5
* changes: CameraBrowser: Launch itself when a camera is attached to USB. Send Intents when PTP compatible devices are connected/disconnected to USB Give system server permission to access USB.
This commit is contained in:
committed by
Android (Google) Code Review
commit
03a545e5ed
@@ -55,6 +55,24 @@ public class Usb {
|
||||
public static final String ACTION_USB_STATE =
|
||||
"android.hardware.action.USB_STATE";
|
||||
|
||||
/**
|
||||
* Broadcast Action: A broadcast for USB camera attached event.
|
||||
*
|
||||
* This intent is sent when a USB device supporting PTP is attached to the host USB bus.
|
||||
* The intent's data contains a Uri for the device in the MTP provider.
|
||||
*/
|
||||
public static final String ACTION_USB_CAMERA_ATTACHED =
|
||||
"android.hardware.action.USB_CAMERA_ATTACHED";
|
||||
|
||||
/**
|
||||
* Broadcast Action: A broadcast for USB camera detached event.
|
||||
*
|
||||
* This intent is sent when a USB device supporting PTP is detached from the host USB bus.
|
||||
* The intent's data contains a Uri for the device in the MTP provider.
|
||||
*/
|
||||
public static final String ACTION_USB_CAMERA_DETACHED =
|
||||
"android.hardware.action.USB_CAMERA_DETACHED";
|
||||
|
||||
/**
|
||||
* Boolean extra indicating whether USB is connected or disconnected.
|
||||
* Used in extras for the {@link #ACTION_USB_STATE} broadcast.
|
||||
|
||||
Reference in New Issue
Block a user