blob: 7d891c8150fdbb1e9811a85ca7ee81c50b4bc7ec [file] [log] [blame]
Tor Norbye68ea0c32018-12-26 19:55:07 -08001// Signature format: 2.0
Paul Duffina23c84c2017-12-15 12:49:36 +00002package 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 Norbye68ea0c32018-12-26 19:55:07 -08008 method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle);
Paul Duffina23c84c2017-12-15 12:49:36 +00009 }
10
Tor Norbye68ea0c32018-12-26 19:55:07 -080011 @Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
Paul Duffind93cd392023-10-13 23:43:03 +010012 method @Deprecated public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
13 method @Deprecated public boolean arePermissionsIndividuallyControlled();
Tor Norbye68ea0c32018-12-26 19:55:07 -080014 method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String);
Paul Duffind93cd392023-10-13 23:43:03 +010015 method @Deprecated public String getDefaultBrowserPackageNameAsUser(int);
16 method @Deprecated public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
17 method @Deprecated public android.graphics.drawable.Drawable getInstantAppIcon(String);
18 method @Deprecated public android.content.ComponentName getInstantAppInstallerComponent();
19 method @Deprecated public android.content.ComponentName getInstantAppResolverSettingsComponent();
20 method @Deprecated public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
21 method @Deprecated public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String);
22 method @Deprecated public int getIntentVerificationStatusAsUser(String, int);
23 method @Deprecated public int getPermissionFlags(String, String, android.os.UserHandle);
24 method @Deprecated public void grantRuntimePermission(String, String, android.os.UserHandle);
25 method @Deprecated public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException;
26 method @Deprecated public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
27 method @Deprecated public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback);
28 method @Deprecated public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
29 method @Deprecated public void revokeRuntimePermission(String, String, android.os.UserHandle);
30 method @Deprecated public boolean setDefaultBrowserPackageNameAsUser(String, int);
Paul Duffin083f9ad2024-06-08 12:07:47 +010031 method @Deprecated public String[] setPackagesSuspended(String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, String);
Paul Duffind93cd392023-10-13 23:43:03 +010032 method @Deprecated public void setUpdateAvailable(String, boolean);
33 method @Deprecated public boolean updateIntentVerificationStatusAsUser(String, int, int);
34 method @Deprecated public void updatePermissionFlags(String, String, int, int, android.os.UserHandle);
35 method @Deprecated public void verifyIntentFilter(int, int, java.util.List<java.lang.String>);
Paul Duffina23c84c2017-12-15 12:49:36 +000036 }
37
38}
39