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.java439 private static void verifyCbValues(SmsCbMessage cbMessage) { in verifyCbValues() argument
440 assertEquals(SmsCbMessage.MESSAGE_FORMAT_3GPP2, cbMessage.getMessageFormat()); in verifyCbValues()
441 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE, cbMessage.getGeographicalScope()); in verifyCbValues()
442 assertEquals(false, cbMessage.isEtwsMessage()); // ETWS on CDMA not currently supported in verifyCbValues()
450 SmsCbMessage cbMessage = in doTestNonEmergencyBroadcast() local
454 verifyCbValues(cbMessage); in doTestNonEmergencyBroadcast()
455 assertEquals(123, cbMessage.getServiceCategory()); in doTestNonEmergencyBroadcast()
456 assertEquals(456, cbMessage.getSerialNumber()); in doTestNonEmergencyBroadcast()
457 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_NORMAL, cbMessage.getMessagePriority()); in doTestNonEmergencyBroadcast()
458 assertEquals("en", cbMessage.getLanguageCode()); in doTestNonEmergencyBroadcast()
[all …]
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendGsmCmasMessages.java58 private static void sendBroadcast(Activity activity, SmsCbMessage cbMessage) { in sendBroadcast() argument
60 intent.putExtra("message", cbMessage); in sendBroadcast()
70 SmsCbMessage cbMessage = in testSendCmasPresAlert() local
83 sendBroadcast(activity, cbMessage); in testSendCmasPresAlert()
88 SmsCbMessage cbMessage = in testSendCmasExtremeAlert() local
102 sendBroadcast(activity, cbMessage); in testSendCmasExtremeAlert()
107 SmsCbMessage cbMessage = in testSendCmasSevereAlert() local
121 sendBroadcast(activity, cbMessage); in testSendCmasSevereAlert()
126 SmsCbMessage cbMessage = in testSendCmasAmberAlert() local
140 sendBroadcast(activity, cbMessage); in testSendCmasAmberAlert()
[all …]
DSendCdmaCmasMessages.java53 private static void sendBroadcast(Activity activity, SmsCbMessage cbMessage) { in sendBroadcast() argument
55 intent.putExtra("message", cbMessage); in sendBroadcast()
64 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasPresAlert() local
70 sendBroadcast(activity, cbMessage); in testSendCmasPresAlert()
74 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasExtremeAlert() local
80 sendBroadcast(activity, cbMessage); in testSendCmasExtremeAlert()
84 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasSevereAlert() local
90 sendBroadcast(activity, cbMessage); in testSendCmasSevereAlert()
94 SmsCbMessage cbMessage = createCmasSmsMessage( in testSendCmasAmberAlert() local
100 sendBroadcast(activity, cbMessage); in testSendCmasAmberAlert()
[all …]
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmCellBroadcastHandler.java459 SmsCbMessage cbMessage = handleGsmBroadcastSms(header, pdu, slotIndex); in handleSmsMessage() local
460 if (cbMessage != null) { in handleSmsMessage()
461 if (isDuplicate(cbMessage)) { in handleSmsMessage()
468 if (handleAreaInfoMessage(slotIndex, cbMessage)) { in handleSmsMessage()
469 log("Channel " + cbMessage.getServiceCategory() + " message processed"); in handleSmsMessage()
476 handleBroadcastSms(cbMessage); in handleSmsMessage()