summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/SensorEvent.java4
-rw-r--r--core/java/android/hardware/Usb.java18
2 files changed, 20 insertions, 2 deletions
diff --git a/core/java/android/hardware/SensorEvent.java b/core/java/android/hardware/SensorEvent.java
index 6212e1b..2c5c909 100644
--- a/core/java/android/hardware/SensorEvent.java
+++ b/core/java/android/hardware/SensorEvent.java
@@ -84,14 +84,14 @@ public class SensorEvent {
* sensor itself (<b>Fs</b>) using the relation:
* </p>
*
- * <b><center>Ad = - ·Fs / mass</center></b>
+ * <b><center>Ad = - &#8721;Fs / mass</center></b>
*
* <p>
* In particular, the force of gravity is always influencing the measured
* acceleration:
* </p>
*
- * <b><center>Ad = -g - ·F / mass</center></b>
+ * <b><center>Ad = -g - &#8721;F / mass</center></b>
*
* <p>
* For this reason, when the device is sitting on a table (and obviously not
diff --git a/core/java/android/hardware/Usb.java b/core/java/android/hardware/Usb.java
index 57271d4..1028f9f 100644
--- a/core/java/android/hardware/Usb.java
+++ b/core/java/android/hardware/Usb.java
@@ -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.