Searched defs:orientation (Results 1 - 25 of 72) sorted by relevance

123

/frameworks/av/camera/
H A DCameraUtils.cpp42 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/base/core/java/android/gesture/
H A DOrientedBoundingBox.java31 public final float orientation; field in class:OrientedBoundingBox
37 orientation = angle;
61 matrix.setRotate(orientation);
/frameworks/base/core/java/android/hardware/display/
H A DDisplayViewport.java39 public int orientation; field in class:DisplayViewport
58 orientation = viewport.orientation;
70 + ", orientation=" + orientation
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DNavigationBar.java29 public NavigationBar(Context context, Density density, int orientation, boolean isRtl, argument
31 super(context, orientation, "/bars/navigation_bar.xml", "navigation_bar.xml",
42 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) {
H A DCustomBar.java66 protected CustomBar(Context context, int orientation, String layoutPath, argument
70 setOrientation(orientation);
71 if (orientation == LinearLayout.HORIZONTAL) {
/frameworks/opt/bitmap/src/com/android/bitmap/util/
H A DRectUtils.java27 * given by the orientation. Transform the upright partial rectangle such that it would apply
31 * @param orientation The exif orientation (0, 90, 180, 270) of the original image. The
32 * transformed full and partial rectangles will be in this orientation's
37 public static void rotateRectForOrientation(final int orientation, final Rect fullRect, argument
40 // Exif orientation specifies how the camera is rotated relative to the actual subject.
42 matrix.setRotate(-orientation);
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DScrollbarHelper.java29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument
46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) -
47 orientation.getDecoratedStart(startChild));
52 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding()
53 - orientation.getDecoratedStart(startChild)));
60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument
70 final int extend = orientation.getDecoratedEnd(endChild)
71 - orientation.getDecoratedStart(startChild);
72 return Math.min(orientation.getTotalSpace(), extend);
79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument
[all...]
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/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/core/java/android/view/
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
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...]
/frameworks/native/include/ui/
H A DDisplayInfo.h35 uint8_t orientation; member in struct:android::DisplayInfo
/frameworks/base/core/jni/
H A Dandroid_content_res_Configuration.cpp39 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");
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayDevice.java147 * @param orientation defines the display's orientation
151 * mapped to. displayRect is specified post-orientation, that is
152 * it uses the orientation seen by the end-user
154 public final void setProjectionInTransactionLocked(int orientation, argument
156 if (mCurrentOrientation != orientation
161 mCurrentOrientation = orientation;
174 orientation, layerStackRect, displayRect);
189 * Populates the specified viewport object with orientation,
193 viewport.orientation
[all...]
/frameworks/opt/bitmap/src/com/android/bitmap/
H A DReusableBitmap.java69 public void setOrientation(final int orientation) { argument
70 mOrientation = orientation;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DItemAlignment.java42 Axis(int orientation) { argument
43 mOrientation = orientation;
162 final public void setOrientation(int orientation) { argument
163 mOrientation = orientation;
/frameworks/support/v4/java/android/support/v4/print/
H A DPrintHelper.java51 * Print the image in landscape orientation (default).
56 * Print the image in portrait orientation.
101 public void setOrientation(int orientation); argument
134 public void setOrientation(int orientation) { mOrientation = orientation; } argument
184 public void setOrientation(int orientation) { argument
185 mPrintHelper.setOrientation(orientation);
287 * @param orientation The page orientation which is one of
290 public void setOrientation(int orientation) { argument
[all...]
/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/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
H A DConfigGenerator.java250 public ConfigGenerator setOrientation(ScreenOrientation orientation) { argument
251 mOrientation = orientation;
/frameworks/native/include/private/gui/
H A DLayerState.h124 uint32_t orientation; member in struct:android::DisplayState
/frameworks/native/services/surfaceflinger/
H A DTransform.cpp40 Transform::Transform(uint32_t orientation) { argument
41 set(orientation, 0, 0);
/frameworks/support/v4/kitkat/android/support/v4/print/
H A DPrintHelperKitkat.java134 * @param orientation The page orientation which is one of
137 public void setOrientation(int orientation) { argument
138 mOrientation = orientation;
142 * Gets the page orientation with which the image will be printed.
144 * @return The preferred orientation which is one of
/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/graphics/java/android/graphics/drawable/
H A DClipDrawable.java67 * @param orientation Bitwise-or of {@link #HORIZONTAL} and/or {@link #VERTICAL}
69 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument
74 mState.mOrientation = orientation;
/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;

Completed in 641 milliseconds

123