diff options
author | San Mehat <san@google.com> | 2010-01-12 12:21:18 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-01-12 14:12:16 -0800 |
commit | 22dd86e0556bf60f46bb92a4d90aef8c2d55da58 (patch) | |
tree | 960252dfa23185cee7c3412db3b2a2f9e8a00fe1 /core | |
parent | 67bd2cd75f0615c1a08a221f2114d2acda90d1ce (diff) | |
download | frameworks_base-22dd86e0556bf60f46bb92a4d90aef8c2d55da58.zip frameworks_base-22dd86e0556bf60f46bb92a4d90aef8c2d55da58.tar.gz frameworks_base-22dd86e0556bf60f46bb92a4d90aef8c2d55da58.tar.bz2 |
MountService: Refactor to use NativeDaemonConnector and clean-up
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/os/IMountService.aidl | 6 | ||||
-rw-r--r-- | core/java/com/android/internal/app/ExternalMediaFormatActivity.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/os/IMountService.aidl b/core/java/android/os/IMountService.aidl index 1e79030..e73569a 100644 --- a/core/java/android/os/IMountService.aidl +++ b/core/java/android/os/IMountService.aidl @@ -42,17 +42,17 @@ interface IMountService /** * Mount external storage at given mount point. */ - void mountMedia(String mountPoint); + void mountVolume(String mountPoint); /** * Safely unmount external storage at given mount point. */ - void unmountMedia(String mountPoint); + void unmountVolume(String mountPoint); /** * Format external storage given a mount point. */ - void formatMedia(String mountPoint); + void formatVolume(String mountPoint); /** * Returns true if media notification sounds are enabled. diff --git a/core/java/com/android/internal/app/ExternalMediaFormatActivity.java b/core/java/com/android/internal/app/ExternalMediaFormatActivity.java index 000f6c4..2b07ae6 100644 --- a/core/java/com/android/internal/app/ExternalMediaFormatActivity.java +++ b/core/java/com/android/internal/app/ExternalMediaFormatActivity.java @@ -102,7 +102,7 @@ public class ExternalMediaFormatActivity extends AlertActivity implements Dialog .getService("mount")); if (mountService != null) { try { - mountService.formatMedia(Environment.getExternalStorageDirectory().toString()); + mountService.formatVolume(Environment.getExternalStorageDirectory().toString()); } catch (RemoteException e) { } } |