@Implements(value=android.provider.Telephony.Sms.class, minSdk=19) public static class ShadowTelephony.ShadowSms extends Object
Constructor and Description |
---|
ShadowSms() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getDefaultSmsPackage(Context context) |
static void |
reset() |
static void |
setDefaultSmsPackage(String defaultSmsPackage)
Override the package name returned from calling
Telephony.Sms.getDefaultSmsPackage(Context) . |
@Implementation protected static String getDefaultSmsPackage(Context context)
public static void setDefaultSmsPackage(String defaultSmsPackage)
Override the package name returned from calling Telephony.Sms.getDefaultSmsPackage(Context)
.
This will be reset for the next test.
@Resetter public static void reset()