/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/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/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | NavigationBar.java | 29 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 D | CustomBar.java | 66 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 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/v7/recyclerview/src/android/support/v7/widget/ |
H A D | ScrollbarHelper.java | 29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument 44 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) - 45 orientation.getDecoratedStart(startChild)); 49 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() 50 - orientation.getDecoratedStart(startChild))); 57 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument 67 final int extend = orientation.getDecoratedEnd(endChild) 68 - orientation.getDecoratedStart(startChild); 69 return Math.min(orientation.getTotalSpace(), extend); 76 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument [all...] |
H A D | OrientationHelper.java | 23 * 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 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/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 | 39 jfieldID orientation; member in struct:android::__anon788 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 D | DisplayDevice.java | 138 * @param orientation defines the display's orientation 142 * mapped to. displayRect is specified post-orientation, that is 143 * it uses the orientation seen by the end-user 145 public final void setProjectionInTransactionLocked(int orientation, argument 147 if (mCurrentOrientation != orientation 152 mCurrentOrientation = orientation; 165 orientation, layerStackRect, displayRect); 180 * Populates the specified viewport object with orientation, 184 viewport.orientation [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/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ItemAlignment.java | 42 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 D | PrintHelper.java | 51 * 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 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/graphics/java/android/graphics/drawable/ |
H A D | ClipDrawable.java | 63 * @param orientation Bitwise-or of {@link #HORIZONTAL} and/or {@link #VERTICAL} 65 public ClipDrawable(Drawable drawable, int gravity, int orientation) { argument 70 mClipState.mOrientation = orientation; 87 int orientation = a.getInt( 109 mClipState.mOrientation = orientation;
|
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
H A D | ConfigGenerator.java | 250 public ConfigGenerator setOrientation(ScreenOrientation orientation) { argument 251 mOrientation = orientation;
|
/frameworks/native/include/private/gui/ |
H A D | LayerState.h | 124 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/kitkat/android/support/v4/print/ |
H A D | PrintHelperKitkat.java | 134 * @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 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/libs/input/ |
H A D | PointerController.cpp | 310 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;
|