@Implements(value=android.provider.Telephony.Sms.class, minSdk=19) public static class ShadowTelephony.ShadowSms extends Object
Constructor | Description |
---|---|
ShadowSms() |
Modifier and Type | Method | 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)
Telephony.Sms.getDefaultSmsPackage(Context)
.
This will be reset for the next test.
@Resetter public static void reset()