Searched refs:HORIZONTAL (Results 1 - 25 of 118) sorted by relevance

12345

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DItemAlignment.java17 import static androidx.recyclerview.widget.RecyclerView.HORIZONTAL;
45 private int mOrientation = HORIZONTAL;
49 final public Axis horizontal = new Axis(HORIZONTAL);
65 if (mOrientation == HORIZONTAL) {
/frameworks/support/viewpager2/src/androidTest/java/androidx/viewpager2/widget/
H A DOrientationTest.java42 assertThat(viewPager.getOrientation(), equalTo(Orientation.HORIZONTAL));
48 assertThat(viewPager.getOrientation(), equalTo(Orientation.HORIZONTAL));
53 assertOrientationCorrect(R.layout.orientation_default, Orientation.HORIZONTAL);
58 assertOrientationCorrect(R.layout.orientation_horizontal, Orientation.HORIZONTAL);
H A DSwipeTest.java27 import static androidx.viewpager2.widget.ViewPager2.Orientation.HORIZONTAL;
141 NO_CONFIG_CHANGES, NO_MUTATIONS, 8, activityClass, HORIZONTAL));
147 activityClass, HORIZONTAL));
150 asList(3, 5, 7), NO_MUTATIONS, 7, activityClass, HORIZONTAL));
154 NO_MUTATIONS, 10, activityClass, HORIZONTAL));
157 NO_CONFIG_CHANGES, NO_MUTATIONS, 10, activityClass, HORIZONTAL));
160 NO_CONFIG_CHANGES, NO_MUTATIONS, 10, activityClass, HORIZONTAL));
167 Pair.create(5, 500)), 7, FragmentAdapterActivity.class, HORIZONTAL));
236 totalPages, activityClass, HORIZONTAL);
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DTitleBar.java31 super(context, LinearLayout.HORIZONTAL, "/bars/title_bar.xml", "title_bar.xml",
H A DThemePreviewNavigationBar.java44 LinearLayout.HORIZONTAL, // In this mode, it doesn't need to be render vertically
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DStaggeredGridLayoutManagerActivity.java34 return new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.HORIZONTAL);
H A DLinearLayoutManagerActivity.java54 return mLayoutManager.getOrientation() == LinearLayoutManager.HORIZONTAL;
59 mLayoutManager.setOrientation(newValue ? LinearLayoutManager.HORIZONTAL
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/
H A DStaggeredGridLayoutManagerActivity.java34 return new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.HORIZONTAL);
H A DLinearLayoutManagerActivity.java54 return mLayoutManager.getOrientation() == LinearLayoutManager.HORIZONTAL;
59 mLayoutManager.setOrientation(newValue ? LinearLayoutManager.HORIZONTAL
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DGoneParentFocusedChild.java59 mLayout.setOrientation(LinearLayout.HORIZONTAL);
66 mGoneGroup.setOrientation(LinearLayout.HORIZONTAL);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DLinearLayoutManagerWrapContentWithAspectRatioTest.java22 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
61 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
78 HORIZONTAL == orientation,
89 HORIZONTAL == orientation),
115 int testOrientation = mConfig.mOrientation == VERTICAL ? HORIZONTAL : VERTICAL;
123 unlimitedSize |= testOrientation == HORIZONTAL;
136 testOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT,
140 testOrientation == HORIZONTAL ? MATCH_PARENT : WRAP_CONTENT,
H A DGridLayoutManagerCustomSizeInScrollDirectionTest.java18 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
48 new Config(3, HORIZONTAL, false), addDecorOffsets, addMargins});
88 if (mConfig.mOrientation == HORIZONTAL) {
106 if (mConfig.mOrientation == HORIZONTAL) {
120 final int size = mConfig.mOrientation == HORIZONTAL ? child.getWidth()
H A DLinearLayoutManagerWrapContentTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
53 unspecifiedWithHintTest(mConfig.mOrientation == StaggeredGridLayoutManager.HORIZONTAL);
122 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
134 new WrapContentConfig(HORIZONTAL == orientation,
159 if (mConfig.mOrientation == HORIZONTAL) {
H A DGridLayoutManagerCacheTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
116 if ((config.mOrientation == HORIZONTAL && mDx == 0)
122 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
H A DLinearLayoutManagerCacheTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
106 if ((config.mOrientation == HORIZONTAL && mDx == 0)
110 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
H A DGridLayoutManagerCachedBordersTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
77 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
H A DLinearLayoutManagerResizeTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
76 if (config.mOrientation == HORIZONTAL) {
H A DBaseGridLayoutManagerTest.java18 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
64 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
96 if (mGlm.getOrientation() == GridLayoutManager.HORIZONTAL) {
134 + ",mOrientation=" + (mOrientation == GridLayoutManager.HORIZONTAL ? "h" : "v")
198 if (getOrientation() == RecyclerView.HORIZONTAL) {
203 RecyclerView.HORIZONTAL);
241 if (getOrientation() == HORIZONTAL) {
H A DLinearLayoutManagerPrepareForDropTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
133 if (config.mOrientation == HORIZONTAL) {
168 if (config.mOrientation == HORIZONTAL) {
H A DStaggeredGridLayoutManagerCacheTest.java19 import static androidx.recyclerview.widget.LinearLayoutManager.HORIZONTAL;
130 if ((config.mOrientation == HORIZONTAL && mDx == 0)
136 boolean reverseScroll = config.mOrientation == HORIZONTAL ? mDx < 0 : mDy < 0;
H A DStaggeredGridLayoutManagerWrapContentTest.java22 import static androidx.recyclerview.widget.StaggeredGridLayoutManager.HORIZONTAL;
61 unspecifiedWithHintTest(mOrientation == StaggeredGridLayoutManager.HORIZONTAL);
86 mOrientation = HORIZONTAL;
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiLayersActivity.java37 row1.setOrientation(LinearLayout.HORIZONTAL);
42 row2.setOrientation(LinearLayout.HORIZONTAL);
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
H A DNoIdTest.java44 mBinder.setOrientation(LinearLayout.HORIZONTAL);
46 assertEquals(LinearLayout.HORIZONTAL, linearLayout.getOrientation());
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DAutoScrollHelper.java134 private static final int HORIZONTAL = 0; field in class:AutoScrollHelper
296 mMaximumVelocity[HORIZONTAL] = horizontalMax / 1000f;
315 mMinimumVelocity[HORIZONTAL] = horizontalMin / 1000f;
337 mRelativeVelocity[HORIZONTAL] = horizontal / 1000f;
379 mRelativeEdges[HORIZONTAL] = horizontal;
402 mMaximumEdges[HORIZONTAL] = horizontalMax;
478 HORIZONTAL, event.getX(), v.getWidth(), mTarget.getWidth());
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DDividerItemDecoration.java33 * between items of a {@link LinearLayoutManager}. It supports both {@link #HORIZONTAL} and
43 public static final int HORIZONTAL = LinearLayout.HORIZONTAL; field in class:DividerItemDecoration
52 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL}.
63 * @param orientation Divider orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}.
80 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL}
83 if (orientation != HORIZONTAL && orientation != VERTICAL) {
85 "Invalid orientation. It should be either HORIZONTAL or VERTICAL");

Completed in 297 milliseconds

12345