/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 | 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; 82 Environment.getRootDirectory(), "/etc/selinux/plat_mac_permissions.xml")); in sMacPermissions.add() 86 Environment.getProductDirectory(), "/etc/selinux/product_mac_permissions.xml"); 95 Environment.getVendorDirectory(), "/etc/selinux/vendor_mac_permissions.xml"); 100 sMacPermissions.add(new File(Environment.getVendorDirectory(), in sMacPermissions.add() 106 Environment.getOdmDirectory(), "/etc/selinux/odm_mac_permissions.xml");
|
/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/core/java/com/android/server/ |
D | SystemConfig.java | 26 import android.os.Environment; 350 readPermissions(Environment.buildPath( in SystemConfig() 351 Environment.getRootDirectory(), "etc", "sysconfig"), ALLOW_ALL); in SystemConfig() 354 readPermissions(Environment.buildPath( in SystemConfig() 355 Environment.getRootDirectory(), "etc", "permissions"), ALLOW_ALL); in SystemConfig() 364 readPermissions(Environment.buildPath( in SystemConfig() 365 Environment.getVendorDirectory(), "etc", "sysconfig"), vendorPermissionFlag); in SystemConfig() 366 readPermissions(Environment.buildPath( in SystemConfig() 367 Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); in SystemConfig() 372 readPermissions(Environment.buildPath( in SystemConfig() [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/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/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/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/tests/FlickerTests/lib/src/com/android/server/wm/flicker/monitor/ |
D | ITransitionMonitor.java | 19 import android.os.Environment; 28 Path OUTPUT_DIR = Paths.get(Environment.getExternalStorageDirectory().toString(), "flicker");
|
/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/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";
|
/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/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/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/core/java/android/app/backup/ |
D | WallpaperBackupHelper.java | 21 import android.os.Environment; 49 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
|