Home
last modified time | relevance | path

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

123456789

/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;
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/
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 …]
DSELinuxMMAC.java22 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/
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/core/java/com/android/server/
DSystemConfig.java26 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/
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/com/android/server/backup/
DSystemBackupAgent.java27 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/
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/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/SSHealingBrush/src/rs/example/android/com/healingbrush/
DMediaStoreSaver.java24 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/
DMediaStoreSaver.java24 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/
DITransitionMonitor.java19 import android.os.Environment;
28 Path OUTPUT_DIR = Paths.get(Environment.getExternalStorageDirectory().toString(), "flicker");
/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()
DObbBackupService.java24 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/
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/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";
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DWfaKeyStore.java19 import android.os.Environment;
38 Environment.getRootDirectory() + "/etc/security/cacerts_wfa";
/frameworks/base/core/java/android/content/pm/dex/
DArtManager.java29 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/
DEthernetConfigStore.java21 import android.os.Environment;
31 private static final String ipConfigFile = Environment.getDataDirectory() +
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageMeasurement.java25 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/
DWallpaperBackupHelper.java21 import android.os.Environment;
49 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),

123456789