Home
last modified time | relevance | path

Searched refs:isNaN (Results 1 – 25 of 136) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DFloatAnimation.java40 if (!Float.isNaN(mInitialValue)) { in toString()
43 if (!Float.isNaN(mTargetValue)) { in toString()
46 if (!Float.isNaN(mWrap)) { in toString()
85 if (!Float.isNaN(initialValue)) { in packToFloatArray()
98 if (!Float.isNaN(initialValue)) { in packToFloatArray()
101 if (!Float.isNaN(wrap)) { in packToFloatArray()
113 int wrapBit = (Float.isNaN(wrap)) ? 0 : 1; in packToFloatArray()
114 int initBit = (Float.isNaN(initialValue)) ? 0 : 2; in packToFloatArray()
123 if (!Float.isNaN(initialValue)) { in packToFloatArray()
126 if (!Float.isNaN(wrap)) { in packToFloatArray()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DDrawBase6.java80 mV1 = (Float.isNaN(mValue1)) in updateVariables()
82 mV2 = (Float.isNaN(mValue2)) in updateVariables()
84 mV3 = (Float.isNaN(mValue3)) in updateVariables()
86 mV4 = (Float.isNaN(mValue4)) in updateVariables()
88 mV5 = (Float.isNaN(mValue5)) in updateVariables()
90 mV6 = (Float.isNaN(mValue6)) in updateVariables()
96 if (Float.isNaN(mValue1)) { in registerListening()
99 if (Float.isNaN(mValue2)) { in registerListening()
102 if (Float.isNaN(mValue3)) { in registerListening()
105 if (Float.isNaN(mValue4)) { in registerListening()
[all …]
DDrawTextAnchored.java66 mOutX = (Float.isNaN(mX)) in updateVariables()
68 mOutY = (Float.isNaN(mY)) in updateVariables()
70 mOutPanX = (Float.isNaN(mPanX)) in updateVariables()
72 mOutPanY = (Float.isNaN(mPanY)) in updateVariables()
78 if (Float.isNaN(mX)) { in registerListening()
81 if (Float.isNaN(mY)) { in registerListening()
84 if (Float.isNaN(mPanX)) { in registerListening()
87 if (Float.isNaN(mPanY) && Utils.idFromNan(mPanY) > 0) { in registerListening()
110 if (Float.isNaN(v)) { in floatToStr()
200 float y = (Float.isNaN(mOutPanY)) ? mOutY : mOutY + getVerticalOffset(); in paint()
DDrawBase4.java71 mX1 = (Float.isNaN(mX1Value)) in updateVariables()
73 mY1 = (Float.isNaN(mY1Value)) in updateVariables()
75 mX2 = (Float.isNaN(mX2Value)) in updateVariables()
77 mY2 = (Float.isNaN(mY2Value)) in updateVariables()
83 if (Float.isNaN(mX1Value)) { in registerListening()
86 if (Float.isNaN(mY1Value)) { in registerListening()
89 if (Float.isNaN(mX2Value)) { in registerListening()
92 if (Float.isNaN(mY2Value)) { in registerListening()
DDrawBitmap.java59 mOutputLeft = (Float.isNaN(mLeft)) in updateVariables()
61 mOutputTop = (Float.isNaN(mTop)) in updateVariables()
63 mOutputRight = (Float.isNaN(mRight)) in updateVariables()
65 mOutputBottom = (Float.isNaN(mBottom)) in updateVariables()
71 if (Float.isNaN(mLeft)) { in registerListening()
74 if (Float.isNaN(mTop)) { in registerListening()
77 if (Float.isNaN(mRight)) { in registerListening()
80 if (Float.isNaN(mBottom)) { in registerListening()
DDrawBase3.java66 mV1 = (Float.isNaN(mValue1)) in updateVariables()
68 mV2 = (Float.isNaN(mValue2)) in updateVariables()
70 mV3 = (Float.isNaN(mValue3)) in updateVariables()
76 if (Float.isNaN(mValue1)) { in registerListening()
79 if (Float.isNaN(mValue2)) { in registerListening()
82 if (Float.isNaN(mValue3)) { in registerListening()
DColorExpression.java99 if (Float.isNaN(mHue)) { in updateVariables()
102 if (Float.isNaN(mSat)) { in updateVariables()
105 if (Float.isNaN(mValue)) { in updateVariables()
109 if (Float.isNaN(mTween)) { in updateVariables()
124 if (Float.isNaN(mHue)) { in registerListening()
127 if (Float.isNaN(mSat)) { in registerListening()
130 if (Float.isNaN(mValue)) { in registerListening()
135 if (Float.isNaN(mTween)) { in registerListening()
DDrawBase2.java58 mV1 = (Float.isNaN(mValue1)) in updateVariables()
60 mV2 = (Float.isNaN(mValue2)) in updateVariables()
66 if (Float.isNaN(mValue1)) { in registerListening()
69 if (Float.isNaN(mValue2)) { in registerListening()
DFloatExpression.java66 if (Float.isNaN(v) && !AnimatedFloatExpression.isMathOperator(v)) { in updateVariables()
83 if (Float.isNaN(mFloatAnimation.getTargetValue())) { in updateVariables()
96 if (Float.isNaN(v) && !AnimatedFloatExpression.isMathOperator(v)) { in registerListening()
106 if (Float.isNaN(mLastChange)) { in apply()
126 if (Float.isNaN(mSrcValue[i])) { in toString()
DUtils.java57 if (Float.isNaN(idvalue)) { in floatToString()
69 if (Float.isNaN(value)) { in floatToString()
106 if (Float.isNaN(v)) { in isVariable()
134 if (Float.isNaN(t) || t == 0.0f) { in interpolateColor()
DPathData.java45 mOutputPath[i] = (Float.isNaN(v)) in updateVariables()
56 if (Float.isNaN(mFloatPath[i])) { in registerListening()
161 if (Float.isNaN(path[i])) { in pathString()
/frameworks/base/core/java/android/util/
DRational.java168 public boolean isNaN() { in isNaN() method in Rational
270 if (isNaN()) { in toString()
396 } else if (isNaN()) { in intValue()
430 } else if (isNaN()) { in longValue()
479 } else if (isNaN()) { // NaN is greater than the other non-NaN value in compareTo()
481 } else if (another.isNaN()) { // the other NaN is greater than this non-NaN value in compareTo()
DHalf.java298 public boolean isNaN() { in isNaN() method in Half
299 return isNaN(mValue); in isNaN()
745 public static boolean isNaN(@HalfFloat short h) { in isNaN() method in Half
746 return FP16.isNaN(h); in isNaN()
/frameworks/base/services/core/java/com/android/server/power/stats/
DMobileRadioPowerCalculator.java72 if (Double.isNaN(sleepDrainRateMa)) { in MobileRadioPowerCalculator()
81 if (Double.isNaN(idleDrainRateMa)) { in MobileRadioPowerCalculator()
90 if (Double.isNaN(powerRadioActiveMa)) { in MobileRadioPowerCalculator()
100 if (!Double.isNaN( in MobileRadioPowerCalculator()
283 if (Double.isNaN(inactivePowerMah)) { in calculate()
294 if (!Double.isNaN(inactivePowerMah)) { in calculate()
345 if (Double.isNaN(txConsumptionMah)) { in calculateActiveModemPowerMah()
358 if (Double.isNaN(rxConsumptionMah)) { in calculateActiveModemPowerMah()
400 if (Double.isNaN(drainRateMa)) { in calcRxStatePowerMah()
424 if (Double.isNaN(drainRateMa)) { in calcTxStatePowerMah()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceThrottler.java149 if (Float.isNaN(increaseDebounce) || increaseDebounce < 0.0f) { in validateArguments()
152 if (Float.isNaN(decreaseDebounce) || decreaseDebounce < 0.0f) { in validateArguments()
171 if (Float.isNaN(x[i]) || Float.isNaN(y[i]) || x[i] < 0 || prevX >= x[i]) { in isValidMapping()
/frameworks/base/services/core/java/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2.java154 if (Float.isNaN(mPendingAutoBrightnessAdjustment)) { in processPendingAutoBrightnessAdjustments()
213 mPendingAutoBrightnessAdjustment = Float.isNaN(adj) ? Float.NaN in updatePendingAutoBrightnessAdjustments()
300 if (!Float.isNaN(newAutoBrightnessAdjustment) in adjustAutomaticBrightnessStateIfValid()
396 !Float.isNaN(mTemporaryAutoBrightnessAdjustment); in updateTemporaryAutoBrightnessAdjustments()
409 return Float.isNaN(adj) ? 0.0f : BrightnessUtils.clampBrightnessAdjustment(adj); in getAutoBrightnessAdjustmentSetting()
DAutomaticBrightnessStrategy.java208 if (Float.isNaN(mPendingAutoBrightnessAdjustment)) { in processPendingAutoBrightnessAdjustments()
267 mPendingAutoBrightnessAdjustment = Float.isNaN(adj) ? Float.NaN in updatePendingAutoBrightnessAdjustments()
402 if (!Float.isNaN(newAutoBrightnessAdjustment) in adjustAutomaticBrightnessStateIfValid()
506 !Float.isNaN(mTemporaryAutoBrightnessAdjustment); in updateTemporaryAutoBrightnessAdjustments()
519 return Float.isNaN(adj) ? 0.0f : BrightnessUtils.clampBrightnessAdjustment(adj); in getAutoBrightnessAdjustmentSetting()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/back/
DBackTransformationTest.kt31 assertThat(transformation.translateX).isNaN() in defaultValue_noTransformation()
32 assertThat(transformation.translateY).isNaN() in defaultValue_noTransformation()
33 assertThat(transformation.scale).isNaN() in defaultValue_noTransformation()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/
DAnimatedFloatExpression.java81 if (Float.isNaN(v)) { in isMathOperator()
104 if (Float.isNaN(v)) { in eval()
127 if (Float.isNaN(v)) { in eval()
147 if (Float.isNaN(v)) { in evalDB()
359 if (Float.isNaN(v)) { in toString()
380 if (Float.isNaN(exp[sp])) { in toString()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationThumbnail.java273 var scaleDown = Float.isNaN(scale) ? mThumbnailView.getScaleX() : 1f / scale; in updateThumbnailMainThread()
274 if (!Float.isNaN(scale)) { in updateThumbnailMainThread()
279 if (!Float.isNaN(centerX) in updateThumbnailMainThread()
280 && !Float.isNaN(centerY) in updateThumbnailMainThread()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiFingerMultiTap.java227 if (Float.isNaN(p.x) && Float.isNaN(p.y)) { in initBaseLocation()
250 if (Float.isNaN(p.x) && Float.isNaN(p.y)) { in findNearestPoint()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationController.java212 mEndSpec.set(Float.isNaN(scale) ? mContext.getResources().getInteger( in setupEnableAnimationSpecs()
223 mEndSpec.set(Float.isNaN(scale) ? endScale : scale, in setupEnableAnimationSpecs()
224 Float.isNaN(centerX) ? endCenterX : centerX, in setupEnableAnimationSpecs()
225 Float.isNaN(centerY) ? endCenterY : centerY); in setupEnableAnimationSpecs()
277 if (Float.isNaN(mController.getScale())) { in updateState()
/frameworks/base/core/java/android/view/inputmethod/
DCursorAnchorInfo.java210 if (Float.isNaN(a) && Float.isNaN(b)) { in areSameFloatImpl()
504 || !Float.isNaN(mInsertionMarkerHorizontal) in build()
505 || !Float.isNaN(mInsertionMarkerTop) in build()
506 || !Float.isNaN(mInsertionMarkerBaseline) in build()
507 || !Float.isNaN(mInsertionMarkerBottom)) { in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMockMagnificationConnection.java103 mScale = Float.isNaN(scale) ? mScale : scale; in stubEnableWindowMagnification()
143 final float offsetX = Float.isNaN(centerX) ? 0 in computeMirrorWindowFrame()
145 final float offsetY = Float.isNaN(centerY) ? 0 in computeMirrorWindowFrame()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessSetting.java112 if (Float.isNaN(brightness)) { in setBrightness()
138 if (Float.isNaN(brightness)) { in setBrightnessNoNotify()

123456