/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
H A D | RecentsOrientedState.java | 446 mTmpMatrix.setRotate(inverse ? -degrees : degrees); in transformEvent() 460 if (degrees == ORIENTATION_UNKNOWN) { in getRotationForUserDegreesRotated() 467 if (degrees > 180 && degrees < (360 - threshold)) { in getRotationForUserDegreesRotated() 470 if (degrees < 180 && degrees > threshold) { in getRotationForUserDegreesRotated() 476 (degrees > (270 + threshold) && degrees < 360)) { in getRotationForUserDegreesRotated() 479 if (degrees > (90 + threshold) && degrees < 180) { in getRotationForUserDegreesRotated() 483 if (degrees > (180 + threshold) && degrees < 360) { in getRotationForUserDegreesRotated() 496 if (degrees < (270 - threshold) && degrees > 90) { in getRotationForUserDegreesRotated() 499 if (degrees > (270 + threshold) && degrees < 360 in getRotationForUserDegreesRotated() 500 || (degrees >= 0 && degrees < threshold)) { in getRotationForUserDegreesRotated() [all …]
|
/aosp12/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | Image.java | 59 protected void setDegreesRotated(int degrees) { in setDegreesRotated() argument 60 if (mRotation == degrees) return; in setDegreesRotated() 61 mRotation = degrees; in setDegreesRotated() 105 private void setExifRotation(int degrees) { in setExifRotation() argument 107 degrees %= 360; in setExifRotation() 108 if (degrees < 0) degrees += 360; in setExifRotation() 111 switch (degrees) { in setExifRotation() 139 public boolean rotateImageBy(int degrees) { in rotateImageBy() argument 140 int newDegrees = (getDegreesRotated() + degrees) % 360; in rotateImageBy()
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | Matrix.java | 84 public void setRotate(float degrees) { 139 public boolean preRotate(float degrees) { 187 public boolean postRotate(float degrees) { 342 nSetRotate(native_instance, degrees, px, py); in setRotate() 348 public void setRotate(float degrees) { in setRotate() argument 349 nSetRotate(native_instance, degrees); in setRotate() 424 nPreRotate(native_instance, degrees, px, py); in preRotate() 431 public boolean preRotate(float degrees) { in preRotate() argument 432 nPreRotate(native_instance, degrees); in preRotate() 495 public boolean postRotate(float degrees) { in postRotate() argument [all …]
|
/aosp12/frameworks/base/core/java/android/widget/ |
H A D | RadialTimePickerView.java | 249 for (int degrees = 0; degrees < 361; degrees++) { in preparePrefer30sMap() 298 degrees = ceiling; in snapOnly30s() 303 degrees = floor; in snapOnly30s() 305 if ((degrees - floor) < (ceiling - degrees)) { in snapOnly30s() 306 degrees = floor; in snapOnly30s() 311 return degrees; in snapOnly30s() 944 if (degrees < 0) { in getDegreesFromXY() 947 return degrees; in getDegreesFromXY() 1000 if (degrees == -1) { in handleTouchInput() 1064 if (degrees != -1) { in onResolvePointerIcon() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | OrientationManager.java | 27 private DeviceOrientation(int degrees) { in DeviceOrientation() argument 28 mDegrees = degrees; in DeviceOrientation() 44 public static DeviceOrientation from(int degrees) { in from() argument 45 switch (degrees) { in from() 58 int normalizedDegrees = (Math.abs(degrees / 360) * 360 + 360 + degrees) % 360; in from()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | JpegUtilNative.java | 189 int degrees) { in compressJpegFromYUV420Image() argument 191 img.getHeight()), degrees); in compressJpegFromYUV420Image() 211 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 212 Preconditions.checkState((degrees % 90) == 0, "Rotation must be a multiple of 90 degrees," + in compressJpegFromYUV420Image() 213 " was " + degrees); in compressJpegFromYUV420Image() 215 degrees = ((degrees % 360) + (360 * 2)) % 360; in compressJpegFromYUV420Image() 259 degrees = degrees % 360; in compressJpegFromYUV420Image() 261 int rot90 = (360 - degrees) / 90; in compressJpegFromYUV420Image()
|
H A D | CameraUtil.java | 141 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 142 return rotateAndMirror(b, degrees, false); in rotate() 149 public static Bitmap rotateAndMirror(Bitmap b, int degrees, boolean mirror) { in rotateAndMirror() argument 150 if ((degrees != 0 || mirror) && b != null) { in rotateAndMirror() 156 degrees = (degrees + 360) % 360; in rotateAndMirror() 157 if (degrees == 0 || degrees == 180) { in rotateAndMirror() 159 } else if (degrees == 90 || degrees == 270) { in rotateAndMirror() 162 throw new IllegalArgumentException("Invalid degrees=" + degrees); in rotateAndMirror() 165 if (degrees != 0) { in rotateAndMirror() 167 m.postRotate(degrees, in rotateAndMirror()
|
/aosp12/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | GetBitmapSurfaceViewActivity.java | 101 int degrees = 0; in setCameraDisplayOrientation() local 104 degrees = 0; in setCameraDisplayOrientation() 107 degrees = 90; in setCameraDisplayOrientation() 110 degrees = 180; in setCameraDisplayOrientation() 113 degrees = 270; in setCameraDisplayOrientation() 119 result = (info.orientation + degrees) % 360; in setCameraDisplayOrientation() 122 result = (info.orientation - degrees + 360) % 360; in setCameraDisplayOrientation()
|
H A D | TextureViewActivity.java | 126 int degrees = 0; in getCameraOrientation() local 130 degrees = 0; in getCameraOrientation() 133 degrees = 90; in getCameraOrientation() 136 degrees = 180; in getCameraOrientation() 139 degrees = 270; in getCameraOrientation() 143 return (info.orientation - degrees + 360) % 360; in getCameraOrientation()
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaMuxer.java | 300 long nativeObject, int degrees); in nativeSetOrientationHint() argument 408 public void setOrientationHint(int degrees) { in setOrientationHint() argument 409 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 410 throw new IllegalArgumentException("Unsupported angle: " + degrees); in setOrientationHint() 413 nativeSetOrientationHint(mNativeObject, degrees); in setOrientationHint()
|
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 114 public static Bitmap rotate(Bitmap b, int degrees) { in rotate() argument 115 return rotateAndMirror(b, degrees, false); in rotate() 121 if ((degrees != 0 || mirror) && b != null) { in rotateAndMirror() 127 degrees = (degrees + 360) % 360; in rotateAndMirror() 128 if (degrees == 0 || degrees == 180) { in rotateAndMirror() 130 } else if (degrees == 90 || degrees == 270) { in rotateAndMirror() 136 if (degrees != 0) { in rotateAndMirror() 138 m.postRotate(degrees, in rotateAndMirror() 338 public static int getDisplayOrientation(int degrees, int cameraId) { in getDisplayOrientation() argument 345 result = (info.orientation + degrees) % 360; in getDisplayOrientation() [all …]
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | android_graphics_Matrix.cpp | 181 static void setRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in setRotate__FFF() argument 184 obj->setRotate(degrees, px, py); in setRotate__FFF() 187 static void setRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in setRotate__F() argument 189 obj->setRotate(degrees); in setRotate__F() 238 static void preRotate__FFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees, jfloat px, in preRotate__FFF() argument 241 obj->preRotate(degrees, px, py); in preRotate__FFF() 244 static void preRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in preRotate__F() argument 246 obj->preRotate(degrees); in preRotate__F() 285 obj->postRotate(degrees, px, py); in postRotate__FFF() 288 static void postRotate__F(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat degrees) { in postRotate__F() argument [all …]
|
H A D | Camera.cpp | 38 static void Camera_rotateX(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateX() argument 41 v->rotateX(degrees); in Camera_rotateX() 44 static void Camera_rotateY(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateY() argument 47 v->rotateY(degrees); in Camera_rotateY() 50 static void Camera_rotateZ(JNIEnv* env, jobject obj, jfloat degrees) { in Camera_rotateZ() argument 53 v->rotateZ(degrees); in Camera_rotateZ()
|
/aosp12/packages/services/Car/cpp/evs/apps/default/ |
H A D | config.json.readme | 9 // Units for angles are in degrees. 39 "yaw" : 180, // Optical axis degrees to the left of straight ahead 40 "pitch" : -30, // Optical axis degrees above the horizon 41 "roll" : 0, // Rotation degrees around the optical axis 42 "hfov" : 125, // Horizontal field of view in degrees 43 "vfov" :103, // Vertical field of view in degrees
|
/aosp12/frameworks/av/media/libstagefright/ |
H A D | MediaMuxer.cpp | 118 status_t MediaMuxer::setOrientationHint(int degrees) { in setOrientationHint() argument 125 if (degrees != 0 && degrees != 90 && degrees != 180 && degrees != 270) { in setOrientationHint() 130 mFileMeta->setInt32(kKeyRotation, degrees); in setOrientationHint()
|
/aosp12/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/ |
H A D | ColorScheme.kt | 214 private fun wrapDegrees(degrees: Int): Int { 216 degrees < 0 -> { 217 (degrees % 360) + 360 219 degrees >= 360 -> { 220 degrees % 360 223 degrees
|
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Matrix_Delegate.java | 301 d.mValues = getRotate(degrees, px, py); in nSetRotate() 311 setRotate(d.mValues, degrees); in nSetRotate() 420 d.preTransform(getRotate(degrees, px, py)); in nPreRotate() 429 double rad = Math.toRadians(degrees); in nPreRotate() 493 d.postTransform(getRotate(degrees, px, py)); in nPostRotate() 501 d.postTransform(getRotate(degrees)); in nPostRotate() 1010 /*package*/ static float[] getRotate(float degrees) { in getRotate() argument 1011 double rad = Math.toRadians(degrees); in getRotate() 1022 /*package*/ static float[] setRotate(float[] dest, float degrees) { in setRotate() argument 1023 double rad = Math.toRadians(degrees); in setRotate() [all …]
|
/aosp12/hardware/interfaces/gnss/2.1/ |
H A D | IGnssAntennaInfoCallback.hal | 73 * corresponds to a theta angle of 0 degrees. The last row corresponds to a 74 * theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular 78 * degrees and ending at 180 degrees. They are separated by deltaPhi, the regular 107 * corresponds to a theta angle of 0 degrees. The last row corresponds to a 108 * theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular 112 * degrees and ending at 180 degrees. They are separated by deltaPhi, the regular
|
/aosp12/frameworks/base/tools/orientationplot/ |
H A D | README.txt | 46 it 90 degrees to a different orientation. Compared the rapid changes in the 52 it 90 degrees. Note that the confidence intervals will all drop to 0 at some 58 over end to a midpoint about 45 degrees between two opposing orientations. 67 angle (say, 45 degrees) is between the current orientation's ideal angle 68 (say, 0 degrees) and an adjacent orientation's ideal angle (say, 90 degrees). 77 degrees (refer to MAX_TILT constant). Consequently, you should expect there
|
/aosp12/hardware/interfaces/gnss/1.0/ |
H A D | types.hal | 69 /** Represents latitude in degrees. */ 72 /** Represents longitude in degrees. */ 83 /** Represents heading in degrees. */ 105 * Represents expected bearing accuracy in degrees
|
/aosp12/frameworks/base/core/java/android/view/animation/ |
H A D | RotateAnimation.java | 167 float degrees = mFromDegrees + ((mToDegrees - mFromDegrees) * interpolatedTime); in applyTransformation() local 171 t.getMatrix().setRotate(degrees); in applyTransformation() 173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale); in applyTransformation()
|
/aosp12/packages/services/Car/car-lib/src/android/car/navigation/ |
H A D | navigation_state.proto | 134 // degrees. 137 // degrees. 141 // (excluded) degrees. 144 // (excluded) degrees. 148 // degrees. 151 // (excluded) degrees. 155 // (included) to 180 (included) degrees. 158 // (included) to 180 (included) degrees. 380 // (included) to 180 (included) degrees 384 // (included) to 180 (included) degrees [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
H A D | QrCamera.java | 207 int degrees = 0; in startPreview() local 210 degrees = 0; in startPreview() 213 degrees = 90; in startPreview() 216 degrees = 180; in startPreview() 219 degrees = 270; in startPreview() 222 final int rotateDegrees = (mCameraOrientation - degrees + 360) % 360; in startPreview()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
H A D | PipSurfaceTransactionHelper.java | 85 Rect sourceBounds, Rect destinationBounds, float degrees) { in scale() argument 92 mTmpTransform.postRotate(degrees, in scale() 129 float degrees, float positionX, float positionY, boolean isExpanding, in rotateAndScaleWithCrop() argument 161 mTmpTransform.postRotate(degrees); in rotateAndScaleWithCrop()
|
/aosp12/hardware/interfaces/gnss/measurement_corrections/1.0/ |
H A D | types.hal | 82 /** Represents latitude in degrees at which the corrections are computed.. */ 85 /** Represents longitude in degrees at which the corrections are computed.. */ 128 /** Represents latitude of the reflecting plane in degrees. */ 131 /** Represents longitude of the reflecting plane in degrees. */ 140 /** Represents azimuth clockwise from north of the reflecting plane in degrees. */
|