Lines Matching defs:VolumeInfo

65 public class VolumeInfo implements Parcelable {
101 private static final Comparator<VolumeInfo>
102 sDescriptionComparator = new Comparator<VolumeInfo>() {
104 public int compare(VolumeInfo lhs, VolumeInfo rhs) {
105 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(lhs.getId())) {
118 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED);
119 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING);
120 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED);
121 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY);
122 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED);
123 sStateToEnvironment.put(VolumeInfo.STATE_EJECTING, Environment.MEDIA_EJECTING);
124 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTABLE, Environment.MEDIA_UNMOUNTABLE);
125 sStateToEnvironment.put(VolumeInfo.STATE_REMOVED, Environment.MEDIA_REMOVED);
126 sStateToEnvironment.put(VolumeInfo.STATE_BAD_REMOVAL, Environment.MEDIA_BAD_REMOVAL);
137 sStateToDescrip.put(VolumeInfo.STATE_UNMOUNTED, R.string.ext_media_status_unmounted);
138 sStateToDescrip.put(VolumeInfo.STATE_CHECKING, R.string.ext_media_status_checking);
139 sStateToDescrip.put(VolumeInfo.STATE_MOUNTED, R.string.ext_media_status_mounted);
140 sStateToDescrip.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, R.string.ext_media_status_mounted_ro);
141 sStateToDescrip.put(VolumeInfo.STATE_FORMATTING, R.string.ext_media_status_formatting);
142 sStateToDescrip.put(VolumeInfo.STATE_EJECTING, R.string.ext_media_status_ejecting);
143 sStateToDescrip.put(VolumeInfo.STATE_UNMOUNTABLE, R.string.ext_media_status_unmountable);
144 sStateToDescrip.put(VolumeInfo.STATE_REMOVED, R.string.ext_media_status_removed);
145 sStateToDescrip.put(VolumeInfo.STATE_BAD_REMOVAL, R.string.ext_media_status_bad_removal);
162 public VolumeInfo(String id, int type, DiskInfo disk, String partGuid) {
169 public VolumeInfo(Parcel parcel) {
205 public static @NonNull Comparator<VolumeInfo> getDescriptionComparator() {
352 final VolumeInfo privateVol = storage.findPrivateForEmulated(this);
429 if (type == VolumeInfo.TYPE_PUBLIC) {
431 } else if (type == VolumeInfo.TYPE_EMULATED && isPrimary()) {
452 pw.println("VolumeInfo{" + id + "}:");
472 public VolumeInfo clone() {
485 if (o instanceof VolumeInfo) {
486 return Objects.equals(id, ((VolumeInfo) o).id);
497 public static final Creator<VolumeInfo> CREATOR = new Creator<VolumeInfo>() {
499 public VolumeInfo createFromParcel(Parcel in) {
500 return new VolumeInfo(in);
504 public VolumeInfo[] newArray(int size) {
505 return new VolumeInfo[size];