Merge "PAL: set device rotation with parameters"