Home
last modified time | relevance | path

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

12345678910

/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, "navigation_bar.xml", simulatedPlatformVersion); in NavigationBar()
63 if (orientation == LinearLayout.VERTICAL || (isRtl && !rtlEnabled)) { in NavigationBar()
75 setupNavBar(context, orientation); in NavigationBar()
78 private void setupNavBar(BridgeContext context, int orientation) { in setupNavBar() argument
82 setSize(context, leftPadding, orientation, getSidePadding(sw)); in setupNavBar()
83 setSize(context, rightPadding, orientation, getSidePadding(sw)); in setupNavBar()
87 setSize(context, navButton, orientation, navButtonWidth); in setupNavBar()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DScrollbarHelper.java29 static int computeScrollOffset(RecyclerView.State state, OrientationHelper orientation, in computeScrollOffset() argument
46 final int laidOutArea = Math.abs(orientation.getDecoratedEnd(endChild) in computeScrollOffset()
47 - orientation.getDecoratedStart(startChild)); in computeScrollOffset()
52 return Math.round(itemsBefore * avgSizePerRow + (orientation.getStartAfterPadding() in computeScrollOffset()
53 - orientation.getDecoratedStart(startChild))); in computeScrollOffset()
60 static int computeScrollExtent(RecyclerView.State state, OrientationHelper orientation, in computeScrollExtent() argument
70 final int extend = orientation.getDecoratedEnd(endChild) in computeScrollExtent()
71 - orientation.getDecoratedStart(startChild); in computeScrollExtent()
72 return Math.min(orientation.getTotalSpace(), extend); in computeScrollExtent()
79 static int computeScrollRange(RecyclerView.State state, OrientationHelper orientation, in computeScrollRange() argument
[all …]
DDividerItemDecoration.java64 public DividerItemDecoration(Context context, int orientation) { in DividerItemDecoration() argument
72 setOrientation(orientation); in DividerItemDecoration()
81 public void setOrientation(int orientation) { in setOrientation() argument
82 if (orientation != HORIZONTAL && orientation != VERTICAL) { in setOrientation()
86 mOrientation = orientation; in setOrientation()
/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/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/base/core/java/android/hardware/display/
DDisplayViewport.java40 public int orientation; field in DisplayViewport
62 orientation = viewport.orientation; in copyFrom()
92 && orientation == other.orientation in equals()
106 result += prime * result + orientation; in hashCode()
121 + ", orientation=" + orientation in toString()
/frameworks/av/camera/
DCameraUtils.cpp56 int orientation = entry.data.i32[0]; in getRotationTransform() local
58 switch (orientation) { in getRotationTransform()
73 __FUNCTION__, orientation); in getRotationTransform()
80 switch (orientation) { in getRotationTransform()
99 __FUNCTION__, orientation); in getRotationTransform()
/frameworks/native/include/input/
DDisplayViewport.h31 int32_t orientation; member
45 displayId(ADISPLAY_ID_NONE), orientation(DISPLAY_ORIENTATION_0), in DisplayViewport()
53 && orientation == other.orientation
77 orientation = DISPLAY_ORIENTATION_0; in setNonDisplayViewport()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DItemAlignment.java33 Axis(int orientation) { in Axis() argument
34 mOrientation = orientation; in Axis()
63 final public void setOrientation(int orientation) { in setOrientation() argument
64 mOrientation = orientation; in setOrientation()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerWrapContentWithAspectRatioTest.java60 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in data()
65 new BaseLinearLayoutManagerTest.Config(orientation, in data()
74 new BaseLinearLayoutManagerTest.Config(orientation, in data()
77 HORIZONTAL == orientation, in data()
78 VERTICAL == orientation), in data()
84 new BaseLinearLayoutManagerTest.Config(orientation, in data()
87 VERTICAL == orientation, in data()
88 HORIZONTAL == orientation), in data()
94 new BaseLinearLayoutManagerTest.Config(orientation, in data()
DBaseGridLayoutManagerTest.java64 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in createBaseVariations()
67 variations.add(new Config(spanCount, orientation, reverseLayout)); in createBaseVariations()
119 public Config(int spanCount, int orientation, boolean reverseLayout) { in Config() argument
121 mOrientation = orientation; in Config()
125 Config orientation(int orientation) { in orientation() method in BaseGridLayoutManagerTest.Config
126 mOrientation = orientation; in orientation()
169 public WrappedGridLayoutManager(Context context, int spanCount, int orientation, in WrappedGridLayoutManager() argument
171 super(context, spanCount, orientation, reverseLayout); in WrappedGridLayoutManager()
189 public void setOrientation(int orientation) { in setOrientation() argument
190 super.setOrientation(orientation); in setOrientation()
DLinearLayoutManagerWrapContentTest.java122 for (int orientation : new int[]{VERTICAL, HORIZONTAL}) { in data()
127 new Config(orientation, reverseLayout, stackFromBottom), in data()
133 new Config(orientation, reverseLayout, stackFromBottom), in data()
134 new WrapContentConfig(HORIZONTAL == orientation, in data()
135 VERTICAL == orientation, new Rect(padding)) in data()
/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/base/services/core/java/com/android/server/display/
DDisplayDevice.java166 public final void setProjectionInTransactionLocked(int orientation, in setProjectionInTransactionLocked() argument
168 if (mCurrentOrientation != orientation in setProjectionInTransactionLocked()
173 mCurrentOrientation = orientation; in setProjectionInTransactionLocked()
186 orientation, layerStackRect, displayRect); in setProjectionInTransactionLocked()
205 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
DLogicalDisplay.java331 int orientation = Surface.ROTATION_0; in configureDisplayInTransactionLocked() local
333 orientation = displayInfo.rotation; in configureDisplayInTransactionLocked()
337 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayInTransactionLocked()
344 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayInTransactionLocked()
345 || orientation == Surface.ROTATION_270); in configureDisplayInTransactionLocked()
379 device.setProjectionInTransactionLocked(orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayInTransactionLocked()
/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/core/java/android/content/pm/
DActivityInfo.java1011 public static boolean isFixedOrientationLandscape(@ScreenOrientation int orientation) { in isFixedOrientationLandscape() argument
1012 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape()
1013 || orientation == SCREEN_ORIENTATION_SENSOR_LANDSCAPE in isFixedOrientationLandscape()
1014 || orientation == SCREEN_ORIENTATION_REVERSE_LANDSCAPE in isFixedOrientationLandscape()
1015 || orientation == SCREEN_ORIENTATION_USER_LANDSCAPE; in isFixedOrientationLandscape()
1030 public static boolean isFixedOrientationPortrait(@ScreenOrientation int orientation) { in isFixedOrientationPortrait() argument
1031 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait()
1032 || orientation == SCREEN_ORIENTATION_SENSOR_PORTRAIT in isFixedOrientationPortrait()
1033 || orientation == SCREEN_ORIENTATION_REVERSE_PORTRAIT in isFixedOrientationPortrait()
1034 || orientation == SCREEN_ORIENTATION_USER_PORTRAIT; in isFixedOrientationPortrait()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java89 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange()
112 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange()
138 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources()
180 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleThemes()
/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp41 jfieldID orientation; member
66 out->orientation = env->GetIntField(clazz, gConfigurationClassInfo.orientation); in android_Configuration_getFromJava()
90 gConfigurationClassInfo.orientation = GetFieldIDOrDie(env, clazz, "orientation", "I"); in register_android_content_res_Configuration()
Dandroid_hardware_display_DisplayViewport.cpp37 jfieldID orientation; member
57 viewport->orientation = env->GetIntField(viewportObj, gDisplayViewportClassInfo.orientation); in android_hardware_display_DisplayViewport_toNative()
93 gDisplayViewportClassInfo.orientation = GetFieldIDOrDie(env, in register_android_hardware_display_DisplayViewport()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java162 final int orientation; in decode() local
172 orientation = Exif.getOrientation(in, byteSize); in decode()
181 orientation = 0; in decode()
183 final boolean isNotRotatedOr180 = orientation == 0 || orientation == 180; in decode()
186 if (orientation != 0) { in decode()
257 if (isJellyBeanOrAbove && orientation == 0) { in decode()
339 RectUtils.rotateRectForOrientation(orientation, new Rect(0, 0, srcW, srcH), in decode()
426 result.setOrientation(orientation); in decode()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java379 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local
380 if (orientation != null) { in getConfiguration()
381 switch (orientation) { in getConfiguration()
383 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration()
386 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration()
390 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration()
394 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp141 static bool isDeviceRotated(int orientation) { in isDeviceRotated() argument
142 return orientation != DISPLAY_ORIENTATION_0 && in isDeviceRotated()
143 orientation != DISPLAY_ORIENTATION_180; in isDeviceRotated()
222 bool deviceRotated = isDeviceRotated(mainDpyInfo.orientation); in setDisplayProjection()
320 const sp<IBinder>& virtualDpy, uint8_t orientation) { in runEncoder() argument
380 } else if (orientation != mainDpyInfo.orientation) { in runEncoder()
381 ALOGD("orientation changed, now %d", mainDpyInfo.orientation); in runEncoder()
385 orientation = mainDpyInfo.orientation; in runEncoder()
556 mainDpyInfo.orientation); in recordScreen()
559 bool rotated = isDeviceRotated(mainDpyInfo.orientation); in recordScreen()
[all …]

12345678910