diff options
author | Trumeet <liangyuteng12345@gmail.com> | 2017-09-08 21:02:47 +0800 |
---|---|---|
committer | Trumeet <liangyuteng12345@gmail.com> | 2017-09-08 21:02:47 +0800 |
commit | b8c9ff8b8d04a1107405bbcd6539eec05f8a1b4e (patch) | |
tree | c68f696f8ec1c74d28e90fb870ce8eada1bef344 /library/src/main/java/android/os/Environment.java | |
parent | 3669d120bcd3c2512fa0530566c78c3e80738a8d (diff) | |
download | RedirectStorage-b8c9ff8b8d04a1107405bbcd6539eec05f8a1b4e.tar RedirectStorage-b8c9ff8b8d04a1107405bbcd6539eec05f8a1b4e.tar.gz RedirectStorage-b8c9ff8b8d04a1107405bbcd6539eec05f8a1b4e.tar.bz2 RedirectStorage-b8c9ff8b8d04a1107405bbcd6539eec05f8a1b4e.zip |
Remove hidden api1.0_test
Diffstat (limited to 'library/src/main/java/android/os/Environment.java')
-rw-r--r-- | library/src/main/java/android/os/Environment.java | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/library/src/main/java/android/os/Environment.java b/library/src/main/java/android/os/Environment.java new file mode 100644 index 0000000..f2da89b --- /dev/null +++ b/library/src/main/java/android/os/Environment.java @@ -0,0 +1,109 @@ +package android.os; + +import android.os.storage.StorageVolume; + +import java.io.File; + +/** + * Created by Trumeet on 2017/9/8. + * Just to pass compile + * @author Trumeet + */ + +public class Environment { + public Environment() { + throw new RuntimeException("Stub!"); + } + + public static File getRootDirectory() { + throw new RuntimeException("Stub!"); + } + + public static File getDataDirectory() { + throw new RuntimeException("Stub!"); + } + + public static File getExternalStorageDirectory() { + throw new RuntimeException("Stub!"); + } + + public static File getExternalStoragePublicDirectory(String type) { + throw new RuntimeException("Stub!"); + } + + public static File getDownloadCacheDirectory() { + throw new RuntimeException("Stub!"); + } + + public static String getExternalStorageState() { + throw new RuntimeException("Stub!"); + } + + /** @deprecated */ + @Deprecated + public static String getStorageState(File path) { + throw new RuntimeException("Stub!"); + } + + public static String getExternalStorageState(File path) { + throw new RuntimeException("Stub!"); + } + + public static boolean isExternalStorageRemovable() { + throw new RuntimeException("Stub!"); + } + + public static boolean isExternalStorageRemovable(File path) { + throw new RuntimeException("Stub!"); + } + + public static boolean isExternalStorageEmulated() { + throw new RuntimeException("Stub!"); + } + + public static boolean isExternalStorageEmulated(File path) { + throw new RuntimeException("Stub!"); + } + + public static class UserEnvironment { + private final int mUserId; + public UserEnvironment(int userId) { + mUserId = userId; + } + public File[] getExternalDirs() { + throw new RuntimeException("Stub!"); + } + @Deprecated + public File getExternalStorageDirectory() { + throw new RuntimeException("Stub!"); + } + @Deprecated + public File getExternalStoragePublicDirectory(String type) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStoragePublicDirs(String type) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAndroidDataDirs() { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAndroidObbDirs() { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAppDataDirs(String packageName) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAppMediaDirs(String packageName) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAppObbDirs(String packageName) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAppFilesDirs(String packageName) { + throw new RuntimeException("Stub!"); + } + public File[] buildExternalStorageAppCacheDirs(String packageName) { + throw new RuntimeException("Stub!"); + } + } +} |