1// Signature format: 2.0 2package android.test.mock { 3 4 public class MockContext extends android.content.Context { 5 method public android.view.Display getDisplay(); 6 method public int getDisplayId(); 7 } 8 9 @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { 10 method public boolean arePermissionsIndividuallyControlled(); 11 method public String getDefaultBrowserPackageNameAsUser(int); 12 method public int getInstallReason(String, android.os.UserHandle); 13 method public java.util.List<android.content.pm.ApplicationInfo> getInstalledApplicationsAsUser(int, int); 14 method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); 15 method public String[] getNamesForUids(int[]); 16 method public String getPermissionControllerPackageName(); 17 method public int getPermissionFlags(String, String, android.os.UserHandle); 18 method @NonNull public String getServicesSystemSharedLibraryPackageName(); 19 method @NonNull public String getSharedSystemSharedLibraryPackageName(); 20 method public void grantRuntimePermission(String, String, android.os.UserHandle); 21 method public void revokeRuntimePermission(String, String, android.os.UserHandle); 22 method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle); 23 } 24 25} 26 27