Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/database/src/android/database/cts/
DMatrixCursorTest.java191 assertEquals(-32768f, mMatrixCursor.getFloat(COLUMN0_INDEX), 0.0f); in testGetters()
192 assertEquals(0f, mMatrixCursor.getFloat(COLUMN1_INDEX), 0.0f); in testGetters()
193 assertEquals(32767f, mMatrixCursor.getFloat(COLUMN2_INDEX), 0.0f); in testGetters()
222 assertEquals(0.0f, mMatrixCursor.getFloat(COLUMN0_INDEX), 0.0f); in testGetters()
223 assertEquals(0f, mMatrixCursor.getFloat(COLUMN1_INDEX), 0.0f); in testGetters()
224 assertEquals(Float.POSITIVE_INFINITY, mMatrixCursor.getFloat(COLUMN2_INDEX), 0.0f); in testGetters()
252 assertEquals(-1f, mMatrixCursor.getFloat(COLUMN0_INDEX), 0.0f); in testGetters()
253 assertEquals(0f, mMatrixCursor.getFloat(COLUMN1_INDEX), 0.0f); in testGetters()
254 assertEquals(1f, mMatrixCursor.getFloat(COLUMN2_INDEX), 0.0f); in testGetters()
273 assertEquals(100f, mMatrixCursor.getFloat(COLUMN0_INDEX), 0.0f); in testGetters()
DDatabaseUtils_InsertHelperTest.java133 assertEquals(1.0f, cursor.getFloat(floatValueIndex)); in testInsert()
165 assertEquals(21.1f, cursor.getFloat(floatValueIndex)); in testInsert()
229 assertEquals(1.0f, cursor.getFloat(floatValueIndex)); in testReplace()
275 assertEquals(21.1f, cursor.getFloat(floatValueIndex)); in testReplace()
DCursorWindowTest.java228 cursorWindow.getFloat(0, 0)).substring(0, 6)); in testAccessDataValues()
240 assertEquals(0.0f, cursorWindow.getFloat(0, 0), 0.0); in testAccessDataValues()
252 assertEquals(0.0f, cursorWindow.getFloat(0, 1), 0.0); in testAccessDataValues()
264 assertEquals(NUMBER_FLOAT_SCIENCE, cursorWindow.getFloat(0, 2), 0.0); in testAccessDataValues()
284 assertEquals(NUMBER_FLOAT_SCIENCE, cursorWindow.getFloat(0, 3), 0.0); in testAccessDataValues()
DAbstractCursor_SelfContentObserverTest.java74 public float getFloat(int column) { in getFloat() method in AbstractCursor_SelfContentObserverTest.MockAbstractCursor
DAbstractWindowedCursorTest.java144 assertEquals(f1oatNumber, mCursor.getFloat(COLUMN_INDEX0)); in testGetFloat()
DMergeCursorTest.java172 assertEquals(NUMBER_FLOAT - i, mergeCursor.getFloat(columnDouble), 0.000000000001f); in testGetValues()
DCursorWrapperTest.java338 assertEquals(NUMBER_FLOAT, cursorWrapper.getFloat(columnDouble), 0.000000000001f); in testGettingValues()
DAbstractCursorTest.java547 public float getFloat(int columnIndex) { in getFloat() method in AbstractCursorTest.TestAbstractCursor
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java71 float expectedSpot = value.getFloat(); in testShadowResources()
75 float expectedAmbient = value.getFloat(); in testShadowResources()
85 assertEquals(expectedSpot, typedArray.getFloat(0, 0.0f), 0); in testShadowResources()
86 assertEquals(expectedAmbient, typedArray.getFloat(1, 0.0f), 0); in testShadowResources()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimationActivity.java67 mBallHeight = extras.getFloat(BALL_HEIGHT); in onCreate()
68 mBallWidth = extras.getFloat(BALL_WIDTH); in onCreate()
69 mStartX = extras.getFloat(STARTX); in onCreate()
70 mStartY = extras.getFloat(STARTY); in onCreate()
71 mDeltaX = extras.getFloat(DELTAX); in onCreate()
72 mDeltaY = extras.getFloat(DELTAY); in onCreate()
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SecureTest.java65 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); in testGetDefaultValues()
100 Secure.getFloat(cr, NO_SUCH_SETTING); in testGetPutFloat()
106 Secure.getFloat(cr, STRING_VALUE_SETTING); in testGetPutFloat()
DSettings_SystemTest.java129 assertEquals(30.0f, System.getFloat(cr, FLOAT_FIELD), 0.001); in testSystemSettings()
160 assertEquals(30.0f, System.getFloat(cr, "float", 30.0f), 0.001); in testGetDefaultValues()
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSourceCursor.java67 public float getFloat(int column) { in getFloat() method in DragSourceCursor
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceDataStoreTest.java391 verify(mDataStore, atLeast(0)).getFloat(eq(KEY), anyFloat()); in putFloatTestCommon()
396 assertEquals(-1, mSharedPref.getFloat(KEY, -1f), 0.1f /* epsilon */); in putFloatTestCommon()
403 mPreference.getFloat(1f); in testGetFloatWithDataStoreOnPref()
404 verify(mDataStore, atLeastOnce()).getFloat(eq(KEY), eq(1f)); in testGetFloatWithDataStoreOnPref()
411 mPreference.getFloat(1f); in testGetFloatWithDataStoreOnMgr()
412 verify(mDataStore, atLeastOnce()).getFloat(eq(KEY), eq(1f)); in testGetFloatWithDataStoreOnMgr()
545 float getFloat(float defaultValue) { in getFloat() method in PreferenceDataStoreTest.PreferenceWrapper
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java151 latitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
152 longitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
153 altitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
158 aperture = typedArray.getFloat(index++, 0f); in ExpectedValue()
160 exposureTime = typedArray.getFloat(index++, 0f); in ExpectedValue()
161 flash = typedArray.getFloat(index++, 0f); in ExpectedValue()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java348 assertEquals(0.0f, mBundle.getFloat(KEY)); in testGetFloat1()
350 assertEquals(f, mBundle.getFloat(KEY)); in testGetFloat1()
352 assertEquals(f, mBundle.getFloat(KEY)); in testGetFloat1()
359 assertEquals(f1, mBundle.getFloat(KEY, f1)); in testGetFloat2()
361 assertEquals(f2, mBundle.getFloat(KEY, f1)); in testGetFloat2()
363 assertEquals(f2, mBundle.getFloat(KEY, f1)); in testGetFloat2()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1677 ev.x = mByteBuffer.getFloat();
1678 ev.y = mByteBuffer.getFloat();
1679 ev.z = mByteBuffer.getFloat();
1693 ev.x = b.getFloat();
1694 ev.y = b.getFloat();
1695 ev.z = b.getFloat();
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerConfigChangeTests.java127 Settings.System::getFloat, in FontScaleSession() field in ActivityManagerConfigChangeTests.FontScaleSession.Settings.System
DActivityManagerPinnedStackTests.java872 Settings.Global::getFloat, in TransitionAnimationScaleSession() field in ActivityManagerPinnedStackTests.TransitionAnimationScaleSession.Settings.Global
/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java44 assertEquals(expected, tv.getFloat(), 0.0f); in testGetFloat()
/cts/hostsidetests/backup/KeyValueApp/src/android/cts/backup/keyvaluerestoreapp/
DKeyValueBackupRestoreTest.java248 mFloatValue = prefs.getFloat(FLOAT_PREF, DEFAULT_FLOAT_VALUE); in readSharedPrefValues()
/cts/tests/tests/content/src/android/content/cts/
DSharedPreferencesTest.java91 assertEquals(0.5f, prefs.getFloat(key, 0.5f)); in testDefaults()
/cts/tests/signature/src/android/signature/cts/
DApiComplianceChecker.java296 Float.toString(deviceField.getFloat(null)), "f")); in checkFieldValueCompliance()
/cts/tests/tests/content/src/android/content/res/cts/
DTypedArrayTest.java146 t.getFloat(R.styleable.style1_type9, DEFFLOAT)); in testGetAttributes()
/cts/tests/tests/widget/src/android/widget/cts/
DAdapterViewTest.java215 float fontScale = Settings.System.getFloat( in testAccessVisiblePosition()

12