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