Home
last modified time | relevance | path

Searched refs:cbMessage (Results 1 – 4 of 4) sorted by relevance

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java541 private static void verifyCbValues(SmsCbMessage cbMessage) { in verifyCbValues() argument
542 assertEquals(SmsCbMessage.MESSAGE_FORMAT_3GPP2, cbMessage.getMessageFormat()); in verifyCbValues()
543 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE, cbMessage.getGeographicalScope()); in verifyCbValues()
544 assertEquals(false, cbMessage.isEtwsMessage()); // ETWS on CDMA not currently supported in verifyCbValues()
552 SmsCbMessage cbMessage = in doTestNonEmergencyBroadcast() local
556 verifyCbValues(cbMessage); in doTestNonEmergencyBroadcast()
557 assertEquals(123, cbMessage.getServiceCategory()); in doTestNonEmergencyBroadcast()
558 assertEquals(456, cbMessage.getSerialNumber()); in doTestNonEmergencyBroadcast()
559 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_NORMAL, cbMessage.getMessagePriority()); in doTestNonEmergencyBroadcast()
560 assertEquals("en", cbMessage.getLanguageCode()); in doTestNonEmergencyBroadcast()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendGsmCmasMessages.java60 private static void sendBroadcast(Context context, SmsCbMessage cbMessage) { in sendBroadcast() argument
62 intent.putExtra("message", cbMessage); in sendBroadcast()
72 SmsCbMessage cbMessage = in testSendCmasAlertWithServiceCategory() local
83 sendBroadcast(context, cbMessage); in testSendCmasAlertWithServiceCategory()
89 SmsCbMessage cbMessage = in testSendCmasPresAlert() local
102 sendBroadcast(context, cbMessage); in testSendCmasPresAlert()
108 SmsCbMessage cbMessage = in testSendCmasExtremeAlert() local
122 sendBroadcast(context, cbMessage); in testSendCmasExtremeAlert()
128 SmsCbMessage cbMessage = in testSendCmasSevereAlert() local
142 sendBroadcast(context, cbMessage); in testSendCmasSevereAlert()
[all …]
DSendCdmaCmasMessages.java55 private static void sendBroadcast(Context context, SmsCbMessage cbMessage) { in sendBroadcast() argument
57 intent.putExtra("message", cbMessage); in sendBroadcast()
66 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasPresAlert() local
74 sendBroadcast(context, cbMessage); in testSendCmasPresAlert()
79 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasExtremeAlert() local
87 sendBroadcast(context, cbMessage); in testSendCmasExtremeAlert()
92 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasSevereAlert() local
100 sendBroadcast(context, cbMessage); in testSendCmasSevereAlert()
105 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasAmberAlert() local
113 sendBroadcast(context, cbMessage); in testSendCmasAmberAlert()
[all …]
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java503 SmsCbMessage cbMessage = handleGsmBroadcastSms(header, pdu, slotIndex); in handleSmsMessage() local
504 if (cbMessage != null) { in handleSmsMessage()
505 if (isDuplicate(cbMessage)) { in handleSmsMessage()
507 .logMessageFiltered(FILTER_DUPLICATE, cbMessage); in handleSmsMessage()
511 if (handleAreaInfoMessage(slotIndex, cbMessage)) { in handleSmsMessage()
512 log("Channel " + cbMessage.getServiceCategory() + " message processed"); in handleSmsMessage()
514 .logMessageFiltered(FILTER_AREAINFO, cbMessage); in handleSmsMessage()
518 handleBroadcastSms(cbMessage); in handleSmsMessage()