Home
last modified time | relevance | path

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

/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java20 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.SHOW_NEW_ALERT_ACTION;
36 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
46 CellBroadcastServiceTestCase<CellBroadcastAlertService> {
49 super(CellBroadcastAlertService.class); in CellBroadcastAlertServiceTest()
116 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessage()
124 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClass()
134 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in sendMessageForCmasMessageClassAndLanguage()
168 Intent intent = new Intent(mContext, CellBroadcastAlertService.class); in testShowNewAlert()
178 assertEquals(CellBroadcastAlertService.AlertType.DEFAULT, in testShowNewAlert()
186 .getParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in testShowNewAlert()
DCellBroadcastAlertDialogTest.java48 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
100 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createActivityIntent()
186 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testDismiss()
232 eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testOnNewIntent()
DCellBroadcastReceiverTest.java47 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
168 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
172 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_actionSmsEmergencyCbReceived()
179 doReturn(mIntent).when(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
183 verify(mIntent).setClass(mContext, CellBroadcastAlertService.class); in testOnReceive_smsCbReceivedAction()
DCellBroadcastListActivityTest.java57 import com.android.cellbroadcastreceiver.CellBroadcastAlertService;
99 verify(mMockNotificationManager).cancel(eq(CellBroadcastAlertService.NOTIFICATION_ID)); in testOnCreate()
DCellBroadcastChannelManagerTest.java24 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
DCellBroadcastAlertAudioTest.java19 import static com.android.cellbroadcastreceiver.CellBroadcastAlertService.SHOW_NEW_ALERT_ACTION;
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertService.java69 public class CellBroadcastAlertService extends Service class
294 alertIntent.setClass(this, CellBroadcastAlertService.class); in handleCellBroadcastIntent()
739 intent.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in createDisplayMessageIntent()
767 public CellBroadcastAlertService getService() { in getService()
768 return CellBroadcastAlertService.this; in getService()
801 CellBroadcastAlertService.this::onAudioFocusChange,
810 CellBroadcastAlertService.this::onAudioFocusChange);
835 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in playPendingAlert()
DCellBroadcastAlertDialog.java322 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
327 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onCreate()
415 CellBroadcastAlertService.addToNotificationBar(getLatestMessage(), mMessageList, in onStop()
468 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, mMessageList); in onSaveInstanceState()
633 CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA); in onNewIntent()
686 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in clearNotification()
767 notificationManager.cancel(CellBroadcastAlertService.NOTIFICATION_ID); in dismiss()
DCellBroadcastListActivity.java79 .cancel(CellBroadcastAlertService.NOTIFICATION_ID); in onCreate()
303 i.putParcelableArrayListExtra(CellBroadcastAlertService.SMS_CB_MESSAGE_EXTRA, in showDialogAndMarkRead()
DCellBroadcastReceiver.java146 intent.setClass(mContext, CellBroadcastAlertService.class); in onReceive()
162 CellBroadcastAlertService.createNotificationChannels(mContext); in onReceive()
DCellBroadcastChannelManager.java30 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;
DCellBroadcastAlertAudio.java52 import com.android.cellbroadcastreceiver.CellBroadcastAlertService.AlertType;