summaryrefslogtreecommitdiffstats
path: root/include/hardware_legacy
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:04 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-02-10 15:44:04 -0800
commit6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715 (patch)
tree5c16b8149c32cfd34c5ca4c2408303b722f4d492 /include/hardware_legacy
parent987df5db6d269300aa1b89af506cf18cf380be51 (diff)
downloadhardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.zip
hardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.tar.gz
hardware_libhardware_legacy-6e5ad3c6e83b5acee8c9eaefdc58d1dd8a117715.tar.bz2
auto import from //branches/cupcake/...@130745
Diffstat (limited to 'include/hardware_legacy')
-rw-r--r--include/hardware_legacy/IMountService.h15
-rw-r--r--include/hardware_legacy/vibrator.h4
2 files changed, 18 insertions, 1 deletions
diff --git a/include/hardware_legacy/IMountService.h b/include/hardware_legacy/IMountService.h
index 6737dcf..b956ec8 100644
--- a/include/hardware_legacy/IMountService.h
+++ b/include/hardware_legacy/IMountService.h
@@ -54,6 +54,21 @@ public:
* Safely unmount external storage at given mount point.
*/
virtual void unmountMedia(String16 mountPoint) = 0;
+
+ /**
+ * Format external storage at given mount point.
+ */
+ virtual void formatMedia(String16 mountPoint) = 0;
+
+ /**
+ * Returns true if we're playing media notification sounds.
+ */
+ virtual bool getPlayNotificationSounds() = 0;
+
+ /**
+ * Sets whether or not media notification sounds are played.
+ */
+ virtual void setPlayNotificationSounds(bool enabled) = 0;
};
// ----------------------------------------------------------------------
diff --git a/include/hardware_legacy/vibrator.h b/include/hardware_legacy/vibrator.h
index 5245aeb..15fd942 100644
--- a/include/hardware_legacy/vibrator.h
+++ b/include/hardware_legacy/vibrator.h
@@ -24,9 +24,11 @@ extern "C" {
/**
* Turn on vibrator
*
+ * @param timeout_ms number of milliseconds to vibrate
+ *
* @return 0 if successful, -1 if error
*/
-int vibrator_on();
+int vibrator_on(int timeout_ms);
/**
* Turn off vibrator