Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/uwb/
DDistanceMeasurement.java152 if (Double.isNaN(meters)) { in setMeters()
167 if (Double.isNaN(errorMeters) || errorMeters < 0.0) { in setErrorMeters()
199 if (Double.isNaN(mMeters)) { in build()
203 if (Double.isNaN(mErrorMeters)) { in build()
207 if (Double.isNaN(mConfidenceLevel)) { in build()
/frameworks/base/core/java/android/util/
DRational.java166 public boolean isNaN() { in isNaN() method in Rational
268 if (isNaN()) { in toString()
394 } else if (isNaN()) { in intValue()
428 } else if (isNaN()) { in longValue()
477 } else if (isNaN()) { // NaN is greater than the other non-NaN value in compareTo()
479 } 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()
DSpline.java186 if (Float.isNaN(x)) { in interpolate()
255 if (Float.isNaN(x)) { in interpolate()
/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/core/java/android/view/inputmethod/
DCursorAnchorInfo.java179 if (Float.isNaN(a) && Float.isNaN(b)) { in areSameFloatImpl()
384 || !Float.isNaN(mInsertionMarkerHorizontal) in build()
385 || !Float.isNaN(mInsertionMarkerTop) in build()
386 || !Float.isNaN(mInsertionMarkerBaseline) in build()
387 || !Float.isNaN(mInsertionMarkerBottom)) { in build()
/frameworks/base/core/java/com/android/internal/display/
DBrightnessSynchronizer.java101 if (!Float.isNaN(currentFloatBrightness)) { in startSynchronizing()
146 } else if (Float.isNaN(brightnessFloat)) { in brightnessFloatToIntRange()
247 } else if (Float.isNaN(a) && Float.isNaN(b)) { in floatEquals()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRateEstimatorTest.java54 assertFalse(Float.isNaN(rate)); in testRunningTimeBackwardDoesntExplodeGet()
69 assertFalse(Float.isNaN(rate)); in testInstantaneousEventsDontExplodeGet()
161 assertFalse(Float.isNaN(rate)); in assertUpdateTime()
/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()
DMultiTap.java66 if (Float.isNaN(mBaseX) && Float.isNaN(mBaseY)) { in onDown()
DSecondFingerMultiTap.java74 if (Float.isNaN(mBaseX) && Float.isNaN(mBaseY)) { in onPointerDown()
DMultiFingerSwipe.java142 if (Float.isNaN(mBase[pointerIndex].x) && Float.isNaN(mBase[pointerIndex].y)) { in onDown()
188 if (Float.isNaN(mBase[pointerIndex].x) && Float.isNaN(mBase[pointerIndex].y)) { in onPointerDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationAnimationController.java140 mEndSpec.set(Float.isNaN(scale) ? mContext.getResources().getInteger( in setupEnableAnimationSpecs()
144 mEndSpec.set(Float.isNaN(scale) ? currentScale : scale, in setupEnableAnimationSpecs()
145 Float.isNaN(centerX) ? currentCenterX : centerX, in setupEnableAnimationSpecs()
146 Float.isNaN(centerY) ? currentCenterY : centerY); in setupEnableAnimationSpecs()
DMagnificationGestureDetector.java193 return !Float.isNaN(location.x) && !Float.isNaN(location.y); in isLocationValid()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMockWindowMagnificationConnection.java94 mScale = Float.isNaN(scale) ? mScale : scale; in stubEnableWindowMagnification()
134 final float offsetX = Float.isNaN(centerX) ? 0 in computeMirrorWindowFrame()
136 final float offsetY = Float.isNaN(centerY) ? 0 in computeMirrorWindowFrame()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessMappingStrategy.java137 if (prevX < 0 || prevY < 0 || Float.isNaN(prevX) || Float.isNaN(prevY)) { in isValidMapping()
144 if (Float.isNaN(x[i]) || Float.isNaN(y[i])) { in isValidMapping()
163 if (prevX < 0 || prevY < 0 || Float.isNaN(prevX)) { in isValidMapping()
170 if (Float.isNaN(x[i])) { in isValidMapping()
321 if (!Float.isNaN(config.getShortTermModelLowerLuxMultiplier())) { in shouldResetShortTermModel()
324 if (!Float.isNaN(config.getShortTermModelUpperLuxMultiplier())) { in shouldResetShortTermModel()
DDisplayPowerController.java1109 if ((Float.isNaN(brightnessState)) in updatePowerState()
1122 && Float.isNaN(brightnessState) in updatePowerState()
1144 if (!Float.isNaN(mTemporaryAutoBrightnessAdjustment)) { in updatePowerState()
1168 boolean userInitiatedChange = (Float.isNaN(brightnessState)) in updatePowerState()
1189 if (Float.isNaN(brightnessState)) { in updatePowerState()
1227 if ((Float.isNaN(brightnessState)) in updatePowerState()
1234 if (Float.isNaN(brightnessState)) { in updatePowerState()
1687 if (Float.isNaN(value)) { in clampScreenBrightness()
2004 return Float.isNaN(adj) ? 0.0f : clampAutoBrightnessAdjustment(adj); in getAutoBrightnessAdjustmentSetting()
2009 if (Float.isNaN(brightness)) { in getScreenBrightnessSetting()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java19 import static java.lang.Float.isNaN;
371 if (isNaN(mBehindAlpha) || isNaN(mInFrontAlpha) || isNaN(mNotificationsAlpha)) { in transitionTo()
504 if (isNaN(fraction)) { in setPanelExpansion()
572 if (isNaN(expansionFraction)) { in setQsPosition()
698 if (isNaN(mBehindAlpha) || isNaN(mInFrontAlpha) || isNaN(mNotificationsAlpha)) { in applyStateToAlpha()
803 if (isNaN(mBehindAlpha)) { in setWakeLockScreenSensorActive()
1297 if (isNaN(newBehindAlpha)) { in setHasBackdrop()
DPanelBar.java19 import static java.lang.Float.isNaN;
173 if (isNaN(frac)) { in panelExpansionChanged()
/frameworks/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java437 if (Float.isNaN(value)) { in checkArgumentFinite()
463 if (Float.isNaN(value)) { in checkArgumentInRange()
495 if (Double.isNaN(value)) { in checkArgumentInRange()
722 if (Float.isNaN(v)) { in checkArrayElementsInRange()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java289 if (Float.isNaN(value)) { in checkArgumentFinite()
315 if (Float.isNaN(value)) { in checkArgumentInRange()
483 if (Float.isNaN(v)) { in checkArrayElementsInRange()
/frameworks/base/core/java/android/hardware/display/
DBrightnessConfiguration.java245 if (!Float.isNaN(mShortTermModelLowerLuxMultiplier)) { in toString()
248 if (!Float.isNaN(mShortTermModelLowerLuxMultiplier)) { in toString()
294 if (Float.isNaN(one) && Float.isNaN(two)) { in checkFloatEquals()
386 if (!Float.isNaN(mShortTermModelLowerLuxMultiplier)) { in saveToXml()
390 if (!Float.isNaN(mShortTermModelUpperLuxMultiplier)) { in saveToXml()
DBrightnessCorrection.java216 if (Float.isNaN(scale) || Float.isNaN(translate)) { in ScaleAndTranslateLog()
/frameworks/base/core/java/android/os/
DVibratorInfo.java539 if (Float.isNaN(resonantFrequencyHz) || Float.isNaN(minFrequencyHz) in FrequencyMapping()
540 || Float.isNaN(frequencyResolutionHz) || Float.isNaN(suggestedSafeRangeHz) in FrequencyMapping()
597 if (Float.isNaN(frequencyHz)) { in getMaxAmplitude()
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java95 assertTrue(Float.isNaN(event.getXCursorPosition())); in testCalculatesCursorPositionForTouchscreenEvents()
96 assertTrue(Float.isNaN(event.getYCursorPosition())); in testCalculatesCursorPositionForTouchscreenEvents()

1234