Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPropertyHalServiceTest.java140 private static final int INT32_PROP = VehiclePropertyIds.INFO_FUEL_DOOR_LOCATION; field in PropertyHalServiceTest
153 new AsyncPropertyServiceRequest(REQUEST_ID_1, INT32_PROP, /* areaId= */ 0);
183 INT32_PROP, /* areaId= */ 0, TEST_UPDATE_TIMESTAMP_NANOS, /* status= */ 0,
222 when(mockPropConfig3.getPropId()).thenReturn(INT32_PROP); in setUp()
2405 HalPropValue value = mPropValueBuilder.build(INT32_PROP, /* areaId= */ 0, PROPERTY_VALUE); in testGetPropertySync()
2406 when(mVehicleHal.get(INT32_PROP, /* areaId= */ 0)).thenReturn(value); in testGetPropertySync()
2409 INT32_PROP, /* areaId= */ 0); in testGetPropertySync()
2416 HalPropValue value = mPropValueBuilder.build(INT32_PROP, /* areaId= */ 0, PROPERTY_VALUE); in testGetPropertySyncWithCache()
2417 when(mVehicleHal.get(INT32_PROP, /* areaId= */ 0)).thenReturn(value); in testGetPropertySyncWithCache()
2418 mPropertyHalService.getProperty(INT32_PROP, /* areaId= */ 0); in testGetPropertySyncWithCache()
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DCarPropertyManagerUnitTest.java118 private static final int INT32_PROP = INFO_FUEL_DOOR_LOCATION; field in CarPropertyManagerUnitTest
874 CarPropertyValue<Integer> value = new CarPropertyValue<>(INT32_PROP, 0, 1); in testGetIntProperty()
875 when(mICarProperty.getProperty(INT32_PROP, 0)).thenReturn(value); in testGetIntProperty()
877 assertThat(mCarPropertyManager.getIntProperty(INT32_PROP, 0)).isEqualTo(1); in testGetIntProperty()
883 when(mICarProperty.getProperty(INT32_PROP, 0)).thenThrow( in testGetIntProperty_tryAgainBeforeR()
886 assertThat(mCarPropertyManager.getIntProperty(INT32_PROP, 0)).isEqualTo(0); in testGetIntProperty_tryAgainBeforeR()
892 when(mICarProperty.getProperty(INT32_PROP, 0)).thenThrow( in testGetIntProperty_tryAgainEqualAfterR()
896 () -> mCarPropertyManager.getIntProperty(INT32_PROP, 0)); in testGetIntProperty_tryAgainEqualAfterR()
901 CarPropertyValue<Integer> value = new CarPropertyValue<>(INT32_PROP, 0, 1); in testGetIntProperty_wrongType()
902 when(mICarProperty.getProperty(INT32_PROP, 0)).thenReturn(value); in testGetIntProperty_wrongType()
[all …]