int function ( ) { return getOrientation ( ) ; }
returns the rotation of the screen from its `` natural '' orientation . the returned value may be surface #rotation_0 surface.rotation _ 0 no rotation , surface #rotation_90 surface.rotation _ 90 , surface #rotation_180 surface.rotation _ 180 , or surface #rotation_270 surface.rotation _ 270 . for example , if a device has a naturally tall screen , and the user has turned it on its side to go into a landscape orientation , the value returned here may be either surface #rotation_90 surface.rotation _ 90 or surface #rotation_270 surface.rotation _ 270 depending onthe direction it was turned . the angle is the rotation of the drawn graphics on the screen , which is the opposite direction of the physical rotation of the device . for example , if the device is rotated 90 degrees counter-clockwise , to compensate rendering will be rotated by 90 degrees clockwise and thus the returned value here will be surface #rotation_90 surface.rotation _ 90 . concode_field_sep CompatibilityInfoHolder mCompatibilityInfo concode_elem_sep float mLastGetTime concode_elem_sep Point mTmpPoint concode_elem_sep DisplayMetrics mTmpMetrics concode_elem_sep Object sStaticInit concode_elem_sep int mDisplay concode_elem_sep float mDpiX concode_elem_sep float mDpiY concode_elem_sep String TAG concode_elem_sep boolean DEBUG_DISPLAY_SIZE concode_elem_sep int DEFAULT_DISPLAY concode_elem_sep float mRefreshRate concode_elem_sep boolean sInitialized concode_elem_sep int mPixelFormat concode_elem_sep float mDensity concode_elem_sep IWindowManager sWindowManager concode_field_sep float getRefreshRate concode_elem_sep Display createCompatibleDisplay concode_elem_sep int getMaximumSizeDimension concode_elem_sep void getMetrics concode_elem_sep void getRealMetrics concode_elem_sep int getWidth concode_elem_sep int getRawWidthNative concode_elem_sep int getDisplayCount concode_elem_sep int getRawExternalHeight concode_elem_sep int getHeight concode_elem_sep int getOrientation concode_elem_sep void getRectSize concode_elem_sep IWindowManager getWindowManager concode_elem_sep void getMetricsWithSize concode_elem_sep void nativeClassInit concode_elem_sep int getRawWidth concode_elem_sep int getRawExternalWidth concode_elem_sep void getRealSize concode_elem_sep void init concode_elem_sep int getRawHeight concode_elem_sep int getRawHeightNative concode_elem_sep int getDisplayId concode_elem_sep void getSize concode_elem_sep void getSizeInternal concode_elem_sep int getPixelFormat