/frameworks/av/camera/ |
H A D | CameraUtils.cpp | 42 ALOGE("%s: Can't find android.sensor.orientation in static metadata!", __FUNCTION__); 55 int orientation = entry.data.i32[0]; local 57 switch (orientation) { 71 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 72 __FUNCTION__, orientation); 79 switch (orientation) { 97 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 98 __FUNCTION__, orientation);
|
/frameworks/av/cmds/screenrecord/ |
H A D | screenrecord.cpp | 136 static bool isDeviceRotated(int orientation) { argument 137 return orientation != DISPLAY_ORIENTATION_0 && 138 orientation != DISPLAY_ORIENTATION_180; 209 * and device orientation. 218 bool deviceRotated = isDeviceRotated(mainDpyInfo.orientation); 237 // "pre-rotate" it by flipping width/height, so that the orientation 316 const sp<IBinder>& virtualDpy, uint8_t orientation) { 370 ATRACE_NAME("orientation"); 371 // Check orientation, update if it has changed. 379 } else if (orientation ! 314 runEncoder(const sp<MediaCodec>& encoder, const sp<MediaMuxer>& muxer, FILE* rawFp, const sp<IBinder>& mainDpy, const sp<IBinder>& virtualDpy, uint8_t orientation) argument [all...] |
/frameworks/av/include/camera/ |
H A D | CameraBase.h | 35 * The orientation of the camera image. The value is the angle that the 37 * display in its natural orientation. It should be 0, 90, 180, or 270. 42 * right edge of the screen in natural orientation, the value should be 46 int orientation; member in struct:android::CameraInfo
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 241 cameraInfo->orientation = info.orientation; 254 int32_t orientation = static_cast<int32_t>(info.orientation); local 255 if ((ret = shimInfo.update(ANDROID_SENSOR_ORIENTATION, &orientation, 1)) != OK) { 1667 result.appendFormat(" Orientation: %d\n", info.orientation);
|
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | CameraClient.cpp | 617 int orientation; local 624 orientation = getOrientation(arg1, mCameraFacing == CAMERA_FACING_FRONT); 625 if (orientation == -1) return BAD_VALUE; 627 if (mOrientation != orientation) { 628 mOrientation = orientation;
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 686 int orientation, int touchscreen, int density, int keyboard, 685 setConfiguration(int mcc, int mnc, String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int majorVersion) argument
|
H A D | Configuration.java | 40 * as device configurations (such as input modes, screen size and screen orientation). 403 /** Constant for {@link #orientation}: a value indicating that no value has been set. */ 405 /** Constant for {@link #orientation}, value corresponding to the 409 /** Constant for {@link #orientation}, value corresponding to the 417 * Overall orientation of the screen. May be one of 420 public int orientation; field in class:Configuration 636 orientation = o.orientation; 716 switch (orientation) { 720 default: sb.append(" orien="); sb.append(orientation); brea [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | GestureOverlayView.java | 203 public void setOrientation(int orientation) { argument 204 mOrientation = orientation; 649 float angle = Math.abs(box.orientation);
|
H A D | OrientedBoundingBox.java | 31 public final float orientation; field in class:OrientedBoundingBox 37 orientation = angle; 61 matrix.setRotate(orientation);
|
/frameworks/base/core/java/android/hardware/ |
H A D | Camera.java | 277 * <p>The orientation of the camera image. The value is the angle that the 279 * the display in its natural orientation. It should be 0, 90, 180, or 270.</p> 284 * right edge of the screen in natural orientation, the value should be 294 public int orientation; field in class:Camera.CameraInfo 1484 * <p>If you want to make the camera image show in the same orientation as 1504 * result = (info.orientation + degrees) % 360; 1507 * result = (info.orientation - degrees + 360) % 360; 1730 * <p>The direction is relative to the sensor orientation, that is, what 1733 * rectangle does not provide any information about face orientation.</p> 2611 * The sides of width and height are based on camera orientation [all...] |
H A D | LegacySensorManager.java | 223 return false; // don't need to re-register the orientation sensor 234 return false; // can't unregister the orientation sensor just yet 287 float[] values, int orientation) { 314 if ((orientation & Surface.ROTATION_90) != 0) { 331 if ((orientation & Surface.ROTATION_180) != 0) { 286 mapSensorDataToWindow(int sensor, float[] values, int orientation) argument
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 109 * Set the orientation value to write. 116 * @param orientation the orientation value to set, one of: 129 public DngCreator setOrientation(int orientation) { argument 130 if (orientation < ExifInterface.ORIENTATION_UNDEFINED || 131 orientation > ExifInterface.ORIENTATION_ROTATE_270) { 132 throw new IllegalArgumentException("Orientation " + orientation + 133 " is not a valid EXIF orientation value"); 135 nativeSetOrientation(orientation); 613 private synchronized native void nativeSetOrientation(int orientation); argument [all...] |
/frameworks/base/core/java/android/hardware/display/ |
H A D | DisplayViewport.java | 39 public int orientation; field in class:DisplayViewport 58 orientation = viewport.orientation; 70 + ", orientation=" + orientation
|
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 39 * information about the pressure, size and orientation of the contact area. 631 * <li>For a touch screen or touch pad, reports the orientation of the finger 634 * upwards, is perfectly circular or is of unknown orientation. A positive angle 639 * <li>For a stylus, the orientation indicates the direction in which the stylus 640 * is pointing in relation to the vertical axis of the current orientation of the screen. 649 * @see MotionEvent.PointerCoords#orientation 2128 * Returns the orientation of the touch area and tool area in radians clockwise from vertical 2132 * upwards, is perfectly circular or is of unknown orientation. A positive angle 2625 * Returns a historical orientation coordinate, as per {@link #getOrientation(int)}, that 3336 * The orientation o 3346 public float orientation; field in class:MotionEvent.PointerCoords [all...] |
H A D | OrientationEventListener.java | 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 172 onOrientationChanged(int orientation) argument [all...] |
H A D | OrientationListener.java | 24 * the orientation of the device has changed. 33 * Returned from onOrientationChanged when the device orientation cannot be determined 56 * SENSOR_DELAY_NORMAL} for simple screen orientation change detection. 73 public void onOrientationChanged(int orientation) { argument 74 OrientationListener.this.onOrientationChanged(orientation); 80 * {@link #onOrientationChanged} when the device orientation changes. 104 * @param orientation The new orientation of the device. 108 abstract public void onOrientationChanged(int orientation); argument
|
H A D | SurfaceControl.java | 74 IBinder displayToken, int orientation, 556 int orientation, Rect layerStackRect, Rect displayRect) { 566 nativeSetDisplayProjection(displayToken, orientation, 693 * screenshots in its native portrait orientation by default, so this is 695 * orientation. 73 nativeSetDisplayProjection( IBinder displayToken, int orientation, int l, int t, int r, int b, int L, int T, int R, int B) argument 555 setDisplayProjection(IBinder displayToken, int orientation, Rect layerStackRect, Rect displayRect) argument
|
H A D | WindowManagerPolicy.java | 1066 * Given an orientation constant, returns the appropriate surface rotation, 1069 * @param orientation An orientation constant, such as 1074 public int rotationForOrientationLw(@ActivityInfo.ScreenOrientation int orientation, argument 1078 * Given an orientation constant and a rotation, returns true if the rotation 1079 * has compatible metrics to the requested orientation. For example, if 1085 * @param orientation An orientation constant, such as 1088 * @return True if the rotation is compatible with the requested orientation. 1090 public boolean rotationHasCompatibleMetricsLw(@ActivityInfo.ScreenOrientation int orientation, argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 82 * {@link GridLayout#setOrientation(int) orientation}, 171 * The horizontal orientation. 176 * The vertical orientation. 305 * Returns the current orientation. 320 * GridLayout uses the orientation property for two purposes: 328 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first. 339 * orientation as {@code HORIZONTAL} - because {@code TextView} is capable of 342 * Other than the effects above, orientation does not affect the actual layout operation of 348 * @param orientation either {@link #HORIZONTAL} or {@link #VERTICAL} 354 public void setOrientation(@Orientation int orientation) { argument [all...] |
H A D | LinearLayout.java | 46 * The default orientation is horizontal. 645 * Measures the children when the orientation of this LinearLayout is set 976 * Measures the children when the orientation of this LinearLayout is set 1414 * @return the width or height of the child depending on the orientation 1473 * Position the children during a layout pass if the orientation of this 1567 * Position the children during a layout pass if the orientation of this 1708 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default 1713 public void setOrientation(@OrientationMode int orientation) { argument 1714 if (mOrientation != orientation) { 1715 mOrientation = orientation; [all...] |
/frameworks/base/core/jni/ |
H A D | android_content_res_Configuration.cpp | 39 jfieldID orientation; member in struct:android::__anon795 64 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); 106 GET_FIELD_ID(gConfigurationClassInfo.orientation, clazz, 107 "orientation", "I");
|
H A D | android_hardware_Camera.cpp | 47 jfieldID orientation; member in struct:fields_t 506 env->SetIntField(info_obj, fields.orientation, cameraInfo.orientation); 878 jniThrowRuntimeException(env, "set display orientation failed"); 1062 { "android/hardware/Camera$CameraInfo", "orientation", "I", &fields.orientation },
|
H A D | android_hardware_camera2_DngCreator.cpp | 876 // Set orientation 877 uint16_t orientation = 1; // Normal local 878 BAIL_IF_INVALID(writer->addEntry(TAG_ORIENTATION, 1, &orientation, TIFF_IFD_0), env, 1496 uint16_t orientation = static_cast<uint16_t>(orient); local 1497 BAIL_IF_INVALID(writer->addEntry(TAG_ORIENTATION, 1, &orientation, TIFF_IFD_0), env, 1500 // Set main image orientation also if in a separate IFD 1502 BAIL_IF_INVALID(writer->addEntry(TAG_ORIENTATION, 1, &orientation, TIFF_IFD_SUB1), env, 1701 // Make sure both IFDs get the same orientation tag
|
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 638 jobject surface, jint facing, jint orientation) { 649 int32_t orientVal = static_cast<int32_t>(orientation); 637 LegacyCameraDevice_nativeSetSurfaceOrientation(JNIEnv* env, jobject thiz, jobject surface, jint facing, jint orientation) argument
|
H A D | android_util_AssetManager.cpp | 597 jstring locale, jint orientation, 619 config.orientation = (uint8_t)orientation; 595 android_content_AssetManager_setConfiguration(JNIEnv* env, jobject clazz, jint mcc, jint mnc, jstring locale, jint orientation, jint touchscreen, jint density, jint keyboard, jint keyboardHidden, jint navigation, jint screenWidth, jint screenHeight, jint smallestScreenWidthDp, jint screenWidthDp, jint screenHeightDp, jint screenLayout, jint uiMode, jint sdkVersion) argument
|