/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/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | LinearLayoutCompat.java | 48 * The default orientation is horizontal. 579 * Measures the children when the orientation of this LinearLayout is set 912 * Measures the children when the orientation of this LinearLayout is set 1351 * @return the width or height of the child depending on the orientation 1410 * Position the children during a layout pass if the orientation of this 1505 * Position the children during a layout pass if the orientation of this 1646 * @param orientation Pass {@link #HORIZONTAL} or {@link #VERTICAL}. Default 1649 public void setOrientation(@OrientationMode int orientation) { argument 1650 if (mOrientation != orientation) { 1651 mOrientation = orientation; [all...] |
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/ |
H A D | GridLayout.java | 79 * {@link GridLayout#setOrientation(int) orientation}, 161 * The horizontal orientation. 166 * The vertical orientation. 295 * Returns the current orientation. 309 * GridLayout uses the orientation property for two purposes: 317 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first. 328 * orientation as {@code HORIZONTAL} - because {@code TextView} is capable of 331 * Other than the effects above, orientation does not affect the actual layout operation of 337 * @param orientation either {@link #HORIZONTAL} or {@link #VERTICAL} 343 public void setOrientation(int orientation) { argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | GridLayoutManager.java | 75 * @param orientation Layout orientation. Should be {@link #HORIZONTAL} or {@link 79 public GridLayoutManager(Context context, int spanCount, int orientation, argument 81 super(context, orientation, reverseLayout); 757 * Note that if the orientation is {@link #VERTICAL}, the width parameter is ignored and if the 758 * orientation is {@link #HORIZONTAL} the height parameter is ignored because child view is
|
H A D | LinearLayoutManager.java | 61 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL} 73 * Many calculations are made depending on orientation. To keep it clean, this interface 146 * @param orientation Layout orientation. Should be {@link #HORIZONTAL} or {@link 150 public LinearLayoutManager(Context context, int orientation, boolean reverseLayout) { argument 152 setOrientation(orientation); 288 * @return Current orientation. 297 * Sets the orientation of the layout. {@link android.support.v7.widget.LinearLayoutManager} 300 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL} 302 public void setOrientation(int 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...] |
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 | StaggeredGridLayoutManager.java | 102 * Primary orientation is the layout's orientation, secondary orientation is the orientation 111 * The width or height per span, depending on the orientation. 202 * @param spanCount If orientation is vertical, spanCount is number of columns. If 203 * orientation is horizontal, spanCount is number of rows. 204 * @param orientation {@link #VERTICAL} or {@link #HORIZONTAL} 206 public StaggeredGridLayoutManager(int spanCount, int orientation) { argument 207 mOrientation = orientation; 384 setOrientation(int orientation) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | GridLayoutManagerTest.java | 55 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 D | LinearLayoutManagerTest.java | 68 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...] |
H A D | RecyclerViewLayoutTest.java | 1575 for (int orientation : new int[]{OrientationHelper.HORIZONTAL, 1577 adapterChangeDuringScrollTest("notifyDataSetChanged", orientation, 1584 adapterChangeDuringScrollTest("notifyItemChanged", orientation, new Runnable() { 1591 adapterChangeDuringScrollTest("notifyItemInserted", orientation, new Runnable() { 1597 adapterChangeDuringScrollTest("notifyItemRemoved", orientation, new Runnable() { 1606 public void adapterChangeDuringScrollTest(String msg, final int orientation, argument 1624 return orientation == OrientationHelper.VERTICAL; 1629 return orientation == OrientationHelper.HORIZONTAL;
|
H A D | StaggeredGridLayoutManagerTest.java | 66 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { 71 mBaseVariations.add(new Config(orientation, reverseLayout, spanCount, 907 assertEquals("on saved state, orientation should be preserved", 1079 assertEquals(config + " on saved state, orientation should be preserved", 1621 public WrappedLayoutManager(int spanCount, int orientation) { argument 1622 super(spanCount, orientation); 1834 GridTestAdapter(int count, int orientation) { argument 1836 mOrientation = orientation; 1916 Config(int orientation, boolean reverseLayout, int spanCount, int gapStrategy) { argument 1917 mOrientation = orientation; 1927 orientation(int orientation) argument [all...] |
/frameworks/wilhelm/include/OMXAL/ |
H A D | OpenMAXAL.h | 1598 XAuint32 orientation; member in struct:XACameraDescriptor_
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | GridLayoutManager.java | 201 * The orientation of a "row". 340 * Dimensions of the view, width or height depending on orientation. 373 * Set to true for RTL layout in horizontal orientation 378 * Set to true for RTL layout in vertical orientation 393 public void setOrientation(int orientation) { argument 394 if (orientation != HORIZONTAL && orientation != VERTICAL) { 395 if (DEBUG) Log.v(getTag(), "invalid orientation: " + orientation); 399 mOrientation = orientation; [all...] |
H A D | ItemAlignment.java | 42 Axis(int orientation) { argument 43 mOrientation = orientation; 162 final public void setOrientation(int orientation) { argument 163 mOrientation = orientation;
|
H A D | WindowAlignment.java | 291 final public void setOrientation(int orientation) { argument 292 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/native/include/private/gui/ |
H A D | LayerState.h | 124 uint32_t orientation; member in struct:android::DisplayState
|
/frameworks/native/include/ui/ |
H A D | DisplayInfo.h | 35 uint8_t orientation; member in struct:android::DisplayInfo
|
/frameworks/native/libs/gui/ |
H A D | SurfaceComposerClient.cpp | 156 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
|
/frameworks/native/libs/input/ |
H A D | Input.cpp | 133 // No need to scale orientation since it is meaningless to do so. 400 // can transform orientation vectors. 414 float orientation = c.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION); local 416 transformAngle(matrix, orientation, originX, originY));
|
/frameworks/native/services/inputflinger/ |
H A D | InputReader.cpp | 103 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...] |
H A D | InputReader.h | 57 int32_t orientation; member in struct:android::DisplayViewport 70 displayId(ADISPLAY_ID_NONE), orientation(DISPLAY_ORIENTATION_0), 78 && orientation == other.orientation 101 orientation = DISPLAY_ORIENTATION_0; 129 // The display size or orientation changed. 753 RawAbsoluteAxisInfo orientation; member in struct:android::RawPointerAxes 776 int32_t orientation; member in struct:android::RawPointerData::Pointer 1070 int32_t mOrientation; // orientation for dpad keys 1391 // The components of the viewport are specified in the display's rotated orientation 1451 InputDeviceInfo::MotionRange orientation; member in struct:android::TouchInputMapper::OrientedRanges [all...] |
/frameworks/native/services/inputflinger/tests/ |
H A D | InputReader_test.cpp | 140 void setDisplayInfo(int32_t displayId, int32_t width, int32_t height, int32_t orientation) { argument 142 bool isRotated = (orientation == DISPLAY_ORIENTATION_90 143 || orientation == DISPLAY_ORIENTATION_270); 146 v.orientation = orientation; 1427 int32_t orientation) { 1428 mFakePolicy->setDisplayInfo(displayId, width, height, orientation); 1459 float orientation, float distance) { 1468 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); 1799 // Special case: if orientation change 1426 setDisplayInfoAndReconfigure(int32_t displayId, int32_t width, int32_t height, int32_t orientation) argument 1456 assertPointerCoords(const PointerCoords& coords, float x, float y, float pressure, float size, float touchMajor, float touchMinor, float toolMajor, float toolMinor, float orientation, float distance) argument 2539 prepareDisplay(int32_t orientation) argument 3242 float orientation = atan2f(-sinf(tiltXAngle), sinf(tiltYAngle)); local 3824 processOrientation( MultiTouchInputMapper* mapper, int32_t orientation) argument 4519 float orientation = float(rawOrientation) / RAW_ORIENTATION_MAX * M_PI_2; local [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 132 // 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
|