Home
last modified time | relevance | path

Searched refs:getFloat (Results 1 – 25 of 44) 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.java230 cursorWindow.getFloat(0, 0)).substring(0, 6)); in testAccessDataValues()
242 assertEquals(0.0f, cursorWindow.getFloat(0, 0), 0.0); in testAccessDataValues()
254 assertEquals(0.0f, cursorWindow.getFloat(0, 1), 0.0); in testAccessDataValues()
266 assertEquals(NUMBER_FLOAT_SCIENCE, cursorWindow.getFloat(0, 2), 0.0); in testAccessDataValues()
286 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()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java72 float expectedSpot = value.getFloat(); in testShadowResources()
76 float expectedAmbient = value.getFloat(); in testShadowResources()
86 assertEquals(expectedSpot, typedArray.getFloat(0, 0.0f), 0); in testShadowResources()
87 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/settings/
DSettings_SecureTest.java75 assertEquals(30.0f, Secure.getFloat(cr, "float", 30), 0.001); in testGetDefaultValues()
112 Secure.getFloat(cr, NO_SUCH_SETTING); in testGetPutFloat()
118 Secure.getFloat(cr, STRING_VALUE_SETTING); in testGetPutFloat()
DSettings_SystemTest.java110 assertEquals(1.3f, System.getFloat(cr, FLOAT_FIELD), 0.001); in testSystemSettings()
172 assertEquals(1.15f, System.getFloat(cr, FLOAT_FIELD), 0.001); in testSystemSettingsRejectInvalidFontSizeScale()
181 assertEquals(30.0f, System.getFloat(cr, "float", 30.0f), 0.001); in testGetDefaultValues()
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceDataStoreTest.java392 verify(mDataStore, atLeast(0)).getFloat(eq(KEY), anyFloat()); in putFloatTestCommon()
397 assertEquals(-1, mSharedPref.getFloat(KEY, -1f), 0.1f /* epsilon */); in putFloatTestCommon()
404 mPreference.getFloat(1f); in testGetFloatWithDataStoreOnPref()
405 verify(mDataStore, atLeastOnce()).getFloat(eq(KEY), eq(1f)); in testGetFloatWithDataStoreOnPref()
412 mPreference.getFloat(1f); in testGetFloatWithDataStoreOnMgr()
413 verify(mDataStore, atLeastOnce()).getFloat(eq(KEY), eq(1f)); in testGetFloatWithDataStoreOnMgr()
546 float getFloat(float defaultValue) { in getFloat() method in PreferenceDataStoreTest.PreferenceWrapper
/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/content/src/android/content/pm/cts/
DPackageManagerGetPropertyTest.java412 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
425 assertEquals(floatValue.floatValue(), testProperty.getFloat(), 0.0f); in assertProperty()
443 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
458 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
473 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
DPackageManagerQueryPropertyTest.java413 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
426 assertEquals(floatValue.floatValue(), testProperty.getFloat(), 0.0f); in assertProperty()
444 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
459 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
474 assertEquals(0.0f, testProperty.getFloat(), 0.0f); in assertProperty()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java528 final float result = DeviceConfig.getFloat(NAMESPACE1, KEY1, DEFAULT_FLOAT); in testGetFloat_empty()
541 final float result = DeviceConfig.getFloat(NAMESPACE1, KEY1, DEFAULT_FLOAT); in testGetFloat_valid()
553 final float result = DeviceConfig.getFloat(NAMESPACE1, KEY1, DEFAULT_FLOAT); in testGetFloat_invalid()
565 DeviceConfig.getFloat(null, KEY1, DEFAULT_FLOAT); in testGetFloat_nullNamespace()
579 DeviceConfig.getFloat(NAMESPACE1, null, DEFAULT_FLOAT); in testGetFloat_nullName()
786 final float result = properties.getFloat(KEY1, DEFAULT_FLOAT); in testGetPropertiesFloat_empty()
799 final float result = properties.getFloat(KEY1, DEFAULT_FLOAT); in testGetPropertiesFloat_valid()
813 final float result = properties.getFloat(KEY1, DEFAULT_FLOAT); in testGetPropertiesFloat_invalid()
1123 assertEquals(expected.getFloat(key, DEFAULT_FLOAT), in assertEqual()
1124 properties.getFloat(key, DEFAULT_FLOAT), 0); in assertEqual()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java40 closeToSquareMaxAspectRatio = resources.getFloat(resources.getIdentifier( in isCloseToSquareDisplay()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java102 assertEquals(3.0f, blob.getFloat(offset), 0.0f);
139 assertEquals(3.0f, blob.getFloat(offset), 0.0f);
140 assertEquals(2.0f, blob.getFloat(offset + 4), 0.0f);
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/tests/media/src/android/media/cts/
DMediaFormatTest.java63 float value = format.getFloat(key); in assertGetFloatsThrowClassCastException()
69 float value = format.getFloat(key, 321.f); in assertGetFloatsThrowClassCastException()
193 assertEquals(3.14f, format.getFloat("float")); in testFloatValue()
557 assertEquals(321.f, format.getFloat("float")); in testFeatureKeySetContainsAndRemove()
577 float value = format.getFloat(key); in testNullOrMissingValue()
590 assertEquals(321.f, format.getFloat(key, 321.f)); in testNullOrMissingValue()
DExifInterfaceTest.java180 latitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
181 longitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
182 altitude = typedArray.getFloat(index++, 0f); in ExpectedValue()
192 aperture = typedArray.getFloat(index++, 0f); in ExpectedValue()
194 exposureTime = typedArray.getFloat(index++, 0f); in ExpectedValue()
195 flash = typedArray.getFloat(index++, 0f); in ExpectedValue()
DNativeDecoderTest.java829 float f1Float = f1.getFloat(key); in compareFormats()
830 float f2Float = f2.getFloat(key); in compareFormats()
884 float f1Float = f1.getFloat(key); in compareFormats()
885 float f2Float = f2.getFloat(key); in compareFormats()
/cts/tests/app/app/src/android/app/stubs/
DOrientationTestUtils.java78 closeToSquareMaxAspectRatio = resources.getFloat(resources.getIdentifier( in isCloseToSquareDisplay()
/cts/tests/location/location_coarse/src/android/location/cts/coarse/
DLocationManagerCoarseTest.java98 float coarseLocationAccuracyM = Settings.Secure.getFloat( in setUp()
139 assertThat(Settings.Secure.getFloat( in testMinCoarseLocationDistance()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextViewIntegrationTest.java130 Settings.Global.getFloat(resolver, ANIMATOR_DURATION_SCALE, 1f); in disableAnimation()
134 Settings.Global.getFloat(resolver, TRANSITION_ANIMATION_SCALE, 1f); in disableAnimation()
/cts/tests/sensor/src/android/hardware/cts/
DSensorDirectReportTest.java1858 ev.x = byteBuffer.getFloat();
1859 ev.y = byteBuffer.getFloat();
1860 ev.z = byteBuffer.getFloat();
1874 ev.x = b.getFloat();
1875 ev.y = b.getFloat();
1876 ev.z = b.getFloat();
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLayoutTests.java78 mWindowAnimationScale = Settings.Global.getFloat(resolver, WINDOW_ANIMATION_SCALE, 1f); in setup()

12