Home
last modified time | relevance | path

Searched refs:SmsCbConstants (Results 1 – 15 of 15) sorted by relevance

/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsCbHeader.java270 return mMessageIdentifier >= SmsCbConstants.MESSAGE_ID_PWS_FIRST_IDENTIFIER in isEmergencyMessage()
271 && mMessageIdentifier <= SmsCbConstants.MESSAGE_ID_PWS_LAST_IDENTIFIER; in isEmergencyMessage()
280 return (mMessageIdentifier & SmsCbConstants.MESSAGE_ID_ETWS_TYPE_MASK) in isEtwsMessage()
281 == SmsCbConstants.MESSAGE_ID_ETWS_TYPE; in isEtwsMessage()
305 return mMessageIdentifier >= SmsCbConstants.MESSAGE_ID_CMAS_FIRST_IDENTIFIER in isCmasMessage()
306 && mMessageIdentifier <= SmsCbConstants.MESSAGE_ID_CMAS_LAST_IDENTIFIER; in isCmasMessage()
316 return (mSerialNumber & SmsCbConstants.SERIAL_NUMBER_ETWS_ACTIVATE_POPUP) != 0; in isEtwsPopupAlert()
326 return (mSerialNumber & SmsCbConstants.SERIAL_NUMBER_ETWS_EMERGENCY_USER_ALERT) != 0; in isEtwsEmergencyUserAlert()
336 return mMessageIdentifier - SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING; in getEtwsWarningType()
346 case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL: in getCmasMessageClass()
[all …]
DCellBroadcastHandler.java155 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in CellBroadcastHandler()
157 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL_LANGUAGE, in CellBroadcastHandler()
161 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in CellBroadcastHandler()
163 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED_LANGUAGE, in CellBroadcastHandler()
165 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY, in CellBroadcastHandler()
167 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY_LANGUAGE, in CellBroadcastHandler()
171 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED, in CellBroadcastHandler()
173 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED_LANGUAGE, in CellBroadcastHandler()
175 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY, in CellBroadcastHandler()
177 { SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY_LANGUAGE, in CellBroadcastHandler()
[all …]
DSmsCbConstants.java22 public class SmsCbConstants { class
25 private SmsCbConstants() { } in SmsCbConstants() method in SmsCbConstants
DGsmCellBroadcastHandler.java293 if (header.getServiceCategory() == SmsCbConstants.MESSAGE_ID_CMAS_GEO_FENCING_TRIGGER) { in handleSmsMessage()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DSendGsmCmasMessages.java29 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 …]
DSendTestMessages.java31 import com.android.internal.telephony.gsm.SmsCbConstants;
518 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING, in testSendEtwsMessageEarthquake()
523 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_TSUNAMI_WARNING, in testSendEtwsMessageTsunami()
529 SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_AND_TSUNAMI_WARNING, etwsMessageNormal); in testSendEtwsMessageEarthquakeTsunami()
533 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE, in testSendEtwsMessageOther()
542 sendBroadcast(activity, serialNumber, SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE, in testSendEtwsMessageTest()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastConfigServiceTest.java41 import com.android.internal.telephony.gsm.SmsCbConstants;
251 eq(SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_WARNING), in testEnablingChannelsDefault()
252 eq(SmsCbConstants.MESSAGE_ID_ETWS_EARTHQUAKE_AND_TSUNAMI_WARNING), in testEnablingChannelsDefault()
257 eq(SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE), in testEnablingChannelsDefault()
258 eq(SmsCbConstants.MESSAGE_ID_ETWS_OTHER_EMERGENCY_TYPE), in testEnablingChannelsDefault()
263 eq(SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE), in testEnablingChannelsDefault()
264 eq(SmsCbConstants.MESSAGE_ID_ETWS_TEST_MESSAGE), in testEnablingChannelsDefault()
269 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL), in testEnablingChannelsDefault()
270 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL), in testEnablingChannelsDefault()
275 eq(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED), in testEnablingChannelsDefault()
[all …]
DCellBroadcastBootupConfigTest.java23 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 …]
DCellBroadcastAlertDialogTest.java45 import com.android.internal.telephony.gsm.SmsCbConstants;
78 private int mServiceCategory = SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL;
180 mServiceCategory = SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY; in testDismissWithDialog()
181 mCmasMessageClass = SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY; in testDismissWithDialog()
212 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, in testOnNewIntent()
213 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY)); in testOnNewIntent()
DCellBroadcastResourcesTest.java30 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()
DCellBroadcastAlertServiceTest.java33 import com.android.internal.telephony.gsm.SmsCbConstants;
49 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, 0); in createMessage()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmCellBroadcastHandlerTest.java47 import com.android.cellbroadcastservice.SmsCbConstants;
91 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in query()
190 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in testTriggerMessage()
DGsmSmsCbMessageTest.java34 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()
DCellBroadcastHandlerTest.java43 import com.android.cellbroadcastservice.SmsCbConstants;
84 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL, in query()
/packages/modules/CellBroadcastService/
DAndroid.bp46 "src/com/android/cellbroadcastservice/SmsCbConstants.java",