/frameworks/base/core/java/android/uwb/ |
D | DistanceMeasurement.java | 152 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/ |
D | Rational.java | 166 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()
|
D | Half.java | 298 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()
|
D | Spline.java | 186 if (Float.isNaN(x)) { in interpolate() 255 if (Float.isNaN(x)) { in interpolate()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | DisplayWhiteBalanceThrottler.java | 149 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/ |
D | CursorAnchorInfo.java | 179 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/ |
D | BrightnessSynchronizer.java | 101 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/ |
D | RateEstimatorTest.java | 54 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/ |
D | MultiFingerMultiTap.java | 227 if (Float.isNaN(p.x) && Float.isNaN(p.y)) { in initBaseLocation() 250 if (Float.isNaN(p.x) && Float.isNaN(p.y)) { in findNearestPoint()
|
D | MultiTap.java | 66 if (Float.isNaN(mBaseX) && Float.isNaN(mBaseY)) { in onDown()
|
D | SecondFingerMultiTap.java | 74 if (Float.isNaN(mBaseX) && Float.isNaN(mBaseY)) { in onPointerDown()
|
D | MultiFingerSwipe.java | 142 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/ |
D | WindowMagnificationAnimationController.java | 140 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()
|
D | MagnificationGestureDetector.java | 193 return !Float.isNaN(location.x) && !Float.isNaN(location.y); in isLocationValid()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MockWindowMagnificationConnection.java | 94 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/ |
D | BrightnessMappingStrategy.java | 137 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()
|
D | DisplayPowerController.java | 1109 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/ |
D | ScrimController.java | 19 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()
|
D | PanelBar.java | 19 import static java.lang.Float.isNaN; 173 if (isNaN(frac)) { in panelExpansionChanged()
|
/frameworks/libs/modules-utils/java/com/android/internal/util/ |
D | Preconditions.java | 437 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/ |
D | Preconditions.java | 289 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/ |
D | BrightnessConfiguration.java | 245 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()
|
D | BrightnessCorrection.java | 216 if (Float.isNaN(scale) || Float.isNaN(translate)) { in ScaleAndTranslateLog()
|
/frameworks/base/core/java/android/os/ |
D | VibratorInfo.java | 539 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/ |
D | MotionEventTest.java | 95 assertTrue(Float.isNaN(event.getXCursorPosition())); in testCalculatesCursorPositionForTouchscreenEvents() 96 assertTrue(Float.isNaN(event.getYCursorPosition())); in testCalculatesCursorPositionForTouchscreenEvents()
|