Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 1 | // Signature format: 2.0 |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 2 | package android.test.mock { |
| 3 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 4 | @Deprecated public class MockAccountManager { |
| 5 | method @Deprecated public static android.accounts.AccountManager newMockAccountManager(android.content.Context); |
Paul Duffin | 772b692 | 2017-12-22 16:13:15 +0000 | [diff] [blame] | 6 | } |
| 7 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 8 | @Deprecated public class MockApplication extends android.app.Application { |
| 9 | ctor @Deprecated public MockApplication(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | public class MockContentProvider extends android.content.ContentProvider { |
| 13 | ctor protected MockContentProvider(); |
| 14 | ctor public MockContentProvider(android.content.Context); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 15 | ctor public MockContentProvider(android.content.Context, String, String, android.content.pm.PathPermission[]); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 16 | method public android.content.ContentProviderResult[] applyBatch(java.util.ArrayList<android.content.ContentProviderOperation>); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 17 | method @Deprecated public static void attachInfoForTesting(android.content.ContentProvider, android.content.Context, android.content.pm.ProviderInfo); |
| 18 | method public int delete(android.net.Uri, String, String[]); |
| 19 | method public String getType(android.net.Uri); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 20 | method public android.net.Uri insert(android.net.Uri, android.content.ContentValues); |
| 21 | method public boolean onCreate(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 22 | method public android.content.res.AssetFileDescriptor openTypedAssetFile(android.net.Uri, String, android.os.Bundle); |
| 23 | method public android.database.Cursor query(android.net.Uri, String[], String, String[], String); |
| 24 | method public int update(android.net.Uri, android.content.ContentValues, String, String[]); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | public class MockContentResolver extends android.content.ContentResolver { |
| 28 | ctor public MockContentResolver(); |
| 29 | ctor public MockContentResolver(android.content.Context); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 30 | method public void addProvider(String, android.content.ContentProvider); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | public class MockContext extends android.content.Context { |
| 34 | ctor public MockContext(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 35 | method public boolean bindIsolatedService(android.content.Intent, android.content.ServiceConnection, int, String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 36 | method public boolean bindService(android.content.Intent, android.content.ServiceConnection, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 37 | method public int checkCallingOrSelfPermission(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 38 | method public int checkCallingOrSelfUriPermission(android.net.Uri, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 39 | method public int checkCallingPermission(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 40 | method public int checkCallingUriPermission(android.net.Uri, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 41 | method public int checkPermission(String, int, int); |
| 42 | method public int checkSelfPermission(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 43 | method public int checkUriPermission(android.net.Uri, int, int, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 44 | method public int checkUriPermission(android.net.Uri, String, String, int, int, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 45 | method public void clearWallpaper(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 46 | method public android.content.Context createConfigurationContext(android.content.res.Configuration); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 47 | method public android.content.Context createContextForSplit(String) throws android.content.pm.PackageManager.NameNotFoundException; |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 48 | method public android.content.Context createDeviceProtectedStorageContext(); |
| 49 | method public android.content.Context createDisplayContext(android.view.Display); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 50 | method public android.content.Context createPackageContext(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 51 | method public String[] databaseList(); |
| 52 | method public boolean deleteDatabase(String); |
| 53 | method public boolean deleteFile(String); |
| 54 | method public boolean deleteSharedPreferences(String); |
| 55 | method public void enforceCallingOrSelfPermission(String, String); |
| 56 | method public void enforceCallingOrSelfUriPermission(android.net.Uri, int, String); |
| 57 | method public void enforceCallingPermission(String, String); |
| 58 | method public void enforceCallingUriPermission(android.net.Uri, int, String); |
| 59 | method public void enforcePermission(String, int, int, String); |
| 60 | method public void enforceUriPermission(android.net.Uri, int, int, int, String); |
| 61 | method public void enforceUriPermission(android.net.Uri, String, String, int, int, int, String); |
| 62 | method public String[] fileList(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 63 | method public android.content.Context getApplicationContext(); |
| 64 | method public android.content.pm.ApplicationInfo getApplicationInfo(); |
| 65 | method public android.content.res.AssetManager getAssets(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 66 | method public java.io.File getCacheDir(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 67 | method public ClassLoader getClassLoader(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 68 | method public java.io.File getCodeCacheDir(); |
| 69 | method public android.content.ContentResolver getContentResolver(); |
| 70 | method public java.io.File getDataDir(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 71 | method public java.io.File getDatabasePath(String); |
| 72 | method public java.io.File getDir(String, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 73 | method public java.io.File getExternalCacheDir(); |
| 74 | method public java.io.File[] getExternalCacheDirs(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 75 | method public java.io.File getExternalFilesDir(String); |
| 76 | method public java.io.File[] getExternalFilesDirs(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 77 | method public java.io.File[] getExternalMediaDirs(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 78 | method public java.io.File getFileStreamPath(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 79 | method public java.io.File getFilesDir(); |
| 80 | method public android.os.Looper getMainLooper(); |
| 81 | method public java.io.File getNoBackupFilesDir(); |
| 82 | method public java.io.File getObbDir(); |
| 83 | method public java.io.File[] getObbDirs(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 84 | method public String getOpPackageName(); |
| 85 | method public String getPackageCodePath(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 86 | method public android.content.pm.PackageManager getPackageManager(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 87 | method public String getPackageName(); |
| 88 | method public String getPackageResourcePath(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 89 | method public android.content.res.Resources getResources(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 90 | method public android.content.SharedPreferences getSharedPreferences(String, int); |
| 91 | method public Object getSystemService(String); |
| 92 | method public String getSystemServiceName(Class<?>); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 93 | method public android.content.res.Resources.Theme getTheme(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 94 | method public android.graphics.drawable.Drawable getWallpaper(); |
| 95 | method public int getWallpaperDesiredMinimumHeight(); |
| 96 | method public int getWallpaperDesiredMinimumWidth(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 97 | method public void grantUriPermission(String, android.net.Uri, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 98 | method public boolean isDeviceProtectedStorage(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 99 | method public boolean moveDatabaseFrom(android.content.Context, String); |
| 100 | method public boolean moveSharedPreferencesFrom(android.content.Context, String); |
| 101 | method public java.io.FileInputStream openFileInput(String) throws java.io.FileNotFoundException; |
| 102 | method public java.io.FileOutputStream openFileOutput(String, int) throws java.io.FileNotFoundException; |
| 103 | method public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String, int, android.database.sqlite.SQLiteDatabase.CursorFactory); |
| 104 | method public android.database.sqlite.SQLiteDatabase openOrCreateDatabase(String, int, android.database.sqlite.SQLiteDatabase.CursorFactory, android.database.DatabaseErrorHandler); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 105 | method public android.graphics.drawable.Drawable peekWallpaper(); |
| 106 | method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter); |
| 107 | method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 108 | method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler); |
| 109 | method public android.content.Intent registerReceiver(android.content.BroadcastReceiver, android.content.IntentFilter, String, android.os.Handler, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 110 | method public void removeStickyBroadcast(android.content.Intent); |
| 111 | method public void removeStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
| 112 | method public void revokeUriPermission(android.net.Uri, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 113 | method public void revokeUriPermission(String, android.net.Uri, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 114 | method public void sendBroadcast(android.content.Intent); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 115 | method public void sendBroadcast(android.content.Intent, String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 116 | method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 117 | method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String); |
| 118 | method public void sendOrderedBroadcast(android.content.Intent, String); |
| 119 | method public void sendOrderedBroadcast(android.content.Intent, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); |
| 120 | method public void sendOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 121 | method public void sendStickyBroadcast(android.content.Intent); |
| 122 | method public void sendStickyBroadcastAsUser(android.content.Intent, android.os.UserHandle); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 123 | method public void sendStickyOrderedBroadcast(android.content.Intent, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); |
| 124 | method public void sendStickyOrderedBroadcastAsUser(android.content.Intent, android.os.UserHandle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 125 | method public void setTheme(int); |
| 126 | method public void setWallpaper(android.graphics.Bitmap) throws java.io.IOException; |
| 127 | method public void setWallpaper(java.io.InputStream) throws java.io.IOException; |
| 128 | method public void startActivities(android.content.Intent[]); |
| 129 | method public void startActivities(android.content.Intent[], android.os.Bundle); |
| 130 | method public void startActivity(android.content.Intent); |
| 131 | method public void startActivity(android.content.Intent, android.os.Bundle); |
| 132 | method public android.content.ComponentName startForegroundService(android.content.Intent); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 133 | method public boolean startInstrumentation(android.content.ComponentName, String, android.os.Bundle); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 134 | method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int) throws android.content.IntentSender.SendIntentException; |
| 135 | method public void startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle) throws android.content.IntentSender.SendIntentException; |
| 136 | method public android.content.ComponentName startService(android.content.Intent); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 137 | method public boolean stopService(android.content.Intent); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 138 | method public void unbindService(android.content.ServiceConnection); |
| 139 | method public void unregisterReceiver(android.content.BroadcastReceiver); |
Dianne Hackborn | a631d56 | 2018-11-20 15:58:15 -0800 | [diff] [blame] | 140 | method public void updateServiceGroup(android.content.ServiceConnection, int, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 141 | } |
| 142 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 143 | @Deprecated public class MockCursor implements android.database.Cursor { |
| 144 | ctor @Deprecated public MockCursor(); |
| 145 | method @Deprecated public void close(); |
| 146 | method @Deprecated public void copyStringToBuffer(int, android.database.CharArrayBuffer); |
| 147 | method @Deprecated public void deactivate(); |
| 148 | method @Deprecated public byte[] getBlob(int); |
| 149 | method @Deprecated public int getColumnCount(); |
| 150 | method @Deprecated public int getColumnIndex(String); |
| 151 | method @Deprecated public int getColumnIndexOrThrow(String); |
| 152 | method @Deprecated public String getColumnName(int); |
| 153 | method @Deprecated public String[] getColumnNames(); |
| 154 | method @Deprecated public int getCount(); |
| 155 | method @Deprecated public double getDouble(int); |
| 156 | method @Deprecated public android.os.Bundle getExtras(); |
| 157 | method @Deprecated public float getFloat(int); |
| 158 | method @Deprecated public int getInt(int); |
| 159 | method @Deprecated public long getLong(int); |
| 160 | method @Deprecated public android.net.Uri getNotificationUri(); |
| 161 | method @Deprecated public int getPosition(); |
| 162 | method @Deprecated public short getShort(int); |
| 163 | method @Deprecated public String getString(int); |
| 164 | method @Deprecated public int getType(int); |
| 165 | method @Deprecated public boolean getWantsAllOnMoveCalls(); |
| 166 | method @Deprecated public boolean isAfterLast(); |
| 167 | method @Deprecated public boolean isBeforeFirst(); |
| 168 | method @Deprecated public boolean isClosed(); |
| 169 | method @Deprecated public boolean isFirst(); |
| 170 | method @Deprecated public boolean isLast(); |
| 171 | method @Deprecated public boolean isNull(int); |
| 172 | method @Deprecated public boolean move(int); |
| 173 | method @Deprecated public boolean moveToFirst(); |
| 174 | method @Deprecated public boolean moveToLast(); |
| 175 | method @Deprecated public boolean moveToNext(); |
| 176 | method @Deprecated public boolean moveToPosition(int); |
| 177 | method @Deprecated public boolean moveToPrevious(); |
| 178 | method @Deprecated public void registerContentObserver(android.database.ContentObserver); |
| 179 | method @Deprecated public void registerDataSetObserver(android.database.DataSetObserver); |
| 180 | method @Deprecated public boolean requery(); |
| 181 | method @Deprecated public android.os.Bundle respond(android.os.Bundle); |
| 182 | method @Deprecated public void setExtras(android.os.Bundle); |
| 183 | method @Deprecated public void setNotificationUri(android.content.ContentResolver, android.net.Uri); |
| 184 | method @Deprecated public void unregisterContentObserver(android.database.ContentObserver); |
| 185 | method @Deprecated public void unregisterDataSetObserver(android.database.DataSetObserver); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 186 | } |
| 187 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 188 | @Deprecated public class MockDialogInterface implements android.content.DialogInterface { |
| 189 | ctor @Deprecated public MockDialogInterface(); |
| 190 | method @Deprecated public void cancel(); |
| 191 | method @Deprecated public void dismiss(); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 192 | } |
| 193 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 194 | @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { |
| 195 | ctor @Deprecated public MockPackageManager(); |
| 196 | method @Deprecated public void addPackageToPreferred(String); |
| 197 | method @Deprecated public boolean addPermission(android.content.pm.PermissionInfo); |
| 198 | method @Deprecated public boolean addPermissionAsync(android.content.pm.PermissionInfo); |
| 199 | method @Deprecated public void addPreferredActivity(android.content.IntentFilter, int, android.content.ComponentName[], android.content.ComponentName); |
| 200 | method @Deprecated public boolean canRequestPackageInstalls(); |
| 201 | method @Deprecated public String[] canonicalToCurrentPackageNames(String[]); |
| 202 | method @Deprecated public int checkPermission(String, String); |
| 203 | method @Deprecated public int checkSignatures(String, String); |
| 204 | method @Deprecated public int checkSignatures(int, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 205 | method public void clearInstantAppCookie(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 206 | method @Deprecated public void clearPackagePreferredActivities(String); |
| 207 | method @Deprecated public String[] currentToCanonicalPackageNames(String[]); |
| 208 | method @Deprecated public void extendVerificationTimeout(int, int, long); |
| 209 | method @Deprecated public android.graphics.drawable.Drawable getActivityBanner(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| 210 | method @Deprecated public android.graphics.drawable.Drawable getActivityBanner(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| 211 | method @Deprecated public android.graphics.drawable.Drawable getActivityIcon(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| 212 | method @Deprecated public android.graphics.drawable.Drawable getActivityIcon(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| 213 | method @Deprecated public android.content.pm.ActivityInfo getActivityInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 214 | method @Deprecated public android.graphics.drawable.Drawable getActivityLogo(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| 215 | method @Deprecated public android.graphics.drawable.Drawable getActivityLogo(android.content.Intent) throws android.content.pm.PackageManager.NameNotFoundException; |
| 216 | method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String); |
| 217 | method @Deprecated public java.util.List<android.content.pm.PermissionGroupInfo> getAllPermissionGroups(int); |
| 218 | method @Deprecated public android.graphics.drawable.Drawable getApplicationBanner(android.content.pm.ApplicationInfo); |
| 219 | method @Deprecated public android.graphics.drawable.Drawable getApplicationBanner(String) throws android.content.pm.PackageManager.NameNotFoundException; |
| 220 | method @Deprecated public int getApplicationEnabledSetting(String); |
| 221 | method @Deprecated public android.graphics.drawable.Drawable getApplicationIcon(android.content.pm.ApplicationInfo); |
| 222 | method @Deprecated public android.graphics.drawable.Drawable getApplicationIcon(String) throws android.content.pm.PackageManager.NameNotFoundException; |
| 223 | method @Deprecated public android.content.pm.ApplicationInfo getApplicationInfo(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 224 | method @Deprecated public CharSequence getApplicationLabel(android.content.pm.ApplicationInfo); |
| 225 | method @Deprecated public android.graphics.drawable.Drawable getApplicationLogo(android.content.pm.ApplicationInfo); |
| 226 | method @Deprecated public android.graphics.drawable.Drawable getApplicationLogo(String) throws android.content.pm.PackageManager.NameNotFoundException; |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 227 | method public android.content.pm.ChangedPackages getChangedPackages(int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 228 | method @Deprecated public int getComponentEnabledSetting(android.content.ComponentName); |
| 229 | method @Deprecated public android.graphics.drawable.Drawable getDefaultActivityIcon(); |
| 230 | method @Deprecated public android.graphics.drawable.Drawable getDrawable(String, int, android.content.pm.ApplicationInfo); |
| 231 | method @Deprecated public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplications(int); |
| 232 | method @Deprecated public java.util.List<android.content.pm.PackageInfo> getInstalledPackages(int); |
| 233 | method @Deprecated public String getInstallerPackageName(String); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 234 | method public byte[] getInstantAppCookie(); |
| 235 | method public int getInstantAppCookieMaxBytes(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 236 | method @Deprecated public android.content.pm.InstrumentationInfo getInstrumentationInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 237 | method @Deprecated public android.content.Intent getLaunchIntentForPackage(String); |
| 238 | method @Deprecated public android.content.Intent getLeanbackLaunchIntentForPackage(String); |
| 239 | method @Deprecated public String getNameForUid(int); |
| 240 | method @Deprecated public int[] getPackageGids(String) throws android.content.pm.PackageManager.NameNotFoundException; |
| 241 | method @Deprecated public int[] getPackageGids(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 242 | method @Deprecated public android.content.pm.PackageInfo getPackageInfo(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 243 | method @Deprecated public android.content.pm.PackageInfo getPackageInfo(android.content.pm.VersionedPackage, int) throws android.content.pm.PackageManager.NameNotFoundException; |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 244 | method public android.content.pm.PackageInstaller getPackageInstaller(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 245 | method @Deprecated public int getPackageUid(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 246 | method @Deprecated public String[] getPackagesForUid(int); |
| 247 | method @Deprecated public java.util.List<android.content.pm.PackageInfo> getPackagesHoldingPermissions(String[], int); |
| 248 | method @Deprecated public android.content.pm.PermissionGroupInfo getPermissionGroupInfo(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 249 | method @Deprecated public android.content.pm.PermissionInfo getPermissionInfo(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 250 | method @Deprecated public int getPreferredActivities(java.util.List<android.content.IntentFilter>, java.util.List<android.content.ComponentName>, String); |
| 251 | method @Deprecated public java.util.List<android.content.pm.PackageInfo> getPreferredPackages(int); |
| 252 | method @Deprecated public android.content.pm.ProviderInfo getProviderInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 253 | method @Deprecated public android.content.pm.ActivityInfo getReceiverInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 254 | method @Deprecated public android.content.res.Resources getResourcesForActivity(android.content.ComponentName) throws android.content.pm.PackageManager.NameNotFoundException; |
| 255 | method @Deprecated public android.content.res.Resources getResourcesForApplication(android.content.pm.ApplicationInfo); |
| 256 | method @Deprecated public android.content.res.Resources getResourcesForApplication(String) throws android.content.pm.PackageManager.NameNotFoundException; |
| 257 | method @Deprecated public android.content.pm.ServiceInfo getServiceInfo(android.content.ComponentName, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 258 | method @Deprecated @NonNull public java.util.List<android.content.pm.SharedLibraryInfo> getSharedLibraries(int); |
| 259 | method @Deprecated public android.content.pm.FeatureInfo[] getSystemAvailableFeatures(); |
| 260 | method @Deprecated public String[] getSystemSharedLibraryNames(); |
| 261 | method @Deprecated public CharSequence getText(String, int, android.content.pm.ApplicationInfo); |
| 262 | method @Deprecated public android.graphics.drawable.Drawable getUserBadgedDrawableForDensity(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); |
| 263 | method @Deprecated public android.graphics.drawable.Drawable getUserBadgedIcon(android.graphics.drawable.Drawable, android.os.UserHandle); |
| 264 | method @Deprecated public CharSequence getUserBadgedLabel(CharSequence, android.os.UserHandle); |
| 265 | method @Deprecated public android.content.res.XmlResourceParser getXml(String, int, android.content.pm.ApplicationInfo); |
| 266 | method @Deprecated public boolean hasSystemFeature(String); |
| 267 | method @Deprecated public boolean hasSystemFeature(String, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 268 | method public boolean isInstantApp(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 269 | method public boolean isInstantApp(String); |
| 270 | method @Deprecated public boolean isPermissionRevokedByPolicy(String, String); |
| 271 | method @Deprecated public boolean isSafeMode(); |
| 272 | method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryBroadcastReceivers(android.content.Intent, int); |
| 273 | method @Deprecated public java.util.List<android.content.pm.ProviderInfo> queryContentProviders(String, int, int); |
| 274 | method @Deprecated public java.util.List<android.content.pm.InstrumentationInfo> queryInstrumentation(String, int); |
| 275 | method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryIntentActivities(android.content.Intent, int); |
| 276 | method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryIntentActivityOptions(android.content.ComponentName, android.content.Intent[], android.content.Intent, int); |
| 277 | method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryIntentContentProviders(android.content.Intent, int); |
| 278 | method @Deprecated public java.util.List<android.content.pm.ResolveInfo> queryIntentServices(android.content.Intent, int); |
| 279 | method @Deprecated public java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 280 | method @Deprecated public void removePackageFromPreferred(String); |
| 281 | method @Deprecated public void removePermission(String); |
| 282 | method @Deprecated public android.content.pm.ResolveInfo resolveActivity(android.content.Intent, int); |
| 283 | method @Deprecated public android.content.pm.ProviderInfo resolveContentProvider(String, int); |
| 284 | method @Deprecated public android.content.pm.ResolveInfo resolveService(android.content.Intent, int); |
| 285 | method @Deprecated public android.content.pm.ResolveInfo resolveServiceAsUser(android.content.Intent, int, int); |
| 286 | method public void setApplicationCategoryHint(String, int); |
| 287 | method @Deprecated public void setApplicationEnabledSetting(String, int, int); |
| 288 | method @Deprecated public void setComponentEnabledSetting(android.content.ComponentName, int, int); |
| 289 | method @Deprecated public void setInstallerPackageName(String, String); |
| 290 | method public void updateInstantAppCookie(@NonNull byte[]); |
| 291 | method @Deprecated public void verifyPendingInstall(int, int); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 292 | } |
| 293 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 294 | @Deprecated public class MockResources extends android.content.res.Resources { |
| 295 | ctor @Deprecated public MockResources(); |
| 296 | method @Deprecated public int getColor(int) throws android.content.res.Resources.NotFoundException; |
| 297 | method @Deprecated public android.content.res.ColorStateList getColorStateList(int) throws android.content.res.Resources.NotFoundException; |
| 298 | method @Deprecated public android.graphics.drawable.Drawable getDrawable(int) throws android.content.res.Resources.NotFoundException; |
| 299 | method @Deprecated public android.graphics.Movie getMovie(int) throws android.content.res.Resources.NotFoundException; |
| 300 | method @Deprecated public void updateConfiguration(android.content.res.Configuration, android.util.DisplayMetrics); |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 301 | } |
| 302 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame^] | 303 | @Deprecated public class MockService { |
| 304 | method @Deprecated public static <T extends android.app.Service> void attachForTesting(android.app.Service, android.content.Context, String, android.app.Application); |
Paul Duffin | 772b692 | 2017-12-22 16:13:15 +0000 | [diff] [blame] | 305 | } |
| 306 | |
Paul Duffin | bacad40 | 2017-06-28 11:57:59 +0100 | [diff] [blame] | 307 | } |
| 308 | |