Home
last modified time | relevance | path

Searched refs:CellBroadcastAlertService (Results 1 – 15 of 15) sorted by relevance

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java20 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.PROP_DISPLAY;
21 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.SHOW_NEW_ALERT_ACTION;
73 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
91 CellBroadcastServiceTestCase<CellBroadcastAlertService> {
102 super(CellBroadcastAlertService.class); in CellBroadcastAlertServiceTest()
186 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessage()
194 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClass()
204 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClassAndLanguage()
351 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in testShowNewAlert()
361 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
[all …]
DCellBroadcastAlertDialogTest.java53 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
113 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createActivityIntent()
255 intent.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, true); in testDismissByDeleteIntent()
262 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testDismissByDeleteIntent()
316 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testDismiss()
335 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testOnNewIntent()
340 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testOnNewIntent()
434 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testOnKeyDownWithEmptyMessageList()
485 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testPulsationRestartOnNewIntent()
592 intent1.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, false); in testNewMessageListCount()
[all …]
DCellBroadcastAlertAudioTest.java19 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.SHOW_NEW_ALERT_ACTION;
51 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
197 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfo()
217 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfoForWatch()
481 CellBroadcastAlertService.AlertType.MUTE); in testStartServiceMuteWithOverrideDnd()
512 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertDuration()
DCellBroadcastInternalReceiverTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
75 CellBroadcastAlertService.NOTIFICATION_ID); in testOnReceive_actionMarkAsRead()
DCellBroadcastReceiverTest.java58 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
206 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
210 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
217 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
221 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
DCellBroadcastChannelManagerTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
DCellBroadcastConfigServiceTest.java59 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
1711 assertEquals(CellBroadcastAlertService.SETTINGS_CHANGED_NOTIFICATION_ID, in testUpdateSettingsForCarrierChanged()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java510 if (getIntent().getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in onCreate()
544 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
549 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
665 CellBroadcastAlertService.addToNotificationBar(latestMessage, messageList, in onUserLeaveHint()
729 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, mMessageList); in onSaveInstanceState()
994 if (intent.getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in onNewIntent()
999 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onNewIntent()
1051 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in clearNotification()
1055 if (intent.getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in clearNotification()
1279 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in removeReadMessageFromNotificationBar()
[all …]
DCellBroadcastAlertService.java90 public class CellBroadcastAlertService extends Service { class
412 alertIntent.setClass(this, CellBroadcastAlertService.class); in handleCellBroadcastIntent()
936 deleteIntent.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, true); in addToNotificationBar()
970 if (sRemindAfterCallFinish && context instanceof CellBroadcastAlertService) { in addToNotificationBar()
972 ((CellBroadcastAlertService) context).startForeground(notificationId, in addToNotificationBar()
1075 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createDisplayMessageIntent()
1108 public CellBroadcastAlertService getService() { in getService()
1109 return CellBroadcastAlertService.this; in getService()
1146 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in playPendingAlert()
DCellBroadcastInternalReceiver.java65 CellBroadcastAlertService.NOTIFICATION_ID); in onReceive()
DCellBroadcastConfigService.java149 CellBroadcastAlertService.createNotificationChannels(c); in onHandleIntent()
161 CellBroadcastAlertService.SETTINGS_CHANGED_NOTIFICATION_ID, settingsIntent, in onHandleIntent()
167 CellBroadcastAlertService.NOTIFICATION_CHANNEL_SETTINGS_UPDATES) in onHandleIntent()
177 CellBroadcastAlertService.SETTINGS_CHANGED_NOTIFICATION_ID, in onHandleIntent()
DCellBroadcastReceiver.java187 intent.setClass(mContext, CellBroadcastAlertService.class); in onReceive()
204 CellBroadcastAlertService.createNotificationChannels(mContext); in onReceive()
DCellBroadcastChannelManager.java42 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
DCellBroadcastListActivity.java359 i.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in showDialogAndMarkRead()
DCellBroadcastAlertAudio.java64 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;