/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | Pose.java | 35 public final Quaternion rotation; field in Pose 38 public Pose(Vector3 translation, Quaternion rotation) { in Pose() argument 40 this.rotation = rotation; in Pose() 51 public Pose(float[] translation, float[] rotation) { in Pose() argument 53 Objects.requireNonNull(rotation); in Pose() 58 if (rotation.length != 4) { in Pose() 60 "Rotation array size must be 4. Found " + rotation.length + "."); in Pose() 63 this.rotation = new Quaternion(rotation[0], rotation[1], rotation[2], rotation[3]); in Pose() 72 Vector3 composedTranslation = lhs.rotation in compose() 75 return new Pose(composedTranslation, Quaternion.multiply(lhs.rotation, rhs.rotation)); in compose() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/window/ |
D | CachedDisplayInfo.java | 40 public final int rotation; field in CachedDisplayInfo 48 public CachedDisplayInfo(Point size, int rotation) { in CachedDisplayInfo() argument 49 this(size, rotation, NO_CUTOUT); in CachedDisplayInfo() 52 public CachedDisplayInfo(Point size, int rotation, @Nullable DisplayCutout cutout) { in CachedDisplayInfo() argument 54 this.rotation = rotation; in CachedDisplayInfo() 62 if (rotation == Surface.ROTATION_0) { in normalize() 66 rotateSize(newSize, deltaRotation(rotation, Surface.ROTATION_0)); in normalize() 69 cutout, size.x, size.y, rotation, Surface.ROTATION_0); in normalize() 78 + ", rotation=" + rotation in toString() 87 return rotation == that.rotation in equals() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 49 public Rotation rotation = FilterRotateRepresentation.getNil(); field in GeometryMathUtils.GeometryHolder 55 rotation = h.rotation; in set() 62 rotation = FilterRotateRepresentation.getNil(); in wipe() 69 return rotation == FilterRotateRepresentation.getNil() && in isNil() 84 return rotation == h.rotation && straighten == h.straighten && in equals() 91 return getClass().getSimpleName() + "[" + "rotation:" + rotation.value() in toString() 220 if (holder.rotation.value() == 90 in concatMirrorMatrix() 221 || holder.rotation.value() == 270) { in concatMirrorMatrix() 225 if (holder.rotation.value() == 90 in concatMirrorMatrix() 226 || holder.rotation.value() == 270) { in concatMirrorMatrix() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/ |
D | OrientationInteractor.kt | 37 val rotation: Flow<Int> constant 47 fun getRotationFromDefault(rotation: Int): Int in getRotationFromDefault() 63 override val rotation: Flow<Int> = orientation.transform { emit(context.display.rotation) } in getRotationFromDefault() constant in com.android.settings.biometrics.fingerprint2.domain.interactor.OrientationInteractorImpl 65 override val rotationFromDefault: Flow<Int> = rotation.map { getRotationFromDefault(it) } in getRotationFromDefault() 67 override fun getRotationFromDefault(rotation: Int): Int { in getRotationFromDefault() 71 (rotation + 1) % 4 in getRotationFromDefault() 73 rotation in getRotationFromDefault()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | InCallOrientationEventListener.java | 110 public void onOrientationChanged(int rotation) { in onOrientationChanged() argument 111 if (rotation == OrientationEventListener.ORIENTATION_UNKNOWN) { in onOrientationChanged() 115 final int orientation = toScreenOrientation(rotation); in onOrientationChanged() 179 private int toScreenOrientation(int rotation) { in toScreenOrientation() argument 183 if (isInLeftRange(rotation, SCREEN_ORIENTATION_360, ROTATION_THRESHOLD) in toScreenOrientation() 184 || isInRightRange(rotation, SCREEN_ORIENTATION_0, ROTATION_THRESHOLD)) { in toScreenOrientation() 186 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_90, ROTATION_THRESHOLD)) { in toScreenOrientation() 188 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_180, ROTATION_THRESHOLD)) { in toScreenOrientation() 190 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_270, ROTATION_THRESHOLD)) { in toScreenOrientation()
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | PoseTest.java | 34 assertThat(p.rotation.x).isEqualTo(0); in testCtor() 35 assertThat(p.rotation.y).isEqualTo(0); in testCtor() 36 assertThat(p.rotation.z).isEqualTo(0); in testCtor() 37 assertThat(p.rotation.w).isEqualTo(1); in testCtor() 57 assertThat(p.rotation.x).isEqualTo(0); in testMatrix() 58 assertThat(p.rotation.y).isEqualTo(1); in testMatrix() 59 assertThat(p.rotation.z).isEqualTo(0); in testMatrix() 60 assertThat(p.rotation.w).isEqualTo(0); in testMatrix()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | OrientationTouchTransformer.java | 150 mCachedDisplayInfo = new CachedDisplayInfo(info.currentSize, info.rotation); in createOrAddTouchRegion() 153 && mCachedDisplayInfo.rotation == mQuickStepStartingRotation) { in createOrAddTouchRegion() 181 mQuickStepStartingRotation = info.rotation; in enableMultipleRegions() 199 mActiveTouchRotation = displayInfo.rotation; in setSingleActiveRegion() 211 Log.d(TAG, "clearing all regions except rotation: " + mCachedDisplayInfo.rotation); in resetSwipeRegions() 214 mCachedDisplayInfo = new CachedDisplayInfo(region.currentSize, region.rotation); in resetSwipeRegions() 235 Log.d(TAG, "creating rotation region for: " + mCachedDisplayInfo.rotation in createRegionForDisplay() 236 + " with mode: " + mMode + " displayRotation: " + display.rotation + in createRegionForDisplay() 242 int rotation = display.rotation; in createRegionForDisplay() local 244 OrientationRectF orientationRectF = new OrientationRectF(0, 0, size.x, size.y, rotation); in createRegionForDisplay() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | RotationUtils.java | 34 public static void rotateRect(Rect rect, int rotation) { in rotateRect() argument 35 switch (rotation) { in rotateRect() 48 throw new IllegalArgumentException("unknown rotation: " + rotation); in rotateRect() 55 public static void rotateSize(Point size, int rotation) { in rotateSize() argument 56 switch (rotation) { in rotateSize() 65 throw new IllegalArgumentException("unknown rotation: " + rotation); in rotateSize()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fingerprint2/enrollment/viewmodel/ |
D | FingerprintEnrollFindSensorViewModelV2Test.kt | 122 override val rotation: Flow<Int> = flowOf(Surface.ROTATION_0) in setup() constant 125 override fun getRotationFromDefault(rotation: Int): Int = rotation in setup() 176 var rotation: Int = -1 in sfpsLottieInfoWhenFolded() variable 180 rotation = it.second in sfpsLottieInfoWhenFolded() 188 assertThat(rotation).isEqualTo(context.display!!.rotation) in sfpsLottieInfoWhenFolded() 196 var rotation: Int = -1 in sfpsLottieInfoWhenUnFolded() variable 200 rotation = it.second in sfpsLottieInfoWhenUnFolded() 208 assertThat(rotation).isEqualTo(context.display!!.rotation) in sfpsLottieInfoWhenUnFolded()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalImage.java | 103 public int rotation; field in LocalImage 143 rotation = cursor.getInt(INDEX_ORIENTATION); in loadFromCursor() 165 rotation = uh.update(rotation, cursor.getInt(INDEX_ORIENTATION)); in updateFromCursor() 280 int rotation = (this.rotation + degrees) % 360; in rotate() local 281 if (rotation < 0) rotation += 360; in rotate() 286 ExifInterface.getOrientationValueForRotation(rotation)); in rotate() 303 values.put(Images.Media.ORIENTATION, rotation); in rotate() 322 details.addDetail(MediaDetails.INDEX_ORIENTATION, Integer.valueOf(rotation)); in getDetails() 333 return rotation; in getRotation()
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | UdfpsEnrollView.java | 149 int rotation = mOverlayParams.getRotation(); in updateDimensions() local 150 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) { in updateDimensions() 155 rotation in updateDimensions() 164 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in updateDimensions() 185 if (rotation == Surface.ROTATION_90) { in updateDimensions() 190 } else if (rotation == Surface.ROTATION_270) { in updateDimensions()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 137 private int rotation; field in CameraManager 461 if (rotation == 90 || rotation == 270) { in takePicture() 548 int rotation = screenRotationToDegress(screenRotation); in updateCameraRotation() local 549 boolean portrait = rotation == 0 || rotation == 180; in updateCameraRotation() 552 rotation += 180; in updateCameraRotation() 554 rotation += cameraOrientation; in updateCameraRotation() 555 rotation %= 360; in updateCameraRotation() 559 camera.setDisplayOrientation((rotation + 180) % 360); in updateCameraRotation() 561 camera.setDisplayOrientation(rotation); in updateCameraRotation() 566 params.setRotation(rotation); in updateCameraRotation() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageView.java | 66 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()
|
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/ |
D | DeviceRotationViewModel.java | 61 final int rotation = getRotation(); 62 Log.d(TAG, "onDisplayChanged(" + displayId + "), rotation:" + rotation); 63 mLiveData.postValue(rotation); 89 return (mDisplayInfo.rotation + 1) % 4; in getRotation() 91 return mDisplayInfo.rotation; in getRotation()
|
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/widget/ |
D | UdfpsEnrollView.java | 169 int rotation = mOverlayParams.getRotation(); in updateDimensions() local 170 if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) { in updateDimensions() 175 rotation in updateDimensions() 193 if (rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) { in updateDimensions() 199 if (rotation == Surface.ROTATION_90) { in updateDimensions() 263 displayInfo.rotation, in updateOverlayParams()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 39 int rotation = CameraUtil.getDisplayRotation(context); in getDeviceNaturalOrientation() local 41 if (((rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) && in getDeviceNaturalOrientation() 43 ((rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) && in getDeviceNaturalOrientation()
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/ |
D | RtpEncoderNode.cpp | 308 uint32_t rotation = 0; in SetCvoExtension() local 320 rotation = 0; in SetCvoExtension() 323 rotation = 1; in SetCvoExtension() 326 rotation = 2; in SetCvoExtension() 329 rotation = 3; in SetCvoExtension() 335 if (rotation == 1) // CCW90 in SetCvoExtension() 337 rotation = 3; in SetCvoExtension() 339 else if (rotation == 3) // CCW270 in SetCvoExtension() 341 rotation = 1; in SetCvoExtension() 347 rotation); in SetCvoExtension() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 205 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { in layoutTiles() argument 223 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles() 239 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles() 243 if (rotation % 90 != 0) return; in layoutTiles() 291 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument 292 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange() 302 int cX, int cY, int level, float scale, int rotation) { in getRange() argument 304 double radians = Math.toRadians(-rotation); in getRange() 354 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { in setPosition() argument 356 && mScale == scale && mRotation == rotation) return false; in setPosition() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | RotateBitmap.java | 32 public RotateBitmap(Bitmap bitmap, int rotation) { in RotateBitmap() argument 34 mRotation = rotation % 360; in RotateBitmap() 37 public void setRotation(int rotation) { in setRotation() argument 38 mRotation = rotation; in setRotation()
|
/packages/services/DeviceAsWebcam/src/com/android/DeviceAsWebcam/ |
D | DeviceAsWebcamPreview.java | 204 rotation -> { 205 rotateUiByRotationDegrees(rotation); 532 private void rotateUiByRotationDegrees(int rotation) { in rotateUiByRotationDegrees() argument 533 rotateUiByRotationDegrees(rotation, /*animate*/ ROTATION_ANIMATION_DURATION_MS); in rotateUiByRotationDegrees() 536 private void rotateUiByRotationDegrees(int rotation, long animationDuration) { in rotateUiByRotationDegrees() argument 541 int finalRotation = calculateUiRotation(rotation); in rotateUiByRotationDegrees() 553 .rotation(finalRotation).setDuration(animationDuration); in rotateUiByRotationDegrees() 557 private int calculateUiRotation(int rotation) { in calculateUiRotation() argument 563 rotation = (rotation + sensorOrientation) % 360; in calculateUiRotation() 565 rotation = (360 + rotation - sensorOrientation) % 360; in calculateUiRotation() [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/view/ |
D | FingerprintEnrollFindSfpsFragment.kt | 100 private val rotationObserver = Observer { rotation: Int? -> in <lambda>() method 101 rotation?.let { onRotationChanged(it) } in <lambda>() 242 private fun playLottieAnimation(@Surface.Rotation rotation: Int) { in <lambda>() 243 @RawRes val animationRawRes = getSfpsLottieAnimationRawRes(rotation) in <lambda>() 247 + ", new rotation:" + rotation in <lambda>() 249 animationRotation = rotation in <lambda>() 257 private fun getSfpsLottieAnimationRawRes(@Surface.Rotation rotation: Int): Int { in <lambda>() 259 return when (rotation) { in <lambda>()
|
D | FingerprintEnrollEnrollingUdfpsFragment.kt | 118 private var rotation = -1 in <lambda>() variable 158 Observer { rotation: Int? -> rotation?.let { onRotationChanged(it) } } in <lambda>() method 199 rotation = rotationViewModel.liveData.value!! in <lambda>() 200 updateIllustrationLottie(rotation) in <lambda>() 205 rotation = rotation, in <lambda>() 470 private fun updateIllustrationLottie(@Surface.Rotation rotation: Int) { in <lambda>() 471 if (rotation == ROTATION_90 || rotation == ROTATION_270) { in <lambda>() 608 if ((newRotation + 2) % 4 == rotation) { in <lambda>() 609 rotation = newRotation in <lambda>() 630 @Surface.Rotation rotation: Int, in FragmentActivity() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | BoundedRect.java | 36 public BoundedRect(float rotation, Rect outerRect, Rect innerRect) { in BoundedRect() argument 37 rot = rotation; in BoundedRect() 46 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { in BoundedRect() argument 47 rot = rotation; in BoundedRect() 56 public void resetTo(float rotation, RectF outerRect, RectF innerRect) { in resetTo() argument 57 rot = rotation; in resetTo() 82 public void setRotation(float rotation) { in setRotation() argument 83 if (rotation == rot) in setRotation() 85 rot = rotation; in setRotation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterRotateRepresentation.java | 64 public FilterRotateRepresentation(Rotation rotation) { in FilterRotateRepresentation() argument 73 setRotation(rotation); in FilterRotateRepresentation() 110 public void setRotation(Rotation rotation) { in setRotation() argument 111 if (rotation == null) { in setRotation() 114 mRotation = rotation; in setRotation()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/ |
D | LauncherUnfoldTransitionController.kt | 116 val rotation = dp.displayInfo.rotation in onPrepareUnfoldAnimation() constant 117 val isVertical = rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180 in onPrepareUnfoldAnimation()
|