1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0 2*344a7f5eSAndroid Build Coastguard Workerpackage android.test.mock { 3*344a7f5eSAndroid Build Coastguard Worker 4*344a7f5eSAndroid Build Coastguard Worker public class MockContext extends android.content.Context { 5*344a7f5eSAndroid Build Coastguard Worker method public android.content.Context createCredentialProtectedStorageContext(); 6*344a7f5eSAndroid Build Coastguard Worker method public java.io.File getPreloadsFileCache(); 7*344a7f5eSAndroid Build Coastguard Worker method public boolean isCredentialProtectedStorage(); 8*344a7f5eSAndroid Build Coastguard Worker method public void sendBroadcast(android.content.Intent, String, android.os.Bundle); 9*344a7f5eSAndroid Build Coastguard Worker method public void sendBroadcastAsUser(android.content.Intent, android.os.UserHandle, String, android.os.Bundle); 10*344a7f5eSAndroid Build Coastguard Worker method public void sendOrderedBroadcast(android.content.Intent, String, android.os.Bundle, android.content.BroadcastReceiver, android.os.Handler, int, String, android.os.Bundle); 11*344a7f5eSAndroid Build Coastguard Worker } 12*344a7f5eSAndroid Build Coastguard Worker 13*344a7f5eSAndroid Build Coastguard Worker @Deprecated public class MockPackageManager extends android.content.pm.PackageManager { 14*344a7f5eSAndroid Build Coastguard Worker method public void addOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); 15*344a7f5eSAndroid Build Coastguard Worker method public boolean arePermissionsIndividuallyControlled(); 16*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public java.util.List<android.content.IntentFilter> getAllIntentFilters(String); 17*344a7f5eSAndroid Build Coastguard Worker method public String getDefaultBrowserPackageNameAsUser(int); 18*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); 19*344a7f5eSAndroid Build Coastguard Worker method public android.graphics.drawable.Drawable getInstantAppIcon(String); 20*344a7f5eSAndroid Build Coastguard Worker method public android.content.ComponentName getInstantAppInstallerComponent(); 21*344a7f5eSAndroid Build Coastguard Worker method public android.content.ComponentName getInstantAppResolverSettingsComponent(); 22*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.content.pm.InstantAppInfo> getInstantApps(); 23*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.content.pm.IntentFilterVerificationInfo> getIntentFilterVerifications(String); 24*344a7f5eSAndroid Build Coastguard Worker method public int getIntentVerificationStatusAsUser(String, int); 25*344a7f5eSAndroid Build Coastguard Worker method public int getPermissionFlags(String, String, android.os.UserHandle); 26*344a7f5eSAndroid Build Coastguard Worker method public void grantRuntimePermission(String, String, android.os.UserHandle); 27*344a7f5eSAndroid Build Coastguard Worker method public int installExistingPackage(String) throws android.content.pm.PackageManager.NameNotFoundException; 28*344a7f5eSAndroid Build Coastguard Worker method public int installExistingPackage(String, int) throws android.content.pm.PackageManager.NameNotFoundException; 29*344a7f5eSAndroid Build Coastguard Worker method public void registerDexModule(String, @Nullable android.content.pm.PackageManager.DexModuleRegisterCallback); 30*344a7f5eSAndroid Build Coastguard Worker method public void removeOnPermissionsChangeListener(android.content.pm.PackageManager.OnPermissionsChangedListener); 31*344a7f5eSAndroid Build Coastguard Worker method public void revokeRuntimePermission(String, String, android.os.UserHandle); 32*344a7f5eSAndroid Build Coastguard Worker method public boolean setDefaultBrowserPackageNameAsUser(String, int); 33*344a7f5eSAndroid Build Coastguard Worker method public String[] setPackagesSuspended(String[], boolean, android.os.PersistableBundle, android.os.PersistableBundle, String); 34*344a7f5eSAndroid Build Coastguard Worker method public void setUpdateAvailable(String, boolean); 35*344a7f5eSAndroid Build Coastguard Worker method public boolean updateIntentVerificationStatusAsUser(String, int, int); 36*344a7f5eSAndroid Build Coastguard Worker method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle); 37*344a7f5eSAndroid Build Coastguard Worker method public void verifyIntentFilter(int, int, java.util.List<java.lang.String>); 38*344a7f5eSAndroid Build Coastguard Worker } 39*344a7f5eSAndroid Build Coastguard Worker 40*344a7f5eSAndroid Build Coastguard Worker} 41*344a7f5eSAndroid Build Coastguard Worker 42