Java Code Examples for android.os.Environment#getDataSystemDeDirectory()

The following examples show how to use android.os.Environment#getDataSystemDeDirectory() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
public AtomicFile getFile(String filename) {
    return new AtomicFile(new File(Environment.getDataSystemDeDirectory(), filename));
}
 
Example 2
@VisibleForTesting
protected File getSyntheticPasswordDirectoryForUser(int userId) {
    return new File(Environment.getDataSystemDeDirectory(userId) ,SYNTHETIC_PASSWORD_DIRECTORY);
}
 
Example 3
@VisibleForTesting
protected File getDataSystemDeDirectory(int userId) {
    return Environment.getDataSystemDeDirectory(userId);
}
 
Example 4
private File getRingtoneCacheDir(int userId) {
    final File cacheDir = new File(Environment.getDataSystemDeDirectory(userId), "ringtones");
    cacheDir.mkdir();
    SELinux.restorecon(cacheDir);
    return cacheDir;
}