aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/java/android/os/Environment.java
blob: f2da89bb79558f37f8a0ea2803e02559dbc0f8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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!");
        }
    }
}