Assigns Ids to the internal rotation resolver callback.

Uses Id to track the freshness of a rotation resolver callback, if the
callback is not the latest one, then we should ignore its result.

Test: manually tested the feature still work.
Bug: 185618470
Bug: 186163795
Change-Id: I3b6843caeccd98274731aaf9611415aee02d7bea
1 file changed