I do not like if there is a "non visible" relation between several constants (here the rotation array must match the orientations array). You could instead have one array of Pair<Integer, Integer>, where orientation and rotation live directly together.

Besides that, the pull request looks good to me (branch and parent commit seem right).