Lines Matching refs:orientation
29 * the orientation of the device has changed.
44 * Returned from onOrientationChanged when the device orientation cannot be determined
67 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection.
85 * {@link #onOrientationChanged} when the device orientation changes.
121 int orientation = ORIENTATION_UNKNOWN;
130 orientation = 90 - (int)Math.round(angle);
132 while (orientation >= 360) {
133 orientation -= 360;
135 while (orientation < 0) {
136 orientation += 360;
142 if (orientation != mOrientation) {
143 mOrientation = orientation;
144 onOrientationChanged(orientation);
161 * Called when the orientation of the device has changed.
162 * orientation parameter is in degrees, ranging from 0 to 359.
163 * orientation is 0 degrees when the device is oriented in its natural position,
167 * and the orientation cannot be determined.
169 * @param orientation The new orientation of the device.
173 abstract public void onOrientationChanged(int orientation);