Home
last modified time | relevance | path

Searched refs:Double (Results 1 – 25 of 177) sorted by relevance

12345678

/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamDoubleTest.java140 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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DDoubleArrayList.java45 extends AbstractProtobufList<Double>
111 long bits = Double.doubleToLongBits(array[i]); in hashCode()
126 public Double get(int index) { in get()
142 public Double set(int index, Double element) { in set()
156 public void add(int index, Double element) { in add()
199 public boolean addAll(Collection<? extends Double> collection) { in addAll()
248 public Double remove(int index) { in remove()
/frameworks/base/services/core/java/com/android/server/location/
DGeofenceState.java49 mDistanceToCenter = Double.MAX_VALUE; in GeofenceState()
92 if (Double.compare(mDistanceToCenter, Double.MAX_VALUE) == 0) { in getDistanceToBoundary()
93 return Double.MAX_VALUE; in getDistanceToBoundary()
/frameworks/base/core/java/android/gesture/
DInstanceLearner.java48 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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DDoubleArrayListTest.java79 Iterator<Double> iterator = list.iterator(); in testModificationWithIteration()
226 list.add(Double.valueOf(5 + i)); in testAdd()
269 assertFalse(list.addAll(Collections.<Double>emptyList())); in testAddAll()
278 assertTrue(list.remove(Double.valueOf(3))); in testRemove()
281 assertFalse(list.remove(Double.valueOf(3))); in testRemove()
321 list.addAll(Collections.<Double>emptyList()); in assertImmutable()
363 list.addAll(0, Collections.<Double>emptyList()); in assertImmutable()
398 list.removeAll(Collections.<Double>emptyList()); in assertImmutable()
419 list.retainAll(Collections.<Double>emptyList()); in assertImmutable()
/frameworks/base/location/java/android/location/
DGpsMeasurement.java535 mPseudorangeInMeters = Double.NaN; in resetPseudorangeInMeters()
569 mPseudorangeUncertaintyInMeters = Double.NaN; in resetPseudorangeUncertaintyInMeters()
604 mCodePhaseInChips = Double.NaN; in resetCodePhaseInChips()
637 mCodePhaseUncertaintyInChips = Double.NaN; in resetCodePhaseUncertaintyInChips()
740 mCarrierPhase = Double.NaN; in resetCarrierPhase()
773 mCarrierPhaseUncertainty = Double.NaN; in resetCarrierPhaseUncertainty()
905 mDopplerShiftInHz = Double.NaN; in resetDopplerShiftInHz()
938 mDopplerShiftUncertaintyInHz = Double.NaN; in resetDopplerShiftUncertaintyInHz()
1001 mSnrInDb = Double.NaN; in resetSnrInDb()
1035 mElevationInDeg = Double.NaN; in resetElevationInDeg()
[all …]
DGpsClock.java222 mTimeUncertaintyInNs = Double.NaN; in resetTimeUncertaintyInNs()
296 mBiasInNs = Double.NaN; in resetBiasInNs()
328 mBiasUncertaintyInNs = Double.NaN; in resetBiasUncertaintyInNs()
362 mDriftInNsPerSec = Double.NaN; in resetDriftInNsPerSec()
394 mDriftUncertaintyInNsPerSec = Double.NaN; in resetDriftUncertaintyInNsPerSec()
DGnssClock.java199 mTimeUncertaintyNanos = Double.NaN; in resetTimeUncertaintyNanos()
289 mBiasNanos = Double.NaN; in resetBiasNanos()
330 mBiasUncertaintyNanos = Double.NaN; in resetBiasUncertaintyNanos()
374 mDriftNanosPerSecond = Double.NaN; in resetDriftNanosPerSecond()
414 mDriftUncertaintyNanosPerSecond = Double.NaN; in resetDriftUncertaintyNanosPerSecond()
498 mElapsedRealtimeUncertaintyNanos = Double.NaN; in resetElapsedRealtimeUncertaintyNanos()
DGnssMeasurement.java1118 mCarrierPhase = Double.NaN; in resetCarrierPhase()
1173 mCarrierPhaseUncertainty = Double.NaN; in resetCarrierPhaseUncertainty()
1244 mSnrInDb = Double.NaN; in resetSnrInDb()
1292 mAutomaticGainControlLevelInDb = Double.NaN; in resetAutomaticGainControlLevel()
1525 setCn0DbHz(Double.MIN_VALUE); in initialize()
1526 setPseudorangeRateMetersPerSecond(Double.MIN_VALUE); in initialize()
1527 setPseudorangeRateUncertaintyMetersPerSecond(Double.MIN_VALUE); in initialize()
1529 setAccumulatedDeltaRangeMeters(Double.MIN_VALUE); in initialize()
1530 setAccumulatedDeltaRangeUncertaintyMeters(Double.MIN_VALUE); in initialize()
/frameworks/base/telecomm/java/android/telecom/Logging/
DTimedEvent.java30 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/
DTimedEvent.java30 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/
DByteArrayHelpers.java97 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/os/
DPowerProfile.java226 static final HashMap<String, Double> sPowerItemMap = new HashMap<>();
231 static final HashMap<String, Double[]> sPowerArrayMap = new HashMap<>();
267 ArrayList<Double> array = new ArrayList<>(); in readPowerValuesFromXml()
281 sPowerArrayMap.put(arrayName, array.toArray(new Double[array.size()])); in readPowerValuesFromXml()
295 value = Double.valueOf(power); in readPowerValuesFromXml()
307 sPowerArrayMap.put(arrayName, array.toArray(new Double[array.size()])); in readPowerValuesFromXml()
355 final Double[] data = sPowerArrayMap.get(CPU_PER_CLUSTER_CORE_COUNT); in initCpuClusters()
482 final Double[] values = sPowerArrayMap.get(type); in getAveragePower()
529 for (Double speed : sPowerArrayMap.get(mCpuClusters[cluster].freqKey)) { in writeToProto()
532 for (Double corePower : sPowerArrayMap.get(mCpuClusters[cluster].corePowerKey)) { in writeToProto()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/
DMarshalHelpers.java39 public static final int SIZEOF_DOUBLE = Double.SIZE / Byte.SIZE;
130 } else if (klass == double.class || klass == Double.class) { in isPrimitiveClass()
163 return (Class<T>)Double.class; in wrapClassIfPrimitive()
/frameworks/base/core/java/android/annotation/
DFloatRange.java45 double from() default Double.NEGATIVE_INFINITY; in from()
48 double to() default Double.POSITIVE_INFINITY; in to()
/frameworks/base/core/jni/hwbinder/
DEphemeralStorage.cpp111 DEFINE_ALLOC_VECTOR_METHODS(Double,jdouble,Double) in DEFINE_ALLOC_VECTOR_METHODS()
157 DEFINE_RELEASE_ARRAY_CASE(Double,jdouble,Double)
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java475 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/rs/tests/java_api/Refocus/src/com/android/rs/test/
DXmpDepthDecode.java60 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/native/services/surfaceflinger/sysprop/api/
Dsystem-current.txt7 method public static java.util.List<java.lang.Double> display_primary_blue();
8 method public static java.util.List<java.lang.Double> display_primary_green();
9 method public static java.util.List<java.lang.Double> display_primary_red();
10 method public static java.util.List<java.lang.Double> display_primary_white();
/frameworks/base/core/java/com/android/internal/util/
DTypedProperties.java306 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/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceTest.java76 final Map<String, Double> metrics = in testGraphicBufferMetrics()
78 for (Map.Entry<String, Double> metric : metrics.entrySet()) { in testGraphicBufferMetrics()
/frameworks/base/core/java/android/os/
DHwBlob.java415 public static Double[] wrapArray(@NonNull double[] array) { in wrapArray()
417 Double[] wrappedArray = new Double[n]; in wrapArray()
DHwParcel.java272 public final void writeDoubleVector(ArrayList<Double> val) { in writeDoubleVector()
511 public final ArrayList<Double> readDoubleVector() { in readDoubleVector()
512 Double[] array = HwBlob.wrapArray(readDoubleVectorAsArray()); in readDoubleVector()
514 return new ArrayList<Double>(Arrays.asList(array)); in readDoubleVector()
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryablePrimitive.java90 } 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()
/frameworks/base/core/tests/coretests/src/android/database/
DCursorWindowTest.java98 assertTrue(window.putString(Double.toString(42.0), 0, 4)); in doTestValues()
99 assertEquals(Double.toString(42.0), window.getString(0, 4)); in doTestValues()

12345678