/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...] |
/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...] |
/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() {
|
/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();
|
/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:
|
/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:
|
/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.");
|
/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...] |
/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();
|
/packages/apps/Mms/tests/SmsAutoReply/src/com/android/smsautoreply/ |
AutoReplyActivity.java | 27 import android.telephony.SmsManager; 95 SmsManager sms = SmsManager.getDefault();
|
/frameworks/opt/telephony/src/java/android/telephony/ |
SmsManager.java | 42 * Get this object by calling the static method SmsManager.getDefault(). 44 public final class SmsManager { 46 private static final SmsManager sInstance = new SmsManager(); 231 * Get the default instance of the SmsManager 233 * @return the default instance of the SmsManager 235 public static SmsManager getDefault() { 239 private SmsManager() {
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiverService.java | 48 import android.telephony.SmsManager; 148 case SmsManager.RESULT_ERROR_GENERIC_FAILURE: 149 return "SmsManager.RESULT_ERROR_GENERIC_FAILURE"; 150 case SmsManager.RESULT_ERROR_RADIO_OFF: 151 return "SmsManager.RESULT_ERROR_RADIO_OFF"; 152 case SmsManager.RESULT_ERROR_NULL_PDU: 153 return "SmsManager.RESULT_ERROR_NULL_PDU"; 154 case SmsManager.RESULT_ERROR_NO_SERVICE: 155 return "SmsManager.RESULT_ERROR_NO_SERVICE"; 156 case SmsManager.RESULT_ERROR_LIMIT_EXCEEDED [all...] |
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()");
|
/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();
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
SmsProvider.java | 39 import android.telephony.SmsManager; 260 SmsManager smsManager = SmsManager.getDefault(); 261 ArrayList<SmsMessage> messages = smsManager.getAllMessagesFromIcc(); 281 SmsManager smsManager = SmsManager.getDefault(); 282 ArrayList<SmsMessage> messages = smsManager.getAllMessagesFromIcc(); 591 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} 323 private android.telephony.SmsManager getSmsManager() { 324 return android.telephony.SmsManager.getDefault();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
IccSmsInterfaceManager.java | 38 import static android.telephony.SmsManager.STATUS_ON_ICC_FREE; 39 import static android.telephony.SmsManager.STATUS_ON_ICC_READ; 40 import static android.telephony.SmsManager.STATUS_ON_ICC_UNREAD;
|
SMSDispatcher.java | 78 import static android.telephony.SmsManager.RESULT_ERROR_FDN_CHECK_FAILURE; 79 import static android.telephony.SmsManager.RESULT_ERROR_GENERIC_FAILURE; 80 import static android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED; 81 import static android.telephony.SmsManager.RESULT_ERROR_NO_SERVICE; 82 import static android.telephony.SmsManager.RESULT_ERROR_NULL_PDU; 83 import static android.telephony.SmsManager.RESULT_ERROR_RADIO_OFF; [all...] |
RIL.java | 49 import android.telephony.SmsManager; [all...] |
/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);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmSMSDispatcher.java | 31 import android.telephony.SmsManager; 194 mCi.writeSmsToSim(SmsManager.STATUS_ON_ICC_UNREAD, smsc,
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaSMSDispatcher.java | 36 import android.telephony.SmsManager; 341 sentIntent.send(SmsManager.RESULT_ERROR_NO_SERVICE);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
Robolectric.java | 52 import android.telephony.SmsManager; 881 public static ShadowSmsManager shadowOf(SmsManager instance) { [all...] |
/prebuilts/sdk/11/ |
android.jar | |
/prebuilts/sdk/12/ |
android.jar | |