/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; 49 @IgnoreUnderRavenwood(blockedBy = Environment.class) 78 Environment.buildPath(dir, "DCIM").mkdirs(); in testClassify_emptyDirs() 79 Environment.buildPath(dir, "DCIM", "January").mkdirs(); in testClassify_emptyDirs() 80 Environment.buildPath(dir, "Downloads").mkdirs(); in testClassify_emptyDirs() 81 Environment.buildPath(dir, "LOST.DIR").mkdirs(); in testClassify_emptyDirs() [all …]
|
/frameworks/libs/modules-utils/javatests/android/annotation/ |
D | RestrictedForTests.java | 21 import android.annotation.RestrictedFor.Environment; 51 Environment[] e = annotation.environments(); in testAnnotationParameters() 52 assertThat(e).asList().containsExactly(Environment.SDK_SANDBOX); in testAnnotationParameters() 62 Environment e = annotation.environments()[0]; in testAnnotationParameters_environmentToString() 63 assertThat(e).isEqualTo(Environment.SDK_SANDBOX); in testAnnotationParameters_environmentToString() 72 Environment[] e = annotation.environments(); in testAnnotationParameters_environment_multipleEnvironments() 73 assertThat(e).asList().containsExactly(Environment.SDK_SANDBOX, Environment.SDK_SANDBOX); in testAnnotationParameters_environment_multipleEnvironments() 76 @RestrictedFor(environments=Environment.SDK_SANDBOX, from=33) 80 @RestrictedFor(environments=Environment.SDK_SANDBOX, from=0) 81 @RestrictedFor(environments=Environment.SDK_SANDBOX, from=0) [all …]
|
/frameworks/base/core/java/android/content/ |
D | ApexEnvironment.java | 21 import android.os.Environment; 67 return Environment.buildPath( in getDeviceProtectedDataDir() 68 Environment.getDataMiscDirectory(), APEX_DATA, mApexModuleName); in getDeviceProtectedDataDir() 80 return Environment.buildPath( in getDeviceProtectedDataDirForUser() 81 Environment.getDataMiscDeDirectory(user.getIdentifier()), APEX_DATA, in getDeviceProtectedDataDirForUser() 94 return Environment.buildPath( in getCredentialProtectedDataDirForUser() 95 Environment.getDataMiscCeDirectory(user.getIdentifier()), APEX_DATA, in getCredentialProtectedDataDirForUser()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ambient/touch/ |
D | TouchMonitorTest.java | 105 private static class Environment { class in TouchMonitorTest 129 Environment(Set<TouchHandler> handlers, KosmosJavaAdapter kosmos) { in Environment() method in TouchMonitorTest.Environment 218 final Environment environment = new Environment(Stream.of(touchHandler) in testConfigurationListenerUpdatesBounds() 240 final Environment environment = new Environment(Stream.of(touchHandler) in testReportedDisplayBounds() 271 final Environment environment = new Environment(Stream.of(touchHandler) in testEntryTouchZone() 300 final Environment environment = new Environment(Stream.of(touchHandler, unzonedTouchHandler) in testSessionCount() 342 final Environment environment = new Environment(Stream.of(touchHandler) in testNoActiveSessionWhenHandlerDisabled() 358 final Environment environment = new Environment(Stream.of(touchHandler) in testInputEventPropagation() 378 final Environment environment = new Environment(Stream.of(touchHandler) in testInputEventPropagationAfterRemoval() 402 final Environment environment = new Environment(Stream.of(touchHandler) in testInputGesturePropagation() [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/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 35 import android.os.Environment; 69 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 70 codeRoot = Environment.getRootDirectory(); in calculateBundledApkRoot() 71 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 72 codeRoot = Environment.getOemDirectory(); in calculateBundledApkRoot() 73 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 74 codeRoot = Environment.getVendorDirectory(); in calculateBundledApkRoot() 75 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 76 codeRoot = Environment.getOdmDirectory(); in calculateBundledApkRoot() 77 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot() [all …]
|
/frameworks/base/core/java/android/os/storage/ |
D | VolumeInfo.java | 27 import android.os.Environment; 128 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTED, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 129 sStateToEnvironment.put(VolumeInfo.STATE_CHECKING, Environment.MEDIA_CHECKING); in sStateToEnvironment.put() 130 sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED, Environment.MEDIA_MOUNTED); in sStateToEnvironment.put() 131 … sStateToEnvironment.put(VolumeInfo.STATE_MOUNTED_READ_ONLY, Environment.MEDIA_MOUNTED_READ_ONLY); in sStateToEnvironment.put() 132 sStateToEnvironment.put(VolumeInfo.STATE_FORMATTING, Environment.MEDIA_UNMOUNTED); in sStateToEnvironment.put() 133 sStateToEnvironment.put(VolumeInfo.STATE_EJECTING, Environment.MEDIA_EJECTING); in sStateToEnvironment.put() 134 sStateToEnvironment.put(VolumeInfo.STATE_UNMOUNTABLE, Environment.MEDIA_UNMOUNTABLE); in sStateToEnvironment.put() 135 sStateToEnvironment.put(VolumeInfo.STATE_REMOVED, Environment.MEDIA_REMOVED); in sStateToEnvironment.put() 136 sStateToEnvironment.put(VolumeInfo.STATE_BAD_REMOVAL, Environment.MEDIA_BAD_REMOVAL); in sStateToEnvironment.put() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | PolicyPathProvider.java | 19 import android.os.Environment; 32 return Environment.getDataSystemDirectory(); in getDataSystemDirectory() 40 return Environment.getUserSystemDirectory(userId); in getUserSystemDirectory()
|
/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/services/core/java/com/android/server/ |
D | SystemConfig.java | 31 import android.os.Environment; 626 readPermissions(parser, Environment.buildPath( in readAllPermissions() 627 Environment.getRootDirectory(), "etc", "sysconfig"), ALLOW_ALL); in readAllPermissions() 630 readPermissions(parser, Environment.buildPath( in readAllPermissions() 631 Environment.getRootDirectory(), "etc", "permissions"), ALLOW_ALL); in readAllPermissions() 640 readPermissions(parser, Environment.buildPath( in readAllPermissions() 641 Environment.getVendorDirectory(), "etc", "sysconfig"), vendorPermissionFlag); in readAllPermissions() 642 readPermissions(parser, Environment.buildPath( in readAllPermissions() 643 Environment.getVendorDirectory(), "etc", "permissions"), vendorPermissionFlag); in readAllPermissions() 648 readPermissions(parser, Environment.buildPath( in readAllPermissions() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackagePartitions.java | 24 import android.os.Environment; 70 new SystemPartition(Environment.getRootDirectory(), 73 new SystemPartition(Environment.getVendorDirectory(), 76 new SystemPartition(Environment.getOdmDirectory(), 79 new SystemPartition(Environment.getOemDirectory(), 82 new SystemPartition(Environment.getProductDirectory(), 85 new SystemPartition(Environment.getSystemExtDirectory(),
|
/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; 37 File configDir = Environment.getUserConfigDirectory(UserHandle.myUserId()); in SystemCertificateSource()
|
/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/content/pm/dex/ |
D | ArtManager.java | 29 import android.os.Environment; 199 File profileDir = Environment.getDataProfilesDePackageDirectory(userId, packageName); in getCurrentProfilePath() 209 File profileDir = Environment.getDataRefProfilesDePackageDirectory(packageName); in getReferenceProfilePath() 222 File profileDir = Environment.getDataRefProfilesDePackageDirectory(packageName); in getProfileSnapshotFileForName()
|
/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 | 25 import android.os.Environment; 65 intent.putExtra("OUTPUT_FILENAME", Environment.getExternalStorageDirectory().toString() in testBackEffectsVideoCapture() 72 File file = new File(Environment.getExternalStorageDirectory(), in testBackEffectsVideoCapture()
|
/frameworks/libs/modules-utils/java/android/annotation/ |
D | RestrictedFor.java | 49 Environment[] environments(); in environments() 58 enum Environment { enum
|
/frameworks/base/services/core/java/com/android/server/backup/ |
D | SystemBackupAgent.java | 30 import android.os.Environment; 79 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 81 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM), 87 Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM).getAbsolutePath(); 89 new File(Environment.getUserSystemDirectory(UserHandle.USER_SYSTEM),
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DeviceStateToLayoutMap.java | 21 import android.os.Environment; 87 final File configFileFromDataDir = Environment.buildPath(Environment.getDataDirectory(), in getConfigFile() 92 return Environment.buildPath(Environment.getVendorDirectory(), CONFIG_FILE_PATH); in getConfigFile()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowEnvironment.java | 20 import android.os.Environment; 31 @Implements(Environment.class)
|
/frameworks/base/apct-tests/perftests/packagemanager/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/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()
|