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

Commit a1b68687 authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "Add StorageVolume list to MountService dump"

parents f953dee1 4161f9b3
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -172,7 +172,10 @@ public class StorageVolume implements Parcelable {

    @Override
    public String toString() {
        return mPath;
        return "StorageVolume [mAllowMassStorage=" + mAllowMassStorage + ", mDescription="
                + mDescription + ", mEmulated=" + mEmulated + ", mMaxFileSize=" + mMaxFileSize
                + ", mMtpReserveSpace=" + mMtpReserveSpace + ", mPath=" + mPath + ", mRemovable="
                + mRemovable + ", mStorageId=" + mStorageId + "]";
    }

    public static final Parcelable.Creator<StorageVolume> CREATOR =
+13 −0
Original line number Diff line number Diff line
@@ -2361,6 +2361,19 @@ class MountService extends IMountService.Stub implements INativeDaemonConnectorC
                pw.print(" -> "); pw.println(e.getValue().toString());
            }
        }

        pw.println("");

        synchronized (mVolumes) {
            pw.println("  mVolumes:");

            final int N = mVolumes.size();
            for (int i = 0; i < N; i++) {
                final StorageVolume v = mVolumes.get(i);
                pw.print("    ");
                pw.println(v.toString());
            }
        }
    }
}