Home
last modified time | relevance | path

Searched refs:mRotation (Results 1 – 25 of 74) sorted by relevance

123

/aosp12/frameworks/av/media/libheadtracking/include/media/
H A DPose.h38 : mTranslation(translation), mRotation(rotation) {} in Pose3f()
68 mRotation = other.mRotation;
73 Eigen::Quaternionf rotation() const { return mRotation; }; in rotation()
79 Eigen::Quaternionf invRotation = mRotation.inverse(); in inverse()
95 mTranslation += mRotation * other.mTranslation;
96 mRotation *= other.mRotation;
107 ((mRotation.coeffs() - other.mRotation.coeffs()).norm() < prec ||
108 (mRotation.coeffs() + other.mRotation.coeffs()).norm() < prec);
113 Eigen::Quaternionf mRotation; variable
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterRotateRepresentation.java34 Rotation mRotation; field in FilterRotateRepresentation
86 return mRotation; in getRotation()
90 switch(mRotation) { in rotateCW()
92 mRotation = Rotation.NINETY; in rotateCW()
95 mRotation = Rotation.ONE_EIGHTY; in rotateCW()
98 mRotation = Rotation.TWO_SEVENTY; in rotateCW()
101 mRotation = Rotation.ZERO; in rotateCW()
107 mRotation = r.mRotation; in set()
114 mRotation = rotation; in setRotation()
146 return mRotation == getNil(); in isNil()
[all …]
/aosp12/packages/apps/Gallery/src/com/android/camera/
H A DRotateBitmap.java25 private int mRotation; field in RotateBitmap
29 mRotation = 0; in RotateBitmap()
34 mRotation = rotation % 360; in RotateBitmap()
38 mRotation = rotation; in setRotation()
42 return mRotation; in getRotation()
56 if (mRotation != 0) { in getRotateMatrix()
63 matrix.postRotate(mRotation); in getRotateMatrix()
70 return (mRotation / 90) % 2 != 0; in isOrientationChanged()
/aosp12/frameworks/base/core/java/android/window/
H A DPictureInPictureSurfaceTransaction.java46 public final float mRotation; field in PictureInPictureSurfaceTransaction
57 mRotation = in.readFloat(); in PictureInPictureSurfaceTransaction()
70 mRotation = 0; in PictureInPictureSurfaceTransaction()
73 mRotation = rotation; in PictureInPictureSurfaceTransaction()
104 && Objects.equals(mRotation, that.mRotation) in equals()
112 mRotation, mCornerRadius, mWindowCrop); in hashCode()
125 out.writeFloat(mRotation); in writeToParcel()
137 + " rotation=" + mRotation in toString()
179 private float mRotation; field in PictureInPictureSurfaceTransaction.Builder
195 mRotation = rotation; in setTransform()
[all …]
H A DTaskSnapshot.java49 private final int mRotation; field in TaskSnapshot
81 mRotation = rotation; in TaskSnapshot()
102 mRotation = source.readInt();
165 return mRotation;
253 dest.writeInt(mRotation);
275 + " mRotation=" + mRotation
303 private int mRotation;
341 mRotation = rotation;
407 mRotation,
/aosp12/frameworks/base/core/java/android/view/
H A DPrivacyIndicatorBounds.java43 private final int mRotation; field in PrivacyIndicatorBounds
47 mRotation = ROTATION_0; in PrivacyIndicatorBounds()
52 mRotation = rotation; in PrivacyIndicatorBounds()
59 return new PrivacyIndicatorBounds(staticPositions, mRotation); in updateStaticBounds()
126 return new PrivacyIndicatorBounds(scaledStaticPos, mRotation); in scale()
140 return mStaticBounds[mRotation]; in getStaticPrivacyIndicatorBounds()
146 + " rotation=" + mRotation + "}"; in toString()
178 && mRotation == that.mRotation; in equals()
189 _hash = 31 * _hash + mRotation; in hashCode()
200 dest.writeInt(mRotation); in writeToParcel()
[all …]
H A DDisplayAdjustments.java108 return (realRotation - rotationAdjustments.mRotation + 4) % 2 == 0; in noFlip()
163 || rotationAdjustments.mRotation == realRotation) { in adjustRoundedCorner()
168 rotationAdjustments.mRotation, displayWidth, displayHeight); in adjustRoundedCorner()
175 return rotationAdjustments != null ? rotationAdjustments.mRotation : realRotation; in getRotation()
206 final int mRotation; field in DisplayAdjustments.FixedRotationAdjustments
223 mRotation = rotation; in FixedRotationAdjustments()
232 hash = hash * 31 + mRotation; in hashCode()
245 return mRotation == other.mRotation in equals()
252 return "FixedRotationAdjustments{rotation=" + Surface.rotationToString(mRotation) in toString()
264 dest.writeInt(mRotation); in writeToParcel()
[all …]
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DOrientationRectF.java31 private final int mRotation; field in OrientationRectF
40 mRotation = rotation; in OrientationRectF()
48 s += " rotation: " + mRotation; in toString()
61 return applyTransform(event, deltaRotation(currentRotation, mRotation), forceTransform); in applyTransformFromRotation()
66 return applyTransform(event, deltaRotation(mRotation, currentRotation), forceTransform); in applyTransformToRotation()
76 + "mRotation: " + mRotation in applyTransform()
102 return mRotation; in getRotation()
/aosp12/frameworks/base/core/java/android/app/
H A DWindowConfiguration.java238 dest.writeInt(mRotation); in writeToParcel()
250 mRotation = source.readInt(); in readFromParcel()
363 return mRotation; in getRotation()
367 mRotation = rotation; in setRotation()
419 setRotation(other.mRotation); in setTo()
479 if (delta.mRotation != ROTATION_UNDEFINED && delta.mRotation != mRotation) { in updateFrom()
481 setRotation(delta.mRotation); in updateFrom()
515 setRotation(delta.mRotation); in setTo()
567 && mRotation != other.mRotation) { in diff()
621 n = mRotation - that.mRotation; in compareTo()
[all …]
/aosp12/frameworks/av/camera/include/camera/camera2/
H A DOutputConfiguration.h82 return ( mRotation == other.mRotation &&
111 if (mRotation != other.mRotation) {
112 return mRotation < other.mRotation;
143 int mRotation; variable
/aosp12/packages/apps/Gallery/src/com/android/camera/gallery/
H A DImage.java43 private int mRotation; field in Image
51 mRotation = rotation; in Image()
56 return mRotation; in getDegreesRotated()
60 if (mRotation == degrees) return; in setDegreesRotated()
61 mRotation = degrees; in setDegreesRotated()
63 values.put(ImageColumns.ORIENTATION, mRotation); in setDegreesRotated()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/
H A DHideDisplayCutoutOrganizer.java76 int mRotation; field in HideDisplayCutoutOrganizer
90 final boolean rotationChanged = mRotation != displayLayout.rotation();
91 mRotation = displayLayout.rotation();
169 mRotation = displayLayout.rotation(); in enableHideDisplayCutout()
198 return mRotation != Surface.ROTATION_0 in getDisplayCutoutInsetsOfNaturalOrientation()
199 ? RotationUtils.rotateInsets(insets, 4 /* total number of rotation */ - mRotation) in getDisplayCutoutInsetsOfNaturalOrientation()
218 return mRotation == Surface.ROTATION_90 || mRotation == Surface.ROTATION_270; in isDisplaySizeFlipped()
252 mCurrentCutoutInsets = RotationUtils.rotateInsets(mDefaultCutoutInsets, mRotation); in updateBoundsAndOffsets()
341 pw.println(mRotation); in dump()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DDisplayLayout.java84 private int mRotation; field in DisplayLayout
104 && mRotation == other.mRotation in isSameGeometry()
118 && mRotation == other.mRotation in equals()
134 return Objects.hash(mUiMode, mWidth, mHeight, mCutout, mRotation, mDensityDpi, in hashCode()
178 mRotation = dl.mRotation; in set()
196 mRotation = info.rotation; in init()
233 final int rotationDelta = (targetRotation - mRotation + 4) % 4; in rotateTo()
239 mRotation = targetRotation; in rotateTo()
275 return mRotation; in rotation()
311 if ((mRotation % 2) != 0) { in getUpsideDownRotation()
[all …]
/aosp12/frameworks/base/core/java/android/hardware/camera2/params/
H A DOutputConfiguration.java312 mRotation = rotation; in OutputConfiguration()
409 mRotation = ROTATION_0; in OutputConfiguration()
709 this.mRotation = other.mRotation; in OutputConfiguration()
742 mRotation = rotation; in OutputConfiguration()
811 return mRotation; in getRotation()
866 dest.writeInt(mRotation); in writeToParcel()
897 if (mRotation != other.mRotation || in equals()
939 mRotation, mConfiguredSize.hashCode(), mConfiguredFormat, mConfiguredDataspace, in hashCode()
946 mRotation, mSurfaces.hashCode(), mConfiguredGenerationId, in hashCode()
960 private final int mRotation; field in OutputConfiguration
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DMultiListLayout.java35 protected int mRotation; field in MultiListLayout
40 mRotation = RotationUtils.getRotation(context); in MultiListLayout()
88 if (newRotation != mRotation) { in onConfigurationChanged()
89 rotate(mRotation, newRotation); in onConfigurationChanged()
90 mRotation = newRotation; in onConfigurationChanged()
H A DScreenDecorations.java157 private int mRotation; field in ScreenDecorations
288 + mRotation); in startOnScreenDecorationsThread()
518 mCutoutViews[pos].setRotation(mRotation); in updateView()
664 int oldRotation = mRotation; in onConfigurationChanged()
686 if (mRotation != newRotation) { in updateOrientation()
693 if (newRotation != mRotation) { in updateOrientation()
694 mRotation = newRotation; in updateOrientation()
1001 if (mRotation == ROTATION_270) { in isTopRoundedCorner()
1071 private int mRotation; field in ScreenDecorations.DisplayCutoutView
1166 mRotation = rotation; in setRotation()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropView.java54 private int mRotation = 0; field in CropView
119 || mRotation != rotation) { in initialize()
120 mRotation = rotation; in initialize()
125 mRotation = rotation; in initialize()
192 mRotation = 0; in reset()
233 if (((mRotation < 0) ? -mRotation : mRotation) % 180 == 90) { in applyAspect()
314 mDisplayMatrix, mImageBounds, mScreenBounds, mRotation)) { in onDraw()
375 decode(mCropObj.getSelectState(), mRotation)); in onDraw()
H A DCropActivity.java368 int mRotation = 0; field in CropActivity.BitmapIOTask
398 mRotation %= 360; in BitmapIOTask()
399 mRotation = 90 * (int) (mRotation / 90); // now mRotation is a multiple of 90 in BitmapIOTask()
429 m.setRotate(mRotation); in doInBackground()
449 if (mRotation > 0) { in doInBackground()
451 m.setRotate(mRotation); in doInBackground()
519 if (mRotation > 0) { in doInBackground()
520 m.setRotate(mRotation); in doInBackground()
525 m.preRotate(mRotation); in doInBackground()
533 } else if (mRotation > 0) { in doInBackground()
[all …]
/aosp12/frameworks/av/camera/camera2/
H A DOutputConfiguration.cpp40 return mRotation; in getRotation()
80 mRotation(INVALID_ROTATION), in OutputConfiguration()
91 mRotation(INVALID_ROTATION), in OutputConfiguration()
168 mRotation = rotation; in readFromParcel()
186 " physicalCameraId = %s, isMultiResolution = %d", __FUNCTION__, mRotation, in readFromParcel()
196 mRotation = rotation; in OutputConfiguration()
208 : mGbps(gbps), mRotation(rotation), mSurfaceSetID(surfaceSetID), mSurfaceType(surfaceType), in OutputConfiguration()
217 err = parcel->writeInt32(mRotation); in writeToParcel()
/aosp12/frameworks/layoutlib/bridge/src/android/view/
H A DIWindowManagerImpl.java31 private final int mRotation; field in IWindowManagerImpl
38 mRotation = rotation; in IWindowManagerImpl()
52 return mRotation; in getDefaultDisplayRotation()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSlashDrawable.java61 private float mRotation; field in SlashDrawable
97 if (mRotation == rotation) return; in setRotation()
98 mRotation = rotation; in setRotation()
158 m.setRotate(mRotation + DEFAULT_ROTATION, width / 2, height / 2); in draw()
163 m.setRotate(-mRotation - DEFAULT_ROTATION, width / 2, height / 2); in draw()
170 m.setRotate(mRotation + DEFAULT_ROTATION, width / 2, height / 2); in draw()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
H A DPerimeterPathGuide.java83 private int mRotation = ROTATION_0; field in PerimeterPathGuide
108 if (rotation != mRotation) { in setRotation()
114 mRotation = rotation; in setRotation()
210 switch (mRotation) { in computeRegions()
225 if (mRotation == ROTATION_90 || mRotation == Surface.ROTATION_270) { in computeRegions()
301 switch (mRotation) { in getRotatedCorner()
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
H A DMaterialProgressDrawable.java126 private float mRotation; field in MaterialProgressDrawable
244 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY()); in draw()
265 return mRotation; in getRotation()
270 mRotation = rotation; in setRotation()
482 private float mRotation = 0.0f; field in MaterialProgressDrawable.Ring
537 final float startAngle = (mStartTrim + mRotation) * 360; in draw()
538 final float endAngle = (mEndTrim + mRotation) * 360; in draw()
706 return mRotation; in getRotation()
711 mRotation = rotation; in setRotation()
777 mStartingRotation = mRotation; in storeOriginals()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPhotoView.java592 private int mRotation; field in PhotoView.FullPicture
629 mRotation = getPanoramaRotation(); in updateSize()
631 mRotation = getCameraRotation(); in updateSize()
638 mSize.width = getRotated(mRotation, w, h); in updateSize()
758 switch (mRotation) { in setTileViewPosition()
772 private int mRotation; field in PhotoView.ScreenNailPicture
845 if (mRotation != 0) { in draw()
846 canvas.rotate(mRotation, 0, 0, 1); in draw()
880 mRotation = getPanoramaRotation(); in updateSize()
882 mRotation = getCameraRotation(); in updateSize()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayRotation.java129 private int mRotation; field in DisplayRotation
359 mRotation = rotation; in setRotation()
364 return mRotation; in getRotation()
466 final int oldRotation = mRotation; in updateRotationUnchecked()
505 mRotation = rotation; in updateRotationUnchecked()
536 startRemoteRotation(oldRotation, mRotation); in updateRotationUnchecked()
879 rotation = (rotation == -1) ? mRotation : rotation; in freezeRotation()
1100 final int oldRotation = mRotation; in needsUpdate()
1494 pw.print(prefix + " mRotation=" + mRotation); in dump()
1542 final int mRotation; field in DisplayRotation.OrientationListener.UpdateRunnable
[all …]

123