Searched refs:orientation (Results 1 - 25 of 94) sorted by relevance

1234

/frameworks/base/services/java/com/android/server/display/
H A DDisplayViewport.java37 public int orientation; field in class:DisplayViewport
56 orientation = viewport.orientation;
68 + ", orientation=" + orientation
H A DDisplayDevice.java133 * @param orientation defines the display's orientation
137 * mapped to. displayRect is specified post-orientation, that is
138 * it uses the orientation seen by the end-user
140 public final void setProjectionInTransactionLocked(int orientation, argument
142 if (mCurrentOrientation != orientation
147 mCurrentOrientation = orientation;
160 orientation, layerStackRect, displayRect);
175 * Populates the specified viewport object with orientation,
179 viewport.orientation
[all...]
H A DLogicalDisplay.java257 // Set the orientation.
258 // The orientation specifies how the physical coordinate system of the display
260 int orientation = Surface.ROTATION_0;
263 orientation = displayInfo.rotation;
267 orientation = (orientation + displayDeviceInfo.rotation) % 4;
274 boolean rotated = (orientation == Surface.ROTATION_90
275 || orientation == Surface.ROTATION_270);
302 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect);
/frameworks/base/core/java/android/view/
H A DOrientationEventListener.java28 * 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 DOrientationListener.java24 * 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
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DNavigationBar.java30 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, argument
32 super(context, density, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml");
42 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) {
/frameworks/native/include/ui/
H A DDisplayInfo.h34 uint8_t orientation; member in struct:android::DisplayInfo
/frameworks/base/core/java/android/hardware/
H A DCameraInfo.java40 out.writeInt(info.orientation);
45 info.orientation = in.readInt();
/frameworks/native/services/sensorservice/
H A DOrientationSensor.cpp56 outEvent->orientation.azimuth = g.x;
57 outEvent->orientation.pitch = g.y;
58 outEvent->orientation.roll = g.z;
59 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java31 public final float orientation; field in class:OrientedBoundingBox
37 orientation = angle;
61 matrix.setRotate(orientation);
H A DInstance.java94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]);
96 float adjustment = -orientation;
100 float delta = ORIENTATIONS[i] - orientation;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderAction.java361 ScreenOrientation orientation = hardwareConfig.getOrientation();
362 if (orientation != null) {
363 switch (orientation) {
365 config.orientation = Configuration.ORIENTATION_PORTRAIT;
368 config.orientation = Configuration.ORIENTATION_LANDSCAPE;
371 config.orientation = Configuration.ORIENTATION_SQUARE;
375 config.orientation = Configuration.ORIENTATION_UNDEFINED;
/frameworks/av/libvideoeditor/vss/inc/
H A DM4EXIFC_CommonAPI.h89 M4COMMON_Orientation orientation; /**< orientation of image */ member in struct:__anon230
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp39 jfieldID orientation; member in struct:android::__anon1003
64 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation);
115 GET_FIELD_ID(gConfigurationClassInfo.orientation, clazz,
116 "orientation", "I");
/frameworks/base/core/java/android/content/res/
H A DConfiguration.java31 * as device configurations (such as input modes, screen size and screen orientation).
394 /** Constant for {@link #orientation}: a value indicating that no value has been set. */
396 /** Constant for {@link #orientation}, value corresponding to the
400 /** Constant for {@link #orientation}, value corresponding to the
408 * Overall orientation of the screen. May be one of
411 public int orientation; field in class:Configuration
610 orientation = o.orientation;
690 switch (orientation) {
694 default: sb.append(" orien="); sb.append(orientation); brea
[all...]
/frameworks/native/libs/gui/
H A DLayerState.cpp81 output.writeInt32(orientation);
92 orientation = input.readInt32();
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DExif.java153 // Get the tag and check if it is orientation.
157 final int orientation = pack(jpeg, offset + 8, 2, littleEndian);
158 switch (orientation) {
168 Log.i(TAG, "Unsupported orientation");
/frameworks/av/include/camera/
H A DCameraBase.h35 * 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/base/graphics/java/android/graphics/drawable/
H A DClipDrawable.java60 * @param orientation Bitwise-or of {@link #HORIZONTAL} and/or {@link #VERTICAL}
62 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument
67 mClipState.mOrientation = orientation;
83 int orientation = a.getInt(
105 mClipState.mOrientation = orientation;
/frameworks/base/native/android/
H A Dconfiguration.cpp63 return config->orientation;
151 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { argument
152 config->orientation = orientation;
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.h111 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
204 static status_t orientationToTransfrom(int orientation,
H A DTransform.h41 explicit Transform(uint32_t orientation);
/frameworks/native/include/private/gui/
H A DLayerState.h118 uint32_t orientation; member in struct:android::DisplayState
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java82 info.info.orientation = -1;
90 info.info.orientation != -1);
93 + ", orientation " + info.info.orientation);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java119 .addOutputPort("orientation", Signature.PORT_REQUIRED,
228 OutputPort orientationPort = getConnectedOutputPort("orientation");
233 Integer orientation = mProperties.get(CameraCharacteristics.SENSOR_ORIENTATION);
235 if (orientation != null) {
236 temp = orientation.floatValue();

Completed in 3302 milliseconds

1234