Home
last modified time | relevance | path

Searched refs:alertType (Results 1 – 2 of 2) sorted by relevance

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java401 private void playAlertTone(AlertType alertType, int[] patternArray) { in playAlertTone() argument
405 log("playAlertTone: alertType=" + alertType + ", mEnableVibrate=" + mEnableVibrate in playAlertTone()
427 attrBuilder.setUsage(alertType == AlertType.INFO in playAlertTone()
476 log("Locale=" + res.getConfiguration().getLocales() + ", alertType=" + alertType); in playAlertTone()
479 switch (alertType) { in playAlertTone()
621 private AudioAttributes getAlertAudioAttributes(AlertType alertType) { in getAlertAudioAttributes() argument
625 builder.setUsage((alertType == AlertType.INFO in getAlertAudioAttributes()
640 private void setAlertVolume(AlertType alertType) { in setAlertVolume() argument
651 setAlarmStreamVolumeToFull(alertType); in setAlertVolume()
674 private void setAlarmStreamVolumeToFull(AlertType alertType) { in setAlarmStreamVolumeToFull() argument
[all …]
DCellBroadcastAlertService.java522 AlertType alertType = AlertType.DEFAULT; in openEmergencyAlertNotification() local
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()
551 alertType = range.mAlertType; in openEmergencyAlertNotification()
558 audioIntent.putExtra(CellBroadcastAlertAudio.ALERT_AUDIO_TONE_TYPE, alertType); in openEmergencyAlertNotification()