Home
last modified time | relevance | path

Searched refs:Float (Results 1 – 25 of 393) sorted by relevance

12345678910>>...16

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRangeTest.java45 Range<Float> floatRange = new Range<Float>(Float.NEGATIVE_INFINITY, in testConstructor()
46 Float.POSITIVE_INFINITY); in testConstructor()
47 assertLower(floatRange, Float.NEGATIVE_INFINITY); in testConstructor()
48 assertUpper(floatRange, Float.POSITIVE_INFINITY); in testConstructor()
85 new Range<Float>(0.0f, Float.NEGATIVE_INFINITY); in testIllegalValues()
94 Range<Float> oneHalf = Range.create(1.0f, 2.0f); in testEquals()
95 Range<Float> oneHalf2 = new Range<Float>(1.0f, 2.0f); in testEquals()
99 Range<Float> twoThirds = new Range<Float>(2.0f, 3.0f); in testEquals()
100 Range<Float> twoThirds2 = Range.create(2.0f, 3.0f); in testEquals()
123 Range<Float> infinities = Range.create(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY); in testInRange()
[all …]
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamFloatTest.java131 assertEquals(Float.MIN_NORMAL, results[4]); in testRead()
132 assertEquals(Float.MIN_VALUE, results[5]); in testRead()
133 assertEquals(Float.NEGATIVE_INFINITY, results[6]); in testRead()
134 assertEquals(Float.NaN, results[7]); in testRead()
135 assertEquals(Float.POSITIVE_INFINITY, results[8]); in testRead()
146 testReadCompat(Float.MIN_NORMAL); in testReadCompat()
147 testReadCompat(Float.MIN_VALUE); in testReadCompat()
148 testReadCompat(Float.NEGATIVE_INFINITY); in testReadCompat()
149 testReadCompat(Float.NaN); in testReadCompat()
150 testReadCompat(Float.POSITIVE_INFINITY); in testReadCompat()
[all …]
/frameworks/base/core/java/android/view/
DDisplayListCanvas.java43 public abstract void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, in drawRoundRect()
44 CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, in drawRoundRect()
45 CanvasProperty<Float> ry, CanvasProperty<Paint> paint); in drawRoundRect()
52 public abstract void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle()
53 CanvasProperty<Float> radius, CanvasProperty<Paint> paint); in drawCircle()
DMagnificationSpec.java124 int result = (scale != +0.0f ? Float.floatToIntBits(scale) : 0); in hashCode()
125 result = 31 * result + (offsetX != +0.0f ? Float.floatToIntBits(offsetX) : 0); in hashCode()
126 result = 31 * result + (offsetY != +0.0f ? Float.floatToIntBits(offsetY) : 0); in hashCode()
134 builder.append(Float.toString(scale)); in toString()
136 builder.append(Float.toString(offsetX)); in toString()
138 builder.append(Float.toString(offsetY)); in toString()
/frameworks/base/media/java/android/media/
DMicrophoneInfo.java111 -Float.MAX_VALUE, -Float.MAX_VALUE, -Float.MAX_VALUE);
121 public static final float SENSITIVITY_UNKNOWN = -Float.MAX_VALUE;
127 public static final float SPL_UNKNOWN = -Float.MAX_VALUE;
155 private List<Pair<Float, Float>> mFrequencyResponse;
170 Coordinate3F orientation, List<Pair<Float, Float>> frequencyResponse, in MicrophoneInfo() argument
300 public List<Pair<Float, Float>> getFrequencyResponse() { in getFrequencyResponse()
/frameworks/base/packages/EasterEgg/src/com/android/egg/paint/
DPainting.kt32 fun hypot(x: Float, y: Float): Float { in hypot()
36 fun invlerp(x: Float, a: Float, b: Float): Float { in invlerp()
177 private fun powf(a: Float, b: Float): Float { in powf()
227 private fun adjustPressure(pressure: Float): Float { in adjustPressure()
282 fun sampleAt(x: Float, y: Float): Int { in sampleAt()
296 fun setBrushWidth(w: Float) { in setBrushWidth()
300 fun getBrushWidth(): Float { in getBrushWidth()
DPalette.kt30 private fun lum(rgb: Int): Float { in lum()
38 fun randomize(S: Float, V: Float) { in randomize()
70 constructor(count: Int, S: Float, V: Float) {
/frameworks/base/graphics/java/android/graphics/
DRecordingCanvas.java246 public void drawCircle(CanvasProperty<Float> cx, CanvasProperty<Float> cy, in drawCircle()
247 CanvasProperty<Float> radius, CanvasProperty<Paint> paint) { in drawCircle()
265 public void drawRoundRect(CanvasProperty<Float> left, CanvasProperty<Float> top, in drawRoundRect()
266 CanvasProperty<Float> right, CanvasProperty<Float> bottom, CanvasProperty<Float> rx, in drawRoundRect()
267 CanvasProperty<Float> ry, CanvasProperty<Paint> paint) { in drawRoundRect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DPulseExpansionHandler.kt71 private var mInitialTouchX: Float = 0.0f in <lambda>()
72 private var mInitialTouchY: Float = 0.0f in <lambda>()
96 private val mTouchSlop: Float in <lambda>()
106 private var mEmptyDragAmount: Float = 0.0f in <lambda>()
107 private var mWakeUpHeight: Float = 0.0f in <lambda>()
231 private fun updateExpansionHeight(height: Float) { in <lambda>()
253 private fun captureStartingChild(x: Float, y: Float) { in <lambda>()
262 private fun setEmptyDragAmount(amount: Float) { in <lambda>()
294 anim.addUpdateListener { animation -> setEmptyDragAmount(animation.animatedValue as Float) } in <lambda>()
312 private fun findView(x: Float, y: Float): ExpandableView? { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationWakeUpCoordinator.kt50 override fun setValue(coordinator: NotificationWakeUpCoordinator, value: Float) { in setValue()
54 override fun get(coordinator: NotificationWakeUpCoordinator): Float? { in get()
61 private var mLinearDozeAmount: Float = 0.0f
62 private var mDozeAmount: Float = 0.0f
231 override fun onDozeAmountChanged(linear: Float, eased: Float) { in onDozeAmountChanged()
243 fun setDozeAmount(linear: Float, eased: Float) { in setDozeAmount()
268 override fun onPanelExpansionChanged(expansion: Float, tracking: Boolean) { in onPanelExpansionChanged()
312 private fun setVisibilityAmount(visibilityAmount: Float) { in setVisibilityAmount()
327 fun getWakeUpHeight() : Float { in getWakeUpHeight()
352 fun setPulseHeight(height: Float): Float { in setPulseHeight()
DAnimatableProperty.java46 public static <T extends View> AnimatableProperty from(String name, BiConsumer<T, Float> setter, in from()
47 Function<T, Float> getter, int animatorTag, int startValueTag, int endValueTag) { in from()
48 Property<T, Float> property = new FloatProperty<T>(name) { in from()
51 public Float get(T object) { in from()
83 public static <T extends View> AnimatableProperty from(Property<T, Float> property,
/frameworks/base/core/java/android/view/inputmethod/
DCursorAnchorInfo.java179 if (Float.isNaN(a) && Float.isNaN(b)) { in areSameFloatImpl()
263 private float mInsertionMarkerHorizontal = Float.NaN;
264 private float mInsertionMarkerTop = Float.NaN;
265 private float mInsertionMarkerBaseline = Float.NaN;
266 private float mInsertionMarkerBottom = Float.NaN;
384 || !Float.isNaN(mInsertionMarkerHorizontal) in build()
385 || !Float.isNaN(mInsertionMarkerTop) in build()
386 || !Float.isNaN(mInsertionMarkerBaseline) in build()
387 || !Float.isNaN(mInsertionMarkerBottom)) { in build()
405 mInsertionMarkerHorizontal = Float.NaN; in reset()
[all …]
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java119 return Float.floatToIntBits(mXScale) ^ in hashCode()
120 Float.floatToIntBits(mXYMix) ^ in hashCode()
121 Float.floatToIntBits(mXOffset) ^ in hashCode()
122 Float.floatToIntBits(mYXMix) ^ in hashCode()
123 Float.floatToIntBits(mYScale) ^ in hashCode()
124 Float.floatToIntBits(mYOffset); in hashCode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/util/
DBurnInHelper.kt47 private fun zigzag(x: Float, amplitude: Float, period: Float): Float { in zigzag()
/frameworks/base/core/java/android/hardware/camera2/
DCaptureResult.java2677 public static final Key<Float> LENS_APERTURE =
2678 new Key<Float>("android.lens.aperture", float.class);
2708 public static final Key<Float> LENS_FILTER_DENSITY =
2709 new Key<Float>("android.lens.filterDensity", float.class);
2734 public static final Key<Float> LENS_FOCAL_LENGTH =
2735 new Key<Float>("android.lens.focalLength", float.class);
2754 public static final Key<Float> LENS_FOCUS_DISTANCE =
2755 new Key<Float>("android.lens.focusDistance", float.class);
2776 public static final Key<android.util.Pair<Float,Float>> LENS_FOCUS_RANGE =
2777 …new Key<android.util.Pair<Float,Float>>("android.lens.focusRange", new TypeReference<android.util.…
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonRipple.java51 private CanvasProperty<Float> mLeftProp;
52 private CanvasProperty<Float> mTopProp;
53 private CanvasProperty<Float> mRightProp;
54 private CanvasProperty<Float> mBottomProp;
55 private CanvasProperty<Float> mRxProp;
56 private CanvasProperty<Float> mRyProp;
172 CanvasProperty<Float> cx = CanvasProperty.createFloat(getBounds().width() / 2); in drawHardware()
173 CanvasProperty<Float> cy = CanvasProperty.createFloat(getBounds().height() / 2); in drawHardware()
175 CanvasProperty<Float> r = CanvasProperty.createFloat(1.0f * d / 2); in drawHardware()
335 private void setExtendStart(CanvasProperty<Float> prop) { in setExtendStart()
[all …]
/frameworks/base/core/java/android/hardware/display/
DBrightnessCorrection.java189 return Float.parseFloat(string); in loadFloatFromXml()
191 return Float.NaN; in loadFloatFromXml()
223 if (Float.isNaN(scale) || Float.isNaN(translate)) { in ScaleAndTranslateLog()
255 result = result * 31 + Float.hashCode(mScale); in hashCode()
256 result = result * 31 + Float.hashCode(mTranslate); in hashCode()
270 serializer.attribute(null, ATTR_SCALE, Float.toString(mScale)); in saveToXml()
271 serializer.attribute(null, ATTR_TRANSLATE, Float.toString(mTranslate)); in saveToXml()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSScrollLayout.java128 private static final Property<QSScrollLayout, Float> CONTENT_TRANS_Y =
129 new Property<QSScrollLayout, Float>(Float.class, "qsScrollLayoutContentTransY") {
131 public Float get(QSScrollLayout qsScrollLayout) {
136 public void set(QSScrollLayout qsScrollLayout, Float y) {
164 if (Float.compare(mFirstDisplacement, 0) == 0) { in onDrag()
182 if (Float.compare(mContentTranslationY, 0) != 0) { in reset()
/frameworks/base/core/java/android/util/
DFloatProperty.java27 public abstract class FloatProperty<T> extends Property<T, Float> {
30 super(Float.class, name); in FloatProperty()
40 final public void set(T object, Float value) { in set()
DSizeF.java145 return new SizeF(Float.parseFloat(string.substring(0, sep_ix)), in parseSizeF()
146 Float.parseFloat(string.substring(sep_ix + 1))); in parseSizeF()
159 return Float.floatToIntBits(mWidth) ^ Float.floatToIntBits(mHeight); in hashCode()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRateEstimatorTest.java53 assertFalse(Float.isInfinite(rate)); in testRunningTimeBackwardDoesntExplodeGet()
54 assertFalse(Float.isNaN(rate)); in testRunningTimeBackwardDoesntExplodeGet()
68 assertFalse(Float.isInfinite(rate)); in testInstantaneousEventsDontExplodeGet()
69 assertFalse(Float.isNaN(rate)); in testInstantaneousEventsDontExplodeGet()
160 assertFalse(Float.isInfinite(rate)); in assertUpdateTime()
161 assertFalse(Float.isNaN(rate)); in assertUpdateTime()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCSVWriterFilter.java75 float sharpness = ((Float)sharpnessValue.getValue()).floatValue(); in onProcess()
79 float overExposure = ((Float)overExposureValue.getValue()).floatValue(); in onProcess()
83 float underExposure = ((Float)underExposureValue.getValue()).floatValue(); in onProcess()
87 float colorfulness = ((Float)colorfulnessValue.getValue()).floatValue(); in onProcess()
91 float contrast = ((Float)contrastValue.getValue()).floatValue(); in onProcess()
95 float brightness = ((Float)brightnessValue.getValue()).floatValue(); in onProcess()
/frameworks/base/core/java/android/view/textclassifier/
DEntityConfidence.java39 private final ArrayMap<String, Float> mEntityConfidence = new ArrayMap<>();
58 EntityConfidence(@NonNull Map<String, Float> source) { in EntityConfidence()
63 for (Map.Entry<String, Float> it : source.entrySet()) { in EntityConfidence()
105 for (Map.Entry<String, Float> entry : mEntityConfidence.entrySet()) { in writeToParcel()
140 return Float.compare(score2, score1); in resetSortedEntitiesFromMap()
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
DPathShape.java92 return Float.compare(pathShape.mStdWidth, mStdWidth) == 0 in equals()
93 && Float.compare(pathShape.mStdHeight, mStdHeight) == 0 in equals()
94 && Float.compare(pathShape.mScaleX, mScaleX) == 0 in equals()
95 && Float.compare(pathShape.mScaleY, mScaleY) == 0 in equals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDualToneHandler.kt65 private fun getColorForDarkIntensity(darkIntensity: Float, lightColor: Int, darkColor: Int) =
75 fun getSingleColor(intensity: Float) =
85 fun getBackgroundColor(intensity: Float) =
95 fun getFillColor(intensity: Float) =

12345678910>>...16