MountService: Refactor to use NativeDaemonConnector and clean-up
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user