Home
last modified time | relevance | path

Searched refs:getDouble (Results 1 – 25 of 161) sorted by relevance

1234567

/third_party/icu/icu4c/source/test/intltest/
Dnumfmtdatadriventest.cpp348 … UnicodeString("Parse succeeded: ") + result.getDouble() + ", but was expected to fail."); in isParsePass()
352 if (!uprv_isNaN(result.getDouble())) { in isParsePass()
353 … appendErrorMessage.append(UnicodeString("Expected NaN, but got: ") + result.getDouble()); in isParsePass()
358 if (!uprv_isInfinite(result.getDouble()) || result.getDouble() < 0) { in isParsePass()
359 … appendErrorMessage.append(UnicodeString("Expected Inf, but got: ") + result.getDouble()); in isParsePass()
364 if (!uprv_isInfinite(result.getDouble()) || result.getDouble() > 0) { in isParsePass()
365 … appendErrorMessage.append(UnicodeString("Expected -Inf, but got: ") + result.getDouble()); in isParsePass()
370 if (!std::signbit(result.getDouble()) || result.getDouble() != 0) { in isParsePass()
371 … appendErrorMessage.append(UnicodeString("Expected -0.0, but got: ") + result.getDouble()); in isParsePass()
Dnmfmapts.cpp144 logln((UnicodeString) "" + (int32_t) fD.getDouble() + " formatted to " + res5); in testAPI()
164 if(result1.getType() != Formattable::kDouble && result1.getDouble() != d) { in testAPI()
167 logln(text + " parsed into " + (int32_t) result1.getDouble()); in testAPI()
170 if(result2.getType() != Formattable::kDouble && result2.getDouble() != d) { in testAPI()
173 logln(text + " parsed into " + (int32_t) result2.getDouble()); in testAPI()
180 if(result3.getType() != Formattable::kDouble && result3.getDouble() != d) { in testAPI()
183 logln(text + " parsed into " + (int32_t) result3.getDouble()); in testAPI()
Dnmfmtrt.cpp243 s = fmt->format(value.getDouble(), s); in test()
263 s2 = fmt->format(n.getDouble(), s2); in test()
300 … escape(s) + " P> " + (n.getType() == Formattable::kDouble ? n.getDouble() : (double)n.getLong()) in test()
312 aa = a.getDouble(); in proportionalError()
317 bb = b.getDouble(); in proportionalError()
Dnumrgts.cpp429 ? result.getDouble() : result.getLong()); in assignFloatValue()
610 dstr = df->format(d.getDouble(), dstr, fp); in Test4068693()
612 errln(UnicodeString("Result -> ") + d.getDouble()); in Test4068693()
761 if (d2.getDouble() != d1) in Test4095713()
762 errln(UnicodeString("Bug 4095713 test failed, new double value : ") + d2.getDouble()); in Test4095713()
1438 temp = df->format(num.getDouble(), temp, pos); in Test4108738()
1447 temp = df->format(num.getDouble(), temp, pos); in Test4108738()
1970 double val = num.getDouble(); in Test4145457()
1980 double val2 = num.getDouble(); in Test4145457()
2161 double e = n.getDouble();
[all …]
Dnumbertest_parse.cpp149 cas.expectedResultDouble, resultObject.getDouble(status)); in testBasic()
164 resultObject.getDouble(status)); in testBasic()
181 cas.expectedResultDouble, resultObject.getDouble(status)); in testBasic()
376 assertEquals("Greedy Parse, expected double", -5.0, resultObject.getDouble(status)); in test20360_BidiOverflow()
409 assertEquals("Unlimited recursion, expected double", -5.0, resultObject.getDouble(status)); in testInfiniteRecursion()
Dmsfmrgts.cpp226 case Formattable::kDouble: fmt->format(obj.getDouble(), temp); break; in Test4031438()
241 case Formattable::kDouble: fmt->format(obj1.getDouble(), temp1); break; in Test4031438()
312 if (pos.getErrorIndex() != -1 && obj.getDouble() == -1.0) in Test4052223()
317 if (pos.getErrorIndex() != -1 && obj.getDouble() == 0.0) in Test4052223()
322 if (pos.getErrorIndex() == -1 && ! uprv_isNaN(obj.getDouble())) in Test4052223()
727 …String)" " + (objs[0].getType() == Formattable::kLong ? objs[0].getLong() : objs[0].getDouble())); in Test4118592()
777 if (newobjs[0].getDouble() != 3.1) in Test4118594()
778 errln( UnicodeString("newobjs[0] = ") + newobjs[0].getDouble()); in Test4118594()
Dunits_test.cpp663 assertEqualsNear(msg.data(), testCase.expected[i].getNumber().getDouble(status), in testComplexUnitsConverter()
664 measures[i]->getNumber().getDouble(status), testCase.accuracy); in testComplexUnitsConverter()
666 assertEquals(msg.data(), testCase.expected[i].getNumber().getDouble(status), in testComplexUnitsConverter()
667 measures[i]->getNumber().getDouble(status)); in testComplexUnitsConverter()
764 assertEqualsNear(testCase.msg, testCase.expected[i].getNumber().getDouble(), in testComplexUnitsConverterSorting()
765 actual[i]->getNumber().getDouble(), testCase.accuracy); in testComplexUnitsConverterSorting()
868 testMessage.append(std::to_string(actual[i]->getNumber().getDouble(status)), status); in checkOutput()
883 actual[i]->getNumber().getDouble(status), permittedDiff); in checkOutput()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDoubleArrayListTest.java123 assertEquals(1D, TERTIARY_LIST.getDouble(0), 0.0); in testGetDouble()
124 assertEquals(2D, TERTIARY_LIST.getDouble(1), 0.0); in testGetDouble()
125 assertEquals(3D, TERTIARY_LIST.getDouble(2), 0.0); in testGetDouble()
227 assertEquals(3D, list.getDouble(0), 0.0); in testSet()
230 assertEquals(0D, list.getDouble(1), 0.0); in testSet()
252 assertEquals(0D, list.getDouble(0), 0.0); in testSetDouble()
255 assertEquals(0D, list.getDouble(1), 0.0); in testSetDouble()
319 assertEquals(1D, list.getDouble(0), 0.0); in testAddAll()
/third_party/protobuf/objectivec/Tests/
DGPBDictionaryTests+Int32.m2255 XCTAssertFalse([dict getDouble:NULL forKey:11]);
2269 XCTAssertTrue([dict getDouble:NULL forKey:11]);
2270 XCTAssertTrue([dict getDouble:&value forKey:11]);
2272 XCTAssertFalse([dict getDouble:NULL forKey:12]);
2291 XCTAssertTrue([dict getDouble:NULL forKey:11]);
2292 XCTAssertTrue([dict getDouble:&value forKey:11]);
2294 XCTAssertTrue([dict getDouble:NULL forKey:12]);
2295 XCTAssertTrue([dict getDouble:&value forKey:12]);
2297 XCTAssertTrue([dict getDouble:NULL forKey:13]);
2298 XCTAssertTrue([dict getDouble:&value forKey:13]);
[all …]
DGPBDictionaryTests+String.m2255 XCTAssertFalse([dict getDouble:NULL forKey:@"foo"]);
2269 XCTAssertTrue([dict getDouble:NULL forKey:@"foo"]);
2270 XCTAssertTrue([dict getDouble:&value forKey:@"foo"]);
2272 XCTAssertFalse([dict getDouble:NULL forKey:@"bar"]);
2291 XCTAssertTrue([dict getDouble:NULL forKey:@"foo"]);
2292 XCTAssertTrue([dict getDouble:&value forKey:@"foo"]);
2294 XCTAssertTrue([dict getDouble:NULL forKey:@"bar"]);
2295 XCTAssertTrue([dict getDouble:&value forKey:@"bar"]);
2297 XCTAssertTrue([dict getDouble:NULL forKey:@"baz"]);
2298 XCTAssertTrue([dict getDouble:&value forKey:@"baz"]);
[all …]
DGPBDictionaryTests+UInt64.m2255 XCTAssertFalse([dict getDouble:NULL forKey:31ULL]);
2269 XCTAssertTrue([dict getDouble:NULL forKey:31ULL]);
2270 XCTAssertTrue([dict getDouble:&value forKey:31ULL]);
2272 XCTAssertFalse([dict getDouble:NULL forKey:32ULL]);
2291 XCTAssertTrue([dict getDouble:NULL forKey:31ULL]);
2292 XCTAssertTrue([dict getDouble:&value forKey:31ULL]);
2294 XCTAssertTrue([dict getDouble:NULL forKey:32ULL]);
2295 XCTAssertTrue([dict getDouble:&value forKey:32ULL]);
2297 XCTAssertTrue([dict getDouble:NULL forKey:33ULL]);
2298 XCTAssertTrue([dict getDouble:&value forKey:33ULL]);
[all …]
DGPBDictionaryTests+UInt32.m2255 XCTAssertFalse([dict getDouble:NULL forKey:1U]);
2269 XCTAssertTrue([dict getDouble:NULL forKey:1U]);
2270 XCTAssertTrue([dict getDouble:&value forKey:1U]);
2272 XCTAssertFalse([dict getDouble:NULL forKey:2U]);
2291 XCTAssertTrue([dict getDouble:NULL forKey:1U]);
2292 XCTAssertTrue([dict getDouble:&value forKey:1U]);
2294 XCTAssertTrue([dict getDouble:NULL forKey:2U]);
2295 XCTAssertTrue([dict getDouble:&value forKey:2U]);
2297 XCTAssertTrue([dict getDouble:NULL forKey:3U]);
2298 XCTAssertTrue([dict getDouble:&value forKey:3U]);
[all …]
DGPBDictionaryTests+Int64.m2255 XCTAssertFalse([dict getDouble:NULL forKey:21LL]);
2269 XCTAssertTrue([dict getDouble:NULL forKey:21LL]);
2270 XCTAssertTrue([dict getDouble:&value forKey:21LL]);
2272 XCTAssertFalse([dict getDouble:NULL forKey:22LL]);
2291 XCTAssertTrue([dict getDouble:NULL forKey:21LL]);
2292 XCTAssertTrue([dict getDouble:&value forKey:21LL]);
2294 XCTAssertTrue([dict getDouble:NULL forKey:22LL]);
2295 XCTAssertTrue([dict getDouble:&value forKey:22LL]);
2297 XCTAssertTrue([dict getDouble:NULL forKey:23LL]);
2298 XCTAssertTrue([dict getDouble:&value forKey:23LL]);
[all …]
DGPBDictionaryTests+Bool.m1900 XCTAssertFalse([dict getDouble:NULL forKey:YES]);
1914 XCTAssertTrue([dict getDouble:NULL forKey:YES]);
1915 XCTAssertTrue([dict getDouble:&value forKey:YES]);
1917 XCTAssertFalse([dict getDouble:NULL forKey:NO]);
1936 XCTAssertTrue([dict getDouble:NULL forKey:YES]);
1937 XCTAssertTrue([dict getDouble:&value forKey:YES]);
1939 XCTAssertTrue([dict getDouble:NULL forKey:NO]);
1940 XCTAssertTrue([dict getDouble:&value forKey:NO]);
2091 XCTAssertTrue([dict getDouble:NULL forKey:YES]);
2092 XCTAssertTrue([dict getDouble:&value forKey:YES]);
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeRandom.hpp45 double getDouble (void) { return deRandom_getDouble(&m_rnd); } in getDouble() function in de::Random
49 double getDouble (double min, double max);
87 inline double Random::getDouble (double min, double max) in getDouble() function in de::Random
90 return min + (max-min)*getDouble(); in getDouble()
/third_party/flatbuffers/tests/MyGame/
DMonsterExtra.java19 public double d0() { int o = __offset(4); return o != 0 ? bb.getDouble(o + bb_pos) : Double.NaN; } in d0()
21 public double d1() { int o = __offset(6); return o != 0 ? bb.getDouble(o + bb_pos) : Double.NaN; } in d1()
23 …public double d2() { int o = __offset(8); return o != 0 ? bb.getDouble(o + bb_pos) : Double.POSITI… in d2()
25 …public double d3() { int o = __offset(10); return o != 0 ? bb.getDouble(o + bb_pos) : Double.NEGAT… in d3()
35 …public double dvec(int j) { int o = __offset(20); return o != 0 ? bb.getDouble(__vector(o) + j * 8… in dvec()
DMonsterExtra.kt23 return if(o != 0) bb.getDouble(o + bb_pos) else Double.NaN
37 return if(o != 0) bb.getDouble(o + bb_pos) else Double.NaN
51 return if(o != 0) bb.getDouble(o + bb_pos) else Double.POSITIVE_INFINITY
65 return if(o != 0) bb.getDouble(o + bb_pos) else Double.NEGATIVE_INFINITY
135 bb.getDouble(__vector(o) + j * 8) in dvec()
/third_party/skia/third_party/externals/icu/source/i18n/
Dmeasfmt.cpp321 if (hms[0].getDouble() < 0.0) { in toHMS()
331 if (hms[1].getDouble() < 0.0) { in toHMS()
341 if (hms[2].getDouble() < 0.0) { in toHMS()
512 result.quantity.setToDouble(measure.getNumber().getDouble(status)); in formatMeasurePerUnit()
712 result.quantity.setToDouble(amtNumber.getDouble(status)); in formatMeasure()
735 double hours = hms[0].getDouble(status); in formatNumeric()
736 double minutes = hms[1].getDouble(status); in formatNumeric()
737 double seconds = hms[2].getDouble(status); in formatNumeric()
/third_party/icu/icu4c/source/i18n/
Dmeasfmt.cpp321 if (hms[0].getDouble() < 0.0) { in toHMS()
331 if (hms[1].getDouble() < 0.0) { in toHMS()
341 if (hms[2].getDouble() < 0.0) { in toHMS()
512 result.quantity.setToDouble(measure.getNumber().getDouble(status)); in formatMeasurePerUnit()
712 result.quantity.setToDouble(amtNumber.getDouble(status)); in formatMeasure()
735 double hours = hms[0].getDouble(status); in formatNumeric()
736 double minutes = hms[1].getDouble(status); in formatNumeric()
737 double seconds = hms[2].getDouble(status); in formatNumeric()
/third_party/node/deps/icu-small/source/i18n/
Dmeasfmt.cpp321 if (hms[0].getDouble() < 0.0) { in toHMS()
331 if (hms[1].getDouble() < 0.0) { in toHMS()
341 if (hms[2].getDouble() < 0.0) { in toHMS()
512 result.quantity.setToDouble(measure.getNumber().getDouble(status)); in formatMeasurePerUnit()
712 result.quantity.setToDouble(amtNumber.getDouble(status)); in formatMeasure()
735 double hours = hms[0].getDouble(status); in formatNumeric()
736 double minutes = hms[1].getDouble(status); in formatNumeric()
737 double seconds = hms[2].getDouble(status); in formatNumeric()
/third_party/flutter/engine/flutter/testing/dart/
Dplugin_utilities_test.dart14 double getDouble() => 1.0;
41 expect(PluginUtilities.getCallbackHandle(foo.getDouble), isNull);
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUnsafeUtil.java160 static double getDouble(Object target, long offset) { in getDouble() method in UnsafeUtil
161 return MEMORY_ACCESSOR.getDouble(target, offset); in getDouble()
222 static double getDouble(double[] target, long index) { in getDouble() method in UnsafeUtil
223 return MEMORY_ACCESSOR.getDouble( in getDouble()
577 public abstract double getDouble(Object target, long offset); in getDouble() method in UnsafeUtil.MemoryAccessor
683 public double getDouble(Object target, long offset) { in getDouble() method in UnsafeUtil.JvmMemoryAccessor
684 return unsafe.getDouble(target, offset); in getDouble()
791 public double getDouble(Object target, long offset) { in getDouble() method in UnsafeUtil.Android64MemoryAccessor
911 public double getDouble(Object target, long offset) { in getDouble() method in UnsafeUtil.Android32MemoryAccessor
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/jsMain/kotlin/com/google/flatbuffers/kotlin/
DByteArray.kt31 public actual inline fun ByteArray.getDouble(index: Int): Double = ByteArrayOps.getDouble(this, ind… method
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/
DByteArray.kt32 public actual inline fun ByteArray.getDouble(index: Int): Double = ByteArrayOps.getDouble(this, ind… method
/third_party/flatbuffers/java/com/google/flatbuffers/
DByteBufferReadWriteBuf.java51 public double getDouble(int index) { in getDouble() method in ByteBufferReadWriteBuf
52 return buffer.getDouble(index); in getDouble()

1234567