Home
last modified time | relevance | path

Searched refs:scaleFactor (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DMandelbrot.java51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DMandelbrot.java51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsDialogMeasureAdapter.java68 float scaleFactor) { in onMeasureInternal() argument
73 return onMeasureInternalPortrait(width, height, scaleFactor); in onMeasureInternal()
76 return onMeasureInternalLandscape(width, height, scaleFactor); in onMeasureInternal()
96 public int getSensorDiameter(float scaleFactor) { in getSensorDiameter() argument
97 return (int) (scaleFactor * mSensorProps.getLocation().sensorRadius * 2); in getSensorDiameter()
102 float scaleFactor) { in onMeasureInternalPortrait() argument
113 dialogMargin, navbarInsets.bottom, scaleFactor); in onMeasureInternalPortrait()
118 final int sensorDiameter = getSensorDiameter(scaleFactor); in onMeasureInternalPortrait()
194 float scaleFactor) { in onMeasureInternalLandscape() argument
215 mSensorProps, displayWidth, dialogMargin, horizontalInset, scaleFactor); in onMeasureInternalLandscape()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DMandelbrot.java57 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() local
59 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
70 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() local
72 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
83 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed() local
84 mScript.set_scaleFactor(scaleFactor); in onBar4Changed()
Dmandelbrot.rscript23 float scaleFactor = 4.f;
27 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
28 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
59 p.x = lowerBoundX + ((float)x / gDimX) * scaleFactor;
60 p.y = lowerBoundY + ((float)y / gDimY) * scaleFactor;
/frameworks/av/media/module/codecs/amrnb/dec/src/
Dex_ctrl.cpp161 Word16 testEnergy, scaleFactor, avgEnergy, prevEnergy; in Ex_ctrl() local
201 scaleFactor = extract_l(t0); in Ex_ctrl()
204 if (carefulFlag != 0 && (scaleFactor > 3072)) in Ex_ctrl()
206 scaleFactor = 3072; in Ex_ctrl()
212 t0 = L_mult(scaleFactor, excitation[i], pOverflow); in Ex_ctrl()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarDisplayCompatScaleProviderUpdatableImpl.java438 float scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in updateStateOfPackageForUserLocked() local
440 if (scaleFactor == NO_SCALE) { in updateStateOfPackageForUserLocked()
442 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in updateStateOfPackageForUserLocked()
443 if (scaleFactor == NO_SCALE) { in updateStateOfPackageForUserLocked()
452 } else if (hasConfig && result && scaleFactor == OPT_OUT) { in updateStateOfPackageForUserLocked()
622 float scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked() local
623 if (scaleFactor != NO_SCALE && scaleFactor != OPT_OUT) { in getCompatScaleForPackageAsUserLocked()
624 return new CompatScaleWrapper(DEFAULT_SCALE, scaleFactor); in getCompatScaleForPackageAsUserLocked()
628 scaleFactor = mConfig.getScaleFactor(key, NO_SCALE); in getCompatScaleForPackageAsUserLocked()
629 if (scaleFactor != NO_SCALE && scaleFactor != OPT_OUT) { in getCompatScaleForPackageAsUserLocked()
[all …]
/frameworks/base/libs/dream/lowlight/src/com/android/dream/lowlight/util/
DTruncatedInterpolator.kt45 private val scaleFactor: Float constant
48 scaleFactor = newDuration / originalDuration
52 return baseInterpolator.getInterpolation(input * scaleFactor) in getInterpolation()
/frameworks/libs/modules-utils/java/com/android/modules/expresslog/
DHistogram.java164 @FloatRange(from = 1.f) float scaleFactor) { in ScaledRangeOptions()
174 if (scaleFactor < 1.f) { in ScaledRangeOptions()
180 mBins = initBins(binCount + 1, minValue, firstBinWidth, scaleFactor); in ScaledRangeOptions()
214 float scaleFactor) { in initBins() argument
227 lastWidth *= scaleFactor; in initBins()
/frameworks/base/core/java/android/os/vibrator/
DRampSegment.java147 public RampSegment scale(float scaleFactor) { in scale() argument
148 float newStartAmplitude = VibrationEffect.scale(mStartAmplitude, scaleFactor); in scale()
149 float newEndAmplitude = VibrationEffect.scale(mEndAmplitude, scaleFactor); in scale()
162 public RampSegment scaleLinearly(float scaleFactor) { in scaleLinearly() argument
163 float newStartAmplitude = VibrationEffect.scaleLinearly(mStartAmplitude, scaleFactor); in scaleLinearly()
164 float newEndAmplitude = VibrationEffect.scaleLinearly(mEndAmplitude, scaleFactor); in scaleLinearly()
DPrimitiveSegment.java100 public PrimitiveSegment scale(float scaleFactor) { in scale() argument
101 float newScale = VibrationEffect.scale(mScale, scaleFactor); in scale()
112 public PrimitiveSegment scaleLinearly(float scaleFactor) { in scaleLinearly() argument
113 float newScale = VibrationEffect.scaleLinearly(mScale, scaleFactor); in scaleLinearly()
DStepSegment.java136 public StepSegment scale(float scaleFactor) { in scale() argument
140 float newAmplitude = VibrationEffect.scale(mAmplitude, scaleFactor); in scale()
150 public StepSegment scaleLinearly(float scaleFactor) { in scaleLinearly() argument
154 float newAmplitude = VibrationEffect.scaleLinearly(mAmplitude, scaleFactor); in scaleLinearly()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/shared/model/
DUdfpsOverlayParams.kt52 val scaleFactor: Float = 1f, constant in com.android.systemui.biometrics.shared.model.UdfpsOverlayParams
58 val nativeSensorBounds = Rect(sensorBounds).apply { scale(1f / scaleFactor) } in <lambda>()
61 val nativeOverlayBounds = Rect(overlayBounds).apply { scale(1f / scaleFactor) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessorTest.kt568 fun toOverlayParams(scaleFactor: Float): UdfpsOverlayParams = in toOverlayParams()
570 sensorBounds = ROTATION_0_NATIVE_SENSOR_BOUNDS.scaled(scaleFactor), in toOverlayParams()
571 overlayBounds = ROTATION_0_NATIVE_SENSOR_BOUNDS.scaled(scaleFactor), in toOverlayParams()
572 naturalDisplayHeight = (ROTATION_0_NATIVE_DISPLAY_HEIGHT * scaleFactor).toInt(), in toOverlayParams()
573 naturalDisplayWidth = (ROTATION_0_NATIVE_DISPLAY_WIDTH * scaleFactor).toInt(), in toOverlayParams()
574 scaleFactor = scaleFactor, in toOverlayParams()
602 return scaleFactors.flatMap { scaleFactor -> in genPositiveTestCases() method
604 val overlayParams = orientation.toOverlayParams(scaleFactor) in genPositiveTestCases()
619 pc.x = orientation.getNativeX(pointer.onSensor) * scaleFactor in genPositiveTestCases()
620 pc.y = orientation.getNativeY(pointer.onSensor) * scaleFactor in genPositiveTestCases()
[all …]
/frameworks/opt/car/services/builtInServices/src/android/content/res/
DCompatScaleWrapper.java30 public CompatScaleWrapper(float scaleFactor, float densityScaleFactor) { in CompatScaleWrapper() argument
31 mScaleFactor = scaleFactor; in CompatScaleWrapper()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java144 boolean forceCompat, float scaleFactor) { in CompatibilityInfo() argument
145 this(appInfo, screenLayout, sw, forceCompat, scaleFactor, scaleFactor); in CompatibilityInfo()
149 boolean forceCompat, float scaleFactor, float densityScaleFactor) { in CompatibilityInfo() argument
155 if (scaleFactor != 1f || densityScaleFactor != 1f) { in CompatibilityInfo()
156 applicationScale = scaleFactor; in CompatibilityInfo()
157 applicationInvertedScale = 1f / scaleFactor; in CompatibilityInfo()
850 public CompatScale(float scaleFactor) {
851 this(scaleFactor, scaleFactor);
854 public CompatScale(float scaleFactor, float densityScaleFactor) {
855 mScaleFactor = scaleFactor;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DScalingDrawableWrapper.java29 public ScalingDrawableWrapper(Drawable drawable, float scaleFactor) { in ScalingDrawableWrapper() argument
31 mScaleFactor = scaleFactor; in ScalingDrawableWrapper()
/frameworks/base/core/java/android/view/
DInputWindowHandle.java114 public float scaleFactor; field in InputWindowHandle
198 scaleFactor = other.scaleFactor; in InputWindowHandle()
223 .append(", scaleFactor=").append(scaleFactor) in toString()
/frameworks/base/core/java/com/android/internal/os/
DBinderLatencyBuckets.java39 public BinderLatencyBuckets(int bucketCount, int firstBucketSize, float scaleFactor) { in BinderLatencyBuckets() argument
50 double nextTarget = lastTarget * scaleFactor; in BinderLatencyBuckets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessor.kt141 val nativeX = naturalTouch.x / overlayParams.scaleFactor in normalize()
142 val nativeY = naturalTouch.y / overlayParams.scaleFactor in normalize()
143 val nativeMinor: Float = getTouchMinor(pointerIndex) / overlayParams.scaleFactor in normalize()
144 val nativeMajor: Float = getTouchMajor(pointerIndex) / overlayParams.scaleFactor in normalize()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyView.java106 float scaleFactor = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY) * 1.5f; in drawTouch() local
112 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + 3 * scaleFactor, mRedPaint); in drawTouch()
113 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + 2 * scaleFactor, mYellowPaint); in drawTouch()
114 canvas.drawCircle(mTouchX, mTouchY, INNER_RADIUS + scaleFactor, mGreenPaint); in drawTouch()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DCameraView.java219 float scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen() local
223 long exp = (long) (mExposureDown * scaleFactor); in touchScreen()
229 float focusDist = mFocusDistDown * scaleFactor; in touchScreen()
237 scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen()
238 int iso = (int) (getIso() * scaleFactor); in touchScreen()
/frameworks/rs/tests/java_api/RsCameraDemo/src/com/android/example/rscamera/
DCameraView.java218 float scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen() local
222 long exp = (long) (mExposureDown * scaleFactor); in touchScreen()
228 float focusDist = mFocusDistDown * scaleFactor; in touchScreen()
236 scaleFactor = (float) Math.pow(2.f, yDistNorm * ACCELERATION_FACTOR); in touchScreen()
237 int iso = (int) (getIso() * scaleFactor); in touchScreen()

123