@Override public void freezeRotation(boolean freeze) throws RemoteException {
  if (freeze)   device.freezeRotation();
 else   device.unfreezeRotation();
}

@ Override public void freezeRotation ( boolean freeze ) throws RemoteException { if ( freeze ) device . freezeRotation ( ) ; else device . unfreezeRotation ( ) ; }
disables the sensors and freezes the device rotation at its current rotation state , or enable it .
