Searched refs:cmasInfo (Results 1 – 7 of 7) sorted by relevance
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastResources.java | 100 SmsCbCmasInfo cmasInfo) { in appendCmasAlertDetails() argument 102 int categoryId = getCmasCategoryResId(cmasInfo); in appendCmasAlertDetails() 109 int responseId = getCmasResponseResId(cmasInfo); in appendCmasAlertDetails() 116 int severityId = getCmasSeverityResId(cmasInfo); in appendCmasAlertDetails() 123 int urgencyId = getCmasUrgencyResId(cmasInfo); in appendCmasAlertDetails() 130 int certaintyId = getCmasCertaintyResId(cmasInfo); in appendCmasAlertDetails() 154 private static int getCmasCategoryResId(SmsCbCmasInfo cmasInfo) { in getCmasCategoryResId() argument 155 switch (cmasInfo.getCategory()) { in getCmasCategoryResId() 201 private static int getCmasResponseResId(SmsCbCmasInfo cmasInfo) { in getCmasResponseResId() argument 202 switch (cmasInfo.getResponseType()) { in getCmasResponseResId() [all …]
|
D | CellBroadcastContentProvider.java | 219 SmsCbCmasInfo cmasInfo = message.getCmasWarningInfo(); in getContentValues() local 220 if (cmasInfo != null) { in getContentValues() 221 cv.put(Telephony.CellBroadcasts.CMAS_MESSAGE_CLASS, cmasInfo.getMessageClass()); in getContentValues() 222 cv.put(Telephony.CellBroadcasts.CMAS_CATEGORY, cmasInfo.getCategory()); in getContentValues() 223 cv.put(Telephony.CellBroadcasts.CMAS_RESPONSE_TYPE, cmasInfo.getResponseType()); in getContentValues() 224 cv.put(Telephony.CellBroadcasts.CMAS_SEVERITY, cmasInfo.getSeverity()); in getContentValues() 225 cv.put(Telephony.CellBroadcasts.CMAS_URGENCY, cmasInfo.getUrgency()); in getContentValues() 226 cv.put(Telephony.CellBroadcasts.CMAS_CERTAINTY, cmasInfo.getCertainty()); in getContentValues()
|
D | CellBroadcastCursorAdapter.java | 116 SmsCbCmasInfo cmasInfo; in createFromCursor() local 167 cmasInfo = new SmsCbCmasInfo(messageClass, cmasCategory, responseType, severity, in createFromCursor() 170 cmasInfo = null; in createFromCursor() 203 body, priority, etwsInfo, cmasInfo, maximumWaitTimeSec, null, time, in createFromCursor()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 497 SmsCbCmasInfo cmasInfo = cbMessage.getCmasWarningInfo(); in doTestCmasBroadcast() local 498 assertEquals(messageClass, cmasInfo.getMessageClass()); in doTestCmasBroadcast() 499 assertEquals(SmsCbCmasInfo.CMAS_CATEGORY_UNKNOWN, cmasInfo.getCategory()); in doTestCmasBroadcast() 500 assertEquals(SmsCbCmasInfo.CMAS_RESPONSE_TYPE_UNKNOWN, cmasInfo.getResponseType()); in doTestCmasBroadcast() 501 assertEquals(SmsCbCmasInfo.CMAS_SEVERITY_UNKNOWN, cmasInfo.getSeverity()); in doTestCmasBroadcast() 502 assertEquals(SmsCbCmasInfo.CMAS_URGENCY_UNKNOWN, cmasInfo.getUrgency()); in doTestCmasBroadcast() 503 assertEquals(SmsCbCmasInfo.CMAS_CERTAINTY_UNKNOWN, cmasInfo.getCertainty()); in doTestCmasBroadcast() 559 SmsCbCmasInfo cmasInfo = cbMessage.getCmasWarningInfo(); in testCmasExtremeAlertType1Elements() local 560 assertEquals(SmsCbCmasInfo.CMAS_CLASS_EXTREME_THREAT, cmasInfo.getMessageClass()); in testCmasExtremeAlertType1Elements() 561 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 | 130 SmsCbCmasInfo cmasInfo = new SmsCbCmasInfo(cmasMessageClass, cmasCategory, responseType, in createCmasSmsMessage() local 135 SmsCbMessage.MESSAGE_PRIORITY_EMERGENCY, null, cmasInfo, 0, 1); in createCmasSmsMessage()
|
D | SendGsmCmasMessages.java | 231 SmsCbCmasInfo cmasInfo = in createCmasSmsMessage() local 241 priority, null, cmasInfo, 0, 1); in createCmasSmsMessage()
|