/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamDoubleTest.java | 140 assertEquals(Double.MIN_NORMAL, results[4]); in testRead() 141 assertEquals(Double.MIN_VALUE, results[5]); in testRead() 142 assertEquals(Double.NEGATIVE_INFINITY, results[6]); in testRead() 143 assertEquals(Double.NaN, results[7]); in testRead() 144 assertEquals(Double.POSITIVE_INFINITY, results[8]); in testRead() 155 testReadCompat(Double.MIN_NORMAL); in testReadCompat() 156 testReadCompat(Double.MIN_VALUE); in testReadCompat() 157 testReadCompat(Double.NEGATIVE_INFINITY); in testReadCompat() 158 testReadCompat(Double.NaN); in testReadCompat() 159 testReadCompat(Double.POSITIVE_INFINITY); in testReadCompat() [all …]
|
/frameworks/base/packages/SystemUI/monet/src/com/android/systemui/monet/ |
D | ColorScheme.kt | 35 fun get(sourceColor: Cam): Double in <lambda>() 45 fun getHueRotation(sourceHue: Float, hueAndRotations: List<Pair<Int, Int>>): Double { in <lambda>() 63 override fun get(sourceColor: Cam): Double { in get() 68 internal class HueAdd(val amountDegrees: Double) : Hue { 69 override fun get(sourceColor: Cam): Double { in get() 74 internal class HueSubtract(val amountDegrees: Double) : Hue { 75 override fun get(sourceColor: Cam): Double { in get() 84 override fun get(sourceColor: Cam): Double { in get() 93 override fun get(sourceColor: Cam): Double { in get() 102 override fun get(sourceColor: Cam): Double { in get() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | SparseDoubleArrayTest.java | 47 final double[] values = {7, -12.4, 7, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, in testPutGet() 48 Double.NaN, in testPutGet() 83 final double[] values = {7, -12.4, 7, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, in testKeyValueAt() 84 Double.NaN, in testKeyValueAt() 93 final ArrayMap<Integer, Double> map = new ArrayMap<>(keys.length); in testKeyValueAt()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | PowerProfile.java | 299 static final HashMap<String, Double> sPowerItemMap = new HashMap<>(); 304 static final HashMap<String, Double[]> sPowerArrayMap = new HashMap<>(); 366 ArrayList<Double> array = new ArrayList<>(); in readPowerValuesFromXml() 380 sPowerArrayMap.put(arrayName, array.toArray(new Double[array.size()])); in readPowerValuesFromXml() 394 value = Double.valueOf(power); in readPowerValuesFromXml() 408 sPowerArrayMap.put(arrayName, array.toArray(new Double[array.size()])); in readPowerValuesFromXml() 456 final Double[] data = sPowerArrayMap.get(CPU_PER_CLUSTER_CORE_COUNT); in initCpuClusters() 533 while (!Double.isNaN( in initDisplays() 534 getAveragePowerForOrdinal(POWER_GROUP_DISPLAY_AMBIENT, mNumDisplays, Double.NaN)) in initDisplays() 535 || !Double.isNaN( in initDisplays() [all …]
|
/frameworks/base/core/java/android/gesture/ |
D | InstanceLearner.java | 48 TreeMap<String, Double> label2score = new TreeMap<String, Double>(); in classify() 62 weight = Double.MAX_VALUE; in classify() 66 Double score = label2score.get(sample.label); in classify()
|
/frameworks/base/location/java/android/location/ |
D | GpsMeasurement.java | 539 mPseudorangeInMeters = Double.NaN; in resetPseudorangeInMeters() 573 mPseudorangeUncertaintyInMeters = Double.NaN; in resetPseudorangeUncertaintyInMeters() 608 mCodePhaseInChips = Double.NaN; in resetCodePhaseInChips() 641 mCodePhaseUncertaintyInChips = Double.NaN; in resetCodePhaseUncertaintyInChips() 744 mCarrierPhase = Double.NaN; in resetCarrierPhase() 777 mCarrierPhaseUncertainty = Double.NaN; in resetCarrierPhaseUncertainty() 909 mDopplerShiftInHz = Double.NaN; in resetDopplerShiftInHz() 942 mDopplerShiftUncertaintyInHz = Double.NaN; in resetDopplerShiftUncertaintyInHz() 1005 mSnrInDb = Double.NaN; in resetSnrInDb() 1039 mElevationInDeg = Double.NaN; in resetElevationInDeg() [all …]
|
D | GnssReflectingPlane.java | 139 return Double.compare(this.mLatitudeDegrees, that.mLatitudeDegrees) == 0 in equals() 140 && Double.compare(this.mLongitudeDegrees, that.mLongitudeDegrees) == 0 in equals() 141 && Double.compare(this.mAltitudeMeters, that.mAltitudeMeters) == 0 in equals() 142 && Double.compare(this.mAzimuthDegrees, that.mAzimuthDegrees) == 0; in equals()
|
D | GpsClock.java | 226 mTimeUncertaintyInNs = Double.NaN; in resetTimeUncertaintyInNs() 300 mBiasInNs = Double.NaN; in resetBiasInNs() 332 mBiasUncertaintyInNs = Double.NaN; in resetBiasUncertaintyInNs() 366 mDriftInNsPerSec = Double.NaN; in resetDriftInNsPerSec() 398 mDriftUncertaintyInNsPerSec = Double.NaN; in resetDriftUncertaintyInNsPerSec()
|
D | GnssAntennaInfo.java | 186 return Double.compare(that.mOffsetXMm, mOffsetXMm) == 0 in equals() 187 && Double.compare(that.mOffsetXUncertaintyMm, mOffsetXUncertaintyMm) == 0 in equals() 188 && Double.compare(that.mOffsetYMm, mOffsetYMm) == 0 in equals() 189 && Double.compare(that.mOffsetYUncertaintyMm, mOffsetYUncertaintyMm) == 0 in equals() 190 && Double.compare(that.mOffsetZMm, mOffsetZMm) == 0 in equals() 191 && Double.compare(that.mOffsetZUncertaintyMm, mOffsetZUncertaintyMm) == 0; in equals() 576 return Double.compare(that.mCarrierFrequencyMHz, mCarrierFrequencyMHz) == 0 in equals()
|
D | CorrelationVector.java | 166 && Double.compare(mSamplingWidthMeters, c.getSamplingWidthMeters()) == 0 in equals() 167 && Double.compare(mSamplingStartMeters, c.getSamplingStartMeters()) == 0 in equals() 168 && Double.compare(mFrequencyOffsetMetersPerSecond, in equals()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/pidfparser/pidf/ |
D | Contact.java | 37 private Double mPriority; 53 public void setPriority(Double priority) { in setPriority() 58 public Double getPriority() { in getPriority() 97 mPriority = Double.parseDouble(priority); in parse()
|
/frameworks/base/telecomm/java/android/telecom/Logging/ |
D | TimedEvent.java | 30 public static <T> Map<T, Double> averageTimings(Collection<? extends TimedEvent<T>> events) { in averageTimings() 32 HashMap<T, Double> result = new HashMap<>(); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | TimedEvent.java | 30 public static <T> Map<T, Double> averageTimings(Collection<? extends TimedEvent<T>> events) { in averageTimings() 32 HashMap<T, Double> result = new HashMap<>(); in averageTimings() 44 for (Map.Entry<T, Double> entry : result.entrySet()) { in averageTimings()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ByteArrayHelpers.java | 97 return toByteArray(array, Double.SIZE); in toByteArray() 131 sizeInBits = Double.SIZE; in toByteArray() 167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE)) in toByteArray() 180 } else if (klass == Double.class) { in toByteArray() 181 byteBuffer.putDouble((Double)value); in toByteArray()
|
/frameworks/base/core/java/com/android/internal/power/ |
D | ModemPowerProfile.java | 377 mPowerConstants.put(key, Double.valueOf(value)); in setPowerConstant() 394 value = mPowerConstants.get(bestKey, Double.NaN); in getAverageBatteryDrainMa() 395 if (!Double.isNaN(value)) return value; in getAverageBatteryDrainMa() 403 value = mPowerConstants.get(bestKey, Double.NaN); in getAverageBatteryDrainMa() 404 if (!Double.isNaN(value)) return value; in getAverageBatteryDrainMa() 411 value = mPowerConstants.get(bestKey, Double.NaN); in getAverageBatteryDrainMa() 412 if (!Double.isNaN(value)) return value; in getAverageBatteryDrainMa() 418 return Double.NaN; in getAverageBatteryDrainMa()
|
/frameworks/base/core/java/android/util/ |
D | SparseDoubleArray.java | 105 mValues.put(key, Double.doubleToRawLongBits(value)); in put() 154 return Double.longBitsToDouble(mValues.valueAt(index)); in valueAt() 168 mValues.setValueAt(index, Double.doubleToRawLongBits(value)); in setValueAt()
|
/frameworks/libs/modules-utils/java/android/annotation/ |
D | FloatRange.java | 45 double from() default Double.NEGATIVE_INFINITY; in from() 48 double to() default Double.POSITIVE_INFINITY; in to()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderDicom.java | 475 double dzx = Double.parseDouble(s1ps[0]) - Double.parseDouble(s2ps[0]); in buildRSVolume() 476 double dzy = Double.parseDouble(s1ps[1]) - Double.parseDouble(s2ps[1]); in buildRSVolume() 477 double dzz = Double.parseDouble(s1ps[2]) - Double.parseDouble(s2ps[2]); in buildRSVolume() 599 double dzx = Double.parseDouble(s1ps[0]) - Double.parseDouble(s2ps[0]); in buildRSVolume2() 600 double dzy = Double.parseDouble(s1ps[1]) - Double.parseDouble(s2ps[1]); in buildRSVolume2() 601 double dzz = Double.parseDouble(s1ps[2]) - Double.parseDouble(s2ps[2]); in buildRSVolume2()
|
/frameworks/base/core/jni/hwbinder/ |
D | EphemeralStorage.cpp | 111 DEFINE_ALLOC_VECTOR_METHODS(Double,jdouble,Double) in DEFINE_ALLOC_VECTOR_METHODS() 157 DEFINE_RELEASE_ARRAY_CASE(Double,jdouble,Double)
|
/frameworks/base/core/java/android/hardware/camera2/marshal/ |
D | MarshalHelpers.java | 39 public static final int SIZEOF_DOUBLE = Double.SIZE / Byte.SIZE; 164 } else if (klass == double.class || klass == Double.class) { in isPrimitiveClass() 197 return (Class<T>)Double.class; in wrapClassIfPrimitive()
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | XmpDepthDecode.java | 60 mFar = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Far")); in XmpDepthDecode() 61 mNear = Double.parseDouble(meta.getPropertyString(XMP_DEPTHMAP, "GDepth:Near")); in XmpDepthDecode() 78 … mBlurAtInfinity = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:BlurAtInfinity")); in XmpDepthDecode() 79 … mFocalDistance = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalDistance")); in XmpDepthDecode() 80 … mDepthOfFiled = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:DepthOfField")); in XmpDepthDecode() 81 … mFocalPointX = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalPointX")); in XmpDepthDecode() 82 … mFocalPointY = Double.parseDouble(meta.getPropertyString(XMP_FOCUS, "GFocus:FocalPointY")); in XmpDepthDecode()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TypedProperties.java | 306 value = Double.parseDouble(st.sval); in parseValue() 315 if (absValue != 0.0 && !Double.isInfinite(value) && !Double.isNaN(value)) { in parseValue() 323 return new Double(value); in parseValue() 559 if (value instanceof Double) { in getDouble() 560 return ((Double)value).doubleValue(); in getDouble()
|
/frameworks/base/core/java/android/content/ |
D | ContentValues.java | 188 public void put(String key, Double value) { in put() 237 } else if (value instanceof Double) { in putObject() 238 put(key, (Double) value); in putObject() 421 public Double getAsDouble(String key) { in getAsDouble() 428 return Double.valueOf(value.toString()); in getAsDouble() 602 } else if (value instanceof Double) { in isSupportedValue()
|
/frameworks/base/core/java/android/os/ |
D | HwBlob.java | 435 public static Double[] wrapArray(@NonNull double[] array) { in wrapArray() 437 Double[] wrappedArray = new Double[n]; in wrapArray()
|
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryablePrimitive.java | 90 } else if (value instanceof Double) { in marshal() 92 final double val = (Double) value; in marshal() 175 } else if (klass == double.class || klass == Double.class) { in isTypeMappingSupported()
|