Home
last modified time | relevance | path

Searched refs:AlertType (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
H A DCellBroadcastChannelManagerTest.java27 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
74 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges()
84 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges()
95 assertEquals(AlertType.OTHER, list.get(2).mAlertType); in testGetCellBroadcastChannelRanges()
106 assertEquals(AlertType.DEFAULT, list.get(3).mAlertType); in testGetCellBroadcastChannelRanges()
116 assertEquals(AlertType.DEFAULT, list.get(4).mAlertType); in testGetCellBroadcastChannelRanges()
126 assertEquals(AlertType.TEST, list.get(5).mAlertType); in testGetCellBroadcastChannelRanges()
H A DCellBroadcastAlertServiceTest.java296 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
/aosp12/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java56 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
123 private AlertType mAlertType;
372 mAlertType = AlertType.DEFAULT; in onStartCommand()
374 mAlertType = (AlertType) intent.getSerializableExtra(ALERT_AUDIO_TONE_TYPE); in onStartCommand()
433 private void playAlertTone(AlertType alertType, int[] patternArray) { in playAlertTone()
539 (alertType == AlertType.INFO || alertType == AlertType.AREA) ? in playAlertTone()
679 builder.setUsage((mAlertType == AlertType.INFO || mAlertType == AlertType.AREA) ? in getAlertAudioAttributes()
734 if (mAlertType != AlertType.INFO && mAlertType != AlertType.AREA) { in setAlarmStreamVolumeToFull()
H A DCellBroadcastAlertService.java144 public enum AlertType { enum in CellBroadcastAlertService
501 if (range.mAlertType == AlertType.TEST) { in isChannelEnabled()
509 if (range.mAlertType == AlertType.AREA) { in isChannelEnabled()
620 AlertType alertType = AlertType.DEFAULT; in openEmergencyAlertNotification()
622 alertType = AlertType.ETWS_DEFAULT; in openEmergencyAlertNotification()
630 alertType = AlertType.ETWS_EARTHQUAKE; in openEmergencyAlertNotification()
633 alertType = AlertType.ETWS_TSUNAMI; in openEmergencyAlertNotification()
636 alertType = AlertType.TEST; in openEmergencyAlertNotification()
639 alertType = AlertType.OTHER; in openEmergencyAlertNotification()
840 AlertType.OTHER); in addToNotificationBar()
H A DCellBroadcastChannelManager.java30 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
132 public AlertType mAlertType;
160 mAlertType = AlertType.DEFAULT; in CellBroadcastChannelRange()
185 mAlertType = AlertType.valueOf(value.toUpperCase()); in CellBroadcastChannelRange()
274 if (!hasVibrationPattern && mAlertType.equals(AlertType.INFO)) { in CellBroadcastChannelRange()