android.test.mock.MockContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-test Show documentation
Show all versions of android-test Show documentation
A library jar that provides APIs for testing Applications written for the Google Android Platform.
package android.test.mock;
public class MockContext
extends android.content.Context
{
public MockContext() { throw new RuntimeException("Stub!"); }
public android.content.res.AssetManager getAssets() { throw new RuntimeException("Stub!"); }
public android.content.res.Resources getResources() { throw new RuntimeException("Stub!"); }
public android.content.pm.PackageManager getPackageManager() { throw new RuntimeException("Stub!"); }
public android.content.ContentResolver getContentResolver() { throw new RuntimeException("Stub!"); }
public android.os.Looper getMainLooper() { throw new RuntimeException("Stub!"); }
public android.content.Context getApplicationContext() { throw new RuntimeException("Stub!"); }
public void setTheme(int resid) { throw new RuntimeException("Stub!"); }
public android.content.res.Resources.Theme getTheme() { throw new RuntimeException("Stub!"); }
public java.lang.ClassLoader getClassLoader() { throw new RuntimeException("Stub!"); }
public java.lang.String getPackageName() { throw new RuntimeException("Stub!"); }
public java.lang.String getPackageResourcePath() { throw new RuntimeException("Stub!"); }
public java.lang.String getPackageCodePath() { throw new RuntimeException("Stub!"); }
public android.content.SharedPreferences getSharedPreferences(java.lang.String name, int mode) { throw new RuntimeException("Stub!"); }
public java.io.FileInputStream openFileInput(java.lang.String name) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
public java.io.FileOutputStream openFileOutput(java.lang.String name, int mode) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
public boolean deleteFile(java.lang.String name) { throw new RuntimeException("Stub!"); }
public java.io.File getFileStreamPath(java.lang.String name) { throw new RuntimeException("Stub!"); }
public java.lang.String[] fileList() { throw new RuntimeException("Stub!"); }
public java.io.File getFilesDir() { throw new RuntimeException("Stub!"); }
public java.io.File getCacheDir() { throw new RuntimeException("Stub!"); }
public java.io.File getDir(java.lang.String name, int mode) { throw new RuntimeException("Stub!"); }
public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(java.lang.String file, int mode, android.database.sqlite.SQLiteDatabase.CursorFactory factory) { throw new RuntimeException("Stub!"); }
public java.io.File getDatabasePath(java.lang.String name) { throw new RuntimeException("Stub!"); }
public java.lang.String[] databaseList() { throw new RuntimeException("Stub!"); }
public boolean deleteDatabase(java.lang.String name) { throw new RuntimeException("Stub!"); }
public android.graphics.drawable.Drawable getWallpaper() { throw new RuntimeException("Stub!"); }
public android.graphics.drawable.Drawable peekWallpaper() { throw new RuntimeException("Stub!"); }
public int getWallpaperDesiredMinimumWidth() { throw new RuntimeException("Stub!"); }
public int getWallpaperDesiredMinimumHeight() { throw new RuntimeException("Stub!"); }
public void setWallpaper(android.graphics.Bitmap bitmap) throws java.io.IOException { throw new RuntimeException("Stub!"); }
public void setWallpaper(java.io.InputStream data) throws java.io.IOException { throw new RuntimeException("Stub!"); }
public void clearWallpaper() { throw new RuntimeException("Stub!"); }
public void startActivity(android.content.Intent intent) { throw new RuntimeException("Stub!"); }
public void sendBroadcast(android.content.Intent intent) { throw new RuntimeException("Stub!"); }
public void sendBroadcast(android.content.Intent intent, java.lang.String receiverPermission) { throw new RuntimeException("Stub!"); }
public void sendOrderedBroadcast(android.content.Intent intent, java.lang.String receiverPermission) { throw new RuntimeException("Stub!"); }
public void sendOrderedBroadcast(android.content.Intent intent, java.lang.String receiverPermission, android.content.BroadcastReceiver resultReceiver, android.os.Handler scheduler, int initialCode, java.lang.String initialData, android.os.Bundle initialExtras) { throw new RuntimeException("Stub!"); }
public void sendStickyBroadcast(android.content.Intent intent) { throw new RuntimeException("Stub!"); }
public void removeStickyBroadcast(android.content.Intent intent) { throw new RuntimeException("Stub!"); }
public android.content.Intent registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter) { throw new RuntimeException("Stub!"); }
public android.content.Intent registerReceiver(android.content.BroadcastReceiver receiver, android.content.IntentFilter filter, java.lang.String broadcastPermission, android.os.Handler scheduler) { throw new RuntimeException("Stub!"); }
public void unregisterReceiver(android.content.BroadcastReceiver receiver) { throw new RuntimeException("Stub!"); }
public android.content.ComponentName startService(android.content.Intent service) { throw new RuntimeException("Stub!"); }
public boolean stopService(android.content.Intent service) { throw new RuntimeException("Stub!"); }
public boolean bindService(android.content.Intent service, android.content.ServiceConnection conn, int flags) { throw new RuntimeException("Stub!"); }
public void unbindService(android.content.ServiceConnection conn) { throw new RuntimeException("Stub!"); }
public boolean startInstrumentation(android.content.ComponentName className, java.lang.String profileFile, android.os.Bundle arguments) { throw new RuntimeException("Stub!"); }
public java.lang.Object getSystemService(java.lang.String name) { throw new RuntimeException("Stub!"); }
public int checkPermission(java.lang.String permission, int pid, int uid) { throw new RuntimeException("Stub!"); }
public int checkCallingPermission(java.lang.String permission) { throw new RuntimeException("Stub!"); }
public int checkCallingOrSelfPermission(java.lang.String permission) { throw new RuntimeException("Stub!"); }
public void enforcePermission(java.lang.String permission, int pid, int uid, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void enforceCallingPermission(java.lang.String permission, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void enforceCallingOrSelfPermission(java.lang.String permission, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void grantUriPermission(java.lang.String toPackage, android.net.Uri uri, int modeFlags) { throw new RuntimeException("Stub!"); }
public void revokeUriPermission(android.net.Uri uri, int modeFlags) { throw new RuntimeException("Stub!"); }
public int checkUriPermission(android.net.Uri uri, int pid, int uid, int modeFlags) { throw new RuntimeException("Stub!"); }
public int checkCallingUriPermission(android.net.Uri uri, int modeFlags) { throw new RuntimeException("Stub!"); }
public int checkCallingOrSelfUriPermission(android.net.Uri uri, int modeFlags) { throw new RuntimeException("Stub!"); }
public int checkUriPermission(android.net.Uri uri, java.lang.String readPermission, java.lang.String writePermission, int pid, int uid, int modeFlags) { throw new RuntimeException("Stub!"); }
public void enforceUriPermission(android.net.Uri uri, int pid, int uid, int modeFlags, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void enforceCallingUriPermission(android.net.Uri uri, int modeFlags, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void enforceCallingOrSelfUriPermission(android.net.Uri uri, int modeFlags, java.lang.String message) { throw new RuntimeException("Stub!"); }
public void enforceUriPermission(android.net.Uri uri, java.lang.String readPermission, java.lang.String writePermission, int pid, int uid, int modeFlags, java.lang.String message) { throw new RuntimeException("Stub!"); }
public android.content.Context createPackageContext(java.lang.String packageName, int flags) throws android.content.pm.PackageManager.NameNotFoundException { throw new RuntimeException("Stub!"); }
}