Java Code Examples for android.os.storage.StorageManager#findVolumeByQualifiedUuid()

The following examples show how to use android.os.storage.StorageManager#findVolumeByQualifiedUuid() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 2
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 3
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 4
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 5
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 6
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 7
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 8
Source File: ApplicationPackageManager.java    From AndroidComponentPlugin with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}
 
Example 9
Source File: ApplicationPackageManager.java    From android_9.0.0_r45 with Apache License 2.0 4 votes vote down vote up
@Override
public @Nullable VolumeInfo getPrimaryStorageCurrentVolume() {
    final StorageManager storage = mContext.getSystemService(StorageManager.class);
    final String volumeUuid = storage.getPrimaryStorageUuid();
    return storage.findVolumeByQualifiedUuid(volumeUuid);
}