Stubs, only used for mocks
| 37 | * Stubs, only used for mocks |
| 38 | */ |
| 39 | @SuppressWarnings("deprecation") |
| 40 | public class Activity { |
| 41 | public static final int RESULT_CANCELED = 0; |
| 42 | public static final int RESULT_OK = -1; |
| 43 | public static final int RESULT_FIRST_USER = 1; |
| 44 | public Activity() { |
| 45 | } |
| 46 | public Activity(Resources resources) { |
| 47 | } |
| 48 | public void requestPermissions(String[] permissions, int requestCode) { |
| 49 | } |
| 50 | public void startActivityForResult(Intent intent, int requestCode) { |
| 51 | } |
| 52 | public void startActivityForResult(Intent intent, int requestCode, |
| 53 | Bundle options) { |
| 54 | } |
| 55 | public AssetManager getAssets() { |
| 56 | return null; |
| 57 | } |
| 58 | public Resources getResources() { |
| 59 | return null; |
| 60 | } |
| 61 | public PackageManager getPackageManager() { |
| 62 | return null; |
| 63 | } |
| 64 | public ContentResolver getContentResolver() { |
| 65 | return null; |
| 66 | } |
| 67 | public Looper getMainLooper() { |
| 68 | return null; |
| 69 | } |
| 70 | public Context getApplicationContext() { |
| 71 | return null; |
| 72 | } |
| 73 | public void setTheme(int resid) { |
| 74 | } |
| 75 | public Resources.Theme getTheme() { |
| 76 | return null; |
| 77 | } |
| 78 | public ClassLoader getClassLoader() { |
| 79 | return null; |
| 80 | } |
| 81 | public String getPackageName() { |
| 82 | return null; |
| 83 | } |
| 84 | public ApplicationInfo getApplicationInfo() { |
| 85 | return null; |
| 86 | } |
| 87 | public String getPackageResourcePath() { |
| 88 | return null; |
| 89 | } |
| 90 | public String getPackageCodePath() { |
| 91 | return null; |
| 92 | } |
| 93 | public SharedPreferences getSharedPreferences(String name, int mode) { |
| 94 | return new MemorySharedPreferences(); |
| 95 | } |
| 96 | public boolean moveSharedPreferencesFrom(Context sourceContext, String name) { |
nothing calls this directly
no outgoing calls
no test coverage detected