Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 2 | package android.test.mock { |
| 3 | |
| 4 | public class MockContext extends android.content.Context { |
| 5 | method public android.content.Context createCredentialProtectedStorageContext(); |
| 6 | method public java.io.File getPreloadsFileCache(); |
| 7 | method public boolean isCredentialProtectedStorage(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 8 | method public void sendBroadcast(android.content.Intent, String, android.os.Bundle); |
| 9 | method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle); |
| 10 | method public void sendOrderedBroadcast(android.content.Intent, String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 11 | } |
| 12 | |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 13 | @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 14 | method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); |
Philip P. Moltmann | a4b3022 | 2018-08-31 09:30:18 -0700 | [diff] [blame] | 15 | method public boolean arePermissionsIndividuallyControlled(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 16 | method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String); |
| 17 | method public String getDefaultBrowserPackageNameAsUser(int); |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 18 | method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 19 | method public android.graphics.drawable.Drawable getInstantAppIcon(String); |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 20 | method public android.content.ComponentName getInstantAppInstallerComponent(); |
| 21 | method public android.content.ComponentName getInstantAppResolverSettingsComponent(); |
| 22 | method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps(); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 23 | method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String); |
| 24 | method public int getIntentVerificationStatusAsUser(String, int); |
| 25 | method public int getPermissionFlags(String, String, android.os.UserHandle); |
| 26 | method public void grantRuntimePermission(String, String, android.os.UserHandle); |
| 27 | method public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException; |
| 28 | method public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException; |
| 29 | method public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback); |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 30 | method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); |
Tor Norbye | 68ea0c3 | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 31 | method public void revokeRuntimePermission(String, String, android.os.UserHandle); |
| 32 | method public boolean setDefaultBrowserPackageNameAsUser(String, int); |
| 33 | method public String[] setPackagesSuspended(String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, String); |
| 34 | method public void setUpdateAvailable(String, boolean); |
| 35 | method public boolean updateIntentVerificationStatusAsUser(String, int, int); |
| 36 | method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle); |
Paul Duffin | a23c84c | 2017-12-15 12:49:36 +0000 | [diff] [blame] | 37 | method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>); |
| 38 | } |
| 39 | |
| 40 | } |
| 41 | |