Home
last modified time | relevance | path

Searched refs:CellBroadcastAlertService (Results 1 – 14 of 14) 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;
69 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
85 CellBroadcastServiceTestCase<CellBroadcastAlertService> {
96 super(CellBroadcastAlertService.class); in CellBroadcastAlertServiceTest()
178 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessage()
186 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClass()
196 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClassAndLanguage()
343 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in testShowNewAlert()
353 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
[all …]
DCellBroadcastAlertDialogTest.java64 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
135 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createActivityIntent()
304 intent.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, true); in testDismissByDeleteIntent()
311 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testDismissByDeleteIntent()
365 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testDismiss()
384 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testOnNewIntent()
389 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testOnNewIntent()
483 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testOnKeyDownWithEmptyMessageList()
533 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in testPulsationRestartOnNewIntent()
640 intent1.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, false); in testNewMessageListCount()
[all …]
DCellBroadcastAlertAudioTest.java19 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.SHOW_NEW_ALERT_ACTION;
50 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
196 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfo()
216 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertToneInfoForWatch()
479 CellBroadcastAlertService.AlertType.MUTE); in testStartServiceMuteWithOverrideDnd()
510 CellBroadcastAlertService.AlertType.INFO); in testPlayAlertDuration()
DCellBroadcastInternalReceiverTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
75 CellBroadcastAlertService.NOTIFICATION_ID); in testOnReceive_actionMarkAsRead()
DCellBroadcastReceiverTest.java57 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
205 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
209 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
216 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
220 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
DCellBroadcastChannelManagerTest.java34 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java509 if (getIntent().getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in onCreate()
543 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
548 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
664 CellBroadcastAlertService.addToNotificationBar(latestMessage, messageList, in onUserLeaveHint()
728 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, mMessageList); in onSaveInstanceState()
993 if (intent.getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in onNewIntent()
998 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onNewIntent()
1050 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in clearNotification()
1054 if (intent.getBooleanExtra(CellBroadcastAlertService.DISMISS_DIALOG, false)) { in clearNotification()
1278 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in removeReadMessageFromNotificationBar()
[all …]
DCellBroadcastAlertService.java88 public class CellBroadcastAlertService extends Service { class
399 alertIntent.setClass(this, CellBroadcastAlertService.class); in handleCellBroadcastIntent()
903 deleteIntent.putExtra(CellBroadcastAlertService.DISMISS_DIALOG, true); in addToNotificationBar()
937 if (sRemindAfterCallFinish && context instanceof CellBroadcastAlertService) { in addToNotificationBar()
939 ((CellBroadcastAlertService) context).startForeground(notificationId, in addToNotificationBar()
1042 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createDisplayMessageIntent()
1072 public CellBroadcastAlertService getService() { in getService()
1073 return CellBroadcastAlertService.this; in getService()
1110 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in playPendingAlert()
DCellBroadcastInternalReceiver.java65 CellBroadcastAlertService.NOTIFICATION_ID); in onReceive()
DCellBroadcastConfigService.java147 CellBroadcastAlertService.createNotificationChannels(c); in onHandleIntent()
155 CellBroadcastAlertService.SETTINGS_CHANGED_NOTIFICATION_ID, settingsIntent, in onHandleIntent()
161 CellBroadcastAlertService.NOTIFICATION_CHANNEL_SETTINGS_UPDATES) in onHandleIntent()
171 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;
DCellBroadcastAlertAudio.java63 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
DCellBroadcastListActivity.java359 i.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in showDialogAndMarkRead()