Home
last modified time | relevance | path

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

12

/cts/tests/tests/database/src/android/database/cts/
DMatrixCursorTest.java209 assertEquals(-32768d, mMatrixCursor.getDouble(COLUMN0_INDEX), 0.0d); in testGetters()
210 assertEquals(0d, mMatrixCursor.getDouble(COLUMN1_INDEX), 0.0d); in testGetters()
211 assertEquals(32767d, mMatrixCursor.getDouble(COLUMN2_INDEX), 0.0d); in testGetters()
240 assertEquals(Double.MIN_VALUE, mMatrixCursor.getDouble(COLUMN0_INDEX), 0.0d); in testGetters()
241 assertEquals(0d, mMatrixCursor.getDouble(COLUMN1_INDEX), 0.0d); in testGetters()
242 assertEquals(Double.MAX_VALUE, mMatrixCursor.getDouble(COLUMN2_INDEX), 0.0d); in testGetters()
270 assertEquals(-1d, mMatrixCursor.getDouble(COLUMN0_INDEX), 0.0d); in testGetters()
271 assertEquals(0f, mMatrixCursor.getDouble(COLUMN1_INDEX), 0.0d); in testGetters()
272 assertEquals(1d, mMatrixCursor.getDouble(COLUMN2_INDEX), 0.0d); in testGetters()
DCursorWindowTest.java104 assertEquals(0.0, window.getDouble(0, 0), 0.0); in testNull()
116 assertEquals(0.0, window.getDouble(0, 0), 0.0); in testEmptyString()
232 assertEquals(NUMBER_DOUBLE_SCIENCE_STRING, Double.toString(cursorWindow.getDouble(0, 0))); in testAccessDataValues()
242 assertEquals(0.0, cursorWindow.getDouble(0, 0), 0.0); in testAccessDataValues()
254 assertEquals(0.0, cursorWindow.getDouble(0, 1), 0.0); in testAccessDataValues()
268 assertEquals(NUMBER_DOUBLE_SCIENCE, cursorWindow.getDouble(0, 2), 0.0); in testAccessDataValues()
288 assertEquals(NUMBER_DOUBLE_SCIENCE, cursorWindow.getDouble(0, 3), 0.0); in testAccessDataValues()
DDatabaseUtils_InsertHelperTest.java132 assertEquals(123.456, cursor.getDouble(doubleValueIndex)); in testInsert()
164 assertEquals(654.321, cursor.getDouble(doubleValueIndex)); in testInsert()
228 assertEquals(123.456, cursor.getDouble(doubleValueIndex)); in testReplace()
274 assertEquals(654.321, cursor.getDouble(doubleValueIndex)); in testReplace()
DAbstractCursor_SelfContentObserverTest.java69 public double getDouble(int column) { in getDouble() method in AbstractCursor_SelfContentObserverTest.MockAbstractCursor
DAbstractWindowedCursorTest.java155 double db2 = mWindow.getDouble(ROW_INDEX0, COLUMN_INDEX0); in testGetDouble()
159 double cd = mCursor.getDouble(COLUMN_INDEX0); in testGetDouble()
DDatabaseCursorTest.java142 assertEquals((double) d, testCursor.getDouble(dCol)); in testBlob()
156 assertEquals(42.11, testCursor.getDouble(0)); in testRealColumns()
DMergeCursorTest.java203 assertEquals(NUMBER_DOUBLE - i, mergeCursor.getDouble(columnDouble), 0.000000000001); in testGetValues()
DCursorWrapperTest.java387 assertEquals(NUMBER_DOUBLE, cursorWrapper.getDouble(columnDouble), 0.000000000001); in testGettingValues()
/cts/tests/tests/car/src/android/car/cts/
DSyncResultCallbackTest.java51 assertThat(mCallback.get().getDouble(KEY)).isEqualTo(VALUE); in testGet()
58 assertThat(mCallback.get(1000, TimeUnit.MILLISECONDS).getDouble(KEY)).isEqualTo(VALUE); in testGetWithTimeout()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java138 jsonObject.getJSONObject(STREAM_NAME_1).getDouble(TEST_MESSAGE_1) == TEST_VALUE_1); in testFile()
140 jsonObject.getJSONObject(STREAM_NAME_2).getDouble(TEST_MESSAGE_2) == TEST_VALUE_2); in testFile()
150 jsonObject.getJSONObject(STREAM_NAME_3).getDouble(TEST_MESSAGE_3) == TEST_VALUE_3); in testFile()
152 jsonObject.getJSONObject(STREAM_NAME_4).getDouble(TEST_MESSAGE_4) == TEST_VALUE_4); in testFile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsSerializer.java663 Array.set(val, i, (float)ja.getDouble(i)); in deserialize()
667 Array.set(val, i, ja.getDouble(i)); in deserialize()
689 (float)arr.getDouble(0), in deserialize()
690 (float)arr.getDouble(1), in deserialize()
691 (float)arr.getDouble(2), in deserialize()
692 (float)arr.getDouble(3))); in deserialize()
727 val = jsonReq.getDouble(keyName); in deserialize()
731 val = (float)jsonReq.getDouble(keyName); in deserialize()
754 (float)arr.getDouble(0), in deserialize()
755 (float)arr.getDouble(1), in deserialize()
[all …]
DItsUtils.java79 x = (int)Math.floor(a.getDouble(i+0) * width + 0.5f); in getJsonWeightedRectsFromArray()
80 y = (int)Math.floor(a.getDouble(i+1) * height + 0.5f); in getJsonWeightedRectsFromArray()
81 w = (int)Math.floor(a.getDouble(i+2) * width + 0.5f); in getJsonWeightedRectsFromArray()
82 h = (int)Math.floor(a.getDouble(i+3) * height + 0.5f); in getJsonWeightedRectsFromArray()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSourceCursor.java72 public double getDouble(int column) { in getDouble() method in DragSourceCursor
/cts/tests/cloudsearch/src/android/cloudsearch/cts/
DSearchResultTest.java85 .getDouble(SearchResult.EXTRAINFO_APP_INSTALL_COUNT)) in testCreateSearchResult()
111 .getDouble(SearchResult.EXTRAINFO_APP_INSTALL_COUNT)) in testCreateSearchResult()
/cts/tests/leanbackjank/src/android/leanbackjank/cts/
DCtsJankTestBase.java50 mLog.addValue(source, formatKeyForTestMetrics(key), metrics.getDouble(key), resultType, in printDoubleValueWithKey()
69 metrics.getDouble(WindowContentFrameStatsMonitor.KEY_AVG_NUM_JANKY), in afterTest()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaMetricsTest.java62 assertEquals(3.1, bundle.getDouble("double"), 1e-6 /* delta */); in testBasicItem()
101 assertEquals(3.1, bundle.getDouble("double"), 1e-6 /* delta */); in testBigItem()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java109 assertEquals(3.0, blob.getDouble(offset), 0.0);
147 assertEquals(3.0, blob.getDouble(offset), 0.0);
148 assertEquals(2.0, blob.getDouble(offset + 8), 0.0);
DPersistableBundleTest.java64 assertEquals(1.23, restoredBundle.getDouble("double"), DELTA_DOUBLE); in testWriteToStreamAndReadFromStream()
DBundleTest.java369 assertEquals(0.0, mBundle.getDouble(KEY1), 0.0); in testGetDouble1()
371 assertEquals(d, mBundle.getDouble(KEY1), 0.0); in testGetDouble1()
373 assertEquals(d, mBundle.getDouble(KEY1), 0.0); in testGetDouble1()
381 assertEquals(d1, mBundle.getDouble(KEY1, d1), 0.0); in testGetDouble2()
383 assertEquals(d2, mBundle.getDouble(KEY1, d1), 0.0); in testGetDouble2()
385 assertEquals(d2, mBundle.getDouble(KEY1, d1), 0.0); in testGetDouble2()
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtilsReceiver.java68 final double fraction = extras.getDouble(EXTRA_FRACTION, 0); in doAllocation()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java445 double storedLat = locationCursor.getDouble( in testLocationStorageAndRetrieval()
447 double storedLon = locationCursor.getDouble( in testLocationStorageAndRetrieval()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java355 public double getDouble() { in getDouble() method in PlatformInspectableProcessorTest.PrimitivePropertiesTest
387 assertEquals(node.getDouble(), mPropertyReader.get("double")); in testPrimitiveProperties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java510 fps = json.getDouble("frameRate"); in VideoMetaInfo()
511 fovWidth = json.getDouble("fovW")*Math.PI/180.0; in VideoMetaInfo()
512 fovHeight = json.getDouble("fovH")*Math.PI/180.0; in VideoMetaInfo()
/cts/tests/signature/lib/common/src/android/signature/cts/
DApiComplianceChecker.java521 Double.toString(deviceField.getDouble(null))); in getFieldValueAsString()
/cts/libs/input/src/com/android/cts/input/
DInputJsonParser.java530 float value = (float) axes.getDouble(axis); in parseMotionEvent()

12