Home
last modified time | relevance | path

Searched refs:SmsManager (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/opt/telephony/src/java/android/telephony/gsm/
DSmsManager.java29 @Deprecated public final class SmsManager { class
30 private static SmsManager sInstance;
31 private android.telephony.SmsManager mSmsMgrProxy;
39 public static final SmsManager getDefault() { in getDefault()
41 sInstance = new SmsManager(); in getDefault()
47 private SmsManager() { in SmsManager() method in SmsManager
48 mSmsMgrProxy = android.telephony.SmsManager.getDefault(); in SmsManager()
222 return android.telephony.SmsManager.getDefault().getAllMessagesFromIcc(); in getAllMessagesFromSim()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DSmsManagerPermissionTest.java21 import android.telephony.SmsManager;
43 SmsManager.getDefault().sendTextMessage(SRC_NUMBER, DEST_NUMBER, MSG_CONTENTS, null, in testSendTextMessage()
59 SmsManager.getDefault().sendDataMessage(SRC_NUMBER, DEST_NUMBER, DEST_PORT, in testSendDataMessage()
78 SmsManager.getDefault().sendMultipartTextMessage(SRC_NUMBER, DEST_NUMBER, msgParts, in testSendMultipartMessage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DAppSmsManager.java33 import android.telephony.SmsManager;
194 .putExtra(SmsManager.EXTRA_STATUS, SmsManager.RESULT_STATUS_SUCCESS) in handleSmsReceivedIntent()
195 .putExtra(SmsManager.EXTRA_SMS_MESSAGE, message) in handleSmsReceivedIntent()
196 .putExtra(SmsManager.EXTRA_SIM_SUBSCRIPTION_ID, info.subId) in handleSmsReceivedIntent()
222 .putExtra(SmsManager.EXTRA_STATUS, in removeExpiredTokenLocked()
223 SmsManager.RESULT_STATUS_TIMEOUT) in removeExpiredTokenLocked()
273 String[] prefixes = request.prefixes.split(SmsManager.REGEX_PREFIX_DELIMITER); in hasPrefix()
DBtSmsInterfaceManager.java28 import android.telephony.SmsManager;
48 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_NO_SERVICE); in sendText()
54 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_NO_SERVICE); in sendText()
116 sendErrorInPendingIntent(mSentIntent, SmsManager.RESULT_ERROR_NO_SERVICE); in onServiceDisconnected()
DSmsController.java37 import android.telephony.SmsManager;
133 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriber()
155 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriberWithSelfPermissionsInternal()
165 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriber()
205 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendIccText()
227 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithSelfPermissionsInternal()
243 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithOptions()
258 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriber()
275 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriberWithOptions()
485 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendStoredText()
[all …]
DSmsUsageMonitor.java34 import android.telephony.SmsManager;
193 return SmsManager.SMS_CATEGORY_FREE_SHORT_CODE; in getNumberCategory()
197 return SmsManager.SMS_CATEGORY_STANDARD_SHORT_CODE; in getNumberCategory()
201 return SmsManager.SMS_CATEGORY_PREMIUM_SHORT_CODE; in getNumberCategory()
204 return SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; in getNumberCategory()
206 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in getNumberCategory()
389 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
394 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
417 return SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; in checkDestination()
419 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
DIccSmsInterfaceManager.java19 import static android.telephony.SmsManager.STATUS_ON_ICC_FREE;
20 import static android.telephony.SmsManager.STATUS_ON_ICC_READ;
21 import static android.telephony.SmsManager.STATUS_ON_ICC_UNREAD;
40 import android.telephony.SmsManager;
783 data = new byte[SmsManager.SMS_RECORD_LENGTH]; in makeSmsRecordData()
785 data = new byte[SmsManager.CDMA_SMS_RECORD_LENGTH]; in makeSmsRecordData()
810 if (ranType == SmsManager.CELL_BROADCAST_RAN_TYPE_GSM) { in enableCellBroadcastRange()
812 } else if (ranType == SmsManager.CELL_BROADCAST_RAN_TYPE_CDMA) { in enableCellBroadcastRange()
820 if (ranType == SmsManager.CELL_BROADCAST_RAN_TYPE_GSM ) { in disableCellBroadcastRange()
822 } else if (ranType == SmsManager.CELL_BROADCAST_RAN_TYPE_CDMA) { in disableCellBroadcastRange()
[all …]
DWapPushOverSms.java48 import android.telephony.SmsManager;
265 : SmsManager.getDefaultSmsSubscriptionId(); in decodeWapPdu()
355 if (SmsManager.getDefault().getAutoPersisting()) { in dispatchWapPdu()
459 return SmsManager in shouldParseContentDisposition()
462 .getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, true); in shouldParseContentDisposition()
509 Bundle configs = SmsManager.getSmsManagerForSubscriptionId(subId) in writeInboxMessage()
512 SmsManager.MMS_CONFIG_APPEND_TRANSACTION_ID, false)) { in writeInboxMessage()
DSMSDispatcher.java20 import static android.telephony.SmsManager.RESULT_ERROR_FDN_CHECK_FAILURE;
21 import static android.telephony.SmsManager.RESULT_ERROR_GENERIC_FAILURE;
22 import static android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED;
23 import static android.telephony.SmsManager.RESULT_ERROR_NO_SERVICE;
24 import static android.telephony.SmsManager.RESULT_ERROR_NULL_PDU;
25 import static android.telephony.SmsManager.RESULT_ERROR_RADIO_OFF;
26 import static android.telephony.SmsManager.RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED;
27 import static android.telephony.SmsManager.RESULT_ERROR_SHORT_CODE_NOT_ALLOWED;
71 import android.telephony.SmsManager;
644 tracker.onFailed(mContext, SmsManager.RESULT_ERROR_NO_SERVICE, 0/*errorCode*/); in sendSubmitPdu()
[all …]
DSmsDispatchersController.java38 import android.telephony.SmsManager;
461 tracker.onFailed(mContext, SmsManager.RESULT_ERROR_GENERIC_FAILURE, 0/*errorCode*/); in sendRetrySms()
DInboundSmsHandler.java59 import android.telephony.SmsManager;
1245 if (SmsManager.getDefault().getAutoPersisting()) { in dispatchSmsDeliveryIntent()
DRIL.java86 import android.telephony.SmsManager;
4629 case SmsManager.STATUS_ON_ICC_READ: in translateStatus()
4631 case SmsManager.STATUS_ON_ICC_UNREAD: in translateStatus()
4633 case SmsManager.STATUS_ON_ICC_SENT: in translateStatus()
4635 case SmsManager.STATUS_ON_ICC_UNSENT: in translateStatus()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsDispatcherTest.java19 import static android.telephony.SmsManager.RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED;
20 import static android.telephony.SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE;
47 import android.telephony.SmsManager;
228 assertEquals(SmsManager.RESULT_ERROR_NULL_PDU, mTestReceiver.getResultCode()); in testSendTextWithInvalidDestAddr()
295 assertEquals(SmsManager.RESULT_ERROR_GENERIC_FAILURE, mTestReceiver.getResultCode()); in testSendMultipartTextWithInvalidText()
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java353 return calculateLength(msgBody, use7bitOnly, SmsManager.getDefaultSmsSubscriptionId()); in calculateLength()
397 return fragmentText(text, SmsManager.getDefaultSmsSubscriptionId()); in fragmentText()
567 SmsManager.getDefaultSmsSubscriptionId()); in getSubmitPdu()
890 return useCdmaFormatForMoSms(SmsManager.getDefaultSmsSubscriptionId()); in useCdmaFormatForMoSms()
904 SmsManager smsManager = SmsManager.getSmsManagerForSubscriptionId(subId); in useCdmaFormatForMoSms()
919 return isCdmaVoice(SmsManager.getDefaultSmsSubscriptionId()); in isCdmaVoice()
DSmsManager.java80 public final class SmsManager { class
84 private static final SmsManager sInstance = new SmsManager(
103 private static final Map<Integer, SmsManager> sSubInstances =
104 new ArrayMap<Integer, SmsManager>();
1254 public static SmsManager getDefault() { in getDefault()
1271 public static SmsManager getSmsManagerForSubscriptionId(int subId) { in getSmsManagerForSubscriptionId()
1273 SmsManager smsManager = sSubInstances.get(subId); in getSmsManagerForSubscriptionId()
1275 smsManager = new SmsManager(subId); in getSmsManagerForSubscriptionId()
1282 private SmsManager(int subId) { in SmsManager() method in SmsManager
2936 SmsManager.SMS_CATEGORY_NOT_SHORT_CODE,
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsSmsImplBase.java22 import android.telephony.SmsManager;
157 SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendSms()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSmsUsageMonitorShortCodeTest.java19 import static android.telephony.SmsManager.SMS_CATEGORY_FREE_SHORT_CODE;
20 import static android.telephony.SmsManager.SMS_CATEGORY_NOT_SHORT_CODE;
21 import static android.telephony.SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE;
22 import static android.telephony.SmsManager.SMS_CATEGORY_PREMIUM_SHORT_CODE;
23 import static android.telephony.SmsManager.SMS_CATEGORY_STANDARD_SHORT_CODE;
DRILTest.java135 import android.telephony.SmsManager;
612 int status = SmsManager.STATUS_ON_ICC_READ; in testWriteSmsToSim()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java26 import android.telephony.SmsManager;
92 mCi.writeSmsToSim(SmsManager.STATUS_ON_ICC_UNREAD, smsc, in handleUsimDataDownload()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java48 import android.telephony.SmsManager;
526 if (event.errorCode != SmsManager.RESULT_ERROR_NONE) { in printAllMetrics()
2263 .setErrorCode(success ? SmsManager.RESULT_ERROR_NONE : in writeIncomingSmsWithType()
2264 SmsManager.RESULT_ERROR_GENERIC_FAILURE)); in writeIncomingSmsWithType()
2330 .setErrorCode(success ? SmsManager.RESULT_ERROR_NONE : in writeIncomingSmsSessionWithType()
2331 SmsManager.RESULT_ERROR_GENERIC_FAILURE) in writeIncomingSmsSessionWithType()
2379 int smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError()
2385 smsError = SmsManager.RESULT_NO_MEMORY; in writeIncomingSmsError()
2388 smsError = SmsManager.RESULT_REQUEST_NOT_SUPPORTED; in writeIncomingSmsError()
2392 smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java39 import android.telephony.SmsManager;
209 pendingIntent.send(mContext, SmsManager.MMS_ERROR_UNSPECIFIED, null);
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java43 import android.telephony.SmsManager;
1040 if (SmsManager.getDefault().getAutoPersisting()) { in shouldWriteMessageForPackage()
/frameworks/opt/telephony/proto/src/
Dtelephony.proto2446 // - it is mapped to a SmsManager.RESULT_* code
2447 // SmsManager can be accessed from
2448 // frameworks/base/telephony/java/android/telephony/SmsManager.java
/frameworks/base/api/
Dtest-current.txt2859 public final class SmsManager {
/frameworks/base/config/
Dpreloaded-classes3331 android.telephony.SmsManager

12