Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d3af808 authored by Daniel Nishi's avatar Daniel Nishi
Browse files

Add findEmulatedForPrivate to the StorageVolumeProvider.

The improves testability within Settings.

Bug: 33199077
Test: Settings Robo Tests
Change-Id: Ib3cc2f73128223017cc392a5e09686eb23da2b1b
parent eb2d14b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -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);
}