Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java129 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()
252 assertEquals(AlertType.OTHER, list.get(2).mAlertType); in verifyChannelRangesForConfig2()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java131 private AlertType mAlertType; field in CellBroadcastAlertAudio
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()
437 playAlertTone(mAlertType, mVibrationPattern); in handleStartIntent()
741 builder.setUsage((mAlertType == AlertType.INFO || mAlertType == AlertType.AREA) ? in getAlertAudioAttributes()
796 if (mAlertType != AlertType.INFO && mAlertType != AlertType.AREA) { in setAlarmStreamVolumeToFull()
DCellBroadcastChannelManager.java159 public AlertType mAlertType; field in CellBroadcastChannelManager.CellBroadcastChannelRange
195 mAlertType = AlertType.DEFAULT; in CellBroadcastChannelRange()
220 mAlertType = AlertType.valueOf(value.toUpperCase()); in CellBroadcastChannelRange()
334 if (!hasVibrationPattern && mAlertType.equals(AlertType.INFO)) { in CellBroadcastChannelRange()
353 + mEmergencyLevel + ",type=" + mAlertType + ",scope=" + mScope + ",vibration=" in toString()
DCellBroadcastResources.java384 switch (range.mAlertType) { in getDialogTitleResource()
436 switch (range.mAlertType) { in getDialogPictogramResource()
DCellBroadcastAlertService.java295 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()
707 alertType = range.mAlertType; in openEmergencyAlertNotification()
DCellBroadcastConfigService.java530 switch (range.mAlertType) { in getCellBroadcastChannelsConfig()