/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; 65 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs() 66 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs() 67 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs() 68 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs() 74 Environment.buildPath(dir, "autorun.inf").createNewFile(); in testClassify_emptyFactory() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 33 import android.os.Environment; 56 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 57 codeRoot = Environment.getRootDirectory(); in calculateBundledApkRoot() 58 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 59 codeRoot = Environment.getOemDirectory(); in calculateBundledApkRoot() 60 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 61 codeRoot = Environment.getVendorDirectory(); in calculateBundledApkRoot() 62 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 63 codeRoot = Environment.getOdmDirectory(); in calculateBundledApkRoot() 64 } 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 …]
|
D | SELinuxMMAC.java | 22 import android.os.Environment; 79 Environment.getRootDirectory(), "/etc/selinux/plat_mac_permissions.xml")); in sMacPermissions.add() 83 Environment.getSystemExtDirectory(), "/etc/selinux/system_ext_mac_permissions.xml"); 90 Environment.getProductDirectory(), "/etc/selinux/product_mac_permissions.xml"); 99 Environment.getVendorDirectory(), "/etc/selinux/vendor_mac_permissions.xml"); 104 sMacPermissions.add(new File(Environment.getVendorDirectory(), in sMacPermissions.add() 110 Environment.getOdmDirectory(), "/etc/selinux/odm_mac_permissions.xml");
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 26 import android.os.Environment; 368 readPermissions(Environment.buildPath( in SystemConfig() 369 Environment.getRootDirectory(), "etc", "sysconfig"), ALLOW_ALL); in SystemConfig() 372 readPermissions(Environment.buildPath( in SystemConfig() 373 Environment.getRootDirectory(), "etc", "permissions"), ALLOW_ALL); in SystemConfig() 382 readPermissions(Environment.buildPath( in SystemConfig() 383 Environment.getVendorDirectory(), "etc", "sysconfig"), vendorPermissionFlag); in SystemConfig() 384 readPermissions(Environment.buildPath( in SystemConfig() 385 Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); in SystemConfig() 390 readPermissions(Environment.buildPath( in SystemConfig() [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/com/android/server/backup/ |
D | SystemBackupAgent.java | 27 import android.os.Environment; 68 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 70 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 76 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 78 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/minikin/tests/unittest/ |
D | ICUEnvironment.h | 25 class ICUEnvironment : public testing::Environment { 27 ICUEnvironment() : testing::Environment() {} in ICUEnvironment()
|
/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/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/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/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/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/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/core/java/android/content/pm/dex/ |
D | ArtManager.java | 29 import android.os.Environment; 199 File profileDir = Environment.getDataProfilesDePackageDirectory(userId, packageName); in getCurrentProfilePath() 212 File profileDir = Environment.getDataRefProfilesDePackageDirectory(packageName); in getProfileSnapshotFileForName()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | WfaKeyStore.java | 19 import android.os.Environment; 38 Environment.getRootDirectory() + "/etc/security/cacerts_wfa";
|
/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/opt/net/ethernet/java/com/android/server/ethernet/ |
D | EthernetConfigStore.java | 21 import android.os.Environment; 31 private static final String ipConfigFile = Environment.getDataDirectory() +
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 25 import android.os.Environment; 191 mediaMap.put(Environment.DIRECTORY_MUSIC, stats.getAudioBytes()); in measureExactStorage() 192 mediaMap.put(Environment.DIRECTORY_MOVIES, stats.getVideoBytes()); in measureExactStorage() 193 mediaMap.put(Environment.DIRECTORY_PICTURES, stats.getImageBytes()); in measureExactStorage()
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | PerfDataRecorder.java | 20 import android.os.Environment; 158 File file = new File(Environment.getExternalStoragePublicDirectory( in getStorageDir() 159 Environment.DIRECTORY_DOCUMENTS), "loadtest/" + mTimeAsString); in getStorageDir()
|