Home
last modified time | relevance | path

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

/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
H A DCellBroadcastChannelManagerTest.java74 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()
/aosp12/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java123 private AlertType mAlertType; field in CellBroadcastAlertAudio
372 mAlertType = AlertType.DEFAULT; in onStartCommand()
374 mAlertType = (AlertType) intent.getSerializableExtra(ALERT_AUDIO_TONE_TYPE); in onStartCommand()
409 playAlertTone(mAlertType, mVibrationPattern); in onStartCommand()
679 builder.setUsage((mAlertType == AlertType.INFO || mAlertType == AlertType.AREA) ? in getAlertAudioAttributes()
734 if (mAlertType != AlertType.INFO && mAlertType != AlertType.AREA) { in setAlarmStreamVolumeToFull()
H A DCellBroadcastChannelManager.java132 public AlertType mAlertType; field in CellBroadcastChannelManager.CellBroadcastChannelRange
160 mAlertType = AlertType.DEFAULT; in CellBroadcastChannelRange()
185 mAlertType = AlertType.valueOf(value.toUpperCase()); in CellBroadcastChannelRange()
274 if (!hasVibrationPattern && mAlertType.equals(AlertType.INFO)) { in CellBroadcastChannelRange()
294 + mEmergencyLevel + ",type=" + mAlertType + ",scope=" + mScope + ",vibration=" in toString()
H A DCellBroadcastResources.java419 switch (range.mAlertType) { in getDialogTitleResource()
473 switch (range.mAlertType) { in getDialogPictogramResource()
H A DCellBroadcastAlertService.java501 if (range.mAlertType == AlertType.TEST) { in isChannelEnabled()
509 if (range.mAlertType == AlertType.AREA) { in isChannelEnabled()
649 alertType = range.mAlertType; in openEmergencyAlertNotification()
H A DCellBroadcastConfigService.java317 switch (range.mAlertType) { in enableCellBroadcastChannels()