/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsController.java | 37 import android.telephony.SmsManager; 162 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriber() 176 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendDataForSubscriberWithSelfPermissionsInternal() 194 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriber() 235 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendIccText() 250 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithSelfPermissionsInternal() 270 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendTextForSubscriberWithOptions() 292 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriber() 312 sendErrorInPendingIntents(sentIntents, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendMultipartTextForSubscriberWithOptions() 527 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendStoredText() [all …]
|
D | SMSDispatcher.java | 61 import android.telephony.SmsManager; 319 trackers, SmsManager.RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED, NO_ERROR_CODE); in handleMessage() 329 error = SmsManager.RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED; in handleMessage() 333 error = SmsManager.RESULT_ERROR_SHORT_CODE_NOT_ALLOWED; in handleMessage() 338 error = SmsManager.RESULT_ERROR_LIMIT_EXCEEDED; in handleMessage() 342 error = SmsManager.RESULT_UNEXPECTED_EVENT_STOP_SENDING; in handleMessage() 851 handleSmsTrackersFailure(trackers, SmsManager.RESULT_SMS_BLOCKED_DURING_EMERGENCY, in sendSubmitPdu() 900 SmsManager.RESULT_ERROR_NONE, in handleSendComplete() 938 } else if (error == SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY in handleSendComplete() 956 SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY, in handleSendComplete() [all …]
|
D | AppSmsManager.java | 27 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() 199 .putExtra(SmsManager.EXTRA_STATUS, in removeExpiredTokenLocked() 200 SmsManager.RESULT_STATUS_TIMEOUT) in removeExpiredTokenLocked() 251 String[] prefixes = request.prefixes.split(SmsManager.REGEX_PREFIX_DELIMITER); in hasPrefix()
|
D | SmsUsageMonitor.java | 33 import android.telephony.SmsManager; 90 SmsManager.PREMIUM_SMS_CONSENT_UNKNOWN; 94 SmsManager.PREMIUM_SMS_CONSENT_ASK_USER; 98 SmsManager.PREMIUM_SMS_CONSENT_NEVER_ALLOW; 102 SmsManager.PREMIUM_SMS_CONSENT_ALWAYS_ALLOW; 201 return SmsManager.SMS_CATEGORY_FREE_SHORT_CODE; in getNumberCategory() 205 return SmsManager.SMS_CATEGORY_STANDARD_SHORT_CODE; in getNumberCategory() 209 return SmsManager.SMS_CATEGORY_PREMIUM_SHORT_CODE; in getNumberCategory() 212 return SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; in getNumberCategory() 214 return SmsManager.SMS_CATEGORY_NOT_SHORT_CODE; in getNumberCategory() [all …]
|
D | BtSmsInterfaceManager.java | 28 import android.telephony.SmsManager; 48 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_NO_BLUETOOTH_SERVICE); in sendText() 54 sendErrorInPendingIntent(sentIntent, SmsManager.RESULT_INVALID_BLUETOOTH_ADDRESS); in sendText() 119 sendErrorInPendingIntent(mSentIntent, SmsManager.RESULT_BLUETOOTH_DISCONNECTED); in onServiceDisconnected()
|
D | WapPushOverSms.java | 44 import android.telephony.SmsManager; 250 : SmsManager.getDefaultSmsSubscriptionId(); in decodeWapPdu() 429 return SmsManager in shouldParseContentDisposition() 432 .getBoolean(SmsManager.MMS_CONFIG_SUPPORT_MMS_CONTENT_DISPOSITION, true); in shouldParseContentDisposition()
|
D | IccSmsInterfaceManager.java | 19 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; 42 import android.telephony.SmsManager; 839 data = new byte[SmsManager.SMS_RECORD_LENGTH]; in makeSmsRecordData() 841 data = new byte[SmsManager.CDMA_SMS_RECORD_LENGTH]; in makeSmsRecordData() 1315 final ArrayList<String> parts = SmsManager.getDefault().divideMessage(textAndAddress[0]); in sendStoredMultipartText() 1466 pi.send(SmsManager.RESULT_ERROR_GENERIC_FAILURE); in returnUnspecifiedFailure()
|
D | SmsDispatchersController.java | 38 import android.telephony.SmsManager; 483 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms() 490 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms() 529 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms()
|
D | ImsSmsDispatcher.java | 26 import android.telephony.SmsManager; 143 @SmsManager.Result int reason, int networkReasonCode) { 451 SmsManager.RESULT_SYSTEM_ERROR, in sendSms()
|
/frameworks/opt/telephony/src/java/android/telephony/gsm/ |
D | SmsManager.java | 29 @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/ |
D | SmsManagerPermissionTest.java | 19 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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | SmsStats.java | 49 import android.telephony.SmsManager; 157 @SmsManager.Result int errorCode, long messageId, boolean isFromDefaultApp) { in onOutgoingSms() 164 @SmsManager.Result int errorCode, int radioSpecificErrorCode, long messageId, in onOutgoingSms() 174 } else if (errorCode == SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY) { in onOutgoingSms() 176 } else if (errorCode != SmsManager.RESULT_ERROR_NONE) { in onOutgoingSms() 181 if (errorCode == SmsManager.RESULT_RIL_SMS_SEND_FAIL_RETRY) { in onOutgoingSms() 183 } else if (errorCode != SmsManager.RESULT_ERROR_NONE) { in onOutgoingSms() 187 if (errorCode == SmsManager.RESULT_RIL_RADIO_NOT_AVAILABLE in onOutgoingSms() 226 proto.errorCode = isOverIms ? SmsManager.RESULT_ERROR_NONE : NO_ERROR_CODE; in getOutgoingDefaultProto()
|
D | TelephonyMetrics.java | 56 import android.telephony.SmsManager; 578 if (event.errorCode != SmsManager.RESULT_ERROR_NONE) { in printAllMetrics() 2420 .setErrorCode(success ? SmsManager.RESULT_ERROR_NONE : in writeIncomingSmsWithType() 2421 SmsManager.RESULT_ERROR_GENERIC_FAILURE)); in writeIncomingSmsWithType() 2489 success ? SmsManager.RESULT_ERROR_NONE : SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsSessionWithType() 2556 int smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError() 2562 smsError = SmsManager.RESULT_NO_MEMORY; in writeIncomingSmsError() 2565 smsError = SmsManager.RESULT_REQUEST_NOT_SUPPORTED; in writeIncomingSmsError() 2569 smsError = SmsManager.RESULT_ERROR_GENERIC_FAILURE; in writeIncomingSmsError()
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsSmsImplBase.java | 23 import android.telephony.SmsManager; 166 SmsManager.RESULT_ERROR_GENERIC_FAILURE); in sendSms() 263 SmsManager.RESULT_ERROR_NONE, RESULT_NO_NETWORK_ERROR); in onSendSmsResultSuccess() 290 @SendStatusResult int status, @SmsManager.Result int reason) throws RuntimeException { in onSendSmsResult() 324 @SmsManager.Result int reason, int networkErrorCode) throws RuntimeException { in onSendSmsResultError()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsMessage.java | 268 return createFromEfRecord(index, data, SmsManager.getDefaultSmsSubscriptionId()); in createFromEfRecord() 363 return calculateLength(msgBody, use7bitOnly, SmsManager.getDefaultSmsSubscriptionId()); in calculateLength() 411 return fragmentText(text, SmsManager.getDefaultSmsSubscriptionId()); in fragmentText() 586 SmsManager.getDefaultSmsSubscriptionId()); in getSubmitPdu() 666 public static SubmitPdu getSmsPdu(int subId, @SmsManager.StatusOnIcc int status, in getSmsPdu() 671 if (status == SmsManager.STATUS_ON_ICC_READ in getSmsPdu() 672 || status == SmsManager.STATUS_ON_ICC_UNREAD) { // Deliver PDU in getSmsPdu() 680 if (status == SmsManager.STATUS_ON_ICC_READ in getSmsPdu() 681 || status == SmsManager.STATUS_ON_ICC_UNREAD) { // Deliver PDU in getSmsPdu() 1032 return useCdmaFormatForMoSms(SmsManager.getDefaultSmsSubscriptionId()); in useCdmaFormatForMoSms() [all …]
|
D | SmsManager.java | 78 public final class SmsManager { class 84 private static final Map<Pair<Context, Integer>, SmsManager> sSubInstances = 88 private static final SmsManager DEFAULT_INSTANCE = getSmsManagerForContextAndSubscriptionId( 299 SmsManager.PREMIUM_SMS_CONSENT_UNKNOWN, 300 SmsManager.PREMIUM_SMS_CONSENT_ASK_USER, 301 SmsManager.PREMIUM_SMS_CONSENT_NEVER_ALLOW, 302 SmsManager.PREMIUM_SMS_CONSENT_ALWAYS_ALLOW 1493 public static SmsManager getDefault() { in getDefault() 1507 public static @NonNull SmsManager getSmsManagerForContextAndSubscriptionId( in getSmsManagerForContextAndSubscriptionId() 1512 SmsManager smsManager = sSubInstances.get(key); in getSmsManagerForContextAndSubscriptionId() [all …]
|
D | TelephonyFrameworkInitializer.java | 97 SmsManager.class, in registerServiceWrappers() 98 context -> SmsManager.getSmsManagerForContextAndSubscriptionId(context, in registerServiceWrappers()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsDispatcherTest.java | 19 import static android.telephony.SmsManager.RESULT_ERROR_SHORT_CODE_NEVER_ALLOWED; 20 import static android.telephony.SmsManager.SMS_CATEGORY_POSSIBLE_PREMIUM_SHORT_CODE; 56 import android.telephony.SmsManager; 257 assertEquals(SmsManager.RESULT_ERROR_NULL_PDU, mTestReceiver.getResultCode()); in testSendTextWithInvalidDestAddr() 321 assertEquals(SmsManager.RESULT_ERROR_GENERIC_FAILURE, mTestReceiver.getResultCode()); in testSendMultipartTextWithInvalidText() 404 resultCode == SmsManager.RESULT_ERROR_NONE || resultCode == Activity.RESULT_OK); in testSendSmsByCarrierApp() 475 resultCode == SmsManager.RESULT_ERROR_NONE || resultCode == Activity.RESULT_OK); in testSendMultipartSmsByCarrierApp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsUsageMonitorShortCodeTest.java | 19 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;
|
D | SmsDispatchersControllerTest.java | 37 import android.telephony.SmsManager; 158 verify(mTracker).onFailed(eq(mContext), eq(SmsManager.RESULT_SMS_SEND_RETRY_FAILED), in testSendRetrySmsNullPdu()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | UsimDataDownloadHandler.java | 25 import android.telephony.SmsManager; 96 mCi.writeSmsToSim(SmsManager.STATUS_ON_ICC_UNREAD, smsc, in handleUsimDataDownload()
|
/frameworks/opt/telephony/ |
D | README.txt | 5 SmsManager and others.
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 41 import android.telephony.SmsManager; 211 pendingIntent.send(mContext, SmsManager.MMS_ERROR_UNSPECIFIED, null);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | SIMRecords.java | 19 import static android.telephony.SmsManager.STATUS_ON_ICC_READ; 20 import static android.telephony.SmsManager.STATUS_ON_ICC_UNREAD;
|
/frameworks/opt/telephony/proto/src/ |
D | telephony.proto | 2626 // - it is mapped to a SmsManager.RESULT_* code 2627 // SmsManager can be accessed from 2628 // frameworks/base/telephony/java/android/telephony/SmsManager.java
|