Searched refs:orientation (Results 26 - 50 of 125) sorted by relevance

12345

/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DExif.java158 // Get the tag and check if it is orientation.
162 final int orientation = pack(jpeg, offset + 8, 2, littleEndian);
163 switch (orientation) {
173 Log.i(TAG, "Unsupported orientation");
/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");
H A DImageUtils.java146 // Determine the orientation for this image
148 final int orientation = Exif.getOrientation(is, -1);
164 // Rotate the Bitmap based on the orientation
165 if (originalBitmap != null && orientation != 0) {
167 matrix.postRotate(orientation);
216 * may load EXIF orientation, and the second pass may do the actual Bitmap decode.
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerTest.java55 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
58 mBaseVariations.add(new Config(spanCount, orientation, reverseLayout));
144 public void accessibilitySpanIndicesTest(int orientation) throws Throwable { argument
145 final RecyclerView recyclerView = setupBasic(new Config(3, orientation, false));
164 orientation == HORIZONTAL ? itemInfo.getColumnIndex() : itemInfo.getRowIndex());
167 orientation == HORIZONTAL ? itemInfo.getRowIndex() : itemInfo.getColumnIndex());
170 orientation == HORIZONTAL ? itemInfo.getRowSpan() : itemInfo.getColumnSpan());
189 public void layoutParamsTest(final int orientation) throws Throwable { argument
190 final RecyclerView rv = setupBasic(new Config(3, 100).orientation(orientation),
598 WrappedGridLayoutManager(Context context, int spanCount, int orientation, boolean reverseLayout) argument
640 Config(int spanCount, int orientation, boolean reverseLayout) argument
646 orientation(int orientation) argument
[all...]
H A DLinearLayoutManagerTest.java68 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
71 mBaseVariations.add(new Config(orientation, reverseLayout, stackFromBottom));
626 return "Changing orientation";
774 assertEquals(logPrefix + " on saved state, orientation should be preserved",
910 public WrappedLinearLayoutManager(Context context, int orientation, boolean reverseLayout) { argument
911 super(context, orientation, reverseLayout);
923 public void setOrientation(int orientation) { argument
924 super.setOrientation(orientation);
1109 Config(int orientation, boolean reverseLayout, boolean stackFromEnd) { argument
1110 mOrientation = orientation;
1129 orientation(int orientation) argument
[all...]
/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/native/android/
H A Dconfiguration.cpp63 return config->orientation;
151 void AConfiguration_setOrientation(AConfiguration* config, int32_t orientation) { argument
152 config->orientation = orientation;
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java109 * 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/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DRotationLockTile.java75 final boolean portrait = mContext.getResources().getConfiguration().orientation
108 final boolean portrait = mContext.getResources().getConfiguration().orientation
/frameworks/native/services/surfaceflinger/
H A DDisplayDevice.h114 void setProjection(int orientation, const Rect& viewport, const Rect& frame);
212 static status_t orientationToTransfrom(int orientation,
H A DTransform.h41 explicit Transform(uint32_t orientation);
H A DDisplayDevice.cpp132 // initialize the display orientation transform.
380 int orientation, int w, int h, Transform* tr)
383 switch (orientation) {
424 void DisplayDevice::setProjection(int orientation, argument
433 DisplayDevice::orientationToTransfrom(orientation, w, h, &R);
448 // viewport is always specified in the logical orientation
474 // The viewport and frame are both in the logical orientation.
476 // physical translation and finally rotate to the physical orientation.
488 mOrientation = orientation;
379 orientationToTransfrom( int orientation, int w, int h, Transform* tr) argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DWindowAlignment.java291 final public void setOrientation(int orientation) { argument
292 mOrientation = orientation;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DOrientationHelper.java23 * Helper class for LayoutManagers to abstract measurements depending on the View's orientation.
96 * Returns the space occupied by this View in the current orientation including decorations and
106 * Returns the space occupied by this View in the perpendicular orientation including
110 * @return Total space occupied by this view in the perpendicular orientation to current one
152 * Offsets the child in this orientation.
169 * Creates an OrientationHelper for the given LayoutManager and orientation.
172 * @param orientation Desired orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}
176 RecyclerView.LayoutManager layoutManager, int orientation) {
177 switch (orientation) {
175 createOrientationHelper( RecyclerView.LayoutManager layoutManager, int orientation) argument
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DBasicBitmapDrawable.java333 final int orientation = mBitmap.getOrientation();
334 // calculateCroppedSrcRect() gave us the source rectangle "as if" the orientation has
337 RectUtils.rotateRectForOrientation(orientation,
343 RectUtils.rotateRect(orientation, bounds.centerX(), bounds.centerY(), rotatedBounds);
347 canvas.rotate(orientation, bounds.centerX(), bounds.centerY());
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DCustomBar.java66 protected CustomBar(Context context, int orientation, String layoutPath, argument
70 setOrientation(orientation);
71 if (orientation == LinearLayout.HORIZONTAL) {
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DCameraStreamer.java131 public void onUpdateCameraOrientation(int orientation) { argument
132 if (orientation % 180 != 0) {
306 public void onUpdateCameraOrientation(int orientation) { argument
307 super.onUpdateCameraOrientation(orientation);
308 mRunner.mCamera.setDisplayOrientation(orientation);
633 public void onUpdateCameraOrientation(int orientation) { argument
634 super.onUpdateCameraOrientation(orientation);
636 switch (orientation) {
651 switch (orientation) {
803 /** The camera and screen orientation
1377 onUpdateOrientation(int orientation) argument
[all...]
/frameworks/native/services/inputflinger/
H A DInputReader.cpp103 static int32_t rotateValueUsingRotationMap(int32_t value, int32_t orientation, argument
105 if (orientation != DISPLAY_ORIENTATION_0) {
108 return map[i][orientation];
126 static int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) { argument
127 return rotateValueUsingRotationMap(keyCode, orientation,
131 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { argument
133 switch (orientation) {
1417 orientation.clear();
2031 mOrientation = v.orientation;
2120 // Rotate key codes according to orientation i
4242 float orientation; local
[all...]
/frameworks/base/libs/input/
H A DPointerController.cpp310 void PointerController::setDisplayViewport(int32_t width, int32_t height, int32_t orientation) { argument
314 if (orientation == DISPLAY_ORIENTATION_90
315 || orientation == DISPLAY_ORIENTATION_270) {
337 if (mLocked.displayOrientation != orientation) {
364 switch (orientation) {
385 mLocked.displayOrientation = orientation;
/frameworks/base/core/java/android/hardware/
H A DLegacySensorManager.java223 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
H A DCameraBinderTest.java88 info.info.orientation = -1;
96 info.info.orientation != -1);
99 + ", orientation " + info.info.orientation);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
H A DCamera2Source.java125 .addOutputPort("orientation", Signature.PORT_REQUIRED,
239 OutputPort orientationPort = getConnectedOutputPort("orientation");
244 Integer orientation = mProperties.get(CameraCharacteristics.SENSOR_ORIENTATION);
246 if (orientation != null) {
247 temp = orientation.floatValue();
/frameworks/native/include/private/gui/
H A DLayerState.h124 uint32_t orientation; member in struct:android::DisplayState
/frameworks/base/core/java/android/view/
H A DWindowManagerPolicy.java1066 * 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/native/libs/gui/
H A DSurfaceComposerClient.cpp156 status_t setOrientation(int orientation);
166 uint32_t orientation,
418 uint32_t orientation,
423 s.orientation = orientation;
626 uint32_t orientation,
629 Composer::getInstance().setDisplayProjection(token, orientation,
417 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument
625 setDisplayProjection(const sp<IBinder>& token, uint32_t orientation, const Rect& layerStackRect, const Rect& displayRect) argument

Completed in 1031 milliseconds

12345