Home | History | Annotate | Download | only in cellbroadcastreceiver

Lines Matching defs:intent

25 import android.content.Intent;
50 /** Intent action to display alert dialog/notification, after verifying the alert is new. */
114 public int onStartCommand(Intent intent, int flags, int startId) {
115 String action = intent.getAction();
118 handleCellBroadcastIntent(intent);
120 showNewAlert(intent);
122 Log.e(TAG, "Unrecognized intent action: " + action);
127 private void handleCellBroadcastIntent(Intent intent) {
128 Bundle extras = intent.getExtras();
175 final Intent alertIntent = new Intent(SHOW_NEW_ALERT_ACTION);
195 private void showNewAlert(Intent intent) {
196 Bundle extras = intent.getExtras();
264 Intent intent = new Intent(CB_AREA_INFO_RECEIVED_ACTION);
265 intent.putExtra("message", message);
266 sendBroadcastAsUser(intent, UserHandle.ALL,
283 Intent closeDialogs = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
287 Intent audioIntent = new Intent(this, CellBroadcastAlertAudio.class);
341 Intent alertDialogIntent = createDisplayMessageIntent(this, c, messageList);
342 alertDialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
348 * high-priority immediate intent for emergency alerts.
360 // Create intent to show the new messages when user selects the notification.
361 Intent intent = createDisplayMessageIntent(this, CellBroadcastAlertDialog.class,
363 intent
365 PendingIntent pi = PendingIntent.getActivity(this, NOTIFICATION_ID, intent,
394 static Intent createDisplayMessageIntent(Context context, Class intentClass,
397 Intent intent = new Intent(context, intentClass);
398 intent.putParcelableArrayListExtra(CellBroadcastMessage.SMS_CB_MESSAGE_EXTRA, messageList);
399 return intent;
403 public IBinder onBind(Intent intent) {