HomeSort by relevance Sort by last modified time
    Searched refs:StorageVolume (Results 1 - 25 of 27) sorted by null

1 2

  /frameworks/base/core/java/android/os/storage/
StorageVolume.aidl 19 parcelable StorageVolume;
StorageVolume.java 78 public final class StorageVolume implements Parcelable {
100 * contains a {@link StorageVolume}.
124 public StorageVolume(String id, int storageId, File path, String description, boolean primary,
142 private StorageVolume(Parcel in) {
354 if (obj instanceof StorageVolume && mPath != null) {
355 StorageVolume volume = (StorageVolume)obj;
368 final StringBuilder buffer = new StringBuilder("StorageVolume: ").append(mDescription);
386 pw.println("StorageVolume:");
404 public static final Creator<StorageVolume> CREATOR = new Creator<StorageVolume>()
    [all...]
StorageManager.java 857 * Return the {@link StorageVolume} that contains the given file, or {@code null} if none.
859 public @Nullable StorageVolume getStorageVolume(File file) {
864 public static @Nullable StorageVolume getStorageVolume(File file, int userId) {
869 private static @Nullable StorageVolume getStorageVolume(StorageVolume[] volumes, File file) {
879 for (StorageVolume volume : volumes) {
899 final StorageVolume vol = getStorageVolume(new File(mountPoint));
913 * @see StorageVolume#createAccessIntent(String)
915 public @NonNull List<StorageVolume> getStorageVolumes() {
916 final ArrayList<StorageVolume> res = new ArrayList<>()
    [all...]
VolumeInfo.java 329 public StorageVolume buildStorageVolume(Context context, int userId, boolean reportUnmounted) {
347 int mtpStorageId = StorageVolume.STORAGE_ID_INVALID;
359 mtpStorageId = StorageVolume.STORAGE_ID_PRIMARY;
377 mtpStorageId = StorageVolume.STORAGE_ID_PRIMARY;
396 return new StorageVolume(id, mtpStorageId, userPath, description, isPrimary(), removable,
403 return StorageVolume.STORAGE_ID_INVALID;
IMountService.java 779 public StorageVolume[] getVolumeList(int uid, String packageName, int flags)
783 StorageVolume[] _result;
791 _result = _reply.createTypedArray(StorageVolume.CREATOR);
    [all...]
  /packages/providers/MediaProvider/src/com/android/providers/media/
MtpService.java 31 import android.os.storage.StorageVolume;
50 final StorageVolume primary = StorageManager.getPrimaryVolume(mVolumes);
59 for (StorageVolume volume : mVolumeMap.values()) {
73 StorageVolume volume = mVolumeMap.remove(path);
89 private final HashMap<String, StorageVolume> mVolumeMap = new HashMap<String, StorageVolume>();
91 private StorageVolume[] mVolumes;
99 StorageVolume[] volumes = mStorageManager.getVolumeList();
131 final StorageVolume primary = StorageManager.getPrimaryVolume(mVolumes);
153 private void manageServiceLocked(StorageVolume primary, String[] subdirs)
    [all...]
MediaProvider.java 72 import android.os.storage.StorageVolume;
253 StorageVolume storage = (StorageVolume)intent.getParcelableExtra(
254 StorageVolume.EXTRA_STORAGE_VOLUME);
552 final StorageVolume vol = mStorageManager.getPrimaryVolume();
    [all...]
  /frameworks/base/media/java/android/mtp/
MtpStorage.java 20 import android.os.storage.StorageVolume;
38 public MtpStorage(StorageVolume volume, Context context) {
  /cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
ScopedDirectoryAccessClientTest.java 37 import android.os.storage.StorageVolume;
82 for (StorageVolume volume : getVolumes()) {
94 for (StorageVolume volume : getVolumes()) {
110 private void userRejectsTest(StorageVolume volume, String dir) throws Exception {
119 for (StorageVolume volume : getVolumes()) {
142 for (StorageVolume volume : getVolumes()) {
162 for (StorageVolume volume : getVolumes()) {
191 for (StorageVolume volume : getVolumes()) {
216 for (StorageVolume volume : getVolumes()) {
244 private Uri userAcceptsOpenExternalDirectoryTest(StorageVolume volume, String directoryName
    [all...]
  /cts/tests/tests/os/src/android/os/storage/cts/
StorageManagerTest.java 29 import android.os.storage.StorageVolume;
166 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume();
205 final StorageVolume clone = StorageVolume.CREATOR.createFromParcel(parcel);
213 final List<StorageVolume> volumes = mStorageManager.getStorageVolumes();
215 StorageVolume primary = null;
216 for (StorageVolume volume : volumes) {
234 final StorageVolume primary = mStorageManager.getPrimaryStorageVolume();
235 final StorageVolume rootVolume = mStorageManager.getStorageVolume(root);
240 StorageVolume childVolume = mStorageManager.getStorageVolume(child)
    [all...]
  /frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/
SharedStorageAgent.java 10 import android.os.storage.StorageVolume;
21 StorageVolume[] mVolumes;
51 StorageVolume v = mVolumes[i];
  /developers/build/prebuilts/gradle/ScopedDirectoryAccess/Application/src/main/java/com/example/android/scopeddirectoryaccess/
ScopedDirectoryAccessFragment.java 28 import android.os.storage.StorageVolume;
120 StorageVolume storageVolume = mStorageManager.getPrimaryStorageVolume();
121 Intent intent = storageVolume.createAccessIntent(directoryName);
127 List<StorageVolume> storageVolumes = mStorageManager.getStorageVolumes();
130 for (final StorageVolume volume : storageVolumes) {
  /developers/samples/android/content/documentsUi/ScopedDirectoryAccess/Application/src/main/java/com/example/android/scopeddirectoryaccess/
ScopedDirectoryAccessFragment.java 28 import android.os.storage.StorageVolume;
120 StorageVolume storageVolume = mStorageManager.getPrimaryStorageVolume();
121 Intent intent = storageVolume.createAccessIntent(directoryName);
127 List<StorageVolume> storageVolumes = mStorageManager.getStorageVolumes();
130 for (final StorageVolume volume : storageVolumes) {
  /development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
ScopedDirectoryAccessFragment.java 28 import android.os.storage.StorageVolume;
120 StorageVolume storageVolume = mStorageManager.getPrimaryStorageVolume();
121 Intent intent = storageVolume.createAccessIntent(directoryName);
127 List<StorageVolume> storageVolumes = mStorageManager.getStorageVolumes();
130 for (final StorageVolume volume : storageVolumes) {
  /frameworks/base/core/java/android/os/
Environment.java 22 import android.os.storage.StorageVolume;
87 final StorageVolume[] volumes = StorageManager.getVolumeList(mUserId,
809 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId());
842 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId());
886 final StorageVolume volume = StorageManager.getStorageVolume(path, UserHandle.myUserId());
    [all...]
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
OpenExternalDirectoryActivity.java 21 import static android.os.storage.StorageVolume.EXTRA_DIRECTORY_NAME;
22 import static android.os.storage.StorageVolume.EXTRA_STORAGE_VOLUME;
63 import android.os.storage.StorageVolume;
112 final Parcelable storageVolume = intent.getParcelableExtra(EXTRA_STORAGE_VOLUME);
113 if (!(storageVolume instanceof StorageVolume)) {
115 Log.d(TAG, "extra " + EXTRA_STORAGE_VOLUME + " is not a StorageVolume: "
116 + storageVolume);
126 final StorageVolume volume = (StorageVolume) storageVolume
    [all...]
  /frameworks/base/core/java/android/app/backup/
FullBackup.java 25 import android.os.storage.StorageVolume;
232 private StorageVolume[] mVolumes = null;
285 final StorageVolume[] volumes = getVolumeList();
293 private StorageVolume[] getVolumeList() {
  /packages/providers/DownloadProvider/src/com/android/providers/downloads/
Helpers.java 42 import android.os.storage.StorageVolume;
508 final StorageVolume[] volumes = StorageManager.getVolumeList(UserHandle.myUserId(),
510 for (StorageVolume volume : volumes) {
  /frameworks/base/core/java/com/android/internal/content/
PackageHelper.java 35 import android.os.storage.StorageVolume;
433 final StorageVolume primary = storage.getPrimaryVolume();
  /frameworks/base/services/core/java/com/android/server/
MountService.java 79 import android.os.storage.StorageVolume;
687 final StorageVolume userVol = (StorageVolume) msg.obj;
696 intent.putExtra(StorageVolume.EXTRA_STORAGE_VOLUME, userVol);
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
StorageMeasurement.java 37 import android.os.storage.StorageVolume;
57 * {@link StorageVolume}. Connects with a remote {@link IMediaContainerService}
92 * When measuring a physical {@link StorageVolume}, this value includes
111 * When measuring a physical {@link StorageVolume}, this reflects media
  /frameworks/base/services/usb/java/com/android/server/usb/
UsbDeviceManager.java 46 import android.os.storage.StorageVolume;
237 final StorageVolume primary = storageManager.getPrimaryVolume();
    [all...]
  /frameworks/base/core/java/android/provider/
DocumentsContract.java 42 import android.os.storage.StorageVolume;
67 * {@link StorageVolume#createAccessIntent(String) StorageVolume.createAccessIntent}.
    [all...]
  /frameworks/base/
compiled-classes-phone     [all...]
  /prebuilts/sdk/24/
android.jar 

Completed in 404 milliseconds

1 2