Home
last modified time | relevance | path

Searched refs:Environment (Results 1 – 25 of 251) sorted by relevance

1234567891011

/frameworks/base/core/tests/coretests/src/android/os/
DEnvironmentTest.java19 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/
DApexEnvironment.java22 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/
DPackageAbiHelperImpl.java32 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 …]
DUserDataPreparer.java23 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/
DVolumeInfo.java26 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/
DUserBackupManagerFiles.java19 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/
DPackagePartitions.java22 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/
DSystemConfig.java28 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/
DRingtoneOverlayService.java24 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/
DBackupHelper.kt26 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/
DSystemBackupAgent.java27 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/
DLowStorageTest.java23 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/
DMediaStoreSaver.java24 import android.os.Environment;
39 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in savePNG()
/frameworks/base/core/java/android/security/net/config/
DUserCertificateSource.java19 import android.os.Environment;
34 Environment.getUserConfigDirectory(UserHandle.myUserId()), "cacerts-added")); in UserCertificateSource()
DSystemCertificateSource.java19 import android.os.Environment;
36 File configDir = Environment.getUserConfigDirectory(UserHandle.myUserId()); in SystemCertificateSource()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DPackageParsingPerfTest.kt55 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/
DMediaStoreSaver.java24 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/
DEffectsVideoCapture.java28 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/
DMediaStoreSaver.java24 import android.os.Environment;
40 File folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); in save()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowEnvironment.java20 import android.os.Environment;
31 @Implements(Environment.class)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DVoiceMailConstants.java20 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/
DDisplayDeviceConfig.java19 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/
DSharedStorageAgent.java7 import android.os.Environment;
46 final File externalAndroidRoot = new File(Environment.getExternalStorageDirectory(), in onFullBackup()
47 Environment.DIRECTORY_ANDROID); in onFullBackup()
/frameworks/minikin/tests/unittest/
DICUEnvironment.h32 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/
DMediaPlayerPowerTest.java22 import android.os.Environment;
34 Environment.getExternalStorageDirectory().toString() + "/power_sample_mp3.mp3";

1234567891011