Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DNavigationBar.java44 public NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument
46 this(context, density, orientation, isRtl, rtlEnabled, simulatedPlatformVersion, in NavigationBar()
50 protected NavigationBar(BridgeContext context, Density density, int orientation, boolean isRtl, in NavigationBar() argument
52 super(context, orientation, layoutPath, simulatedPlatformVersion); in NavigationBar()
63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar()
81 setupNavBar(context, orientation); in NavigationBar()
84 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar() argument
88 setSize(context, leftPadding, orientation, getSidePadding(sw)); in setupNavBar()
89 setSize(context, rightPadding, orientation, getSidePadding(sw)); in setupNavBar()
93 setSize(context, navButton, orientation, navButtonWidth); in setupNavBar()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DScrollbarHelper.java30 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, in computeScrollOffset() argument
47 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) in computeScrollOffset()
48 - orientation.getDecoratedStart(startChild)); in computeScrollOffset()
53 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() in computeScrollOffset()
54 - orientation.getDecoratedStart(startChild))); in computeScrollOffset()
61 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, in computeScrollExtent() argument
71 final int extend = orientation.getDecoratedEnd(endChild) in computeScrollExtent()
72 - orientation.getDecoratedStart(startChild); in computeScrollExtent()
73 return Math.min(orientation.getTotalSpace(), extend); in computeScrollExtent()
80 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, in computeScrollRange() argument
[all …]
/frameworks/base/core/java/android/view/
DOrientationEventListener.java120 int orientation = ORIENTATION_UNKNOWN; in onSensorChanged() local
129 orientation = 90 - (int)Math.round(angle); in onSensorChanged()
131 while (orientation >= 360) { in onSensorChanged()
132 orientation -= 360; in onSensorChanged()
134 while (orientation < 0) { in onSensorChanged()
135 orientation += 360; in onSensorChanged()
141 if (orientation != mOrientation) { in onSensorChanged()
142 mOrientation = orientation; in onSensorChanged()
143 onOrientationChanged(orientation); in onSensorChanged()
172 abstract public void onOrientationChanged(int orientation); in onOrientationChanged() argument
DOrientationListener.java73 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
74 OrientationListener.this.onOrientationChanged(orientation); in onOrientationChanged()
108 abstract public void onOrientationChanged(int orientation); in onOrientationChanged() argument
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaGroup.java57 int orientation = super.getOrientation(candidate); in getOrientation() local
65 return isOrientationDifferentFromDisplay() ? reverseOrientation(orientation) : orientation; in getOrientation()
72 if (resolvedConfig.orientation != ORIENTATION_UNDEFINED) { in resolveOverrideConfiguration()
90 if (newParentConfiguration.orientation == ORIENTATION_PORTRAIT) { in resolveOverrideConfiguration()
91 resolvedConfig.orientation = ORIENTATION_LANDSCAPE; in resolveOverrideConfiguration()
92 } else if (newParentConfiguration.orientation == ORIENTATION_LANDSCAPE) { in resolveOverrideConfiguration()
93 resolvedConfig.orientation = ORIENTATION_PORTRAIT; in resolveOverrideConfiguration()
DTaskLaunchParamsModifier.java649 int orientation = activity.info.screenOrientation; in resolveOrientation() local
650 switch (orientation) { in resolveOrientation()
653 orientation = SCREEN_ORIENTATION_LOCKED; in resolveOrientation()
660 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation()
667 orientation = SCREEN_ORIENTATION_PORTRAIT; in resolveOrientation()
670 orientation = SCREEN_ORIENTATION_UNSPECIFIED; in resolveOrientation()
673 return orientation; in resolveOrientation()
707 final int orientation = resolveOrientation(root, displayArea, inOutBounds); in getTaskBounds() local
708 if (orientation != SCREEN_ORIENTATION_PORTRAIT in getTaskBounds()
709 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds()
[all …]
/frameworks/base/tools/orientationplot/
DREADME.txt25 adb shell setprop debug.orientation.log true
37 filtered accelerometer data, measured tilt and orientation angle, confidence
38 intervals for the proposed orientation and accelerometer latency.
44 and the latency for orientation detection goes up. One way to observe this
45 is by holding the device vertically in one orientation then sharply turning
46 it 90 degrees to a different orientation. Compared the rapid changes in the
50 2. Ensure that there is an appropriate gap between adjacent orientation angles
51 for hysteresis. Try holding the device in one orientation and slowly turning
57 Next try holding the device in one orientation and rapidly turning it end
61 different from the original orientation of the device). However, once it
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DTouchCursorInputMapperCommon.h41 static int32_t getInverseRotation(int32_t orientation) { in getInverseRotation() argument
42 switch (orientation) { in getInverseRotation()
48 return orientation; in getInverseRotation()
52 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) { in rotateDelta() argument
54 switch (orientation) { in rotateDelta()
79 static void rotatePoint(int32_t orientation, float& x, float& y, int32_t width, int32_t height) { in rotatePoint() argument
80 rotateDelta(orientation, &x, &y); in rotatePoint()
81 switch (orientation) { in rotatePoint()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityThreadTest.java226 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_DropStaleConfigurations() local
232 assertEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_DropStaleConfigurations()
244 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_ApplyNewConfigurations() local
250 assertNotEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_ApplyNewConfigurations()
262 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() local
268 newerConfig.orientation = orientation == ORIENTATION_LANDSCAPE in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
275 olderConfig.orientation = orientation; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
280 assertEquals(olderConfig.orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
284 assertEquals(newerConfig.orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending()
298 config.orientation = ORIENTATION_PORTRAIT; in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder()
[all …]
/frameworks/av/camera/
DCameraUtils.cpp59 int orientation = entry.data.i32[0]; in getRotationTransform() local
61 switch (orientation) { in getRotationTransform()
76 __FUNCTION__, orientation); in getRotationTransform()
83 switch (orientation) { in getRotationTransform()
102 __FUNCTION__, orientation); in getRotationTransform()
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java60 public int orientation; field in DisplayViewport
88 orientation = viewport.orientation; in copyFrom()
121 && orientation == other.orientation in equals()
138 result += prime * result + orientation; in hashCode()
160 + ", orientation=" + orientation in toString()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DProjectionSpace.h49 ui::Rotation orientation = ui::ROTATION_0; member
54 ui::Rotation rotation = destination.orientation - orientation; in getTransform()
102 orientation == other.orientation;
112 toCString(space.orientation)); in to_string()
/frameworks/native/include/input/
DDisplayViewport.h54 int32_t orientation; member
74 orientation(DISPLAY_ORIENTATION_0), in DisplayViewport()
91 return displayId == other.displayId && orientation == other.orientation &&
111 orientation = DISPLAY_ORIENTATION_0; in setNonDisplayViewport()
137 orientation, logicalLeft, logicalTop, logicalRight, logicalBottom, in toString()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java105 int orientation; in getResourcesForRotation() local
109 orientation = ORIENTATION_PORTRAIT; in getResourcesForRotation()
113 orientation = ORIENTATION_LANDSCAPE; in getResourcesForRotation()
120 c.orientation = orientation; in getResourcesForRotation()
/frameworks/native/services/sensorservice/
DOrientationSensor.cpp62 outEvent->orientation.azimuth = g.x; in process()
63 outEvent->orientation.pitch = g.y; in process()
64 outEvent->orientation.roll = g.z; in process()
65 outEvent->orientation.status = SENSOR_STATUS_ACCURACY_HIGH; in process()
/frameworks/native/libs/renderengine/include/renderengine/
DDisplaySettings.h62 uint32_t orientation = ui::Transform::ROT_0; member
72 lhs.clearRegion.hasSameRects(rhs.clearRegion) && lhs.orientation == rhs.orientation;
88 *os << "\n .orientation = " << settings.orientation; in PrintTo()
/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DDisplaySettings.h62 uint32_t orientation = ui::Transform::ROT_0; member
69 lhs.clearRegion.hasSameRects(rhs.clearRegion) && lhs.orientation == rhs.orientation;
85 *os << "\n .orientation = " << settings.orientation; in PrintTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputQuickSettingsDisabler.java49 mLastOrientation = mContext.getResources().getConfiguration().orientation; in RemoteInputQuickSettingsDisabler()
70 if (newConfig.orientation != mLastOrientation) { in onConfigChanged()
71 misLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE; in onConfigChanged()
72 mLastOrientation = newConfig.orientation; in onConfigChanged()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java1260 public static boolean isFixedOrientationLandscape(@ScreenOrientation int orientation) { in isFixedOrientationLandscape() argument
1261 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape()
1262 || orientation == SCREEN_ORIENTATION_SENSOR_LANDSCAPE in isFixedOrientationLandscape()
1263 || orientation == SCREEN_ORIENTATION_REVERSE_LANDSCAPE in isFixedOrientationLandscape()
1264 || orientation == SCREEN_ORIENTATION_USER_LANDSCAPE; in isFixedOrientationLandscape()
1279 public static boolean isFixedOrientationPortrait(@ScreenOrientation int orientation) { in isFixedOrientationPortrait() argument
1280 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait()
1281 || orientation == SCREEN_ORIENTATION_SENSOR_PORTRAIT in isFixedOrientationPortrait()
1282 || orientation == SCREEN_ORIENTATION_REVERSE_PORTRAIT in isFixedOrientationPortrait()
1283 || orientation == SCREEN_ORIENTATION_USER_PORTRAIT; in isFixedOrientationPortrait()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DIgnorableChildLinearLayout.kt50 val actualWidthSpec = if (forceUnspecifiedMeasure && orientation == HORIZONTAL) { in onMeasure()
54 val actualHeightSpec = if (forceUnspecifiedMeasure && orientation == VERTICAL) { in onMeasure()
63 if (orientation == VERTICAL) { in onMeasure()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputQuickSettingsDisablerTest.java76 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToLandscape()
78 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToLandscape()
87 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToPortrait()
89 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToPortrait()
/frameworks/base/core/java/android/gesture/
DOrientedBoundingBox.java31 public final float orientation; field in OrientedBoundingBox
37 orientation = angle; in OrientedBoundingBox()
61 matrix.setRotate(orientation); in toPath()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDevice.java224 public final void setProjectionLocked(SurfaceControl.Transaction t, int orientation, in setProjectionLocked() argument
226 if (mCurrentOrientation != orientation in setProjectionLocked()
231 mCurrentOrientation = orientation; in setProjectionLocked()
244 orientation, layerStackRect, displayRect); in setProjectionLocked()
263 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DProjectionSpaceTest.cpp61 space.orientation = ui::Rotation(rotation); in TEST()
116 const auto sourceStrip = getSideStrip(source.content, source.orientation); in testTransform()
117 const auto destStrip = getSideStrip(dest.content, dest.orientation); in testTransform()
136 source.orientation = ui::Rotation(sourceRot); in TEST()
138 dest.orientation = ui::Rotation(destRot); in TEST()
/frameworks/av/include/media/
DMicrophoneInfo.h44 mOrientation.push_back(characteristic.orientation.x); in MicrophoneInfo()
45 mOrientation.push_back(characteristic.orientation.y); in MicrophoneInfo()
46 mOrientation.push_back(characteristic.orientation.z); in MicrophoneInfo()
80 parcelable->orientation = mOrientation; in writeToParcelable()
112 if (parcelable.orientation.size() != 3) { in readFromParcelable()
115 mOrientation = parcelable.orientation; in readFromParcelable()

12345678910>>...12