MountService: Refactor to use NativeDaemonConnector and clean-up

Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
San Mehat
2010-01-12 12:21:18 -08:00
parent 67bd2cd75f
commit 22dd86e055
4 changed files with 173 additions and 414 deletions

View File

@@ -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.

View File

@@ -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) {
}
}