// Signature format: 2.0
package android.test.mock {

  public class MockContext extends android.content.Context {
    method public android.content.SharedPreferences getSharedPreferences(java.io.File, int);
    method public java.io.File getSharedPreferencesPath(String);
  }

  @Deprecated public class MockPackageManager extends android.content.pm.PackageManager {
    method @Deprecated public String getDefaultBrowserPackageName(int);
    method @Deprecated public boolean setDefaultBrowserPackageName(String, int);
    method @Deprecated public boolean setInstantAppCookie(@NonNull byte[]);
  }

}

