Home | History | Annotate | Download | only in view

Lines Matching refs:orientation

28  * the orientation of the device has changed.
43 * Returned from onOrientationChanged when the device orientation cannot be determined
66 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection.
84 * {@link #onOrientationChanged} when the device orientation changes.
120 int orientation = ORIENTATION_UNKNOWN;
129 orientation = 90 - (int)Math.round(angle);
131 while (orientation >= 360) {
132 orientation -= 360;
134 while (orientation < 0) {
135 orientation += 360;
141 if (orientation != mOrientation) {
142 mOrientation = orientation;
143 onOrientationChanged(orientation);
160 * Called when the orientation of the device has changed.
161 * orientation parameter is in degrees, ranging from 0 to 359.
162 * orientation is 0 degrees when the device is oriented in its natural position,
166 * and the orientation cannot be determined.
168 * @param orientation The new orientation of the device.
172 abstract public void onOrientationChanged(int orientation);