/frameworks/base/core/tests/coretests/src/android/os/ |
D | EnvironmentTest.java | 19 import static android.os.Environment.HAS_ANDROID; 20 import static android.os.Environment.HAS_DCIM; 21 import static android.os.Environment.HAS_DOWNLOADS; 22 import static android.os.Environment.HAS_OTHER; 23 import static android.os.Environment.classifyExternalStorageDirectory; 91 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs() 92 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs() 93 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs() 94 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs() 100 Environment.buildPath(dir, "autorun.inf").createNewFile(); in testClassify_emptyFactory() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ApexEnvironment.java | 22 import android.os.Environment; 69 return Environment.buildPath( in getDeviceProtectedDataDir() 70 Environment.getDataMiscDirectory(), APEX_DATA, mApexModuleName); in getDeviceProtectedDataDir() 82 return Environment.buildPath( in getDeviceProtectedDataDirForUser() 83 Environment.getDataMiscDeDirectory(user.getIdentifier()), APEX_DATA, in getDeviceProtectedDataDirForUser() 96 return Environment.buildPath( in getCredentialProtectedDataDirForUser() 97 Environment.getDataMiscCeDirectory(user.getIdentifier()), APEX_DATA, in getCredentialProtectedDataDirForUser()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 32 import android.os.Environment; 57 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 58 codeRoot = Environment.getRootDirectory(); in calculateBundledApkRoot() 59 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 60 codeRoot = Environment.getOemDirectory(); in calculateBundledApkRoot() 61 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 62 codeRoot = Environment.getVendorDirectory(); in calculateBundledApkRoot() 63 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 64 codeRoot = Environment.getOdmDirectory(); in calculateBundledApkRoot() 65 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot() [all …]
|
D | UserDataPreparer.java | 23 import android.os.Environment; 169 .listFilesOrEmpty(Environment.getDataUserDeDirectory(volumeUuid))); in reconcileUsers() 171 .listFilesOrEmpty(Environment.getDataUserCeDirectory(volumeUuid))); in reconcileUsers() 173 .listFilesOrEmpty(Environment.getDataSystemDeDirectory())); in reconcileUsers() 175 .listFilesOrEmpty(Environment.getDataSystemCeDirectory())); in reconcileUsers() 177 .listFilesOrEmpty(Environment.getDataMiscCeDirectory())); in reconcileUsers() 230 return Environment.getDataMiscCeDirectory(userId); in getDataMiscCeDirectory() 235 return Environment.getDataSystemCeDirectory(userId); in getDataSystemCeDirectory() 240 return Environment.getDataMiscDeDirectory(userId); in getDataMiscDeDirectory() 245 return Environment.getUserSystemDirectory(userId); in getUserSystemDirectory() [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | VolumeInfo.java | 26 import android.os.Environment; 124 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 125 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING); in sStateToEnvironment.put() 126 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED); in sStateToEnvironment.put() 127 … sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY); in sStateToEnvironment.put() 128 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 129 sStateToEnvironment.put(VolumeInfo.STATE_EJECTING, Environment.MEDIA_EJECTING); in sStateToEnvironment.put() 130 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTABLE, Environment.MEDIA_UNMOUNTABLE); in sStateToEnvironment.put() 131 sStateToEnvironment.put(VolumeInfo.STATE_REMOVED, Environment.MEDIA_REMOVED); in sStateToEnvironment.put() 132 sStateToEnvironment.put(VolumeInfo.STATE_BAD_REMOVAL, Environment.MEDIA_BAD_REMOVAL); in sStateToEnvironment.put() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerFiles.java | 19 import android.os.Environment; 31 return Environment.getDataSystemCeDirectory(userId); in getBaseDir() 40 return new File(Environment.getDataDirectory(), BACKUP_PERSISTENT_DIR); in getBaseStateDir() 49 return new File(Environment.getDownloadCacheDirectory(), BACKUP_STAGING_DIR); in getDataDir()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackagePartitions.java | 22 import android.os.Environment; 67 new SystemPartition(Environment.getRootDirectory(), PARTITION_SYSTEM, 69 new SystemPartition(Environment.getVendorDirectory(), PARTITION_VENDOR, 71 new SystemPartition(Environment.getOdmDirectory(), PARTITION_ODM, 73 new SystemPartition(Environment.getOemDirectory(), PARTITION_OEM, 75 new SystemPartition(Environment.getProductDirectory(), PARTITION_PRODUCT, 77 new SystemPartition(Environment.getSystemExtDirectory(), PARTITION_SYSTEM_EXT,
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 28 import android.os.Environment; 462 readPermissions(Environment.buildPath( in readAllPermissions() 463 Environment.getRootDirectory(), "etc", "sysconfig"), ALLOW_ALL); in readAllPermissions() 466 readPermissions(Environment.buildPath( in readAllPermissions() 467 Environment.getRootDirectory(), "etc", "permissions"), ALLOW_ALL); in readAllPermissions() 476 readPermissions(Environment.buildPath( in readAllPermissions() 477 Environment.getVendorDirectory(), "etc", "sysconfig"), vendorPermissionFlag); in readAllPermissions() 478 readPermissions(Environment.buildPath( in readAllPermissions() 479 Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); in readAllPermissions() 484 readPermissions(Environment.buildPath( in readAllPermissions() [all …]
|
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/ |
D | RingtoneOverlayService.java | 24 import android.os.Environment; 65 System.RINGTONE, Environment.DIRECTORY_RINGTONES); in updateRingtones() 67 System.NOTIFICATION_SOUND, Environment.DIRECTORY_NOTIFICATIONS); in updateRingtones() 69 System.ALARM_ALERT, Environment.DIRECTORY_ALARMS); in updateRingtones() 76 final File destDir = Environment.getExternalStoragePublicDirectory(subPath); in copyResourceAndSetAsSound()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/backup/ |
D | BackupHelper.kt | 26 import android.os.Environment 90 val file = Environment.buildPath(context.filesDir, data.key) in restoreEntity() 115 val file = Environment.buildPath(filesDir, BackupHelper.CONTROLS) in getPPControlsFile() 117 val dest = Environment.buildPath(filesDir, in getPPControlsFile()
|
/frameworks/base/services/core/java/com/android/server/backup/ |
D | SystemBackupAgent.java | 27 import android.os.Environment; 69 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 71 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 77 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 79 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
|
/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/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | MediaStoreSaver.java | 24 import android.os.Environment; 39 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in savePNG()
|
/frameworks/base/core/java/android/security/net/config/ |
D | UserCertificateSource.java | 19 import android.os.Environment; 34 Environment.getUserConfigDirectory(UserHandle.myUserId()), "cacerts-added")); in UserCertificateSource()
|
D | SystemCertificateSource.java | 19 import android.os.Environment; 36 File configDir = Environment.getUserConfigDirectory(UserHandle.myUserId()); in SystemCertificateSource()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | PackageParsingPerfTest.kt | 55 Environment.getRootDirectory(), in <lambda>() 56 Environment.getVendorDirectory(), in <lambda>() 57 Environment.getOdmDirectory(), in <lambda>() 58 Environment.getOemDirectory(), in <lambda>() 59 Environment.getOemDirectory(), in <lambda>() 60 Environment.getSystemExtDirectory() in <lambda>()
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
D | MediaStoreSaver.java | 24 import android.os.Environment; 40 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in save()
|
/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/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
D | MediaStoreSaver.java | 24 import android.os.Environment; 40 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in save()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowEnvironment.java | 20 import android.os.Environment; 31 @Implements(Environment.class)
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | VoiceMailConstants.java | 20 import android.os.Environment; 78 final File vmFile = new File(Environment.getRootDirectory(), in loadVoiceMail() 85 Environment.getRootDirectory() + "/" + PARTNER_VOICEMAIL_PATH); in loadVoiceMail()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceConfig.java | 19 import android.os.Environment; 66 config.initFromFile(Environment.buildPath( in create() 67 Environment.getProductDirectory(), ETC_DIR, DISPLAY_CONFIG_DIR, filename)); in create()
|
/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()
|
/frameworks/minikin/tests/unittest/ |
D | ICUEnvironment.h | 32 class ICUEnvironment : public testing::Environment { 34 ICUEnvironment() : testing::Environment(), mData(nullptr), mSize(0) {} in ICUEnvironment()
|
/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";
|