Home
last modified time | relevance | path

Searched refs:FLOAT_PROP (Results 1 – 1 of 1) sorted by relevance

/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DCarPropertyManagerUnitTest.java120 private static final int FLOAT_PROP = HVAC_TEMPERATURE_SET; field in CarPropertyManagerUnitTest
911 CarPropertyValue<Float> value = new CarPropertyValue<>(FLOAT_PROP, 0, 1f); in testGetIntArrayProperty()
912 when(mICarProperty.getProperty(FLOAT_PROP, 0)).thenReturn(value); in testGetIntArrayProperty()
915 () -> mCarPropertyManager.getIntArrayProperty(FLOAT_PROP, 0)); in testGetIntArrayProperty()
941 CarPropertyValue<Float> value = new CarPropertyValue<>(FLOAT_PROP, 0, 1.f); in testGetFloatProperty()
942 when(mICarProperty.getProperty(FLOAT_PROP, 0)).thenReturn(value); in testGetFloatProperty()
944 assertThat(mCarPropertyManager.getFloatProperty(FLOAT_PROP, 0)).isEqualTo(1.f); in testGetFloatProperty()
950 when(mICarProperty.getProperty(FLOAT_PROP, 0)).thenThrow( in testGetFloatProperty_tryAgainBeforeR()
953 assertThat(mCarPropertyManager.getFloatProperty(FLOAT_PROP, 0)).isEqualTo(0.f); in testGetFloatProperty_tryAgainBeforeR()
959 when(mICarProperty.getProperty(FLOAT_PROP, 0)).thenThrow( in testGetFloatProperty_tryAgainEqualAfterR()
[all …]