Home
last modified time | relevance | path

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

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyValueTest.java34 private static final int AREA_ID = 5678; field in CarPropertyValueTest
38 PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, VALUE);
72 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, null).hashCode()); in hashCode_returnsDifferentValueForDifferentCarPropertyValue()
94 new CarPropertyValue<>(differentPropertyId, AREA_ID, TIMESTAMP_NANOS, VALUE))) in equals_returnsFalseForDifferentPropertyIds()
110 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, differentStatus, TIMESTAMP_NANOS, in equals_returnsFalseForDifferentStatuses()
118 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, differentTimestampNanos, VALUE))) in equals_returnsFalseForDifferentTimestamps()
126 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, differentValue))) in equals_returnsFalseForDifferentValues()
133 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, null))) in equals_returnsFalseForDifferentValueWithNull()
140 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, VALUE))) in equals_returnsTrueWhenEqual()
147 new CarPropertyValue<>(PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, null).equals( in equals_returnsTrueWhenEqualWithNullValues()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DSeatTemperatureLevelButtonTest.java50 private static final int AREA_ID = 1; field in SeatTemperatureLevelButtonTest
71 when(mCarPropertyConfig.getAreaIdConfig(AREA_ID)).thenReturn(mAreaIdConfig); in setUp()
83 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 1); in onClick_currentLevelZero_setsHeatLevelToOne()
93 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 2); in onClick_currentLevelOne_setsHeatLevelToTwo()
103 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 3); in onClick_currentLevelTwo_setsHeatLevelToThree()
113 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 0); in onClick_currentLevelThree_setsHeatLevelToZero()
123 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 3); in onLongClick_currentLevelZero_setsHeatLevelToThree()
133 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 0); in onLongClick_currentLevelOne_setsHeatLevelToZero()
143 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 0); in onLongClick_currentLevelTwo_setsHeatLevelToZero()
153 verify(mHvacPropertySetter).setHvacProperty(PROPERTY_ID, AREA_ID, 0); in onLongClick_currentLevelThree_setsHeatLevelToZero()
[all …]
DTemperatureControlViewTest.java64 private static final int AREA_ID = 99; field in TemperatureControlViewTest
86 when(mCarPropertyValue.getAreaId()).thenReturn(AREA_ID); in setUp()
136 eq(AREA_ID), AdditionalMatchers.eq(expectedNewTemperature, 0.1f)); in onHoldIncreaseButtonDown_inCelsius_increasesThreeDegreesCelsius()
157 eq(AREA_ID), AdditionalMatchers.eq(expectedNewTemperature, 0.1f)); in onHoldDecreaseButtonDown_inCelsius_decreasesThreeDegreesCelsius()
178 eq(AREA_ID), AdditionalMatchers.eq(expectedNewTemperature, 0.1f)); in onHoldIncreaseButtonDown_inFahrenheit_increasesThreeDegreesFahrenheit()
199 eq(AREA_ID), AdditionalMatchers.eq(expectedNewTemperature, 0.1f)); in onHoldDecreaseButtonDown_inFahrenheit_decreasesThreeDegreesFahrenheit()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisherTest.java75 private static final int AREA_ID = 20; field in VehiclePropertyPublisherTest
80 new CarPropertyValue<>(PROP_STRING_ID, AREA_ID, "hi"));
83 new CarPropertyValue<>(PROP_BOOLEAN_ID, AREA_ID, true));
86 new CarPropertyValue<>(PROP_INT_ID, AREA_ID, 1));
89 new CarPropertyValue<>(PROP_INT_VEC_ID, AREA_ID, new Integer[] {1, 2}));
92 new CarPropertyValue<>(PROP_LONG_ID, AREA_ID, 10L));
95 new CarPropertyValue<>(PROP_LONG_VEC_ID, AREA_ID, new Long[] {10L, 20L}));
98 new CarPropertyValue<>(PROP_FLOAT_ID, AREA_ID, 1f));
101 new CarPropertyValue<>(PROP_FLOAT_VEC_ID, AREA_ID, new Float[] {1f, 2f}));
104 new CarPropertyValue<>(PROP_BYTES_ID, AREA_ID,
[all …]
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DAreaIdConfigTest.java32 private static final int AREA_ID = 99; field in AreaIdConfigTest
37 ACCESS, AREA_ID).setMaxValue(MAX_VALUE).setMinValue(MIN_VALUE).setSupportedEnumValues(
47 assertThat(AREA_ID_CONFIG.getAreaId()).isEqualTo(AREA_ID); in getAreaId_returnsExpectedValue()
57 assertThat(new AreaIdConfig.Builder<Long>(ACCESS, AREA_ID).build().getMinValue()).isNull(); in getMinValue_returnsNullIfNotSet()
67 assertThat(new AreaIdConfig.Builder<Long>(ACCESS, AREA_ID).build().getMaxValue()).isNull(); in getMaxValue_returnsNullIfNotSet()
79 ACCESS, AREA_ID).build().getSupportedEnumValues()).isEmpty(); in getSupportedEnumValues_returnsEmptyListIfNoSet()
94 assertThat(new AreaIdConfig.Builder<Long>(AREA_ID).build().isVariableUpdateRateSupported()) in isVariableUpdateRateSupported_defaultFalse()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/toggle/
DHvacIntegerToggleButtonTest.java53 private static final int AREA_ID = 1; field in HvacIntegerToggleButtonTest
112 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, ON_VALUE); in onClickDefaultButton_powerOn_autoOff_currentValueFalse_setsValueToTrue()
126 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, OFF_VALUE); in onClickDefaultButton_powerOn_autoOff_currentValueTrue_setsValueToFalse()
170 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, ON_VALUE); in onClickDefaultButton_powerOn_autoOn_currentValueFalse_setsValueToTrue()
184 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, OFF_VALUE); in onClickDefaultButton_powerOn_autoOn_currentValueTrue_setsValueToFalse()
198 verify(mHvacPropertySetterTurnOnWhenPowerOff).setHvacProperty(PROPERTY_ID, AREA_ID, in onClickTurnOnWhenPowerOffButton_powerOff_currentValueTrue_setsValueToFalse()
213 verify(mHvacPropertySetterTurnOnWhenPowerOff).setHvacProperty(PROPERTY_ID, AREA_ID, in onClickTurnOnWhenPowerOffButton_powerOff_currentValueFalse_setsValueToTrue()
258 verify(mHvacPropertySetterKeepOnPreventOff).setHvacProperty(PROPERTY_ID, AREA_ID, ON_VALUE); in onClickKeepOnPreventOffButton_currentValueOff_turnOn()
288 verify(mHvacPropertySetterTurnOffWhenAutoOn).setHvacProperty(PROPERTY_ID, AREA_ID, in onClickWhenNotHvacPowerDependent_autoOff_setsNewValue()
309 when(mCarPropertyValue.getAreaId()).thenReturn(AREA_ID); in setCarPropertyValue()
DHvacBooleanToggleButtonTest.java54 private static final int AREA_ID = 1; field in HvacBooleanToggleButtonTest
104 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, true); in onClickDefaultButton_powerOn_autoOff_currentValueFalse_setsValueToTrue()
118 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, false); in onClickDefaultButton_powerOn_autoOff_currentValueTrue_setsValueToFalse()
162 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, true); in onClickDefaultButton_powerOn_autoOn_currentValueFalse_setsValueToTrue()
176 verify(mHvacPropertySetterDefault).setHvacProperty(PROPERTY_ID, AREA_ID, false); in onClickDefaultButton_powerOn_autoOn_currentValueTrue_setsValueToFalse()
190 verify(mHvacPropertySetterTurnOnWhenPowerOff).setHvacProperty(PROPERTY_ID, AREA_ID, false); in onClickTurnOnWhenPowerOffButton_powerOff_currentValueTrue_setsValueToFalse()
204 verify(mHvacPropertySetterTurnOnWhenPowerOff).setHvacProperty(PROPERTY_ID, AREA_ID, true); in onClickTurnOnWhenPowerOffButton_powerOff_currentValueFalse_setsValueToTrue()
249 verify(mHvacPropertySetterTurnOffWhenAutoOn).setHvacProperty(PROPERTY_ID, AREA_ID, false); in onClickWhenNotHvacPowerDependent_autoOff_setsNewValue()
269 when(mCarPropertyValue.getAreaId()).thenReturn(AREA_ID); in setCarPropertyValue()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java37 private static final int AREA_ID = 0; field in CarUnitsManager
79 intProperty = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in isPropertyAvailable()
127 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty()
141 mCarPropertyManager.setIntProperty(propertyId, AREA_ID, unitId); in setUnitUsedByProperty()
155 VehiclePropertyIds.FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME, AREA_ID); in isDistanceOverVolume()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyEventTest.java36 private static final int AREA_ID = 5678; field in CarPropertyEventTest
40 PROPERTY_ID, AREA_ID, TIMESTAMP_NANOS, VALUE);
125 AREA_ID, 893); in equals_returnsFalseForDifferentCarPropertyValues()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/referenceui/
DBackgroundAdjustingTemperatureControlViewTest.java48 private static final int AREA_ID = 99; field in BackgroundAdjustingTemperatureControlViewTest