• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Signature format: 2.0
2package 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();
8    method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle);
9  }
10
11  @Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
12    method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
13    method public boolean arePermissionsIndividuallyControlled();
14    method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String);
15    method public String getDefaultBrowserPackageNameAsUser(int);
16    method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int);
17    method public android.graphics.drawable.Drawable getInstantAppIcon(String);
18    method public android.content.ComponentName getInstantAppInstallerComponent();
19    method public android.content.ComponentName getInstantAppResolverSettingsComponent();
20    method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps();
21    method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String);
22    method public int getIntentVerificationStatusAsUser(String, int);
23    method public int getPermissionFlags(String, String, android.os.UserHandle);
24    method public void grantRuntimePermission(String, String, android.os.UserHandle);
25    method public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException;
26    method public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException;
27    method public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback);
28    method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener);
29    method public void revokeRuntimePermission(String, String, android.os.UserHandle);
30    method public boolean setDefaultBrowserPackageNameAsUser(String, int);
31    method public String[] setPackagesSuspended(String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, String);
32    method public void setUpdateAvailable(String, boolean);
33    method public boolean updateIntentVerificationStatusAsUser(String, int, int);
34    method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle);
35    method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>);
36  }
37
38}
39
40