The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.test.mock; |
| 18 | |
Dianne Hackborn | a750a63 | 2015-06-16 17:18:23 -0700 | [diff] [blame] | 19 | import android.annotation.SystemApi; |
Tony Mak | 46aabe5 | 2016-11-14 12:53:06 +0000 | [diff] [blame] | 20 | import android.app.IApplicationThread; |
| 21 | import android.app.IServiceConnection; |
Jeff Sharkey | 8439ac0 | 2017-12-12 17:26:23 -0700 | [diff] [blame] | 22 | import android.content.BroadcastReceiver; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 23 | import android.content.ComponentName; |
| 24 | import android.content.ContentResolver; |
| 25 | import android.content.Context; |
| 26 | import android.content.Intent; |
| 27 | import android.content.IntentFilter; |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 28 | import android.content.IntentSender; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | import android.content.ServiceConnection; |
| 30 | import android.content.SharedPreferences; |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 31 | import android.content.pm.ApplicationInfo; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | import android.content.pm.PackageManager; |
| 33 | import android.content.res.AssetManager; |
Dianne Hackborn | 756220b | 2012-08-14 16:45:30 -0700 | [diff] [blame] | 34 | import android.content.res.Configuration; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 35 | import android.content.res.Resources; |
Vasu Nori | 74f170f | 2010-06-01 18:06:18 -0700 | [diff] [blame] | 36 | import android.database.DatabaseErrorHandler; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 37 | import android.database.sqlite.SQLiteDatabase; |
| 38 | import android.graphics.Bitmap; |
| 39 | import android.graphics.drawable.Drawable; |
| 40 | import android.net.Uri; |
| 41 | import android.os.Bundle; |
| 42 | import android.os.Handler; |
Dianne Hackborn | ff17024 | 2014-11-19 10:59:01 -0800 | [diff] [blame] | 43 | import android.os.IBinder; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | import android.os.Looper; |
Dianne Hackborn | 79af1dd | 2012-08-16 16:42:52 -0700 | [diff] [blame] | 45 | import android.os.UserHandle; |
Jeff Brown | a492c3a | 2012-08-23 19:48:44 -0700 | [diff] [blame] | 46 | import android.view.Display; |
Jeff Sharkey | 8439ac0 | 2017-12-12 17:26:23 -0700 | [diff] [blame] | 47 | import android.view.DisplayAdjustments; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | |
| 49 | import java.io.File; |
| 50 | import java.io.FileInputStream; |
| 51 | import java.io.FileNotFoundException; |
| 52 | import java.io.FileOutputStream; |
| 53 | import java.io.IOException; |
| 54 | import java.io.InputStream; |
Jeff Sharkey | 8439ac0 | 2017-12-12 17:26:23 -0700 | [diff] [blame] | 55 | import java.util.concurrent.Executor; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 56 | |
| 57 | /** |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 58 | * A mock {@link android.content.Context} class. All methods are non-functional and throw |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 59 | * {@link java.lang.UnsupportedOperationException}. You can use this to inject other dependencies, |
| 60 | * mocks, or monitors into the classes you are testing. |
| 61 | */ |
| 62 | public class MockContext extends Context { |
| 63 | |
| 64 | @Override |
| 65 | public AssetManager getAssets() { |
| 66 | throw new UnsupportedOperationException(); |
| 67 | } |
| 68 | |
| 69 | @Override |
| 70 | public Resources getResources() { |
| 71 | throw new UnsupportedOperationException(); |
| 72 | } |
| 73 | |
| 74 | @Override |
| 75 | public PackageManager getPackageManager() { |
| 76 | throw new UnsupportedOperationException(); |
| 77 | } |
| 78 | |
| 79 | @Override |
| 80 | public ContentResolver getContentResolver() { |
| 81 | throw new UnsupportedOperationException(); |
| 82 | } |
| 83 | |
| 84 | @Override |
| 85 | public Looper getMainLooper() { |
| 86 | throw new UnsupportedOperationException(); |
| 87 | } |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 88 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 89 | @Override |
Jeff Sharkey | 8439ac0 | 2017-12-12 17:26:23 -0700 | [diff] [blame] | 90 | public Executor getMainExecutor() { |
| 91 | throw new UnsupportedOperationException(); |
| 92 | } |
| 93 | |
| 94 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 95 | public Context getApplicationContext() { |
| 96 | throw new UnsupportedOperationException(); |
| 97 | } |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 98 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 99 | @Override |
| 100 | public void setTheme(int resid) { |
| 101 | throw new UnsupportedOperationException(); |
| 102 | } |
| 103 | |
| 104 | @Override |
| 105 | public Resources.Theme getTheme() { |
| 106 | throw new UnsupportedOperationException(); |
| 107 | } |
| 108 | |
| 109 | @Override |
| 110 | public ClassLoader getClassLoader() { |
| 111 | throw new UnsupportedOperationException(); |
| 112 | } |
| 113 | |
| 114 | @Override |
| 115 | public String getPackageName() { |
| 116 | throw new UnsupportedOperationException(); |
| 117 | } |
| 118 | |
Dianne Hackborn | d8e1dbb | 2013-01-17 17:47:37 -0800 | [diff] [blame] | 119 | /** @hide */ |
| 120 | @Override |
| 121 | public String getBasePackageName() { |
| 122 | throw new UnsupportedOperationException(); |
| 123 | } |
| 124 | |
Dianne Hackborn | 95d7853 | 2013-09-11 09:51:14 -0700 | [diff] [blame] | 125 | /** @hide */ |
| 126 | @Override |
| 127 | public String getOpPackageName() { |
| 128 | throw new UnsupportedOperationException(); |
| 129 | } |
| 130 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 131 | @Override |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 132 | public ApplicationInfo getApplicationInfo() { |
| 133 | throw new UnsupportedOperationException(); |
| 134 | } |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 135 | |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 136 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 137 | public String getPackageResourcePath() { |
| 138 | throw new UnsupportedOperationException(); |
| 139 | } |
| 140 | |
Joe Onorato | 23ecae3 | 2009-06-10 17:07:15 -0700 | [diff] [blame] | 141 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 142 | public String getPackageCodePath() { |
| 143 | throw new UnsupportedOperationException(); |
| 144 | } |
| 145 | |
| 146 | @Override |
| 147 | public SharedPreferences getSharedPreferences(String name, int mode) { |
| 148 | throw new UnsupportedOperationException(); |
| 149 | } |
| 150 | |
Jeff Sharkey | 70168dd | 2016-03-30 21:47:16 -0600 | [diff] [blame] | 151 | /** @removed */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 152 | @Override |
Jeff Sharkey | 8fc29cf | 2015-11-30 17:51:00 -0700 | [diff] [blame] | 153 | public SharedPreferences getSharedPreferences(File file, int mode) { |
| 154 | throw new UnsupportedOperationException(); |
| 155 | } |
| 156 | |
Christopher Tate | fe2368c | 2017-05-17 15:42:35 -0700 | [diff] [blame] | 157 | /** @hide */ |
| 158 | @Override |
| 159 | public void reloadSharedPreferences() { |
| 160 | throw new UnsupportedOperationException(); |
| 161 | } |
| 162 | |
Jeff Sharkey | 8fc29cf | 2015-11-30 17:51:00 -0700 | [diff] [blame] | 163 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 164 | public boolean moveSharedPreferencesFrom(Context sourceContext, String name) { |
Jeff Sharkey | 35871f2 | 2016-01-29 17:13:29 -0700 | [diff] [blame] | 165 | throw new UnsupportedOperationException(); |
| 166 | } |
| 167 | |
| 168 | @Override |
| 169 | public boolean deleteSharedPreferences(String name) { |
| 170 | throw new UnsupportedOperationException(); |
| 171 | } |
| 172 | |
| 173 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 174 | public FileInputStream openFileInput(String name) throws FileNotFoundException { |
| 175 | throw new UnsupportedOperationException(); |
| 176 | } |
| 177 | |
| 178 | @Override |
| 179 | public FileOutputStream openFileOutput(String name, int mode) throws FileNotFoundException { |
| 180 | throw new UnsupportedOperationException(); |
| 181 | } |
| 182 | |
| 183 | @Override |
| 184 | public boolean deleteFile(String name) { |
| 185 | throw new UnsupportedOperationException(); |
| 186 | } |
| 187 | |
| 188 | @Override |
| 189 | public File getFileStreamPath(String name) { |
| 190 | throw new UnsupportedOperationException(); |
| 191 | } |
| 192 | |
Jeff Sharkey | 70168dd | 2016-03-30 21:47:16 -0600 | [diff] [blame] | 193 | /** @removed */ |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 194 | @Override |
Jeff Sharkey | 6a6cdaf | 2015-12-07 19:25:19 -0700 | [diff] [blame] | 195 | public File getSharedPreferencesPath(String name) { |
| 196 | throw new UnsupportedOperationException(); |
| 197 | } |
| 198 | |
| 199 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 200 | public String[] fileList() { |
| 201 | throw new UnsupportedOperationException(); |
| 202 | } |
| 203 | |
| 204 | @Override |
Jeff Sharkey | 2c1ba9a | 2016-02-17 15:29:38 -0700 | [diff] [blame] | 205 | public File getDataDir() { |
| 206 | throw new UnsupportedOperationException(); |
| 207 | } |
| 208 | |
| 209 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 210 | public File getFilesDir() { |
| 211 | throw new UnsupportedOperationException(); |
| 212 | } |
| 213 | |
| 214 | @Override |
Christopher Tate | a7835b6 | 2014-07-11 17:25:57 -0700 | [diff] [blame] | 215 | public File getNoBackupFilesDir() { |
| 216 | throw new UnsupportedOperationException(); |
| 217 | } |
| 218 | |
| 219 | @Override |
Dianne Hackborn | e83cefce | 2010-02-04 17:38:14 -0800 | [diff] [blame] | 220 | public File getExternalFilesDir(String type) { |
| 221 | throw new UnsupportedOperationException(); |
| 222 | } |
| 223 | |
| 224 | @Override |
Dianne Hackborn | 805fd7e | 2011-01-16 18:30:29 -0800 | [diff] [blame] | 225 | public File getObbDir() { |
| 226 | throw new UnsupportedOperationException(); |
| 227 | } |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 228 | |
Dianne Hackborn | 805fd7e | 2011-01-16 18:30:29 -0800 | [diff] [blame] | 229 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 230 | public File getCacheDir() { |
| 231 | throw new UnsupportedOperationException(); |
| 232 | } |
| 233 | |
| 234 | @Override |
Jeff Sharkey | 4ed745d | 2014-07-15 20:39:15 -0700 | [diff] [blame] | 235 | public File getCodeCacheDir() { |
| 236 | throw new UnsupportedOperationException(); |
| 237 | } |
| 238 | |
| 239 | @Override |
Dianne Hackborn | e83cefce | 2010-02-04 17:38:14 -0800 | [diff] [blame] | 240 | public File getExternalCacheDir() { |
| 241 | throw new UnsupportedOperationException(); |
| 242 | } |
| 243 | |
| 244 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 245 | public File getDir(String name, int mode) { |
| 246 | throw new UnsupportedOperationException(); |
| 247 | } |
| 248 | |
| 249 | @Override |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 250 | public SQLiteDatabase openOrCreateDatabase(String file, int mode, |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 251 | SQLiteDatabase.CursorFactory factory) { |
| 252 | throw new UnsupportedOperationException(); |
| 253 | } |
| 254 | |
| 255 | @Override |
Vasu Nori | 74f170f | 2010-06-01 18:06:18 -0700 | [diff] [blame] | 256 | public SQLiteDatabase openOrCreateDatabase(String file, int mode, |
| 257 | SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { |
| 258 | throw new UnsupportedOperationException(); |
| 259 | } |
| 260 | |
| 261 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 262 | public File getDatabasePath(String name) { |
| 263 | throw new UnsupportedOperationException(); |
| 264 | } |
| 265 | |
| 266 | @Override |
| 267 | public String[] databaseList() { |
| 268 | throw new UnsupportedOperationException(); |
| 269 | } |
| 270 | |
| 271 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 272 | public boolean moveDatabaseFrom(Context sourceContext, String name) { |
Jeff Sharkey | 35871f2 | 2016-01-29 17:13:29 -0700 | [diff] [blame] | 273 | throw new UnsupportedOperationException(); |
| 274 | } |
| 275 | |
| 276 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 277 | public boolean deleteDatabase(String name) { |
| 278 | throw new UnsupportedOperationException(); |
| 279 | } |
| 280 | |
| 281 | @Override |
| 282 | public Drawable getWallpaper() { |
| 283 | throw new UnsupportedOperationException(); |
| 284 | } |
| 285 | |
| 286 | @Override |
| 287 | public Drawable peekWallpaper() { |
| 288 | throw new UnsupportedOperationException(); |
| 289 | } |
| 290 | |
| 291 | @Override |
| 292 | public int getWallpaperDesiredMinimumWidth() { |
| 293 | throw new UnsupportedOperationException(); |
| 294 | } |
| 295 | |
| 296 | @Override |
| 297 | public int getWallpaperDesiredMinimumHeight() { |
| 298 | throw new UnsupportedOperationException(); |
| 299 | } |
| 300 | |
| 301 | @Override |
| 302 | public void setWallpaper(Bitmap bitmap) throws IOException { |
| 303 | throw new UnsupportedOperationException(); |
| 304 | } |
| 305 | |
| 306 | @Override |
| 307 | public void setWallpaper(InputStream data) throws IOException { |
| 308 | throw new UnsupportedOperationException(); |
| 309 | } |
| 310 | |
| 311 | @Override |
| 312 | public void clearWallpaper() { |
| 313 | throw new UnsupportedOperationException(); |
| 314 | } |
| 315 | |
| 316 | @Override |
| 317 | public void startActivity(Intent intent) { |
| 318 | throw new UnsupportedOperationException(); |
| 319 | } |
| 320 | |
| 321 | @Override |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 322 | public void startActivity(Intent intent, Bundle options) { |
| 323 | startActivity(intent); |
| 324 | } |
| 325 | |
| 326 | @Override |
Dianne Hackborn | 621e17d | 2010-11-22 15:59:56 -0800 | [diff] [blame] | 327 | public void startActivities(Intent[] intents) { |
| 328 | throw new UnsupportedOperationException(); |
| 329 | } |
| 330 | |
| 331 | @Override |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 332 | public void startActivities(Intent[] intents, Bundle options) { |
| 333 | startActivities(intents); |
| 334 | } |
| 335 | |
| 336 | @Override |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 337 | public void startIntentSender(IntentSender intent, |
| 338 | Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags) |
| 339 | throws IntentSender.SendIntentException { |
| 340 | throw new UnsupportedOperationException(); |
| 341 | } |
Dianne Hackborn | a4972e9 | 2012-03-14 10:38:05 -0700 | [diff] [blame] | 342 | |
| 343 | @Override |
| 344 | public void startIntentSender(IntentSender intent, |
| 345 | Intent fillInIntent, int flagsMask, int flagsValues, int extraFlags, |
| 346 | Bundle options) throws IntentSender.SendIntentException { |
| 347 | startIntentSender(intent, fillInIntent, flagsMask, flagsValues, extraFlags); |
| 348 | } |
Stephan Linzner | b51617f | 2016-01-27 18:09:50 -0800 | [diff] [blame] | 349 | |
Dianne Hackborn | fa82f22 | 2009-09-17 15:14:12 -0700 | [diff] [blame] | 350 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 351 | public void sendBroadcast(Intent intent) { |
| 352 | throw new UnsupportedOperationException(); |
| 353 | } |
| 354 | |
Amith Yamasani | 67cf7d3 | 2012-02-16 14:31:23 -0800 | [diff] [blame] | 355 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 356 | public void sendBroadcast(Intent intent, String receiverPermission) { |
| 357 | throw new UnsupportedOperationException(); |
| 358 | } |
| 359 | |
Dianne Hackborn | f51f612 | 2013-02-04 18:23:34 -0800 | [diff] [blame] | 360 | /** @hide */ |
Fyodor Kupolov | d4fd8c7 | 2015-07-13 19:19:25 -0700 | [diff] [blame] | 361 | @Override |
| 362 | public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { |
| 363 | throw new UnsupportedOperationException(); |
| 364 | } |
| 365 | |
| 366 | /** @hide */ |
Tyler Gunn | f955e56 | 2018-04-26 14:43:31 -0700 | [diff] [blame] | 367 | @Override |
| 368 | public void sendBroadcastAsUserMultiplePermissions(Intent intent, UserHandle user, |
| 369 | String[] receiverPermissions) { |
| 370 | throw new UnsupportedOperationException(); |
| 371 | } |
| 372 | |
| 373 | /** @hide */ |
Dianne Hackborn | a750a63 | 2015-06-16 17:18:23 -0700 | [diff] [blame] | 374 | @SystemApi |
| 375 | @Override |
| 376 | public void sendBroadcast(Intent intent, String receiverPermission, Bundle options) { |
| 377 | throw new UnsupportedOperationException(); |
| 378 | } |
| 379 | |
| 380 | /** @hide */ |
Dianne Hackborn | f51f612 | 2013-02-04 18:23:34 -0800 | [diff] [blame] | 381 | @Override |
| 382 | public void sendBroadcast(Intent intent, String receiverPermission, int appOp) { |
| 383 | throw new UnsupportedOperationException(); |
| 384 | } |
| 385 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 386 | @Override |
| 387 | public void sendOrderedBroadcast(Intent intent, |
| 388 | String receiverPermission) { |
| 389 | throw new UnsupportedOperationException(); |
| 390 | } |
| 391 | |
| 392 | @Override |
| 393 | public void sendOrderedBroadcast(Intent intent, String receiverPermission, |
| 394 | BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, |
| 395 | Bundle initialExtras) { |
| 396 | throw new UnsupportedOperationException(); |
| 397 | } |
| 398 | |
Dianne Hackborn | f51f612 | 2013-02-04 18:23:34 -0800 | [diff] [blame] | 399 | /** @hide */ |
Dianne Hackborn | a750a63 | 2015-06-16 17:18:23 -0700 | [diff] [blame] | 400 | @SystemApi |
| 401 | @Override |
| 402 | public void sendOrderedBroadcast(Intent intent, String receiverPermission, |
| 403 | Bundle options, BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, |
| 404 | Bundle initialExtras) { |
| 405 | throw new UnsupportedOperationException(); |
| 406 | } |
| 407 | |
| 408 | /** @hide */ |
Dianne Hackborn | f51f612 | 2013-02-04 18:23:34 -0800 | [diff] [blame] | 409 | @Override |
| 410 | public void sendOrderedBroadcast(Intent intent, String receiverPermission, int appOp, |
| 411 | BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, |
| 412 | Bundle initialExtras) { |
| 413 | throw new UnsupportedOperationException(); |
| 414 | } |
| 415 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 416 | @Override |
Dianne Hackborn | 79af1dd | 2012-08-16 16:42:52 -0700 | [diff] [blame] | 417 | public void sendBroadcastAsUser(Intent intent, UserHandle user) { |
Dianne Hackborn | 7d19e02 | 2012-08-07 19:12:33 -0700 | [diff] [blame] | 418 | throw new UnsupportedOperationException(); |
| 419 | } |
| 420 | |
| 421 | @Override |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 422 | public void sendBroadcastAsUser(Intent intent, UserHandle user, |
| 423 | String receiverPermission) { |
| 424 | throw new UnsupportedOperationException(); |
| 425 | } |
| 426 | |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 427 | /** @hide */ |
Chad Brubaker | 52c8edc | 2016-07-25 14:30:26 -0700 | [diff] [blame] | 428 | @SystemApi |
| 429 | @Override |
| 430 | public void sendBroadcastAsUser(Intent intent, UserHandle user, |
| 431 | String receiverPermission, Bundle options) { |
| 432 | throw new UnsupportedOperationException(); |
| 433 | } |
| 434 | |
| 435 | /** @hide */ |
Svet Ganov | 16a1689 | 2015-04-16 10:32:04 -0700 | [diff] [blame] | 436 | @Override |
| 437 | public void sendBroadcastAsUser(Intent intent, UserHandle user, |
| 438 | String receiverPermission, int appOp) { |
| 439 | throw new UnsupportedOperationException(); |
| 440 | } |
| 441 | |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 442 | @Override |
Dianne Hackborn | 79af1dd | 2012-08-16 16:42:52 -0700 | [diff] [blame] | 443 | public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 444 | String receiverPermission, BroadcastReceiver resultReceiver, Handler scheduler, |
Dianne Hackborn | 7d19e02 | 2012-08-07 19:12:33 -0700 | [diff] [blame] | 445 | int initialCode, String initialData, Bundle initialExtras) { |
| 446 | throw new UnsupportedOperationException(); |
| 447 | } |
| 448 | |
Amith Yamasani | 3cf7572 | 2014-05-16 12:37:29 -0700 | [diff] [blame] | 449 | /** @hide */ |
Dianne Hackborn | 7d19e02 | 2012-08-07 19:12:33 -0700 | [diff] [blame] | 450 | @Override |
Amith Yamasani | 3cf7572 | 2014-05-16 12:37:29 -0700 | [diff] [blame] | 451 | public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, |
| 452 | String receiverPermission, int appOp, BroadcastReceiver resultReceiver, |
Dianne Hackborn | fd854ee | 2015-07-13 18:00:37 -0700 | [diff] [blame] | 453 | Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { |
| 454 | throw new UnsupportedOperationException(); |
| 455 | } |
| 456 | |
| 457 | /** @hide */ |
| 458 | @Override |
| 459 | public void sendOrderedBroadcastAsUser(Intent intent, UserHandle user, |
| 460 | String receiverPermission, int appOp, Bundle options, BroadcastReceiver resultReceiver, |
| 461 | Handler scheduler, int initialCode, String initialData, Bundle initialExtras) { |
Amith Yamasani | 3cf7572 | 2014-05-16 12:37:29 -0700 | [diff] [blame] | 462 | throw new UnsupportedOperationException(); |
| 463 | } |
| 464 | |
| 465 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 466 | public void sendStickyBroadcast(Intent intent) { |
| 467 | throw new UnsupportedOperationException(); |
| 468 | } |
| 469 | |
| 470 | @Override |
Dianne Hackborn | efa199f | 2009-09-19 12:03:15 -0700 | [diff] [blame] | 471 | public void sendStickyOrderedBroadcast(Intent intent, |
| 472 | BroadcastReceiver resultReceiver, Handler scheduler, int initialCode, String initialData, |
| 473 | Bundle initialExtras) { |
| 474 | throw new UnsupportedOperationException(); |
| 475 | } |
| 476 | |
| 477 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 478 | public void removeStickyBroadcast(Intent intent) { |
| 479 | throw new UnsupportedOperationException(); |
| 480 | } |
| 481 | |
| 482 | @Override |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 483 | public void sendStickyBroadcastAsUser(Intent intent, UserHandle user) { |
| 484 | throw new UnsupportedOperationException(); |
| 485 | } |
| 486 | |
Dianne Hackborn | e0e413e | 2015-12-09 17:22:26 -0800 | [diff] [blame] | 487 | /** @hide */ |
| 488 | @Override |
| 489 | public void sendStickyBroadcastAsUser(Intent intent, UserHandle user, Bundle options) { |
| 490 | throw new UnsupportedOperationException(); |
| 491 | } |
| 492 | |
Dianne Hackborn | 5ac72a2 | 2012-08-29 18:32:08 -0700 | [diff] [blame] | 493 | @Override |
| 494 | public void sendStickyOrderedBroadcastAsUser(Intent intent, |
| 495 | UserHandle user, BroadcastReceiver resultReceiver, |
| 496 | Handler scheduler, int initialCode, String initialData, |
| 497 | Bundle initialExtras) { |
| 498 | throw new UnsupportedOperationException(); |
| 499 | } |
| 500 | |
| 501 | @Override |
| 502 | public void removeStickyBroadcastAsUser(Intent intent, UserHandle user) { |
| 503 | throw new UnsupportedOperationException(); |
| 504 | } |
| 505 | |
| 506 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 507 | public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter) { |
| 508 | throw new UnsupportedOperationException(); |
| 509 | } |
| 510 | |
| 511 | @Override |
| 512 | public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, |
Chad Brubaker | 6d6015f | 2017-04-18 11:25:16 -0700 | [diff] [blame] | 513 | int flags) { |
Chad Brubaker | 816c83b | 2017-03-02 10:27:59 -0800 | [diff] [blame] | 514 | throw new UnsupportedOperationException(); |
| 515 | } |
| 516 | |
| 517 | @Override |
| 518 | public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 519 | String broadcastPermission, Handler scheduler) { |
| 520 | throw new UnsupportedOperationException(); |
| 521 | } |
| 522 | |
Chad Brubaker | 816c83b | 2017-03-02 10:27:59 -0800 | [diff] [blame] | 523 | @Override |
| 524 | public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter filter, |
Chad Brubaker | 6d6015f | 2017-04-18 11:25:16 -0700 | [diff] [blame] | 525 | String broadcastPermission, Handler scheduler, int flags) { |
Chad Brubaker | 816c83b | 2017-03-02 10:27:59 -0800 | [diff] [blame] | 526 | throw new UnsupportedOperationException(); |
| 527 | } |
| 528 | |
Dianne Hackborn | 20e8098 | 2012-08-31 19:00:44 -0700 | [diff] [blame] | 529 | /** @hide */ |
| 530 | @Override |
| 531 | public Intent registerReceiverAsUser(BroadcastReceiver receiver, UserHandle user, |
| 532 | IntentFilter filter, String broadcastPermission, Handler scheduler) { |
| 533 | throw new UnsupportedOperationException(); |
| 534 | } |
| 535 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 536 | @Override |
| 537 | public void unregisterReceiver(BroadcastReceiver receiver) { |
| 538 | throw new UnsupportedOperationException(); |
| 539 | } |
| 540 | |
| 541 | @Override |
| 542 | public ComponentName startService(Intent service) { |
| 543 | throw new UnsupportedOperationException(); |
| 544 | } |
| 545 | |
| 546 | @Override |
Christopher Tate | 08992ac | 2017-03-21 11:37:06 -0700 | [diff] [blame] | 547 | public ComponentName startForegroundService(Intent service) { |
| 548 | throw new UnsupportedOperationException(); |
| 549 | } |
| 550 | |
Christopher Tate | 42a386b | 2016-11-07 12:21:21 -0800 | [diff] [blame] | 551 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 552 | public boolean stopService(Intent service) { |
| 553 | throw new UnsupportedOperationException(); |
| 554 | } |
| 555 | |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 556 | /** @hide */ |
| 557 | @Override |
| 558 | public ComponentName startServiceAsUser(Intent service, UserHandle user) { |
| 559 | throw new UnsupportedOperationException(); |
| 560 | } |
| 561 | |
| 562 | /** @hide */ |
| 563 | @Override |
Christopher Tate | 08992ac | 2017-03-21 11:37:06 -0700 | [diff] [blame] | 564 | public ComponentName startForegroundServiceAsUser(Intent service, UserHandle user) { |
| 565 | throw new UnsupportedOperationException(); |
| 566 | } |
| 567 | |
Christopher Tate | 42a386b | 2016-11-07 12:21:21 -0800 | [diff] [blame] | 568 | /** @hide */ |
| 569 | @Override |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 570 | public boolean stopServiceAsUser(Intent service, UserHandle user) { |
| 571 | throw new UnsupportedOperationException(); |
| 572 | } |
| 573 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 574 | @Override |
| 575 | public boolean bindService(Intent service, ServiceConnection conn, int flags) { |
| 576 | throw new UnsupportedOperationException(); |
| 577 | } |
| 578 | |
Amith Yamasani | 37ce3a8 | 2012-02-06 12:04:42 -0800 | [diff] [blame] | 579 | /** @hide */ |
| 580 | @Override |
Amith Yamasani | 27b89e6 | 2013-01-16 12:30:11 -0800 | [diff] [blame] | 581 | public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, |
| 582 | UserHandle user) { |
Amith Yamasani | 37ce3a8 | 2012-02-06 12:04:42 -0800 | [diff] [blame] | 583 | throw new UnsupportedOperationException(); |
| 584 | } |
| 585 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 586 | @Override |
| 587 | public void unbindService(ServiceConnection conn) { |
| 588 | throw new UnsupportedOperationException(); |
| 589 | } |
| 590 | |
| 591 | @Override |
| 592 | public boolean startInstrumentation(ComponentName className, |
| 593 | String profileFile, Bundle arguments) { |
| 594 | throw new UnsupportedOperationException(); |
| 595 | } |
| 596 | |
| 597 | @Override |
| 598 | public Object getSystemService(String name) { |
| 599 | throw new UnsupportedOperationException(); |
| 600 | } |
| 601 | |
| 602 | @Override |
Jeff Brown | 6e53931 | 2015-02-24 18:53:21 -0800 | [diff] [blame] | 603 | public String getSystemServiceName(Class<?> serviceClass) { |
| 604 | throw new UnsupportedOperationException(); |
| 605 | } |
| 606 | |
| 607 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 608 | public int checkPermission(String permission, int pid, int uid) { |
| 609 | throw new UnsupportedOperationException(); |
| 610 | } |
| 611 | |
Dianne Hackborn | ff17024 | 2014-11-19 10:59:01 -0800 | [diff] [blame] | 612 | /** @hide */ |
| 613 | @Override |
| 614 | public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { |
| 615 | return checkPermission(permission, pid, uid); |
| 616 | } |
| 617 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 618 | @Override |
| 619 | public int checkCallingPermission(String permission) { |
| 620 | throw new UnsupportedOperationException(); |
| 621 | } |
| 622 | |
| 623 | @Override |
| 624 | public int checkCallingOrSelfPermission(String permission) { |
| 625 | throw new UnsupportedOperationException(); |
| 626 | } |
| 627 | |
| 628 | @Override |
Svetoslav | c6d1c34 | 2015-02-26 14:44:43 -0800 | [diff] [blame] | 629 | public int checkSelfPermission(String permission) { |
| 630 | throw new UnsupportedOperationException(); |
| 631 | } |
| 632 | |
| 633 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 634 | public void enforcePermission( |
| 635 | String permission, int pid, int uid, String message) { |
| 636 | throw new UnsupportedOperationException(); |
| 637 | } |
| 638 | |
| 639 | @Override |
| 640 | public void enforceCallingPermission(String permission, String message) { |
| 641 | throw new UnsupportedOperationException(); |
| 642 | } |
| 643 | |
| 644 | @Override |
| 645 | public void enforceCallingOrSelfPermission(String permission, String message) { |
| 646 | throw new UnsupportedOperationException(); |
| 647 | } |
| 648 | |
| 649 | @Override |
| 650 | public void grantUriPermission(String toPackage, Uri uri, int modeFlags) { |
| 651 | throw new UnsupportedOperationException(); |
| 652 | } |
| 653 | |
| 654 | @Override |
| 655 | public void revokeUriPermission(Uri uri, int modeFlags) { |
| 656 | throw new UnsupportedOperationException(); |
| 657 | } |
| 658 | |
| 659 | @Override |
Dianne Hackborn | a47223f | 2017-03-30 13:49:13 -0700 | [diff] [blame] | 660 | public void revokeUriPermission(String targetPackage, Uri uri, int modeFlags) { |
| 661 | throw new UnsupportedOperationException(); |
| 662 | } |
| 663 | |
| 664 | @Override |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 665 | public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { |
| 666 | throw new UnsupportedOperationException(); |
| 667 | } |
| 668 | |
Dianne Hackborn | ff17024 | 2014-11-19 10:59:01 -0800 | [diff] [blame] | 669 | /** @hide */ |
| 670 | @Override |
| 671 | public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { |
| 672 | return checkUriPermission(uri, pid, uid, modeFlags); |
| 673 | } |
| 674 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 675 | @Override |
| 676 | public int checkCallingUriPermission(Uri uri, int modeFlags) { |
| 677 | throw new UnsupportedOperationException(); |
| 678 | } |
| 679 | |
| 680 | @Override |
| 681 | public int checkCallingOrSelfUriPermission(Uri uri, int modeFlags) { |
| 682 | throw new UnsupportedOperationException(); |
| 683 | } |
| 684 | |
| 685 | @Override |
| 686 | public int checkUriPermission(Uri uri, String readPermission, |
| 687 | String writePermission, int pid, int uid, int modeFlags) { |
| 688 | throw new UnsupportedOperationException(); |
| 689 | } |
| 690 | |
| 691 | @Override |
| 692 | public void enforceUriPermission( |
| 693 | Uri uri, int pid, int uid, int modeFlags, String message) { |
| 694 | throw new UnsupportedOperationException(); |
| 695 | } |
| 696 | |
| 697 | @Override |
| 698 | public void enforceCallingUriPermission( |
| 699 | Uri uri, int modeFlags, String message) { |
| 700 | throw new UnsupportedOperationException(); |
| 701 | } |
| 702 | |
| 703 | @Override |
| 704 | public void enforceCallingOrSelfUriPermission( |
| 705 | Uri uri, int modeFlags, String message) { |
| 706 | throw new UnsupportedOperationException(); |
| 707 | } |
| 708 | |
| 709 | public void enforceUriPermission( |
| 710 | Uri uri, String readPermission, String writePermission, |
| 711 | int pid, int uid, int modeFlags, String message) { |
| 712 | throw new UnsupportedOperationException(); |
| 713 | } |
| 714 | |
| 715 | @Override |
| 716 | public Context createPackageContext(String packageName, int flags) |
| 717 | throws PackageManager.NameNotFoundException { |
| 718 | throw new UnsupportedOperationException(); |
| 719 | } |
Romain Guy | 870e09f | 2009-07-06 16:35:25 -0700 | [diff] [blame] | 720 | |
Jeff Sharkey | 6d51571 | 2012-09-20 16:06:08 -0700 | [diff] [blame] | 721 | /** {@hide} */ |
| 722 | @Override |
Svetoslav | 976e8bd | 2014-07-16 15:12:03 -0700 | [diff] [blame] | 723 | public Context createApplicationContext(ApplicationInfo application, int flags) |
| 724 | throws PackageManager.NameNotFoundException { |
| 725 | return null; |
| 726 | } |
| 727 | |
Adam Lesinski | 4e86281 | 2016-11-21 16:02:24 -0800 | [diff] [blame] | 728 | /** @hide */ |
| 729 | @Override |
| 730 | public Context createContextForSplit(String splitName) |
| 731 | throws PackageManager.NameNotFoundException { |
| 732 | throw new UnsupportedOperationException(); |
| 733 | } |
| 734 | |
Svetoslav | 976e8bd | 2014-07-16 15:12:03 -0700 | [diff] [blame] | 735 | /** {@hide} */ |
| 736 | @Override |
Jeff Sharkey | 6d51571 | 2012-09-20 16:06:08 -0700 | [diff] [blame] | 737 | public Context createPackageContextAsUser(String packageName, int flags, UserHandle user) |
| 738 | throws PackageManager.NameNotFoundException { |
| 739 | throw new UnsupportedOperationException(); |
| 740 | } |
| 741 | |
Jim Miller | a75a883 | 2013-02-07 16:53:32 -0800 | [diff] [blame] | 742 | /** {@hide} */ |
| 743 | @Override |
| 744 | public int getUserId() { |
| 745 | throw new UnsupportedOperationException(); |
| 746 | } |
| 747 | |
Romain Guy | 870e09f | 2009-07-06 16:35:25 -0700 | [diff] [blame] | 748 | @Override |
Dianne Hackborn | 756220b | 2012-08-14 16:45:30 -0700 | [diff] [blame] | 749 | public Context createConfigurationContext(Configuration overrideConfiguration) { |
| 750 | throw new UnsupportedOperationException(); |
| 751 | } |
| 752 | |
| 753 | @Override |
Jeff Brown | a492c3a | 2012-08-23 19:48:44 -0700 | [diff] [blame] | 754 | public Context createDisplayContext(Display display) { |
| 755 | throw new UnsupportedOperationException(); |
| 756 | } |
| 757 | |
| 758 | @Override |
Romain Guy | 870e09f | 2009-07-06 16:35:25 -0700 | [diff] [blame] | 759 | public boolean isRestricted() { |
Svetoslav | 976e8bd | 2014-07-16 15:12:03 -0700 | [diff] [blame] | 760 | throw new UnsupportedOperationException(); |
Romain Guy | 870e09f | 2009-07-06 16:35:25 -0700 | [diff] [blame] | 761 | } |
Jeff Brown | 98365d7 | 2012-08-19 20:30:52 -0700 | [diff] [blame] | 762 | |
| 763 | /** @hide */ |
| 764 | @Override |
Craig Mautner | 48d0d18 | 2013-06-11 07:53:06 -0700 | [diff] [blame] | 765 | public DisplayAdjustments getDisplayAdjustments(int displayId) { |
Jeff Brown | 98365d7 | 2012-08-19 20:30:52 -0700 | [diff] [blame] | 766 | throw new UnsupportedOperationException(); |
| 767 | } |
Jeff Sharkey | 7f392de | 2013-08-11 17:42:17 -0700 | [diff] [blame] | 768 | |
Adam Lesinski | 4ece3d6 | 2016-06-16 18:05:41 -0700 | [diff] [blame] | 769 | /** @hide */ |
| 770 | @Override |
| 771 | public Display getDisplay() { |
| 772 | throw new UnsupportedOperationException(); |
| 773 | } |
| 774 | |
Andrii Kulian | b047b8b | 2017-02-08 18:38:26 -0800 | [diff] [blame] | 775 | /** @hide */ |
| 776 | @Override |
| 777 | public void updateDisplay(int displayId) { |
| 778 | throw new UnsupportedOperationException(); |
| 779 | } |
| 780 | |
Jeff Sharkey | 7f392de | 2013-08-11 17:42:17 -0700 | [diff] [blame] | 781 | @Override |
| 782 | public File[] getExternalFilesDirs(String type) { |
| 783 | throw new UnsupportedOperationException(); |
| 784 | } |
| 785 | |
| 786 | @Override |
| 787 | public File[] getObbDirs() { |
| 788 | throw new UnsupportedOperationException(); |
| 789 | } |
| 790 | |
| 791 | @Override |
| 792 | public File[] getExternalCacheDirs() { |
| 793 | throw new UnsupportedOperationException(); |
| 794 | } |
Jeff Sharkey | 2ee3c1e | 2014-05-30 15:38:35 -0700 | [diff] [blame] | 795 | |
| 796 | @Override |
| 797 | public File[] getExternalMediaDirs() { |
| 798 | throw new UnsupportedOperationException(); |
| 799 | } |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 800 | |
Fyodor Kupolov | 6122129 | 2016-09-02 15:21:03 -0700 | [diff] [blame] | 801 | /** @hide **/ |
| 802 | @Override |
| 803 | public File getPreloadsFileCache() { throw new UnsupportedOperationException(); } |
| 804 | |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 805 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 806 | public Context createDeviceProtectedStorageContext() { |
Jeff Sharkey | e13529a | 2015-12-09 14:15:27 -0700 | [diff] [blame] | 807 | throw new UnsupportedOperationException(); |
| 808 | } |
| 809 | |
| 810 | /** {@hide} */ |
| 811 | @SystemApi |
| 812 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 813 | public Context createCredentialProtectedStorageContext() { |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 814 | throw new UnsupportedOperationException(); |
| 815 | } |
| 816 | |
| 817 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 818 | public boolean isDeviceProtectedStorage() { |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 819 | throw new UnsupportedOperationException(); |
| 820 | } |
| 821 | |
Jeff Sharkey | e13529a | 2015-12-09 14:15:27 -0700 | [diff] [blame] | 822 | /** {@hide} */ |
| 823 | @SystemApi |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 824 | @Override |
Jeff Sharkey | 8a372a0 | 2016-03-16 16:25:45 -0600 | [diff] [blame] | 825 | public boolean isCredentialProtectedStorage() { |
Jeff Sharkey | 7a30a30 | 2015-12-08 14:20:06 -0700 | [diff] [blame] | 826 | throw new UnsupportedOperationException(); |
| 827 | } |
Tony Mak | 46aabe5 | 2016-11-14 12:53:06 +0000 | [diff] [blame] | 828 | |
| 829 | /** {@hide} */ |
| 830 | @Override |
Seigo Nonaka | 6d6cd68 | 2017-06-22 08:22:18 -0700 | [diff] [blame] | 831 | public boolean canLoadUnsafeResources() { |
| 832 | throw new UnsupportedOperationException(); |
| 833 | } |
| 834 | |
| 835 | /** {@hide} */ |
| 836 | @Override |
Tony Mak | 46aabe5 | 2016-11-14 12:53:06 +0000 | [diff] [blame] | 837 | public IBinder getActivityToken() { |
| 838 | throw new UnsupportedOperationException(); |
| 839 | } |
| 840 | |
| 841 | /** {@hide} */ |
| 842 | @Override |
| 843 | public IServiceConnection getServiceDispatcher(ServiceConnection conn, Handler handler, |
| 844 | int flags) { |
| 845 | throw new UnsupportedOperationException(); |
| 846 | } |
| 847 | |
| 848 | /** {@hide} */ |
| 849 | @Override |
| 850 | public IApplicationThread getIApplicationThread() { |
| 851 | throw new UnsupportedOperationException(); |
| 852 | } |
Tony Mak | bf9928d | 2016-12-22 11:02:45 +0000 | [diff] [blame] | 853 | |
| 854 | /** {@hide} */ |
| 855 | @Override |
| 856 | public Handler getMainThreadHandler() { |
| 857 | throw new UnsupportedOperationException(); |
| 858 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 859 | } |