Searched refs:orientation (Results 1 - 25 of 240) sorted by relevance

12345678910

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DNavigationBar.java44 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/base/core/java/com/android/internal/widget/
H A DScrollbarHelper.java30 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, argument
47 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild)
48 - orientation.getDecoratedStart(startChild));
53 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding()
54 - orientation.getDecoratedStart(startChild)));
61 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, argument
71 final int extend = orientation.getDecoratedEnd(endChild)
72 - orientation.getDecoratedStart(startChild);
73 return Math.min(orientation.getTotalSpace(), extend);
80 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, argument
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/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 DDividerItemDecoration.java52 * Current orientation. Either {@link #HORIZONTAL} or {@link #VERTICAL}.
63 * @param orientation Divider orientation. Should be {@link #HORIZONTAL} or {@link #VERTICAL}.
65 public DividerItemDecoration(Context context, int orientation) { argument
73 setOrientation(orientation);
77 * Sets the orientation for this divider. This should be called if
78 * {@link RecyclerView.LayoutManager} changes orientation.
80 * @param orientation {@link #HORIZONTAL} or {@link #VERTICAL}
82 public void setOrientation(int orientation) { argument
83 if (orientation !
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DItemAlignment.java33 Axis(int orientation) { argument
34 mOrientation = orientation;
63 final public void setOrientation(int orientation) { argument
64 mOrientation = orientation;
/frameworks/base/core/java/android/view/
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...]
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
/frameworks/base/core/java/android/hardware/display/
H A DDisplayViewport.java40 public int orientation; field in class:DisplayViewport
62 orientation = viewport.orientation;
92 && orientation == other.orientation
106 result += prime * result + orientation;
121 + ", orientation=" + orientation
/frameworks/av/camera/
H A DCameraUtils.cpp43 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DRemoteInputQuickSettingsDisabler.java45 mLastOrientation = mContext.getResources().getConfiguration().orientation;
66 if (newConfig.orientation != mLastOrientation) {
67 misLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE;
68 mLastOrientation = newConfig.orientation;
/frameworks/native/include/ui/
H A DDisplayInfo.h34 uint8_t orientation{0};
/frameworks/native/libs/ui/include/ui/
H A DDisplayInfo.h34 uint8_t orientation{0};
/frameworks/native/libs/ui/include_vndk/ui/
H A DDisplayInfo.h34 uint8_t orientation{0};
/frameworks/native/services/sensorservice/
H A DOrientationSensor.cpp62 outEvent->orientation.azimuth = g.x;
63 outEvent->orientation.pitch = g.y;
64 outEvent->orientation.roll = g.z;
65 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH;
/frameworks/native/include/input/
H A DDisplayViewport.h31 int32_t orientation; member in struct:android::DisplayViewport
45 displayId(ADISPLAY_ID_NONE), orientation(DISPLAY_ORIENTATION_0),
53 && orientation == other.orientation
77 orientation = DISPLAY_ORIENTATION_0;
/frameworks/base/core/java/android/hardware/
H A DCameraInfo.java40 out.writeInt(info.orientation);
45 info.orientation = in.readInt();
/frameworks/base/proto/src/
H A Dtask_snapshot.proto25 int32 orientation = 1;
/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);
H A DInstance.java94 float orientation = (float)Math.atan2(pts[1] - center[1], pts[0] - center[0]);
96 float adjustment = -orientation;
100 float delta = ORIENTATIONS[i] - orientation;
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DThumbnailData.java32 public int orientation; field in class:ThumbnailData
43 orientation = ORIENTATION_UNDEFINED;
56 orientation = snapshot.getOrientation();
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DRemoteInputQuickSettingsDisablerTest.java74 c.orientation = Configuration.ORIENTATION_PORTRAIT;
76 c.orientation = Configuration.ORIENTATION_LANDSCAPE;
85 c.orientation = Configuration.ORIENTATION_LANDSCAPE;
87 c.orientation = Configuration.ORIENTATION_PORTRAIT;
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DLinearLayoutManagerWrapContentWithAspectRatioTest.java61 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
66 new BaseLinearLayoutManagerTest.Config(orientation,
75 new BaseLinearLayoutManagerTest.Config(orientation,
78 HORIZONTAL == orientation,
79 VERTICAL == orientation),
85 new BaseLinearLayoutManagerTest.Config(orientation,
88 VERTICAL == orientation,
89 HORIZONTAL == orientation),
95 new BaseLinearLayoutManagerTest.Config(orientation,
H A DBaseGridLayoutManagerTest.java64 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) {
67 variations.add(new Config(spanCount, orientation, reverseLayout));
119 public Config(int spanCount, int orientation, boolean reverseLayout) { argument
121 mOrientation = orientation;
125 Config orientation(int orientation) { argument
126 mOrientation = orientation;
169 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, argument
171 super(context, spanCount, orientation, reverseLayout);
189 public void setOrientation(int orientation) { argument
[all...]
/frameworks/base/tools/aapt/tests/
H A DResourceTable_test.cpp32 landConfig.orientation = ResTable_config::ORIENTATION_LAND;
35 sw600dpLandConfig.orientation = ResTable_config::ORIENTATION_LAND;
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
H A DRemoteHardwareConfig.java53 float ydpi, ScreenSize screenSize, ScreenOrientation orientation,
61 mOrientation = orientation;
52 RemoteHardwareConfig(int screenWidth, int screenHeight, Density density, float xdpi, float ydpi, ScreenSize screenSize, ScreenOrientation orientation, ScreenRound screenRoundness, boolean hasSoftwareButtons) argument

Completed in 2924 milliseconds

12345678910