-
Notifications
You must be signed in to change notification settings - Fork 4
/
android.js
224 lines (220 loc) · 10.1 KB
/
android.js
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
/**
* Created by ChalkPE on 2015-03-22.
*/
var android = {};
android.app = {};
android.app.AlertDialog = function(){};
android.app.AlertDialog.Builder = function(){};
android.app.AlertDialog.Builder.setView = function(){};
android.app.AlertDialog.Builder.show = function(){};
android.content = {};
android.content.Context = function(){};
android.content.Context.getFilesDir = function(){};
android.content.Context.getResources = function(){};
android.content.Context.getWindow = function(){};
android.content.Context.getWindowManager = function(){};
android.content.Context.runOnUiThread = function(){};
android.content.Context.setTheme = function(){};
android.content.res = {};
android.content.res.Resources = function(){};
android.content.res.Resources.getDisplayMetrics = function(){};
android.graphics = {};
android.graphics.drawable = {};
android.graphics.drawable.BitmapDrawable = function(){};
android.graphics.drawable.ColorDrawable = function(){};
android.graphics.drawable.StateListDrawable = function(){};
android.graphics.drawable.StateListDrawable.addState = function(){};
android.graphics.drawable.shapes = {};
android.graphics.Bitmap = function(){};
android.graphics.Bitmap.Config = function(){};
android.graphics.Bitmap.Config.ARGB_8888 = NaN;
android.graphics.Bitmap.createBitmap = function(){};
android.graphics.Bitmap.createScaledBitmap = function(){};
android.graphics.BitmapFactory = function(){};
android.graphics.BitmapFactory.decodeStream = function(){};
android.graphics.Canvas = function(){};
android.graphics.Canvas.drawBitmap = function(){};
android.graphics.Canvas.drawCircle = function(){};
android.graphics.Canvas.drawPath = function(){};
android.graphics.Canvas.drawRect = function(){};
android.graphics.Canvas.drawText = function(){};
android.graphics.Color = function(){};
android.graphics.Color.DKGRAY = NaN;
android.graphics.Color.TRANSPARENT = NaN;
android.graphics.Color.argb = function(){};
android.graphics.Color.parseColor = function(){};
android.graphics.Color.blue = function(){};
android.graphics.Color.green = function(){};
android.graphics.Color.red = function(){};
android.graphics.Color.rgb = function(){};
android.graphics.Paint = function(){};
android.graphics.Paint.ANTI_ALIAS_FLAG = NaN;
android.graphics.Paint.Join = function(){};
android.graphics.Paint.Join.MITER = NaN;
android.graphics.Paint.Style = function(){};
android.graphics.Paint.Style.FILL = NaN;
android.graphics.Paint.Style.STROKE = NaN;
android.graphics.Paint.setAlpha = function(){};
android.graphics.Paint.setColor = function(){};
android.graphics.Paint.setShader = function(){};
android.graphics.Paint.setStrokeJoin = function(){};
android.graphics.Paint.setStrokeWidth = function(){};
android.graphics.Paint.setStyle = function(){};
android.graphics.Path = function(){};
android.graphics.Path.lineTo = function(){};
android.graphics.Path.moveTo = function(){};
android.graphics.Typeface = function(){};
android.graphics.Typeface.MONOSPACE = null;
android.graphics.Typeface.createFromFile = function(){};
android.os = {};
android.os.Environment = function(){};
android.os.Environment.getExternalStorageDirectory = function(){};
android.text = {};
android.text.Html = function(){};
android.text.Html.fromHtml = function(){};
android.util = {};
android.util.DisplayMetrics = function(){};
android.util.DisplayMetrics.density = NaN;
android.util.DisplayMetrics.heightPixels = NaN;
android.util.DisplayMetrics.widthPixels = NaN;
android.util.TypedValue = function(){};
android.util.TypedValue.COMPLEX_UNIT_DIP = NaN;
android.util.TypedValue.COMPLEX_UNIT_PX = NaN;
android.util.TypedValue.applyDimension = function(){};
android.view = {};
android.view.Display = function(){};
android.view.Display.getHeight = function(){};
android.view.Display.getWidth = function(){};
android.view.Gravity = function(){};
android.view.Gravity.BOTTOM = NaN;
android.view.Gravity.CENTER = NaN;
android.view.Gravity.CENTER_VERTICAL = NaN;
android.view.Gravity.LEFT = NaN;
android.view.Gravity.RIGHT = NaN;
android.view.Gravity.TOP = NaN;
android.view.Gravity.MotionEvent = NaN;
android.view.MotionEvent = function(){};
android.view.MotionEvent.ACTION_CANCEL = NaN;
android.view.MotionEvent.ACTION_DOWN = NaN;
android.view.MotionEvent.ACTION_HOVER_ENTER = NaN;
android.view.MotionEvent.ACTION_HOVER_EXIT = NaN;
android.view.MotionEvent.ACTION_MOVE = NaN;
android.view.MotionEvent.ACTION_UP = NaN;
android.view.View = function(){};
android.view.View.FOCUS_DOWN = NaN;
android.view.View.INVISIBLE = NaN;
android.view.View.VISIBLE = NaN;
android.view.View.OnClickListener = function(){};
android.view.View.OnTouchListener = function(){};
android.view.View.getBackground = function(){};
android.view.View.getHeight = function(){};
android.view.View.getLayoutParams = function(){};
android.view.View.setBackground = function(){};
android.view.View.setBackgroundColor = function(){};
android.view.View.setBackgroundDrawable = function(){};
android.view.View.setLayoutParams = function(){};
android.view.View.setOnClickListener = function(){};
android.view.View.setOnTouchListener = function(){};
android.view.View.setPadding = function(){};
android.view.View.setVisibility = function(){};
android.view.View.setX = function(){};
android.view.View.setY = function(){};
android.view.ViewGroup = function(){};
android.view.ViewGroup.prototype = new android.view.View();
android.view.ViewGroup.prototype.constructor = android.view.View;
android.view.ViewGroup.LayoutParams = function(){};
android.view.ViewGroup.LayoutParams.MATCH_PARENT = NaN;
android.view.ViewGroup.LayoutParams.WRAP_CONTENT = NaN;
android.view.ViewGroup.LayoutParams.setMargins = function(){};
android.view.ViewGroup.addView = function(){};
android.view.ViewGroup.removeView = function(){};
android.view.Window = function(){};
android.view.Window.getDecorView = function(){};
android.view.WindowManager = function(){};
android.view.WindowManager.getDefaultDisplay = function(){};
android.webkit = {};
android.webkit.WebSettings = function(){};
android.webkit.WebSettings.setJavaScriptEnabled = function(){};
android.webkit.WebView = function(){};
android.webkit.WebView.prototype = new android.widget.AbsoluteLayout();
android.webkit.WebView.prototype.constructor = android.widget.AbsoluteLayout;
android.webkit.WebView.getSettings = function(){};
android.webkit.WebView.loadUrl = function(){};
android.widget = {};
android.widget.AbsoluteLayout = function(){};
android.widget.AbsoluteLayout.prototype = new android.view.ViewGroup();
android.widget.AbsoluteLayout.prototype.constructor = android.view.ViewGroup;
android.widget.Button = function(){};
android.widget.Button.prototype = new android.widget.TextView();
android.widget.Button.prototype.constructor = android.widget.TextView;
android.widget.FrameLayout = function(){};
android.widget.FrameLayout.prototype = new android.view.ViewGroup();
android.widget.FrameLayout.prototype.constructor = android.view.ViewGroup;
android.widget.ImageView = function(){};
android.widget.ImageView.prototype = new android.view.View();
android.widget.ImageView.prototype.constructor = android.view.View;
android.widget.ImageView.ScaleType = function(){};
android.widget.ImageView.ScaleType.CENTER_INSIDE = NaN;
android.widget.ImageView.setImageBitmap = function(){};
android.widget.ImageView.setScaleType = function(){};
android.widget.LinearLayout = function(){};
android.widget.LinearLayout.prototype = new android.view.ViewGroup();
android.widget.LinearLayout.prototype.constructor = android.view.ViewGroup;
android.widget.LinearLayout.setGravity = function(){};
android.widget.LinearLayout.setOrientation = function(){};
android.widget.PopupWindow = function(){};
android.widget.PopupWindow.dismiss = function(){};
android.widget.PopupWindow.setContentView = function(){};
android.widget.PopupWindow.setFocusable = function(){};
android.widget.PopupWindow.setHeight = function(){};
android.widget.PopupWindow.setTouchable = function(){};
android.widget.PopupWindow.setWidth = function(){};
android.widget.PopupWindow.setWindowLayoutMode = function(){};
android.widget.PopupWindow.showAtLocation = function(){};
android.widget.PopupWindow.update = function(){};
android.widget.RelativeLayout = function(){};
android.widget.RelativeLayout.prototype = new android.view.ViewGroup();
android.widget.RelativeLayout.prototype.constructor = android.view.ViewGroup;
android.widget.ScrollView = function(){};
android.widget.ScrollView.prototype = new android.widget.FrameLayout();
android.widget.ScrollView.prototype.constructor = android.widget.FrameLayout;
android.widget.ScrollView.fullScroll = function(){};
android.widget.TextView = function(){};
android.widget.TextView.prototype = new android.view.View();
android.widget.TextView.prototype.constructor = android.view.View;
android.widget.TextView.setHint = function(){};
android.widget.TextView.setHintTextColor = function(){};
android.widget.TextView.setShadowLayer = function(){};
android.widget.TextView.setSingleLine = function(){};
android.widget.TextView.setText = function(){};
android.widget.TextView.setTextSize = function(){};
android.widget.TextView.setTextColor = function(){};
android.widget.TextView.setTypeface = function(){};
android.widget.TextView.setLineSpacing = function(){};
android.widget.Toast = function(){};
android.widget.Toast.LENGTH_LONG = NaN;
android.widget.Toast.LENGTH_SHORT = NaN;
android.widget.Toast.makeText = function(){};
android.R = {};
android.R.attr = {};
android.R.attr.state_pressed = NaN;
android.R.style = {};
android.R.style.Theme_Holo = NaN;
var com = {};
com.mojang = {};
com.mojang.minecraftpe = {};
com.mojang.minecraftpe.MainActivity = function(){};
com.mojang.minecraftpe.MainActivity.currentMainActivity = {};
com.mojang.minecraftpe.MainActivity.currentMainActivity.get = function(){};
var net = {};
net.zhuoweizhang = {};
net.zhuoweizhang.mcpelauncher = {};
net.zhuoweizhang.mcpelauncher.ScriptManager = function(){};
net.zhuoweizhang.mcpelauncher.ScriptManager.scripts = {};
net.zhuoweizhang.mcpelauncher.ScriptManager.androidContext = new android.content.Context();
var org = {};
org.mozilla = {};
org.mozilla.javascript = {};
org.mozilla.javascript.ScriptableObject = function(){};
org.mozilla.javascript.ScriptableObject.hasProperty = function(){};
org.mozilla.javascript.ScriptableObject.putProperty = function(){};