/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | SmsCbHeader.java | 279 return mMessageIdentifier >= SmsCbConstants.MESSAGE_ID_PWS_FIRST_IDENTIFIER in isEmergencyMessage() 280 && mMessageIdentifier <= SmsCbConstants.MESSAGE_ID_PWS_LAST_IDENTIFIER; in isEmergencyMessage() 289 return (mMessageIdentifier & SmsCbConstants.MESSAGE_ID_ETWS_TYPE_MASK) in isEtwsMessage() 290 == SmsCbConstants.MESSAGE_ID_ETWS_TYPE; in isEtwsMessage() 314 return mMessageIdentifier >= SmsCbConstants.MESSAGE_ID_CMAS_FIRST_IDENTIFIER in isCmasMessage() 315 && mMessageIdentifier <= SmsCbConstants.MESSAGE_ID_CMAS_LAST_IDENTIFIER; in isCmasMessage() 325 return (mSerialNumber & SmsCbConstants.SERIAL_NUMBER_ETWS_ACTIVATE_POPUP) != 0; in isEtwsPopupAlert() 335 return (mSerialNumber & SmsCbConstants.SERIAL_NUMBER_ETWS_EMERGENCY_USER_ALERT) != 0; in isEtwsEmergencyUserAlert() 345 return mMessageIdentifier - SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING; in getEtwsWarningType() 355 case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL: in getCmasMessageClass() [all …]
|
D | CellBroadcastHandler.java | 218 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in CellBroadcastHandler() 220 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL_LANGUAGE, in CellBroadcastHandler() 224 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in CellBroadcastHandler() 226 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED_LANGUAGE, in CellBroadcastHandler() 228 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY, in CellBroadcastHandler() 230 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY_LANGUAGE, in CellBroadcastHandler() 234 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED, in CellBroadcastHandler() 236 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED_LANGUAGE, in CellBroadcastHandler() 238 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY, in CellBroadcastHandler() 240 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY_LANGUAGE, in CellBroadcastHandler() [all …]
|
D | SmsCbConstants.java | 22 public class SmsCbConstants { class 25 private SmsCbConstants() { } in SmsCbConstants() method in SmsCbConstants
|
D | GsmCellBroadcastHandler.java | 452 if (header.getServiceCategory() == SmsCbConstants.MESSAGE_ID_CMAS_GEO_FENCING_TRIGGER) { in handleSmsMessage()
|
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/ |
D | SendGsmCmasMessages.java | 30 import com.android.internal.telephony.gsm.SmsCbConstants; 73 ? SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL_LANGUAGE in testSendCmasPresAlert() 74 : SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in testSendCmasPresAlert() 91 ? SmsCbConstants in testSendCmasExtremeAlert() 93 : SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in testSendCmasExtremeAlert() 110 ? SmsCbConstants in testSendCmasSevereAlert() 112 : SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_EXPECTED_OBSERVED, in testSendCmasSevereAlert() 129 ? SmsCbConstants in testSendCmasAmberAlert() 131 : SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, in testSendCmasAmberAlert() 148 ? SmsCbConstants in testSendCmasMonthlyTest() [all …]
|
D | SendTestMessages.java | 32 import com.android.internal.telephony.gsm.SmsCbConstants; 519 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING, in testSendEtwsMessageEarthquake() 524 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_TSUNAMI_WARNING, in testSendEtwsMessageTsunami() 530 SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_AND_TSUNAMI_WARNING, etwsMessageNormal); in testSendEtwsMessageEarthquakeTsunami() 534 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE, in testSendEtwsMessageOther() 543 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE, in testSendEtwsMessageTest()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastConfigServiceTest.java | 42 import com.android.internal.telephony.gsm.SmsCbConstants; 254 eq(SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING), in testEnablingChannelsDefault() 255 eq(SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_AND_TSUNAMI_WARNING), in testEnablingChannelsDefault() 260 eq(SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE), in testEnablingChannelsDefault() 261 eq(SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE), in testEnablingChannelsDefault() 266 eq(SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE), in testEnablingChannelsDefault() 267 eq(SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE), in testEnablingChannelsDefault() 272 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL), in testEnablingChannelsDefault() 273 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL), in testEnablingChannelsDefault() 278 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED), in testEnablingChannelsDefault() [all …]
|
D | CellBroadcastBootupConfigTest.java | 23 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTI… 24 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTI… 25 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPEC… 26 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPEC… 27 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMED… 28 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMED… 29 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMED… 30 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMED… 31 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_… 32 import static com.android.internal.telephony.gsm.SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_… [all …]
|
D | CellBroadcastAlertServiceTest.java | 40 import com.android.internal.telephony.gsm.SmsCbConstants; 59 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, 0); in createMessage() 323 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY); in testShowNewAlertChildAbductionWithDefaultLanguage() 330 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, in testShowNewAlertChildAbductionWithDefaultLanguage() 331 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY); in testShowNewAlertChildAbductionWithDefaultLanguage() 351 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction() 358 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, in testShowNewAlertChildAbduction() 359 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction()
|
D | CellBroadcastResourcesTest.java | 30 import com.android.internal.telephony.gsm.SmsCbConstants; 56 SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_AND_TSUNAMI_WARNING, "language", "body", in testGetMessageDetails() 68 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, "language", "body", in testGetMessageDetailsCmasMessage()
|
D | CellBroadcastAlertDialogTest.java | 48 import com.android.internal.telephony.gsm.SmsCbConstants; 84 private int mServiceCategory = SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL; 198 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, in testOnNewIntent() 199 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY)); in testOnNewIntent()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | GsmSmsCbMessageTest.java | 34 import com.android.cellbroadcastservice.SmsCbConstants; 134 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in testCreateMessageFromBinary() 179 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in testCreateTriggerMessage()
|
D | GsmCellBroadcastHandlerTest.java | 64 import com.android.cellbroadcastservice.SmsCbConstants; 113 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in query() 233 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in testTriggerMessage()
|
D | CellBroadcastHandlerTest.java | 51 import com.android.cellbroadcastservice.SmsCbConstants; 97 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in query()
|
/packages/modules/CellBroadcastService/ |
D | Android.bp | 65 "src/com/android/cellbroadcastservice/SmsCbConstants.java",
|