/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | NavigationBar.java | 44 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/ |
D | ScrollbarHelper.java | 30 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/ |
D | OrientationEventListener.java | 120 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
|
D | OrientationListener.java | 73 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/ |
D | README.txt | 25 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/av/camera/ |
D | CameraUtils.cpp | 56 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/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 202 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_DropStaleConfigurations() local 208 assertEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_DropStaleConfigurations() 220 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_ApplyNewConfigurations() local 226 assertNotEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_ApplyNewConfigurations() 238 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() local 244 newerConfig.orientation = orientation == ORIENTATION_LANDSCAPE in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 251 olderConfig.orientation = orientation; in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 257 assertEquals(olderConfig.orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 262 assertEquals(newerConfig.orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending() 275 config.orientation = ORIENTATION_PORTRAIT; in testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | DisplayViewport.java | 59 public int orientation; field in DisplayViewport 87 orientation = viewport.orientation; in copyFrom() 120 && orientation == other.orientation in equals() 137 result += prime * result + orientation; in hashCode() 160 + ", orientation=" + orientation in toString()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 500 int orientation = activity.info.screenOrientation; in resolveOrientation() local 501 switch (orientation) { in resolveOrientation() 504 orientation = SCREEN_ORIENTATION_LOCKED; in resolveOrientation() 511 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation() 518 orientation = SCREEN_ORIENTATION_PORTRAIT; in resolveOrientation() 521 orientation = SCREEN_ORIENTATION_UNSPECIFIED; in resolveOrientation() 524 return orientation; in resolveOrientation() 558 final int orientation = resolveOrientation(root, display, inOutBounds); in getTaskBounds() local 559 if (orientation != SCREEN_ORIENTATION_PORTRAIT in getTaskBounds() 560 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds() [all …]
|
D | DisplayRotation.java | 1060 int rotationForOrientation(@ScreenOrientation int orientation, in rotationForOrientation() argument 1064 ActivityInfo.screenOrientationToString(orientation), orientation, in rotationForOrientation() 1132 } else if (orientation == ActivityInfo.SCREEN_ORIENTATION_LOCKED) { in rotationForOrientation() 1140 && (orientation == ActivityInfo.SCREEN_ORIENTATION_USER in rotationForOrientation() 1141 || orientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED in rotationForOrientation() 1142 || orientation == ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE in rotationForOrientation() 1143 || orientation == ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT in rotationForOrientation() 1144 || orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_USER)) in rotationForOrientation() 1145 || orientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR in rotationForOrientation() 1146 || orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR in rotationForOrientation() [all …]
|
/frameworks/native/include/input/ |
D | DisplayViewport.h | 66 int32_t orientation; member 86 orientation(DISPLAY_ORIENTATION_0), in DisplayViewport() 103 return displayId == other.displayId && orientation == other.orientation && 123 orientation = DISPLAY_ORIENTATION_0; in setNonDisplayViewport() 149 orientation, logicalLeft, logicalTop, logicalRight, logicalBottom, in toString()
|
/frameworks/native/services/sensorservice/ |
D | OrientationSensor.cpp | 62 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisabler.java | 49 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/native/libs/renderengine/include/renderengine/ |
D | DisplaySettings.h | 62 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/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 405 int orientation = Surface.ROTATION_0; in configureDisplayLocked() local 407 orientation = displayInfo.rotation; in configureDisplayLocked() 411 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayLocked() 418 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayLocked() 419 || orientation == Surface.ROTATION_270); in configureDisplayLocked() 424 InsetUtils.rotateInsets(maskingInsets, orientation); in configureDisplayLocked() 458 if (orientation == Surface.ROTATION_0) { in configureDisplayLocked() 460 } else if (orientation == Surface.ROTATION_90) { in configureDisplayLocked() 462 } else if (orientation == Surface.ROTATION_180) { in configureDisplayLocked() 469 device.setProjectionLocked(t, orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayLocked()
|
D | DisplayDevice.java | 215 public final void setProjectionLocked(SurfaceControl.Transaction t, int orientation, in setProjectionLocked() argument 217 if (mCurrentOrientation != orientation in setProjectionLocked() 222 mCurrentOrientation = orientation; in setProjectionLocked() 235 orientation, layerStackRect, displayRect); in setProjectionLocked() 254 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 1075 public static boolean isFixedOrientationLandscape(@ScreenOrientation int orientation) { in isFixedOrientationLandscape() argument 1076 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape() 1077 || orientation == SCREEN_ORIENTATION_SENSOR_LANDSCAPE in isFixedOrientationLandscape() 1078 || orientation == SCREEN_ORIENTATION_REVERSE_LANDSCAPE in isFixedOrientationLandscape() 1079 || orientation == SCREEN_ORIENTATION_USER_LANDSCAPE; in isFixedOrientationLandscape() 1094 public static boolean isFixedOrientationPortrait(@ScreenOrientation int orientation) { in isFixedOrientationPortrait() argument 1095 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait() 1096 || orientation == SCREEN_ORIENTATION_SENSOR_PORTRAIT in isFixedOrientationPortrait() 1097 || orientation == SCREEN_ORIENTATION_REVERSE_PORTRAIT in isFixedOrientationPortrait() 1098 || orientation == SCREEN_ORIENTATION_USER_PORTRAIT; in isFixedOrientationPortrait() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisablerTest.java | 76 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/ |
D | OrientedBoundingBox.java | 31 public final float orientation; field in OrientedBoundingBox 37 orientation = angle; in OrientedBoundingBox() 61 matrix.setRotate(orientation); in toPath()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | KeyboardInputMapper.cpp | 25 static int32_t rotateValueUsingRotationMap(int32_t value, int32_t orientation, in rotateValueUsingRotationMap() argument 27 if (orientation != DISPLAY_ORIENTATION_0) { in rotateValueUsingRotationMap() 30 return map[i][orientation]; in rotateValueUsingRotationMap() 57 static int32_t rotateStemKey(int32_t value, int32_t orientation, const int32_t map[][2], in rotateStemKey() argument 59 if (orientation == DISPLAY_ORIENTATION_180) { in rotateStemKey() 82 static int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) { in rotateKeyCode() argument 83 keyCode = rotateStemKey(keyCode, orientation, stemKeyRotationMap, stemKeyRotationMapSize); in rotateKeyCode() 84 return rotateValueUsingRotationMap(keyCode, orientation, keyCodeRotationMap, in rotateKeyCode() 102 return mViewport->orientation; in getOrientation()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 90 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testVoidConfigChange() 113 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testEffectiveConfigChange() 139 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleResources() 181 newCnf.orientation = cfg.orientation == Configuration.ORIENTATION_LANDSCAPE ? in testConfigChangeMultipleThemes()
|
/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 41 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()
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
D | DecodeTask.java | 162 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/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 157 void DisplayDevice::setProjection(ui::Rotation orientation, Rect viewport, Rect frame) { in setProjection() argument 158 mOrientation = orientation; in setProjection() 165 if (const auto flags = ui::Transform::toRotationFlags(orientation); in setProjection() 210 if (const auto flags = ui::Transform::toRotationFlags(orientation + mPhysicalOrientation); in setProjection() 236 sPrimaryDisplayRotationFlags = ui::Transform::toRotationFlags(orientation); in setProjection() 237 transformOrientation = ui::Transform::toRotationFlags(orientation + mPhysicalOrientation); in setProjection() 239 transformOrientation = ui::Transform::toRotationFlags(orientation); in setProjection()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 378 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local 379 if (orientation != null) { in getConfiguration() 380 switch (orientation) { in getConfiguration() 382 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 385 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 389 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() 393 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
|