/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SmsManagerTest.java | 10 import android.telephony.SmsManager; 18 private SmsManager smsManager; 28 smsManager = SmsManager.getDefault(); 29 shadowSmsManager = Robolectric.shadowOf(smsManager); 34 smsManager = null; 46 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); 57 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); 64 smsManager.sendTextMessage("", testScAddress, testText, null, null) [all...] |
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
SmsManagerPermissionTest.java | 21 import android.telephony.SmsManager; 26 * Verify that SmsManager apis cannot be called without required permissions. 36 * Verify that SmsManager.sendTextMessage requires permissions. 43 SmsManager.getDefault().sendTextMessage(SRC_NUMBER, DEST_NUMBER, MSG_CONTENTS, null, 45 fail("SmsManager.sendTextMessage did not throw SecurityException as expected"); 52 * Verify that SmsManager.sendDataMessage requires permissions. 59 SmsManager.getDefault().sendDataMessage(SRC_NUMBER, DEST_NUMBER, DEST_PORT, 61 fail("SmsManager.sendDataMessage did not throw SecurityException as expected"); 68 * Verify that SmsManager.sendMultipartMessage requires permissions. 78 SmsManager.getDefault().sendMultipartTextMessage(SRC_NUMBER, DEST_NUMBER, msgParts [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSmsManager.java | 4 import android.telephony.SmsManager; 12 @Implements(SmsManager.class) 16 private static SmsManager realManager = Robolectric.newInstanceOf(SmsManager.class); 21 public static SmsManager getDefault() {
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
SmsManager.java | 26 * Get this object by calling the static method SmsManager.getDefault(). 27 * @deprecated Replaced by android.telephony.SmsManager that supports both GSM and CDMA. 29 @Deprecated public final class SmsManager { 30 private static SmsManager sInstance; 31 private android.telephony.SmsManager mSmsMgrProxy; 33 /** Get the default instance of the SmsManager 35 * @return the default instance of the SmsManager 36 * @deprecated Use android.telephony.SmsManager. 39 public static final SmsManager getDefault() { 41 sInstance = new SmsManager(); [all...] |
SmsMessage.java | 516 * SmsManager.STATUS_ON_SIM_FREE 517 * SmsManager.STATUS_ON_SIM_READ 518 * SmsManager.STATUS_ON_SIM_UNREAD 519 * SmsManager.STATUS_ON_SIM_SEND 520 * SmsManager.STATUS_ON_SIM_UNSENT 532 * SmsManager.STATUS_ON_ICC_FREE 533 * SmsManager.STATUS_ON_ICC_READ 534 * SmsManager.STATUS_ON_ICC_UNREAD 535 * SmsManager.STATUS_ON_ICC_SEND 536 * SmsManager.STATUS_ON_ICC_UNSEN [all...] |
/frameworks/base/docs/html/sdk/api_diff/4/changes/ |
android.telephony.gsm.SmsManager.html | 10 android.telephony.gsm.SmsManager 74 Class android.telephony.gsm.<A HREF="../../../../reference/android/telephony/gsm/SmsManager.html" target="_top"><font size="+2"><code>SmsManager</code></font></A> 87 <A NAME="android.telephony.gsm.SmsManager.divideMessage_changed(java.lang.String)"></A> 88 <nobr><code>ArrayList<String></code> <A HREF="../../../../reference/android/telephony/gsm/SmsManager.html#divideMessage(java.lang.String)" target="_top"><code>divideMessage</code></A>(<code>String</code>) </nobr> 97 <A NAME="android.telephony.gsm.SmsManager.getDefault_changed()"></A> 98 <nobr><code>SmsManager</code> <A HREF="../../../../reference/android/telephony/gsm/SmsManager.html#getDefault()" target="_top"><code>getDefault</code></A>() </nobr> 107 <A NAME="android.telephony.gsm.SmsManager.sendDataMessage_changed(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)"></A> 108 <nobr><code>void</code> <A HREF="../../../../reference/android/telephony/gsm/SmsManager.html#sendDataMessage(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, (…) [all...] |
fields_index_changes.html | 145 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.RESULT_ERROR_GENERIC_FAILURE" class="hiddenlink" target="rightframe">RESULT_ERROR_GENERIC_FAILURE</A> 147 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.RESULT_ERROR_NO_SERVICE" class="hiddenlink" target="rightframe">RESULT_ERROR_NO_SERVICE</A> 149 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.RESULT_ERROR_NULL_PDU" class="hiddenlink" target="rightframe">RESULT_ERROR_NULL_PDU</A> 151 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.RESULT_ERROR_RADIO_OFF" class="hiddenlink" target="rightframe">RESULT_ERROR_RADIO_OFF</A> 165 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.STATUS_ON_SIM_FREE" class="hiddenlink" target="rightframe">STATUS_ON_SIM_FREE</A [all...] |
methods_index_changes.html | 79 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.divideMessage_changed(java.lang.String)" class="hiddenlink" target="rightframe">divideMessage 91 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.getDefault_changed()" class="hiddenlink" target="rightframe">getDefault 195 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.sendDataMessage_changed(java.lang.String, java.lang.String, short, byte[], android.app.PendingIntent, android.app.PendingIntent)" class="hiddenlink" target="rightframe">sendDataMessage 197 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.sendMultipartTextMessage_changed(java.lang.String, java.lang.String, java.util.ArrayList<java.lang.String>, java.util.ArrayList<android.app.PendingIntent>, java.util.ArrayList<android.app.PendingIntent>)" class="hiddenlink" target="rightframe">sendMultipartTextMessage 199 <nobr><A HREF="android.telephony.gsm.SmsManager.html#android.telephony.gsm.SmsManager.sendTextMessage_changed(java.lang.String, java.lang.String, java.lang.String, android.app.PendingI (…) [all...] |
pkg_android.telephony.gsm.html | 84 <A NAME="SmsManager"></A> 85 <nobr><A HREF="android.telephony.gsm.SmsManager.html">SmsManager</A></nobr>
|
pkg_android.telephony.html | 84 <A NAME="SmsManager"></A> 85 <nobr><A HREF="../../../../reference/android/telephony/SmsManager.html" target="_top"><code>SmsManager</code></A></nobr>
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsSingleRecipientSender.java | 12 import android.telephony.SmsManager; 45 SmsManager smsManager = SmsManager.getDefault(); 52 messages = smsManager.divideMessage(msgText); 54 messages = smsManager.divideMessage(mMessageText); 116 smsManager.sendMultipartTextMessage(mDest, mServiceCenter, messages, sentIntents, deliveryIntents); 120 " from SmsManager.sendTextMessage()");
|
SmsReceiverService.java | 48 import android.telephony.SmsManager; 149 case SmsManager.RESULT_ERROR_GENERIC_FAILURE: 150 return "SmsManager.RESULT_ERROR_GENERIC_FAILURE"; 151 case SmsManager.RESULT_ERROR_RADIO_OFF: 152 return "SmsManager.RESULT_ERROR_RADIO_OFF"; 153 case SmsManager.RESULT_ERROR_NULL_PDU: 154 return "SmsManager.RESULT_ERROR_NULL_PDU"; 155 case SmsManager.RESULT_ERROR_NO_SERVICE: 156 return "SmsManager.RESULT_ERROR_NO_SERVICE"; 157 case SmsManager.RESULT_ERROR_LIMIT_EXCEEDED [all...] |
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
SmsManagerTest.java | 22 import android.telephony.gsm.SmsManager; 37 private android.telephony.gsm.SmsManager getSmsManager() { 38 return android.telephony.gsm.SmsManager.getDefault();
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 25 import android.telephony.gsm.SmsManager; 149 SmsManager smsManager = SmsManager.getDefault(); 152 smsManager.sendDataMessage("1233", "1233", (short) 0, testData, null, null); 153 fail("SmsManager.sendDataMessage() did not throw SecurityException as expected.");
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
NoReceiveSmsPermissionTest.java | 26 import android.telephony.SmsManager; 33 * Uses {@link android.telephony.SmsManager}. 48 * Verify that SmsManager.sendTextMessage requires permissions. 102 SmsManager.getDefault().sendTextMessage(currentNumber, null, text, sentIntent, 167 case SmsManager.RESULT_ERROR_GENERIC_FAILURE: 169 case SmsManager.RESULT_ERROR_NO_SERVICE: 171 case SmsManager.RESULT_ERROR_NULL_PDU: 173 case SmsManager.RESULT_ERROR_RADIO_OFF:
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
SmsMessagingDemo.java | 31 import android.telephony.SmsManager; 113 SmsManager sms = SmsManager.getDefault(); 136 case SmsManager.RESULT_ERROR_GENERIC_FAILURE: 139 case SmsManager.RESULT_ERROR_NO_SERVICE: 142 case SmsManager.RESULT_ERROR_NULL_PDU: 145 case SmsManager.RESULT_ERROR_RADIO_OFF:
|
/packages/apps/Mms/tests/SmsAutoReply/src/com/android/smsautoreply/ |
AutoReplyActivity.java | 27 import android.telephony.SmsManager; 95 SmsManager sms = SmsManager.getDefault();
|
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
DialogSmsDisplayTests.java | 32 import android.telephony.SmsManager; 99 case SmsManager.RESULT_ERROR_GENERIC_FAILURE: 102 case SmsManager.RESULT_ERROR_NO_SERVICE: 105 case SmsManager.RESULT_ERROR_NULL_PDU: 108 case SmsManager.RESULT_ERROR_RADIO_OFF: 169 SmsManager sms = SmsManager.getDefault();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsMessageBase.java | 295 * SmsManager.STATUS_ON_ICC_FREE 296 * SmsManager.STATUS_ON_ICC_READ 297 * SmsManager.STATUS_ON_ICC_UNREAD 298 * SmsManager.STATUS_ON_ICC_SEND 299 * SmsManager.STATUS_ON_ICC_UNSENT
|
/frameworks/opt/telephony/src/java/android/telephony/ |
SmsMessage.java | 212 * returned by SmsManager.getAllMessagesFromSim + 1. 619 * SmsManager.STATUS_ON_SIM_FREE 620 * SmsManager.STATUS_ON_SIM_READ 621 * SmsManager.STATUS_ON_SIM_UNREAD 622 * SmsManager.STATUS_ON_SIM_SEND 623 * SmsManager.STATUS_ON_SIM_UNSENT 634 * SmsManager.STATUS_ON_ICC_FREE 635 * SmsManager.STATUS_ON_ICC_READ 636 * SmsManager.STATUS_ON_ICC_UNREAD 637 * SmsManager.STATUS_ON_ICC_SEN [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
SmsProvider.java | 40 import android.telephony.SmsManager; 261 SmsManager smsManager = SmsManager.getDefault(); 262 ArrayList<SmsMessage> messages = smsManager.getAllMessagesFromIcc(); 282 SmsManager smsManager = SmsManager.getDefault(); 288 messages = smsManager.getAllMessagesFromIcc(); 609 SmsManager smsManager = SmsManager.getDefault() [all...] |
/cts/tests/tests/telephony/src/android/telephony/cts/ |
SmsManagerTest.java | 28 import android.telephony.SmsManager; 39 * Tests for {@link android.telephony.SmsManager}. 41 * Structured so tests can be reused to test {@link android.telephony.gsm.SmsManager} 329 private android.telephony.SmsManager getSmsManager() { 330 return android.telephony.SmsManager.getDefault();
|
/packages/apps/Mms/src/com/android/mms/ui/ |
ManageSimMessages.java | 36 import android.telephony.SmsManager; 257 return (messageStatus == SmsManager.STATUS_ON_ICC_READ) || 258 (messageStatus == SmsManager.STATUS_ON_ICC_UNREAD);
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastConfigService.java | 27 import android.telephony.SmsManager; 60 private static void setChannelRange(SmsManager manager, String ranges, boolean enable) { 205 SmsManager manager = SmsManager.getDefault();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 27 import android.telephony.SmsManager; 164 tracker.mSentIntent.send(SmsManager.RESULT_ERROR_NO_SERVICE);
|