Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsController.java36 import android.telephony.SmsManager;
157 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriber()
171 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriberWithSelfPermissionsInternal()
189 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriber()
229 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendIccText()
244 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithSelfPermissionsInternal()
264 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithOptions()
285 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriber()
305 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriberWithOptions()
516 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendStoredText()
[all …]
DAppSmsManager.java27 import android.telephony.SmsManager;
170 .putExtra(SmsManager.EXTRA_STATUS, SmsManager.RESULT_STATUS_SUCCESS) in handleSmsReceivedIntent()
171 .putExtra(SmsManager.EXTRA_SMS_MESSAGE, message) in handleSmsReceivedIntent()
172 .putExtra(SmsManager.EXTRA_SIM_SUBSCRIPTION_ID, info.subId) in handleSmsReceivedIntent()
198 .putExtra(SmsManager.EXTRA_STATUS, in removeExpiredTokenLocked()
199 SmsManager.RESULT_STATUS_TIMEOUT) in removeExpiredTokenLocked()
249 String[] prefixes = request.prefixes.split(SmsManager.REGEX_PREFIX_DELIMITER); in hasPrefix()
DSMSDispatcher.java20 import static android.telephony.SmsManager.RESULT_ERROR_GENERIC_FAILURE;
21 import static android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED;
22 import static android.telephony.SmsManager.RESULT_ERROR_NONE;
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;
66 import android.telephony.SmsManager;
331 error = SmsManager.RESULT_UNEXPECTED_EVENT_STOP_SENDING; in handleMessage()
[all …]
DSmsUsageMonitor.java32 import android.telephony.SmsManager;
192 return SmsManager.SMS_CATEGORY_FREE_SHORT_CODE; in getNumberCategory()
196 return SmsManager.SMS_CATEGORY_STANDARD_SHORT_CODE; in getNumberCategory()
200 return SmsManager.SMS_CATEGORY_PREMIUM_SHORT_CODE; in getNumberCategory()
203 return SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; in getNumberCategory()
205 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in getNumberCategory()
388 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
393 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
416 return SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; in checkDestination()
418 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in checkDestination()
DBtSmsInterfaceManager.java26 import android.telephony.SmsManager;
123 sendErrorInPendingIntent(mSentIntent, SmsManager.RESULT_BLUETOOTH_DISCONNECTED); in onServiceDisconnected()
DWapPushOverSms.java50 import android.telephony.SmsManager;
296 : SmsManager.getDefaultSmsSubscriptionId(); in decodeWapPdu()
470 return SmsManager in shouldParseContentDisposition()
473 .getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, true); in shouldParseContentDisposition()
518 Bundle configs = SmsManager.getSmsManagerForSubscriptionId(subId) in writeInboxMessage()
521 SmsManager.MMS_CONFIG_APPEND_TRANSACTION_ID, false)) { in writeInboxMessage()
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;
44 import android.telephony.SmsManager;
854 data = new byte[SmsManager.SMS_RECORD_LENGTH]; in makeSmsRecordData()
856 data = new byte[SmsManager.CDMA_SMS_RECORD_LENGTH]; in makeSmsRecordData()
1343 final ArrayList<String> parts = SmsManager.getDefault().divideMessage(textAndAddress[0]); in sendStoredMultipartText()
1491 pi.send(SmsManager.RESULT_ERROR_GENERIC_FAILURE); in returnUnspecifiedFailure()
DSmsDispatchersController.java40 import android.telephony.SmsManager;
482 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms()
DRIL.java96 import android.telephony.SmsManager;
5322 case SmsManager.STATUS_ON_ICC_READ: in translateStatus()
5324 case SmsManager.STATUS_ON_ICC_UNREAD: in translateStatus()
5326 case SmsManager.STATUS_ON_ICC_SENT: in translateStatus()
5328 case SmsManager.STATUS_ON_ICC_UNSENT: in translateStatus()
/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.java19 import android.telephony.SmsManager;
47 SmsManager.getDefault().sendTextMessage(SRC_NUMBER, DEST_NUMBER, MSG_CONTENTS, null, in testSendTextMessage()
63 SmsManager.getDefault().sendDataMessage(SRC_NUMBER, DEST_NUMBER, DEST_PORT, in testSendDataMessage()
82 SmsManager.getDefault().sendMultipartTextMessage(SRC_NUMBER, DEST_NUMBER, msgParts, in testSendMultipartMessage()
97 SmsManager.getDefault().enableCellBroadcastRange(CELL_BROADCAST_MESSAGE_ID_START, in testEnableCellBroadcastRange()
112 SmsManager.getDefault().disableCellBroadcastRange(CELL_BROADCAST_MESSAGE_ID_START, in testDisableCellBroadcastRange()
/frameworks/base/telephony/java/android/telephony/
DSmsMessage.java267 return createFromEfRecord(index, data, SmsManager.getDefaultSmsSubscriptionId()); in createFromEfRecord()
359 return calculateLength(msgBody, use7bitOnly, SmsManager.getDefaultSmsSubscriptionId()); in calculateLength()
407 return fragmentText(text, SmsManager.getDefaultSmsSubscriptionId()); in fragmentText()
582 SmsManager.getDefaultSmsSubscriptionId()); in getSubmitPdu()
662 public static SubmitPdu getSmsPdu(int subId, @SmsManager.StatusOnIcc int status, in getSmsPdu()
667 if (status == SmsManager.STATUS_ON_ICC_READ in getSmsPdu()
668 || status == SmsManager.STATUS_ON_ICC_UNREAD) { // Deliver PDU in getSmsPdu()
676 if (status == SmsManager.STATUS_ON_ICC_READ in getSmsPdu()
677 || status == SmsManager.STATUS_ON_ICC_UNREAD) { // Deliver PDU in getSmsPdu()
1028 return useCdmaFormatForMoSms(SmsManager.getDefaultSmsSubscriptionId()); in useCdmaFormatForMoSms()
[all …]
DSmsManager.java75 public final class SmsManager { class
79 private static final SmsManager sInstance = new SmsManager(
93 private static final Map<Integer, SmsManager> sSubInstances =
94 new ArrayMap<Integer, SmsManager>();
1398 public static SmsManager getDefault() { in getDefault()
1415 public static SmsManager getSmsManagerForSubscriptionId(int subId) { in getSmsManagerForSubscriptionId()
1417 SmsManager smsManager = sSubInstances.get(subId); in getSmsManagerForSubscriptionId()
1419 smsManager = new SmsManager(subId); in getSmsManagerForSubscriptionId()
1426 private SmsManager(int subId) { in SmsManager() method in SmsManager
2654 SmsManager.SMS_CATEGORY_NOT_SHORT_CODE,
[all …]
/frameworks/base/telephony/java/android/telephony/ims/stub/
DImsSmsImplBase.java24 import android.telephony.SmsManager;
168 SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendSms()
265 SmsManager.RESULT_ERROR_NONE, RESULT_NO_NETWORK_ERROR); in onSendSmsResultSuccess()
292 @SendStatusResult int status, @SmsManager.Result int reason) throws RuntimeException { in onSendSmsResult()
326 @SmsManager.Result int reason, int networkErrorCode) throws RuntimeException { in onSendSmsResultError()
/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;
46 import android.telephony.SmsManager;
226 assertEquals(SmsManager.RESULT_ERROR_NULL_PDU, mTestReceiver.getResultCode()); in testSendTextWithInvalidDestAddr()
293 assertEquals(SmsManager.RESULT_ERROR_GENERIC_FAILURE, mTestReceiver.getResultCode()); in testSendMultipartTextWithInvalidText()
/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.java151 import android.telephony.SmsManager;
749 int status = SmsManager.STATUS_ON_ICC_READ; in testWriteSmsToSim()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimDataDownloadHandler.java25 import android.telephony.SmsManager;
92 mCi.writeSmsToSim(SmsManager.STATUS_ON_ICC_UNREAD, smsc, in handleUsimDataDownload()
/frameworks/opt/telephony/
DREADME.txt5 SmsManager and others.
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyMetrics.java50 import android.telephony.SmsManager;
549 if (event.errorCode != SmsManager.RESULT_ERROR_NONE) { in printAllMetrics()
2332 .setErrorCode(success ? SmsManager.RESULT_ERROR_NONE : in writeIncomingSmsWithType()
2333 SmsManager.RESULT_ERROR_GENERIC_FAILURE)); in writeIncomingSmsWithType()
2399 .setErrorCode(success ? SmsManager.RESULT_ERROR_NONE : in writeIncomingSmsSessionWithType()
2400 SmsManager.RESULT_ERROR_GENERIC_FAILURE) in writeIncomingSmsSessionWithType()
2448 int smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError()
2454 smsError = SmsManager.RESULT_NO_MEMORY; in writeIncomingSmsError()
2457 smsError = SmsManager.RESULT_REQUEST_NOT_SUPPORTED; in writeIncomingSmsError()
2461 smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError()
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java41 import android.telephony.SmsManager;
208 pendingIntent.send(mContext, SmsManager.MMS_ERROR_UNSPECIFIED, null);
/frameworks/base/api/
Dlint-baseline.txt1007 RequiresPermission: android.telephony.SmsManager#injectSmsPdu(byte[], String, android.app.PendingIn…
1009 RequiresPermission: android.telephony.SmsManager#sendDataMessage(String, String, short, byte[], and…
1011 RequiresPermission: android.telephony.SmsManager#sendMultipartTextMessage(String, String, java.util…
1013 RequiresPermission: android.telephony.SmsManager#sendTextMessage(String, String, String, android.ap…
1015 RequiresPermission: android.telephony.SmsManager#sendTextMessageWithoutPersisting(String, String, S…
Dsystem-lint-baseline.txt327 …ndroid.telephony.SmsManager#getSmsMessagesForFinancialApp(android.os.Bundle, java.util.concurrent.…
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java19 import static android.telephony.SmsManager.STATUS_ON_ICC_READ;
20 import static android.telephony.SmsManager.STATUS_ON_ICC_UNREAD;
/frameworks/opt/telephony/proto/src/
Dtelephony.proto2589 // - it is mapped to a SmsManager.RESULT_* code
2590 // SmsManager can be accessed from
2591 // frameworks/base/telephony/java/android/telephony/SmsManager.java

12