/**
  * Called to end preempting.
  *
  * @param displayId ID of the Display
  */
 public void stopPreempting(int displayId) {
   foregroundEventProducer.sendDisplayBackgroundNotifyEvent(displayId);
   requestForeground(currentDisplayId, false);
 }
 /**
  * Called to start preempting. The given display will preempt all other displays for this isolate.
  *
  * @param displayId ID of the Display
  */
 public void startPreempting(int displayId) {
   foregroundEventProducer.sendDisplayBackgroundNotifyEvent(displayId);
   requestForeground(displayId, true);
 }