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

Commit 872eecc6 authored by Kweku Adams's avatar Kweku Adams Committed by Android (Google) Code Review
Browse files

Merge "Open up getCloudMediaProvider to mainline modules." into tm-dev

parents ba688138 fdae3e80
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -413,6 +413,7 @@ package android.os.storage {

  public class StorageManager {
    method public long computeStorageCacheBytes(@NonNull java.io.File);
    method @Nullable public String getCloudMediaProvider();
    method public void notifyAppIoBlocked(@NonNull java.util.UUID, int, int, int);
    method public void notifyAppIoResumed(@NonNull java.util.UUID, int, int, int);
    method public void setCloudMediaProvider(@Nullable String);
+10 −2
Original line number Diff line number Diff line
@@ -3022,9 +3022,17 @@ public class StorageManager {
        }
    }

    /** @hide */
    @TestApi
    /**
     * Returns the authority of the current cloud media provider that was set by the
     * {@link android.service.storage.ExternalStorageService} holding the
     * {@link android.Manifest.permission#WRITE_MEDIA_STORAGE} permission via
     * {@link #setCloudMediaProvider(String)}.
     *
     * @hide
     */
    @Nullable
    @TestApi
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    public String getCloudMediaProvider() {
        try {
            return mStorageManager.getCloudMediaProvider();