public static void setDisplayProjection(
     IBinder displayToken, int orientation, Rect layerStackRect, Rect displayRect) {
   if (displayToken == null) {
     throw new IllegalArgumentException("displayToken must not be null");
   }
   if (layerStackRect == null) {
     throw new IllegalArgumentException("layerStackRect must not be null");
   }
   if (displayRect == null) {
     throw new IllegalArgumentException("displayRect must not be null");
   }
   nativeSetDisplayProjection(
       displayToken,
       orientation,
       layerStackRect.left,
       layerStackRect.top,
       layerStackRect.right,
       layerStackRect.bottom,
       displayRect.left,
       displayRect.top,
       displayRect.right,
       displayRect.bottom);
 }