Merge "Add findEmulatedForPrivate to the StorageVolumeProvider."

This commit is contained in:
Daniel Nishi
2017-01-11 01:19:55 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -41,4 +41,9 @@ public class StorageManagerVolumeProvider implements StorageVolumeProvider {
public List<VolumeInfo> getVolumes() {
return mStorageManager.getVolumes();
}
@Override
public VolumeInfo findEmulatedForPrivate(VolumeInfo privateVolume) {
return mStorageManager.findEmulatedForPrivate(privateVolume);
}
}

View File

@@ -34,4 +34,9 @@ public interface StorageVolumeProvider {
* Returns a list of VolumeInfos for the device.
*/
List<VolumeInfo> getVolumes();
/**
* Returns the emulated volume for a given private volume.
*/
VolumeInfo findEmulatedForPrivate(VolumeInfo privateVolume);
}