aboutsummaryrefslogtreecommitdiff
path: root/library/src/main/java/android/os/Environment.java
blob: 67faa7735b73e3fb606b5e298da6a11c43016131 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
package android.os;

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;

        /**
         * For Lollipop +
         * @param userId uid
         */
        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!");
        }
        public File[] getExternalDirsForVold() {
            throw new RuntimeException("Stub!");
        }
        public File[] getExternalDirsForApp() {
            throw new RuntimeException("Stub!");
        }
        public File getMediaDir() {
            throw new RuntimeException("Stub!");
        }
        public File[] buildExternalStorageAppDataDirsForVold(String packageName) {
            throw new RuntimeException("Stub!");
        }
        public File[] buildExternalStorageAppMediaDirsForVold(String packageName) {
            throw new RuntimeException("Stub!");
        }
        public File[] buildExternalStorageAppObbDirsForVold(String packageName) {
            throw new RuntimeException("Stub!");
        }
    }
}