/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | AsecTests.java | 20 import android.os.Environment; 140 String mPath = Environment.getExternalStorageDirectory().toString(); in isMediaMounted() 142 return Environment.MEDIA_MOUNTED.equals(state); in isMediaMounted() 151 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_Create_Success() 161 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_Create_Success() 188 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateMinSize_Success() 198 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_CreateMinSize_Success() 225 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateZeroSize_Failure() 234 if (Environment.isExternalStorageEmulated()) { in test_Ext4_External_CreateZeroSize_Failure() 258 if (Environment.isExternalStorageEmulated()) { in test_Fat_External_CreateDuplicate_Failure() [all …]
|
/frameworks/base/core/java/com/android/internal/os/storage/ |
D | ExternalStorageFormatter.java | 9 import android.os.Environment; 127 Environment.getLegacyExternalStorageDirectory().toString() : in onCancel() 150 Environment.getExternalStorageState() : in updateProgressState() 152 if (Environment.MEDIA_MOUNTED.equals(status) in updateProgressState() 153 || Environment.MEDIA_MOUNTED_READ_ONLY.equals(status)) { in updateProgressState() 157 Environment.getLegacyExternalStorageDirectory().toString() : in updateProgressState() 165 } else if (Environment.MEDIA_NOFS.equals(status) in updateProgressState() 166 || Environment.MEDIA_UNMOUNTED.equals(status) in updateProgressState() 167 || Environment.MEDIA_UNMOUNTABLE.equals(status)) { in updateProgressState() 171 Environment.getLegacyExternalStorageDirectory().toString() : in updateProgressState() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | StorageNotification.java | 25 import android.os.Environment; 91 mUmsAvailable, Environment.getExternalStorageState())); in start() 108 String st = Environment.getExternalStorageState(); in onUsbMassStorageConnectionChangedAsync() 114 Environment.MEDIA_REMOVED) || st.equals(Environment.MEDIA_CHECKING))) { in onUsbMassStorageConnectionChangedAsync() 126 if (newState.equals(Environment.MEDIA_SHARED)) { in onStorageStateChangedAsync() 138 } else if (newState.equals(Environment.MEDIA_CHECKING)) { in onStorageStateChangedAsync() 148 } else if (newState.equals(Environment.MEDIA_MOUNTED)) { in onStorageStateChangedAsync() 155 } else if (newState.equals(Environment.MEDIA_UNMOUNTED)) { in onStorageStateChangedAsync() 162 if (oldState.equals(Environment.MEDIA_SHARED)) { in onStorageStateChangedAsync() 174 if (Environment.isExternalStorageRemovable()) { in onStorageStateChangedAsync() [all …]
|
/frameworks/support/v4/java/android/support/v4/os/ |
D | EnvironmentCompat.java | 20 import android.os.Environment; 63 final String canonicalExternal = Environment.getExternalStorageDirectory() in getStorageState() 67 return Environment.getExternalStorageState(); in getStorageState()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemConfig.java | 123 readPermissions(Environment.buildPath( in SystemConfig() 124 Environment.getRootDirectory(), "etc", "sysconfig"), false); in SystemConfig() 126 readPermissions(Environment.buildPath( in SystemConfig() 127 Environment.getRootDirectory(), "etc", "permissions"), false); in SystemConfig() 129 readPermissions(Environment.buildPath( in SystemConfig() 130 Environment.getOemDirectory(), "etc", "sysconfig"), true); in SystemConfig() 131 readPermissions(Environment.buildPath( in SystemConfig() 132 Environment.getOemDirectory(), "etc", "permissions"), true); in SystemConfig() 168 final File permFile = new File(Environment.getRootDirectory(), in readPermissions()
|
D | DiskStatsService.java | 21 import android.os.Environment; 52 File tmp = new File(Environment.getDataDirectory(), "system/perftest.tmp"); in dump() 78 reportFreeSpace(Environment.getDataDirectory(), "Data", pw); in dump() 79 reportFreeSpace(Environment.getDownloadCacheDirectory(), "Cache", pw); in dump()
|
D | MountService.java | 40 import android.os.Environment; 41 import android.os.Environment.UserEnvironment; 603 if (state.equals(Environment.MEDIA_UNMOUNTED)) { in handleSystemReady() 609 } else if (state.equals(Environment.MEDIA_SHARED)) { in handleSystemReady() 623 updatePublicVolumeState(volume, Environment.MEDIA_MOUNTED); in handleSystemReady() 734 if (Environment.MEDIA_UNMOUNTED.equals(state)) { in updatePublicVolumeState() 744 } else if (Environment.MEDIA_MOUNTED.equals(state)) { in updatePublicVolumeState() 786 String state = Environment.MEDIA_REMOVED; in onDaemonConnected() 795 state = Environment.MEDIA_REMOVED; in onDaemonConnected() 797 state = Environment.MEDIA_UNMOUNTED; in onDaemonConnected() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 39 import android.os.Environment; 106 mOrigState = checkMediaState(Environment.MEDIA_MOUNTED); in setUp() 115 boolean newState = checkMediaState(Environment.MEDIA_MOUNTED); in tearDown() 321 String status = Environment.getExternalStorageState(); in checkSd() 322 if (!status.equals(Environment.MEDIA_MOUNTED)) { in checkSd() 326 StatFs sdStats = new StatFs(Environment.getExternalStorageDirectory().getPath()); in checkSd() 334 StatFs intStats = new StatFs(Environment.getDataDirectory().getPath()); in checkInt() 409 File dataDir = Environment.getDataDirectory(); in assertInstall() 770 if (Environment.isExternalStorageEmulated()) { in testInstallSdcard() 878 if (Environment.isExternalStorageEmulated()) { in testReplaceFailSdcard() [all …]
|
/frameworks/support/v4/kitkat/android/support/v4/os/ |
D | EnvironmentCompatKitKat.java | 19 import android.os.Environment; 25 return Environment.getStorageState(path); in getStorageState()
|
/frameworks/base/core/java/android/app/backup/ |
D | WallpaperBackupHelper.java | 23 import android.os.Environment; 60 new File(Environment.getUserSystemDirectory(UserHandle.USER_OWNER), 63 new File(Environment.getUserSystemDirectory(UserHandle.USER_OWNER), 75 new File(Environment.getUserSystemDirectory(UserHandle.USER_OWNER),
|
/frameworks/base/tests/LowStorageTest/src/com/android/lowstoragetest/ |
D | LowStorageTest.java | 23 import android.os.Environment; 51 File path = Environment.getDataDirectory(); in onCreate() 79 File path = Environment.getDataDirectory(); in fillupdisk() 121 File path = Environment.getDataDirectory(); in updateInfo()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | CameraTestHelper.java | 23 import android.os.Environment; 75 Environment.getExternalStorageDirectory(), CAMERA_STRESS_IMAGES_DIRECTORY, 100 Environment.getExternalStorageDirectory(), CAMERA_STRESS_IMAGES_DIRECTORY)); in setupCameraTest() 134 Environment.getExternalStorageDirectory(), CAMERA_STRESS_IMAGES_DIRECTORY)); in cleanupTestImages()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | SpnOverride.java | 28 import android.os.Environment; 57 final File spnFile = new File(Environment.getRootDirectory(), in loadSpnOverrides() 64 Environment.getRootDirectory() + "/" + PARTNER_SPN_OVERRIDE_PATH); in loadSpnOverrides()
|
D | VoiceMailConstants.java | 19 import android.os.Environment; 76 final File vmFile = new File(Environment.getRootDirectory(), in loadVoiceMail() 83 Environment.getRootDirectory() + "/" + PARTNER_VOICEMAIL_PATH); in loadVoiceMail()
|
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/ |
D | EffectsVideoCapture.java | 28 import android.os.Environment; 64 intent.putExtra("OUTPUT_FILENAME", Environment.getExternalStorageDirectory().toString() in testBackEffectsVideoCapture() 71 File file = new File(Environment.getExternalStorageDirectory(), in testBackEffectsVideoCapture()
|
/frameworks/support/v4/java/android/support/v4/content/ |
D | ContextCompat.java | 25 import android.os.Environment; 166 single = buildPath(Environment.getExternalStorageDirectory(), DIR_ANDROID, DIR_OBB, in getObbDirs() 226 single = buildPath(Environment.getExternalStorageDirectory(), DIR_ANDROID, DIR_DATA, in getExternalFilesDirs() 286 single = buildPath(Environment.getExternalStorageDirectory(), DIR_ANDROID, DIR_DATA, in getExternalCacheDirs()
|
/frameworks/base/packages/SharedStorageBackup/src/com/android/sharedstoragebackup/ |
D | SharedStorageAgent.java | 7 import android.os.Environment; 46 final File externalAndroidRoot = new File(Environment.getExternalStorageDirectory(), in onFullBackup() 47 Environment.DIRECTORY_ANDROID); in onFullBackup()
|
D | ObbBackupService.java | 24 import android.os.Environment; 60 File obbDir = Environment.buildExternalStorageAppObbDirs(packageName)[0]; 109 File outFile = Environment.buildExternalStorageAppObbDirs(packageName)[0];
|
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetConfigStore.java | 22 import android.os.Environment; 35 private static final String ipConfigFile = Environment.getDataDirectory() +
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
D | MediaPlayerPowerTest.java | 22 import android.os.Environment; 34 Environment.getExternalStorageDirectory().toString() + "/power_sample_mp3.mp3";
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SELinuxMMAC.java | 22 import android.os.Environment; 62 Environment.getDataDirectory() + "/security/current/selinux_version"; 72 Environment.getDataDirectory() + "/security/current/mac_permissions.xml"; 76 Environment.getRootDirectory() + "/etc/security/mac_permissions.xml"; 84 Environment.getDataDirectory() + "/security/current/seapp_contexts"; 95 Environment.getDataDirectory().toString() + "/system/seapp_hash";
|
/frameworks/base/docs/html/training/basics/data-storage/ |
D | files.jd | 213 storage state by calling {@link android.os.Environment#getExternalStorageState}. If the returned 214 state is equal to {@link android.os.Environment#MEDIA_MOUNTED}, then you can read and 221 String state = Environment.getExternalStorageState(); 222 if (Environment.MEDIA_MOUNTED.equals(state)) { 230 String state = Environment.getExternalStorageState(); 231 if (Environment.MEDIA_MOUNTED.equals(state) || 232 Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { 260 {@link android.os.Environment#getExternalStoragePublicDirectory 264 files, such as {@link android.os.Environment#DIRECTORY_MUSIC} or {@link 265 android.os.Environment#DIRECTORY_PICTURES}. For example:</p> [all …]
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 27 import android.os.Environment; 28 import android.os.Environment.UserEnvironment; 380 final boolean emulated = Environment.isExternalStorageEmulated(); in resolveInstallLocation() 385 final File target = Environment.getDataDirectory(); in resolveInstallLocation() 423 && !Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) { in resolveInstallLocation()
|
/frameworks/testing/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/ |
D | DumpCommand.java | 22 import android.os.Environment; 41 Environment.getLegacyExternalStorageDirectory(), "window_dump.xml");
|
/frameworks/testing/uiautomator/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/ |
D | WakeLoopService.java | 24 import android.os.Environment; 71 FileUtil.get().writeDateToFile(new File(Environment.getExternalStorageDirectory(), in onStartCommand()
|