Android activity setRequestedOrientation in native layer (call flow)

view story

http://stackoverflow.com – In activity.java, here is a setRequestedOrientation function which is able to make app programmer can take advantage of this api to rotate the screen. When I traced the code, I found this goes to ActivityManagerNative.java. In this file, It finally calls SET_REQUESTED_ORIENTATION_TRANSACTION in onTransact and another setRequestedOrientation gets called. I am sure this "setRequestedOrientation" is in the native layer but can anyone tell me where can I find it? (HowTos)