/frameworks/av/camera/ |
H A D | CameraUtils.cpp | 43 ALOGE("%s: Can't find android.sensor.orientation in static metadata!", __FUNCTION__); 56 int orientation = entry.data.i32[0]; local 58 switch (orientation) { 72 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 73 __FUNCTION__, orientation); 80 switch (orientation) { 98 ALOGE("%s: Invalid HAL android.sensor.orientation value: %d", 99 __FUNCTION__, orientation);
|
/frameworks/base/core/java/android/gesture/ |
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/display/ |
H A D | DisplayViewport.java | 39 public int orientation; field in class:DisplayViewport 58 orientation = viewport.orientation; 70 + ", orientation=" + orientation
|
/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
H A D | RectUtils.java | 27 * 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/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignmentFacetHelper.java | 37 int orientation) { 47 if (orientation == HORIZONTAL) { 36 getAlignmentPosition(View itemView, ItemAlignmentFacet.ItemAlignmentDef facet, int orientation) argument
|
H A D | ItemAlignment.java | 37 Axis(int orientation) { argument 38 mOrientation = orientation; 67 final public void setOrientation(int orientation) { argument 68 mOrientation = orientation;
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | ScrollbarHelper.java | 29 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 D | OrientationHelper.java | 24 * Helper class for LayoutManagers to abstract measurements depending on the View's orientation. 131 * Returns the space occupied by this View in the current orientation including decorations and 141 * Returns the space occupied by this View in the perpendicular orientation including 145 * @return Total space occupied by this view in the perpendicular orientation to current one 187 * Offsets the child in this orientation. 204 * Returns the MeasureSpec mode for the current orientation from the LayoutManager. 215 * Returns the MeasureSpec mode for the perpendicular orientation from the LayoutManager. 226 * Creates an OrientationHelper for the given LayoutManager and orientation. 229 * @param orientation Desired orientation 232 createOrientationHelper( RecyclerView.LayoutManager layoutManager, int orientation) argument [all...] |
/frameworks/av/include/camera/ |
H A D | CameraBase.h | 40 * The orientation of the camera image. The value is the angle that the 42 * display in its natural orientation. It should be 0, 90, 180, or 270. 47 * right edge of the screen in natural orientation, the value should be 51 int orientation; member in struct:android::hardware::CameraInfo
|
/frameworks/base/core/java/android/view/ |
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 | 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...] |
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 35 uint8_t orientation; member in struct:android::DisplayInfo
|
/frameworks/base/core/jni/ |
H A D | android_content_res_Configuration.cpp | 41 jfieldID orientation; member in struct:android::__anon859 66 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); 90 gConfigurationClassInfo.orientation = GetFieldIDOrDie(env, clazz, "orientation", "I");
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/ |
H A D | BaseDataBinderTest.java | 38 public BaseDataBinderTest(final Class<T> binderClass, final int orientation) { argument 41 mOrientation = orientation;
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 68 * Creates a new clip drawable with the specified gravity and orientation. 73 * @param orientation bitwise-or of {@link #HORIZONTAL} and/or 76 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument 80 mState.mOrientation = orientation;
|
/frameworks/base/services/core/java/com/android/server/audio/ |
H A D | RotationHelper.java | 33 * The role of this class is to monitor device orientation changes, and upon rotation, 34 * verify the UI orientation. In case of a change, send the new orientation, in increments 37 * Note that even though we're responding to device orientation events, we always 68 // orientation API 98 // Even though we're responding to device orientation events, 139 public void onOrientationChanged(int orientation) { argument 165 * When com.android.server.policy.WindowOrientationListener report an orientation change, 167 * the new orientation.
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | CustomBar.java | 70 protected CustomBar(BridgeContext context, int orientation, String layoutPath, argument 74 setOrientation(orientation); 75 if (orientation == LinearLayout.HORIZONTAL) {
|
H A D | NavigationBar.java | 44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument 46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, 50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, argument 52 super(context, orientation, layoutPath, "navigation_bar.xml", simulatedPlatformVersion); 63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { 75 setupNavBar(context, orientation); 78 private void setupNavBar(BridgeContext context, int orientation) { argument 82 setSize(context, leftPadding, orientation, getSidePadding(sw)); 83 setSize(context, rightPadding, orientation, getSidePadding(sw)); 87 setSize(context, navButton, orientation, navButtonWidt 95 setSize(BridgeContext context, View view, int orientation, int size) argument [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ReusableBitmap.java | 69 public void setOrientation(final int orientation) { argument 70 mOrientation = orientation;
|
/frameworks/base/core/java/android/hardware/ |
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/services/core/java/com/android/server/display/ |
H A D | DisplayDevice.java | 154 * @param orientation defines the display's orientation 158 * mapped to. displayRect is specified post-orientation, that is 159 * it uses the orientation seen by the end-user 161 public final void setProjectionInTransactionLocked(int orientation, argument 163 if (mCurrentOrientation != orientation 168 mCurrentOrientation = orientation; 181 orientation, layerStackRect, displayRect); 196 * Populates the specified viewport object with orientation, 200 viewport.orientation [all...] |
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
H A D | ConfigGenerator.java | 278 public ConfigGenerator setOrientation(ScreenOrientation orientation) { argument 279 mOrientation = orientation;
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 135 uint32_t orientation; member in struct:android::DisplayState
|
/frameworks/native/services/surfaceflinger/ |
H A D | Transform.cpp | 40 Transform::Transform(uint32_t orientation) { argument 41 set(orientation, 0, 0);
|
/frameworks/support/v4/java/android/support/v4/print/ |
H A D | PrintHelper.java | 52 * Print the image in landscape orientation (default). 57 * Print the image in portrait orientation. 102 public void setOrientation(int orientation); argument 135 public void setOrientation(int orientation) { mOrientation = orientation; } argument 186 public void setOrientation(int orientation) { argument 187 mPrintHelper.setOrientation(orientation); 334 * @param orientation The page orientation which is one of 337 public void setOrientation(int orientation) { argument [all...] |