How does the Android system automatically change the screen orientation?

104 Views Asked by At

Till now, I only find the source code for user to set the orientation in Android source code. Can anyone tell me where is the source code that the system use to automatically change the screen orientation?

1

There are 1 best solutions below

0
On BEST ANSWER

In WindowManagerService.java, method public boolean updateRotationUncheckedLocked(boolean inTransaction); do the rotation.