Searched refs:cmasInfo (Results 1 – 7 of 7) sorted by relevance
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastResources.java | 103 SmsCbCmasInfo cmasInfo) { in appendCmasAlertDetails() argument 105 int categoryId = getCmasCategoryResId(cmasInfo); in appendCmasAlertDetails() 112 int responseId = getCmasResponseResId(cmasInfo); in appendCmasAlertDetails() 119 int severityId = getCmasSeverityResId(cmasInfo); in appendCmasAlertDetails() 126 int urgencyId = getCmasUrgencyResId(cmasInfo); in appendCmasAlertDetails() 133 int certaintyId = getCmasCertaintyResId(cmasInfo); in appendCmasAlertDetails() 157 private static int getCmasCategoryResId(SmsCbCmasInfo cmasInfo) { in getCmasCategoryResId() argument 158 switch (cmasInfo.getCategory()) { in getCmasCategoryResId() 204 private static int getCmasResponseResId(SmsCbCmasInfo cmasInfo) { in getCmasResponseResId() argument 205 switch (cmasInfo.getResponseType()) { in getCmasResponseResId() [all …]
|
D | CellBroadcastContentProvider.java | 285 SmsCbCmasInfo cmasInfo = message.getCmasWarningInfo(); in getContentValues() local 286 if (cmasInfo != null) { in getContentValues() 287 cv.put(Telephony.CellBroadcasts.CMAS_MESSAGE_CLASS, cmasInfo.getMessageClass()); in getContentValues() 288 cv.put(Telephony.CellBroadcasts.CMAS_CATEGORY, cmasInfo.getCategory()); in getContentValues() 289 cv.put(Telephony.CellBroadcasts.CMAS_RESPONSE_TYPE, cmasInfo.getResponseType()); in getContentValues() 290 cv.put(Telephony.CellBroadcasts.CMAS_SEVERITY, cmasInfo.getSeverity()); in getContentValues() 291 cv.put(Telephony.CellBroadcasts.CMAS_URGENCY, cmasInfo.getUrgency()); in getContentValues() 292 cv.put(Telephony.CellBroadcasts.CMAS_CERTAINTY, cmasInfo.getCertainty()); in getContentValues()
|
D | CellBroadcastCursorAdapter.java | 126 SmsCbCmasInfo cmasInfo; in createFromCursor() local 177 cmasInfo = new SmsCbCmasInfo(messageClass, cmasCategory, responseType, severity, in createFromCursor() 180 cmasInfo = null; in createFromCursor() 220 body, priority, etwsInfo, cmasInfo, maximumWaitTimeSec, null, time, in createFromCursor()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 599 SmsCbCmasInfo cmasInfo = cbMessage.getCmasWarningInfo(); in doTestCmasBroadcast() local 600 assertEquals(messageClass, cmasInfo.getMessageClass()); in doTestCmasBroadcast() 601 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_UNKNOWN, cmasInfo.getCategory()); in doTestCmasBroadcast() 602 assertEquals(SmsCbCmasInfo.CMAS_RESPONSE_TYPE_UNKNOWN, cmasInfo.getResponseType()); in doTestCmasBroadcast() 603 assertEquals(SmsCbCmasInfo.CMAS_SEVERITY_UNKNOWN, cmasInfo.getSeverity()); in doTestCmasBroadcast() 604 assertEquals(SmsCbCmasInfo.CMAS_URGENCY_UNKNOWN, cmasInfo.getUrgency()); in doTestCmasBroadcast() 605 assertEquals(SmsCbCmasInfo.CMAS_CERTAINTY_UNKNOWN, cmasInfo.getCertainty()); in doTestCmasBroadcast() 661 SmsCbCmasInfo cmasInfo = cbMessage.getCmasWarningInfo(); in testCmasExtremeAlertType1Elements() local 662 assertEquals(SmsCbCmasInfo.CMAS_CLASS_EXTREME_THREAT, cmasInfo.getMessageClass()); in testCmasExtremeAlertType1Elements() 663 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_ENV, cmasInfo.getCategory()); in testCmasExtremeAlertType1Elements() [all …]
|
D | GsmSmsCbMessageTest.java | 141 SmsCbCmasInfo cmasInfo = msg.getCmasWarningInfo(); in testCreateMessageFromBinary() local 142 assertEquals(SmsCbCmasInfo.CMAS_CLASS_EXTREME_THREAT, cmasInfo.getMessageClass()); in testCreateMessageFromBinary() 143 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_UNKNOWN, cmasInfo.getCategory()); in testCreateMessageFromBinary() 144 assertEquals(SmsCbCmasInfo.CMAS_RESPONSE_TYPE_UNKNOWN, cmasInfo.getResponseType()); in testCreateMessageFromBinary() 145 assertEquals(SmsCbCmasInfo.CMAS_URGENCY_IMMEDIATE, cmasInfo.getUrgency()); in testCreateMessageFromBinary() 146 assertEquals(SmsCbCmasInfo.CMAS_CERTAINTY_OBSERVED, cmasInfo.getCertainty()); in testCreateMessageFromBinary()
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendCdmaCmasMessages.java | 146 SmsCbCmasInfo cmasInfo = new SmsCbCmasInfo(cmasMessageClass, cmasCategory, responseType, in createCmasSmsMessage() local 151 SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, cmasInfo, 0, 1); in createCmasSmsMessage()
|
D | SendGsmCmasMessages.java | 257 SmsCbCmasInfo cmasInfo = in createCmasSmsMessage() local 267 priority, null, cmasInfo, 0, 1); in createCmasSmsMessage()
|