Add findEmulatedForPrivate to the StorageVolumeProvider.

The improves testability within Settings.

Bug: 33199077
Test: Settings Robo Tests
Change-Id: Ib3cc2f73128223017cc392a5e09686eb23da2b1b
This commit is contained in:
Daniel Nishi
2017-01-09 12:35:24 -08:00
parent eb2d14b81f
commit 7d3af808c1
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);
}