Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java24 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
71 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges()
76 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges()
81 assertEquals(AlertType.OTHER, list.get(2).mAlertType); in testGetCellBroadcastChannelRanges()
86 assertEquals(AlertType.DEFAULT, list.get(3).mAlertType); in testGetCellBroadcastChannelRanges()
91 assertEquals(AlertType.DEFAULT, list.get(4).mAlertType); in testGetCellBroadcastChannelRanges()
96 assertEquals(AlertType.TEST, list.get(5).mAlertType); in testGetCellBroadcastChannelRanges()
DCellBroadcastAlertServiceTest.java178 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java52 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
115 private AlertType mAlertType;
340 mAlertType = AlertType.DEFAULT; in onStartCommand()
342 mAlertType = (AlertType) intent.getSerializableExtra(ALERT_AUDIO_TONE_TYPE); in onStartCommand()
401 private void playAlertTone(AlertType alertType, int[] patternArray) { in playAlertTone()
427 attrBuilder.setUsage(alertType == AlertType.INFO in playAlertTone()
621 private AudioAttributes getAlertAudioAttributes(AlertType alertType) { in getAlertAudioAttributes()
625 builder.setUsage((alertType == AlertType.INFO in getAlertAudioAttributes()
640 private void setAlertVolume(AlertType alertType) { in setAlertVolume()
674 private void setAlarmStreamVolumeToFull(AlertType alertType) { in setAlarmStreamVolumeToFull()
[all …]
DCellBroadcastAlertService.java119 public enum AlertType { enum in CellBroadcastAlertService
423 if (range.mAlertType == AlertType.TEST) { in isChannelEnabled()
522 AlertType alertType = AlertType.DEFAULT; in openEmergencyAlertNotification()
524 alertType = AlertType.ETWS_DEFAULT; in openEmergencyAlertNotification()
532 alertType = AlertType.ETWS_EARTHQUAKE; in openEmergencyAlertNotification()
535 alertType = AlertType.ETWS_TSUNAMI; in openEmergencyAlertNotification()
538 alertType = AlertType.TEST; in openEmergencyAlertNotification()
541 alertType = AlertType.OTHER; in openEmergencyAlertNotification()
701 AlertType.OTHER); in addToNotificationBar()
DCellBroadcastChannelManager.java30 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
116 public AlertType mAlertType;
131 mAlertType = AlertType.DEFAULT; in CellBroadcastChannelRange()
152 mAlertType = AlertType.valueOf(value.toUpperCase()); in CellBroadcastChannelRange()