/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | DisplayRotationUtil.java | 39 private static int getRotationToBoundsOffset(int rotation) { in getRotationToBoundsOffset() argument 40 switch (rotation) { in getRotationToBoundsOffset() 56 static int getBoundIndexFromRotation(int i, int rotation) { in getBoundIndexFromRotation() argument 57 return Math.floorMod(i + getRotationToBoundsOffset(rotation), in getBoundIndexFromRotation() 73 Rect[] bounds, int rotation, int initialDisplayWidth, int initialDisplayHeight) { in getRotatedBounds() argument 78 if (rotation == ROTATION_0) { in getRotatedBounds() 81 transformPhysicalToLogicalCoordinates(rotation, initialDisplayWidth, initialDisplayHeight, in getRotatedBounds() 92 newBounds[getBoundIndexFromRotation(i, rotation)] = rect; in getRotatedBounds()
|
D | CoordinateTransforms.java | 44 public static void transformPhysicalToLogicalCoordinates(@Rotation int rotation, in transformPhysicalToLogicalCoordinates() argument 46 switch (rotation) { in transformPhysicalToLogicalCoordinates() 63 throw new IllegalArgumentException("Unknown rotation: " + rotation); in transformPhysicalToLogicalCoordinates() 74 public static void transformLogicalToPhysicalCoordinates(@Rotation int rotation, in transformLogicalToPhysicalCoordinates() argument 76 switch (rotation) { in transformLogicalToPhysicalCoordinates() 93 throw new IllegalArgumentException("Unknown rotation: " + rotation); in transformLogicalToPhysicalCoordinates() 108 final boolean flipped = info.rotation == ROTATION_90 || info.rotation == ROTATION_270; in transformToRotation()
|
D | RotationCache.java | 48 public R getOrCompute(T t, int rotation) { in getOrCompute() argument 53 final int idx = mCache.indexOfKey(rotation); in getOrCompute() 57 final R result = mComputation.compute(t, rotation); in getOrCompute() 58 mCache.put(rotation, result); in getOrCompute() 68 R compute(T t, int rotation); in compute() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 52 int rotation = d.getRotation(); in getWidth() local 53 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getWidth() 72 int rotation = d.getRotation(); in getHeight() local 73 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in getHeight()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/ |
D | VideoTrackDecoder.java | 43 public void grabFrame(FrameImage2D outputVideoFrame, int rotation) { in grabFrame() argument 51 copyFrameDataTo(outputVideoFrame, rotation); in grabFrame() 87 protected static boolean needSwapDimension(int rotation) { in needSwapDimension() argument 88 switch(rotation) { in needSwapDimension() 106 protected abstract void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation); in copyFrameDataTo() argument
|
D | GpuVideoTrackDecoder.java | 146 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { in copyFrameDataTo() argument 156 if (rotation != 0) { in copyFrameDataTo() 157 float[] targetCoords = getRotationCoords(rotation); in copyFrameDataTo() 159 if (needSwapDimension(rotation)) { in copyFrameDataTo() 203 private static float[] getRotationCoords(int rotation) { in getRotationCoords() argument 204 switch(rotation) { in getRotationCoords()
|
D | CpuVideoTrackDecoder.java | 102 protected void copyFrameDataTo(FrameImage2D outputVideoFrame, int rotation) { in copyFrameDataTo() argument 106 if (needSwapDimension(rotation)) { in copyFrameDataTo() 117 if (rotation == MediaDecoder.ROTATE_NONE) { in copyFrameDataTo() 125 copyRotate(mUnrotatedBytes, outBytes, rotation); in copyFrameDataTo() 137 private void copyRotate(ByteBuffer input, ByteBuffer output, int rotation) { in copyRotate() argument 141 switch (rotation) { in copyRotate() 163 throw new IllegalArgumentException("Unsupported rotation " + rotation + "!"); in copyRotate()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DockedStackDividerController.java | 166 for (int rotation = 0; rotation < 4; rotation++) { in getSmallestWidthDpForBounds() 168 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds() 169 final boolean rotated = (rotation == ROTATION_90 || rotation == ROTATION_270); in getSmallestWidthDpForBounds() 176 final int dockSide = getDockSide(mTmpRect, mTmpRect2, orientation, rotation); in getSmallestWidthDpForBounds() 181 rotation).getDisplayCutout(); in getSmallestWidthDpForBounds() 185 final int snappedPosition = mSnapAlgorithmForRotation[rotation] in getSmallestWidthDpForBounds() 189 mDisplayContent.getDisplayPolicy().getStableInsetsLw(rotation, mTmpRect2.width(), in getSmallestWidthDpForBounds() 207 int getDockSide(Rect bounds, Rect displayRect, int orientation, int rotation) { in getDockSide() argument 216 return canPrimaryStackDockTo(DOCKED_TOP, displayRect, rotation) in getDockSide() 226 return canPrimaryStackDockTo(DOCKED_LEFT, displayRect, rotation) in getDockSide() [all …]
|
D | DisplayRotation.java | 174 final int rotation = mContext.getResources().getInteger(resID); in readRotation() local 175 switch (rotation) { in readRotation() 249 void setRotation(int rotation) { in setRotation() argument 251 mOrientationListener.setCurrentRotation(rotation); in setRotation() 328 void freezeRotation(int rotation) { in freezeRotation() argument 329 rotation = (rotation == -1) ? mDisplayContent.getRotation() : rotation; in freezeRotation() 330 setUserRotation(WindowManagerPolicy.USER_ROTATION_LOCKED, rotation); in freezeRotation() 705 private boolean isLandscapeOrSeascape(int rotation) { in isLandscapeOrSeascape() argument 706 return rotation == mLandscapeRotation || rotation == mSeascapeRotation; in isLandscapeOrSeascape() 709 private boolean isAnyPortrait(int rotation) { in isAnyPortrait() argument [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 109 static Pair<DisplayInfo, WmDisplayCutout> displayInfoAndCutoutForRotation(int rotation, in displayInfoAndCutoutForRotation() argument 114 final boolean flippedDimensions = rotation == ROTATION_90 || rotation == ROTATION_270; in displayInfoAndCutoutForRotation() 117 info.rotation = rotation; in displayInfoAndCutoutForRotation() 120 displayCutoutForRotation(rotation), info.logicalWidth, in displayInfoAndCutoutForRotation() 129 private static DisplayCutout displayCutoutForRotation(int rotation) { in displayCutoutForRotation() argument 134 transformPhysicalToLogicalCoordinates(rotation, DISPLAY_WIDTH, DISPLAY_HEIGHT, m); in displayCutoutForRotation() 138 switch (rotation) { in displayCutoutForRotation()
|
D | DisplayPolicyInsetsTests.java | 142 mDisplayPolicy.getStableInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, in getStableInsetsLw() 149 mDisplayPolicy.getNonDecorInsetsLw(di.rotation, di.logicalWidth, di.logicalHeight, in getNonDecorInsetsLw() 156 di.rotation, 0 /* ui */, di.displayCutout); in getNonDecorDisplayWidth() 161 di.rotation, 0 /* ui */, di.displayCutout); in getNonDecorDisplayHeight() 166 di.rotation, 0 /* ui */, di.displayCutout); in getConfigDisplayWidth() 171 di.rotation, 0 /* ui */, di.displayCutout); in getConfigDisplayHeight() 174 private static DisplayInfo displayInfoForRotation(int rotation, boolean withDisplayCutout) { in displayInfoForRotation() argument 175 return displayInfoAndCutoutForRotation(rotation, withDisplayCutout).first; in displayInfoForRotation()
|
D | DisplayRotationTests.java | 258 final int rotation = mTarget.rotationForOrientation( in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest() local 261 + Surface.rotationToString(rotation), in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest() 262 rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270); in testReturnsSideways_UserRotationLocked_IncompatibleAppRequest() 405 private SensorEvent createSensorEvent(int rotation) throws Exception { in createSensorEvent() argument 411 event.values[0] = rotation; in createSensorEvent() 478 final int rotation = mTarget.rotationForOrientation(SCREEN_ORIENTATION_LANDSCAPE, in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() local 481 + Surface.rotationToString(rotation), in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() 482 rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270); in testReturnsCompatibleRotation_SensorEnabled_RotationThawed() 571 final int rotation = mTarget.rotationForOrientation( in testReturnsUserRotation_FixedToUserRotation_IgnoreIncompatibleAppRequest() local 573 assertEquals(Surface.ROTATION_180, rotation); in testReturnsUserRotation_FixedToUserRotation_IgnoreIncompatibleAppRequest() [all …]
|
/frameworks/av/camera/ndk/ndk_vendor/impl/ |
D | utils.h | 103 mOutputConfiguration.rotation = OutputConfiguration::Rotation::R0; in OutputConfigurationWrapper() 117 return self.rotation == other.rotation && self.windowGroupId == other.windowGroupId && 140 if (self.rotation != other.rotation) { 141 return static_cast<uint32_t>(self.rotation) < static_cast<uint32_t>(other.rotation); 167 HRotation convertToHidl(int rotation);
|
/frameworks/native/services/surfaceflinger/ |
D | DisplayDevice.h | 253 ui::Transform::orientation_flags rotation = ui::Transform::ROT_0) 255 device->getCompositionDataSpace(), rotation) {} 258 ui::Transform::orientation_flags rotation, bool allowSecureLayers = true) 260 getDisplayRotation(rotation, device->getInstallOrientation())), 297 ui::Transform rotation; in getSourceCrop() local 321 rotation.set(flags, getWidth(), getHeight()); in getSourceCrop() 327 rotation * translatePhysical * scale * translateLogical; in getSourceCrop() 335 ui::Transform::orientation_flags rotation, int orientation) { in getDisplayRotation() argument 337 return rotation; in getDisplayRotation() 360 uint8_t rotation_rot_90 = rotation & ui::Transform::ROT_90; in getDisplayRotation() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowOrientationListener.java | 216 public void setCurrentRotation(int rotation) { in setCurrentRotation() argument 218 mCurrentRotation = rotation; in setCurrentRotation() 260 public abstract void onProposedRotationChanged(int rotation); in onProposedRotationChanged() argument 854 private boolean isTiltAngleAcceptableLocked(int rotation, int tiltAngle) { in isTiltAngleAcceptableLocked() argument 855 return tiltAngle >= mTiltToleranceConfig[rotation][0] in isTiltAngleAcceptableLocked() 856 && tiltAngle <= mTiltToleranceConfig[rotation][1]; in isTiltAngleAcceptableLocked() 865 private boolean isOrientationAngleAcceptableLocked(int rotation, int orientationAngle) { in isOrientationAngleAcceptableLocked() argument 875 if (rotation == currentRotation in isOrientationAngleAcceptableLocked() 876 || rotation == (currentRotation + 1) % 4) { in isOrientationAngleAcceptableLocked() 877 int lowerBound = rotation * 90 - 45 in isOrientationAngleAcceptableLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsColumnLayout.java | 55 int rotation = getCurrentRotation(); in shouldReverseListItems() local 56 if (rotation == ROTATION_NONE) { in shouldReverseListItems() 60 return rotation == ROTATION_LANDSCAPE; in shouldReverseListItems() 62 return rotation == ROTATION_SEASCAPE; in shouldReverseListItems() 142 int rotation = getCurrentRotation(); in shouldSnapToPowerButton() local 143 if (rotation == ROTATION_NONE) { in shouldSnapToPowerButton()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageView.java | 66 public int rotation; field in TiledImageView.ImageRendererWrapper 161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource() 250 final int rotation = mRenderer.source.getRotation(); in positionFromMatrix() local 251 final boolean swap = !(rotation % 180 == 0); in positionFromMatrix() 264 if (rotation == 90 || rotation == 180) { in positionFromMatrix() 269 if (rotation == 180 || rotation == 270) { in positionFromMatrix() 289 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated() 304 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 116 final int rotation = areAllRotationsAllowed(context) ? CURRENT_ROTATION : NATURAL_ROTATION; in setRotationLock() local 117 setRotationLockAtAngle(context, enabled, rotation); in setRotationLock() 124 final int rotation) { in setRotationLockAtAngle() argument 129 setRotationLock(enabled, rotation); in setRotationLockAtAngle() 149 private static void setRotationLock(final boolean enabled, final int rotation) { in setRotationLock() argument 156 wm.freezeRotation(rotation); in setRotationLock()
|
/frameworks/av/camera/camera2/ |
D | OutputConfiguration.cpp | 89 int rotation = 0; in readFromParcel() local 93 if ((err = parcel->readInt32(&rotation)) != OK) { in readFromParcel() 148 mRotation = rotation; in readFromParcel() 169 OutputConfiguration::OutputConfiguration(sp<IGraphicBufferProducer>& gbp, int rotation, in OutputConfiguration() argument 173 mRotation = rotation; in OutputConfiguration() 182 int rotation, const String16& physicalCameraId, int surfaceSetID, int surfaceType, in OutputConfiguration() argument 184 : mGbps(gbps), mRotation(rotation), mSurfaceSetID(surfaceSetID), mSurfaceType(surfaceType), in OutputConfiguration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | ScreenPinningRequest.java | 146 public FrameLayout.LayoutParams getRequestLayoutParams(int rotation) { in getRequestLayoutParams() argument 150 rotation == ROTATION_SEASCAPE ? (Gravity.CENTER_VERTICAL | Gravity.LEFT) : in getRequestLayoutParams() 151 rotation == ROTATION_LANDSCAPE ? (Gravity.CENTER_VERTICAL | Gravity.RIGHT) in getRequestLayoutParams() 176 int rotation = RotationUtils.getRotation(mContext); in onAttachedToWindow() local 178 inflateView(rotation); in onAttachedToWindow() 183 if (rotation == ROTATION_SEASCAPE) { in onAttachedToWindow() 185 } else if (rotation == ROTATION_LANDSCAPE) { in onAttachedToWindow() 218 private void inflateView(int rotation) { in inflateView() argument 223 rotation == ROTATION_SEASCAPE ? R.layout.screen_pinning_request_sea_phone : in inflateView() 224 rotation == ROTATION_LANDSCAPE ? R.layout.screen_pinning_request_land_phone in inflateView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | RotationButtonController.java | 87 public void onRotationChanged(final int rotation) throws RemoteException { 94 if (shouldOverrideUserLockPrefs(rotation)) { 95 setRotationLockedAtAngle(rotation); 101 mRotWatcherListener.accept(rotation); 251 void onRotationProposal(int rotation, int windowRotation, boolean isValid) { in onRotationProposal() argument 265 if (rotation == windowRotation) { in onRotationProposal() 272 mLastRotationSuggestion = rotation; // Remember rotation for click in onRotationProposal() 273 final boolean rotationCCW = isRotationAnimationCCW(windowRotation, rotation); in onRotationProposal() 346 private boolean shouldOverrideUserLockPrefs(final int rotation) { in shouldOverrideUserLockPrefs() argument 349 return rotation == NATURAL_ROTATION; in shouldOverrideUserLockPrefs()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Rectangle.java | 45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { in fromRotatedRect() argument 50 return new Rectangle(p0.rotatedAround(center, rotation), in fromRotatedRect() 51 p1.rotatedAround(center, rotation), in fromRotatedRect() 52 p2.rotatedAround(center, rotation), in fromRotatedRect() 53 p3.rotatedAround(center, rotation)); in fromRotatedRect()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | RotationWatcher.java | 33 public void onRotationChanged(int rotation) { 34 RotationWatcher.this.onRotationChanged(rotation); 45 protected abstract void onRotationChanged(int rotation); in onRotationChanged() argument
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/ |
D | pose.h | 25 Pose(Eigen::Quaternion<T> rotation, Eigen::Vector3<T> position) in Pose() argument 26 : rotation_(rotation), position_(position) {} in Pose() 75 void SetRotation(Eigen::Quaternion<T> rotation) { rotation_ = rotation; } in SetRotation() argument
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | OutputConfiguration.java | 227 public OutputConfiguration(@NonNull Surface surface, int rotation) { in OutputConfiguration() argument 228 this(SURFACE_GROUP_ID_NONE, surface, rotation); in OutputConfiguration() 253 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) { in OutputConfiguration() argument 255 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration() 260 mRotation = rotation; in OutputConfiguration() 536 int rotation = source.readInt(); in OutputConfiguration() local 547 checkArgumentInRange(rotation, ROTATION_0, ROTATION_270, "Rotation constant"); in OutputConfiguration() 550 mRotation = rotation; in OutputConfiguration()
|