blob: 2b968aec1496c321808d06173e018f9780709408 [file] [log] [blame]
Paul Duffina23c84c2017-12-15 12:49:36 +00001package android.test.mock {
2
3 public class MockContext extends android.content.Context {
4 method public android.content.Context createCredentialProtectedStorageContext();
5 method public java.io.File getPreloadsFileCache();
6 method public boolean isCredentialProtectedStorage();
7 method public void sendBroadcast(android.content.Intent, java.lang.String, android.os.Bundle);
8 method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, java.lang.String, android.os.Bundle);
9 method public void sendOrderedBroadcast(android.content.Intent, java.lang.String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle);
10 }
11
12 public deprecated class MockPackageManager extends android.content.pm.PackageManager {
13 method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
Philip P. Moltmanna4b30222018-08-31 09:30:18 -070014 method public boolean arePermissionsIndividuallyControlled();
Paul Duffina23c84c2017-12-15 12:49:36 +000015 method public java.util.List<android.content.IntentFilter> getAllIntentFilters(java.lang.String);
16 method public java.lang.String getDefaultBrowserPackageNameAsUser(int);
17 method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
18 method public android.graphics.drawable.Drawable getInstantAppIcon(java.lang.String);
19 method public android.content.ComponentName getInstantAppInstallerComponent();
20 method public android.content.ComponentName getInstantAppResolverSettingsComponent();
21 method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
22 method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(java.lang.String);
23 method public int getIntentVerificationStatusAsUser(java.lang.String, int);
24 method public int getPermissionFlags(java.lang.String, java.lang.String, android.os.UserHandle);
25 method public void grantRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle);
26 method public int installExistingPackage(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
27 method public int installExistingPackage(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException;
28 method public void registerDexModule(java.lang.String, android.content.pm.PackageManager.DexModuleRegisterCallback);
29 method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
30 method public void revokeRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle);
31 method public boolean setDefaultBrowserPackageNameAsUser(java.lang.String, int);
Suprabh Shukla389cb6f2018-10-01 18:20:39 -070032 method public java.lang.String[] setPackagesSuspended(java.lang.String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, java.lang.String);
Paul Duffina23c84c2017-12-15 12:49:36 +000033 method public void setUpdateAvailable(java.lang.String, boolean);
34 method public boolean updateIntentVerificationStatusAsUser(java.lang.String, int, int);
35 method public void updatePermissionFlags(java.lang.String, java.lang.String, int, int, android.os.UserHandle);
36 method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>);
37 }
38
39}
40