/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | StorageFragment.java | 22 import android.os.Environment; 208 Environment.DIRECTORY_DCIM, in updateDetails() 209 Environment.DIRECTORY_MOVIES, Environment.DIRECTORY_PICTURES); in updateDetails() 212 Environment.DIRECTORY_MUSIC, in updateDetails() 213 Environment.DIRECTORY_ALARMS, Environment.DIRECTORY_NOTIFICATIONS, in updateDetails() 214 Environment.DIRECTORY_RINGTONES, Environment.DIRECTORY_PODCASTS); in updateDetails() 217 Environment.DIRECTORY_DOWNLOADS); in updateDetails()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | IdleServiceTest.java | 19 import static android.os.Environment.buildPath; 31 import android.os.Environment; 60 final File dir = Environment.getExternalStorageDirectory(); in testPruneThumbnails() 69 final File a = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", "1234567.jpg"); in testPruneThumbnails() 70 final File b = buildPath(dir, Environment.DIRECTORY_MOVIES, ".thumbnails", "7654321.jpg"); in testPruneThumbnails() 71 final File c = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", id + ".jpg"); in testPruneThumbnails() 72 final File d = buildPath(dir, Environment.DIRECTORY_PICTURES, ".thumbnails", "random.bin"); in testPruneThumbnails()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | MediaSetUtils.java | 19 import android.os.Environment; 32 Environment.getExternalStorageDirectory().toString() + "/" 35 Environment.getExternalStorageDirectory().toString() + "/" 38 Environment.getExternalStorageDirectory().toString() + "/" 41 Environment.getExternalStorageDirectory().toString() + "/" 44 Environment.getExternalStorageDirectory().toString() +
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MtpService.java | 29 import android.os.Environment; 58 Environment.DIRECTORY_DCIM, 59 Environment.DIRECTORY_PICTURES, 67 if (Environment.MEDIA_MOUNTED.equals(newState)) { 78 } else if (Environment.MEDIA_MOUNTED.equals(oldState)) { 138 if (v.getState().equals(Environment.MEDIA_MOUNTED)) { in onStartCommand() 144 Environment.UserEnvironment env = new Environment.UserEnvironment(getUserId()); in onStartCommand()
|
D | RingtoneOverlayService.java | 29 import android.os.Environment; 66 System.RINGTONE, Environment.DIRECTORY_RINGTONES); in updateRingtones() 68 System.NOTIFICATION_SOUND, Environment.DIRECTORY_NOTIFICATIONS); in updateRingtones() 70 System.ALARM_ALERT, Environment.DIRECTORY_ALARMS); in updateRingtones() 77 final File destDir = Environment.getExternalStoragePublicDirectory(subPath); in copyResourceAndSetAsSound()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Storage.java | 23 import android.os.Environment; 36 Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString(); 106 String state = Environment.getExternalStorageState(); in getAvailableSpace() 108 if (Environment.MEDIA_CHECKING.equals(state)) { in getAvailableSpace() 111 if (!Environment.MEDIA_MOUNTED.equals(state)) { in getAvailableSpace()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | ImportTask.java | 23 import android.os.Environment; 79 File dest = new File(Environment.getExternalStorageDirectory(), mDestAlbumName); in run() 107 String state = Environment.getExternalStorageState(); in hasSpaceForSize() 108 if (!Environment.MEDIA_MOUNTED.equals(state)) { in hasSpaceForSize() 112 String path = Environment.getExternalStorageDirectory().getPath(); in hasSpaceForSize()
|
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 28 import android.os.Environment; 94 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraOutput() 132 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraSizeLimit() 154 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraDurationLimit() 176 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); 177 mFile2 = new File(Environment.getExternalStorageDirectory(), "video2.tmp");
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 19 import static android.os.Environment.buildExternalStorageAppDataDirs; 20 import static android.os.Environment.buildExternalStorageAppMediaDirs; 21 import static android.os.Environment.buildExternalStorageAppObbDirs; 22 import static android.os.Environment.buildExternalStoragePublicDirs; 41 import android.os.Environment; 553 Environment.DIRECTORY_DOWNLOADS), file)) { in isFilenameValidInPublicDownloadsDir() 572 return ArrayUtils.contains(Environment.STANDARD_DIRECTORIES, publicDir); in isFilenameValidInKnownPublicDir() 586 || containsCanonical(Environment.getDownloadCacheDirectory(), file)) { in isFilenameValid() 643 Environment.getExternalStorageDirectory(), Environment.DIRECTORY_DOWNLOADS); in getDestinationDirectory()
|
D | DownloadIdleService.java | 33 import android.os.Environment; 168 final String state = Environment.getExternalStorageState(file); in cleanOrphans() 169 if (Environment.MEDIA_UNKNOWN.equals(state) in cleanOrphans() 170 || Environment.MEDIA_MOUNTED.equals(state)) { in cleanOrphans() 191 fromDisk.addAll(listFilesRecursive(Environment.getDownloadCacheDirectory(), null, uid)); in cleanOrphans()
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/ |
D | VideoCaptureIntentTest.java | 29 import android.os.Environment; 101 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraOutput() 155 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraSizeLimit() 177 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); in testExtraDurationLimit() 199 mFile = new File(Environment.getExternalStorageDirectory(), "video.tmp"); 200 mFile2 = new File(Environment.getExternalStorageDirectory(), "video2.tmp");
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | Message.java | 30 import com.android.documentsui.dirlist.DocumentsAdapter.Environment; 37 protected final Environment mEnv; 48 Message(Environment env, Runnable defaultCallback) { in Message() 99 HeaderMessage(Environment env, Runnable callback) { in HeaderMessage() 139 InflateMessage(Environment env, Runnable callback) { in InflateMessage()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ImageManager.java | 36 import android.os.Environment; 134 Environment.getExternalStorageDirectory().toString() 153 Environment.getExternalStorageDirectory().toString() in ensureOSXCompatibleFolder() 442 Environment.getExternalStorageDirectory().toString() + "/DCIM"; in checkFsWritable() 470 String state = Environment.getExternalStorageState(); in hasStorage() 472 if (Environment.MEDIA_MOUNTED.equals(state)) { in hasStorage() 480 && Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { in hasStorage()
|
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/ |
D | Obd2CollectionTask.java | 21 import android.os.Environment; 112 String state = Environment.getExternalStorageState(); in isExternalStorageWriteable() 113 return (Environment.MEDIA_MOUNTED.equals(state)); in isExternalStorageWriteable() 118 return new File(context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), basename); in getFilenameForStorage()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 25 import android.os.Environment; 94 if (sourceDir.startsWith(Environment.getProductDirectory().getAbsolutePath()) in getValidOverlay() 95 || sourceDir.startsWith(Environment.getVendorDirectory().getAbsolutePath()) in getValidOverlay() 96 || sourceDir.startsWith(Environment.getRootDirectory().getAbsolutePath())) { in getValidOverlay()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | DropdownBreadcrumb.java | 31 import com.android.documentsui.NavigationViewManager.Environment; 64 public void setup(Environment env, State state, IntConsumer listener) { in setup() 104 private Environment mEnv; 107 public DropdownAdapter(State state, Environment env) { in DropdownAdapter()
|
D | NavigationViewManager.java | 52 private final NavigationViewManager.Environment mEnv; 64 NavigationViewManager.Environment env, in NavigationViewManager() 208 void setup(Environment env, State state, IntConsumer listener); in setup() 213 interface Environment { interface in NavigationViewManager
|
D | HorizontalBreadcrumb.java | 33 import com.android.documentsui.NavigationViewManager.Environment; 66 public void setup(Environment env, in setup() 191 private final Environment mEnv; 199 Environment env, in BreadcrumbAdapter()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarDebugActivity.java | 25 import android.os.Environment; 74 new File(Environment.getExternalStorageDirectory(), OUT_FILE).exists(); in updateDeleteButton() 98 File outFile = new File(Environment.getExternalStorageDirectory(), OUT_FILE); in cleanup() 117 File path = Environment.getExternalStorageDirectory(); in doInBackground()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiveFileInfo.java | 40 import android.os.Environment; 110 if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { in generateFileInfo() 174 Environment.DIRECTORY_DOWNLOADS); in generateFileInfo()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | PrivateVolumeSettings.java | 30 import android.os.Environment; 587 Environment.DIRECTORY_DCIM, Environment.DIRECTORY_PICTURES); in updateDetails() 595 Environment.DIRECTORY_MOVIES); in updateDetails() 603 Environment.DIRECTORY_MUSIC, in updateDetails() 604 Environment.DIRECTORY_ALARMS, Environment.DIRECTORY_NOTIFICATIONS, in updateDetails() 605 Environment.DIRECTORY_RINGTONES, Environment.DIRECTORY_PODCASTS); in updateDetails() 613 Environment.DIRECTORY_DOWNLOADS); in updateDetails()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpCoverArtStorage.java | 23 import android.os.Environment; 172 if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { in getStorageDirectory() 175 error("Cannot get storage directory, state=" + Environment.getExternalStorageState()); in getStorageDirectory()
|
/packages/apps/TV/common/src/com/android/tv/common/recording/ |
D | RecordingStorageStatusManager.java | 24 import android.os.Environment; 248 Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); in getStorageStatusInternal() 249 File storageMountedDir = storageMounted ? Environment.getExternalStorageDirectory() : null; in getStorageStatusInternal()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeSettings.java | 30 import android.os.Environment; 571 Environment.DIRECTORY_DCIM, Environment.DIRECTORY_PICTURES); in updateDetails() 578 Environment.DIRECTORY_MOVIES); in updateDetails() 585 Environment.DIRECTORY_MUSIC, in updateDetails() 586 Environment.DIRECTORY_ALARMS, Environment.DIRECTORY_NOTIFICATIONS, in updateDetails() 587 Environment.DIRECTORY_RINGTONES, Environment.DIRECTORY_PODCASTS); in updateDetails() 594 Environment.DIRECTORY_DOWNLOADS); in updateDetails()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | Storage.java | 27 import android.os.Environment; 82 DIRECTORY = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES).getPath(); in Storage() 453 String state = Environment.getExternalStorageState(); in getAvailableSpace() 455 if (Environment.MEDIA_CHECKING.equals(state)) { in getAvailableSpace() 458 if (!Environment.MEDIA_MOUNTED.equals(state)) { in getAvailableSpace()
|