/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/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityThreadTest.java | 199 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_DropStaleConfigurations() local 205 assertEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_DropStaleConfigurations() 217 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_ApplyNewConfigurations() local 223 assertNotEquals(orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_ApplyNewConfigurations() 235 final int orientation = activity.mConfig.orientation; in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() local 241 pendingConfig.orientation = orientation == Configuration.ORIENTATION_LANDSCAPE in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 249 newConfig.orientation = orientation; in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 255 assertEquals(pendingConfig.orientation, activity.mConfig.orientation); in testHandleActivityConfigurationChanged_PickNewerPendingConfiguration() 268 config.orientation = Configuration.ORIENTATION_PORTRAIT; in testHandleActivityConfigurationChanged_OnlyAppliesNewestConfiguration() 353 config.orientation = Configuration.ORIENTATION_PORTRAIT; in applyConfigurationChange() [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/java/android/hardware/display/ |
D | DisplayViewport.java | 56 public int orientation; field in DisplayViewport 83 orientation = viewport.orientation; in copyFrom() 115 && orientation == other.orientation in equals() 131 result += prime * result + orientation; in hashCode() 150 + ", orientation=" + orientation in toString()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskLaunchParamsModifier.java | 449 int orientation = activity.info.screenOrientation; in resolveOrientation() local 450 switch (orientation) { in resolveOrientation() 453 orientation = SCREEN_ORIENTATION_LOCKED; in resolveOrientation() 460 orientation = SCREEN_ORIENTATION_LANDSCAPE; in resolveOrientation() 467 orientation = SCREEN_ORIENTATION_PORTRAIT; in resolveOrientation() 470 orientation = SCREEN_ORIENTATION_UNSPECIFIED; in resolveOrientation() 473 return orientation; in resolveOrientation() 507 final int orientation = resolveOrientation(root, display, inOutBounds); in getTaskBounds() local 508 if (orientation != SCREEN_ORIENTATION_PORTRAIT in getTaskBounds() 509 && orientation != SCREEN_ORIENTATION_LANDSCAPE) { in getTaskBounds() [all …]
|
D | DisplayRotation.java | 525 int rotationForOrientation(int orientation, int lastRotation) { in rotationForOrientation() argument 528 + orientation + ", last=" + lastRotation in rotationForOrientation() 597 } else if (orientation == ActivityInfo.SCREEN_ORIENTATION_LOCKED) { in rotationForOrientation() 605 && (orientation == ActivityInfo.SCREEN_ORIENTATION_USER in rotationForOrientation() 606 || orientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED in rotationForOrientation() 607 || orientation == ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE in rotationForOrientation() 608 || orientation == ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT in rotationForOrientation() 609 || orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_USER)) in rotationForOrientation() 610 || orientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR in rotationForOrientation() 611 || orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR in rotationForOrientation() [all …]
|
/frameworks/native/include/input/ |
D | DisplayViewport.h | 59 int32_t orientation; member 77 displayId(ADISPLAY_ID_NONE), orientation(DISPLAY_ORIENTATION_0), in DisplayViewport() 86 && orientation == other.orientation 112 orientation = DISPLAY_ORIENTATION_0; in setNonDisplayViewport() 136 orientation, in toString()
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.cpp | 174 uint32_t DisplayDevice::displayStateOrientationToTransformOrientation(int orientation) { in displayStateOrientationToTransformOrientation() argument 175 switch (orientation) { in displayStateOrientationToTransformOrientation() 189 status_t DisplayDevice::orientationToTransfrom(int orientation, int w, int h, ui::Transform* tr) { in orientationToTransfrom() argument 190 uint32_t flags = displayStateOrientationToTransformOrientation(orientation); in orientationToTransfrom() 202 void DisplayDevice::setProjection(int orientation, in setProjection() argument 207 mOrientation = orientation; in setProjection() 214 DisplayDevice::orientationToTransfrom(orientation, w, h, &R); in setProjection() 257 (orientation + mDisplayInstallOrientation) % (DisplayState::eOrientation270 + 1), in setProjection() 278 sPrimaryDisplayOrientation = displayStateOrientationToTransformOrientation(orientation); in setProjection() 280 (orientation + mDisplayInstallOrientation) % (DisplayState::eOrientation270 + 1)); in setProjection() [all …]
|
D | DisplayDevice.h | 96 void setProjection(int orientation, const Rect& viewport, const Rect& frame); 191 static uint32_t displayStateOrientationToTransformOrientation(int orientation); 192 static status_t orientationToTransfrom(int orientation, 216 uint8_t orientation = 0; member 305 const int orientation = mDevice->getInstallOrientation(); in getSourceCrop() local 308 switch (orientation) { in getSourceCrop() 335 ui::Transform::orientation_flags rotation, int orientation) { in getDisplayRotation() argument 336 if (orientation == DisplayState::eOrientationDefault) { in getDisplayRotation() 344 switch (orientation) { in getDisplayRotation()
|
D | RegionSamplingThread.cpp | 286 uint32_t orientation, const Rect& sample_area) { in sampleArea() argument 295 if (orientation & ui::Transform::ROT_90) { in sampleArea() 333 const std::vector<RegionSamplingThread::Descriptor>& descriptors, uint32_t orientation) { in sampleBuffer() argument 346 return sampleArea(data.get(), width, height, stride, orientation, in sampleBuffer() 361 const auto orientation = [](uint32_t orientation) { in captureSample() argument 362 switch (orientation) { in captureSample() 386 switch (orientation) { in captureSample() 401 ui::Transform t(orientation); in captureSample() 405 sampledArea.getHeight(), ui::Dataspace::V0_SRGB, orientation); in captureSample() 472 sampleBuffer(buffer, sampledArea.leftTop(), activeDescriptors, orientation); in captureSample()
|
/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 | 50 mLastOrientation = mContext.getResources().getConfiguration().orientation; in RemoteInputQuickSettingsDisabler() 71 if (newConfig.orientation != mLastOrientation) { in onConfigChanged() 72 misLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE; in onConfigChanged() 73 mLastOrientation = newConfig.orientation; in onConfigChanged()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 379 int orientation = Surface.ROTATION_0; in configureDisplayLocked() local 381 orientation = displayInfo.rotation; in configureDisplayLocked() 385 orientation = (orientation + displayDeviceInfo.rotation) % 4; in configureDisplayLocked() 392 boolean rotated = (orientation == Surface.ROTATION_90 in configureDisplayLocked() 393 || orientation == Surface.ROTATION_270); in configureDisplayLocked() 398 InsetUtils.rotateInsets(maskingInsets, orientation); in configureDisplayLocked() 432 if (orientation == Surface.ROTATION_0) { in configureDisplayLocked() 434 } else if (orientation == Surface.ROTATION_90) { in configureDisplayLocked() 436 } else if (orientation == Surface.ROTATION_180) { in configureDisplayLocked() 441 device.setProjectionLocked(t, orientation, mTempLayerStackRect, mTempDisplayRect); in configureDisplayLocked()
|
D | DisplayDevice.java | 179 public final void setProjectionLocked(SurfaceControl.Transaction t, int orientation, in setProjectionLocked() argument 181 if (mCurrentOrientation != orientation in setProjectionLocked() 186 mCurrentOrientation = orientation; in setProjectionLocked() 199 orientation, layerStackRect, displayRect); in setProjectionLocked() 218 viewport.orientation = mCurrentOrientation; in populateViewportLocked()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityInfo.java | 1060 public static boolean isFixedOrientationLandscape(@ScreenOrientation int orientation) { in isFixedOrientationLandscape() argument 1061 return orientation == SCREEN_ORIENTATION_LANDSCAPE in isFixedOrientationLandscape() 1062 || orientation == SCREEN_ORIENTATION_SENSOR_LANDSCAPE in isFixedOrientationLandscape() 1063 || orientation == SCREEN_ORIENTATION_REVERSE_LANDSCAPE in isFixedOrientationLandscape() 1064 || orientation == SCREEN_ORIENTATION_USER_LANDSCAPE; in isFixedOrientationLandscape() 1079 public static boolean isFixedOrientationPortrait(@ScreenOrientation int orientation) { in isFixedOrientationPortrait() argument 1080 return orientation == SCREEN_ORIENTATION_PORTRAIT in isFixedOrientationPortrait() 1081 || orientation == SCREEN_ORIENTATION_SENSOR_PORTRAIT in isFixedOrientationPortrait() 1082 || orientation == SCREEN_ORIENTATION_REVERSE_PORTRAIT in isFixedOrientationPortrait() 1083 || orientation == SCREEN_ORIENTATION_USER_PORTRAIT; in isFixedOrientationPortrait() [all …]
|
/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() 101 return mViewport->orientation; in getOrientation()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | ThumbnailData.java | 33 public int orientation; field in ThumbnailData 44 orientation = ORIENTATION_UNDEFINED; in ThumbnailData() 57 orientation = snapshot.getOrientation(); in ThumbnailData()
|
/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/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputQuickSettingsDisablerTest.java | 77 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToLandscape() 79 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToLandscape() 88 c.orientation = Configuration.ORIENTATION_LANDSCAPE; in testChangeToPortrait() 90 c.orientation = Configuration.ORIENTATION_PORTRAIT; in testChangeToPortrait()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 374 ScreenOrientation orientation = hardwareConfig.getOrientation(); in getConfiguration() local 375 if (orientation != null) { in getConfiguration() 376 switch (orientation) { in getConfiguration() 378 config.orientation = Configuration.ORIENTATION_PORTRAIT; in getConfiguration() 381 config.orientation = Configuration.ORIENTATION_LANDSCAPE; in getConfiguration() 385 config.orientation = Configuration.ORIENTATION_SQUARE; in getConfiguration() 389 config.orientation = Configuration.ORIENTATION_UNDEFINED; in getConfiguration()
|