Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
129 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in verifyChannelRangesForConfig1()
140 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in verifyChannelRangesForConfig1()
152 assertEquals(AlertType.OTHER, list.get(2).mAlertType); in verifyChannelRangesForConfig1()
164 assertEquals(AlertType.DEFAULT, list.get(3).mAlertType); in verifyChannelRangesForConfig1()
175 assertEquals(AlertType.DEFAULT, list.get(4).mAlertType); in verifyChannelRangesForConfig1()
186 assertEquals(AlertType.TEST, list.get(5).mAlertType); in verifyChannelRangesForConfig1()
218 assertEquals(AlertType.MUTE, list.get(9).mAlertType); in verifyChannelRangesForConfig1()
229 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in verifyChannelRangesForConfig2()
240 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in verifyChannelRangesForConfig2()
[all …]
DCellBroadcastAlertAudioTest.java196 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfo()
216 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfoForWatch()
479 CellBroadcastAlertService.AlertType.MUTE); in testStartServiceMuteWithOverrideDnd()
510 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertDuration()
DCellBroadcastAlertServiceTest.java353 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
793 assertEquals(CellBroadcastAlertService.AlertType.MUTE, in testMuteAlert()
801 assertNotEquals(CellBroadcastAlertService.AlertType.MUTE, in testMuteAlert()
835 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testAddToNotificationBarForWatch()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java63 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
131 private AlertType mAlertType;
400 mAlertType = AlertType.DEFAULT; in handleStartIntent()
402 mAlertType = (AlertType) intent.getSerializableExtra(ALERT_AUDIO_TONE_TYPE); in handleStartIntent()
436 if ((mEnableAudio || mEnableVibrate) && (mAlertType != AlertType.MUTE)) { in handleStartIntent()
461 private void playAlertTone(AlertType alertType, int[] patternArray) { in playAlertTone()
578 (alertType == AlertType.INFO || alertType == AlertType.AREA) ? in playAlertTone()
741 builder.setUsage((mAlertType == AlertType.INFO || mAlertType == AlertType.AREA) ? in getAlertAudioAttributes()
796 if (mAlertType != AlertType.INFO && mAlertType != AlertType.AREA) { in setAlarmStreamVolumeToFull()
DCellBroadcastAlertService.java171 public enum AlertType { enum in CellBroadcastAlertService
295 if (range != null && range.mAlertType == AlertType.AREA in shouldDisplayMessage()
572 if (range.mAlertType == AlertType.TEST) { in isChannelEnabled()
579 if (range.mAlertType == AlertType.AREA) { in isChannelEnabled()
678 AlertType alertType = AlertType.DEFAULT; in openEmergencyAlertNotification()
680 alertType = AlertType.ETWS_DEFAULT; in openEmergencyAlertNotification()
688 alertType = AlertType.ETWS_EARTHQUAKE; in openEmergencyAlertNotification()
691 alertType = AlertType.ETWS_TSUNAMI; in openEmergencyAlertNotification()
694 alertType = AlertType.TEST; in openEmergencyAlertNotification()
697 alertType = AlertType.OTHER; in openEmergencyAlertNotification()
[all …]
DCellBroadcastChannelManager.java42 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
159 public AlertType mAlertType;
195 mAlertType = AlertType.DEFAULT; in CellBroadcastChannelRange()
220 mAlertType = AlertType.valueOf(value.toUpperCase()); in CellBroadcastChannelRange()
334 if (!hasVibrationPattern && mAlertType.equals(AlertType.INFO)) { in CellBroadcastChannelRange()