Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarHvacManagerTest.java136 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax()
141 int max = property.getMaxValue() == null ? 0 : property.getMinValue(); in checkIntMinMax()
146 assertThat(property.getMaxValue(0x1 << i)).isNull(); in checkIntMinMax()
163 property.getMaxValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax()
168 float max = property.getMaxValue() == null ? 0f : property.getMinValue(); in checkFloatMinMax()
173 assertThat(property.getMaxValue(0x1 << i)).isNull(); in checkFloatMinMax()
DCarPropertyConfigTest.java61 assertThat(config.getMaxValue(WINDOW_DRIVER)).isNull(); in createFloatPropertyConfig()
64 assertThat(config.getMaxValue(WINDOW_PASSENGER)).isEqualTo(20f); in createFloatPropertyConfig()
83 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadFloat()
86 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(20f); in testWriteReadFloat()
107 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadIntegerValue()
110 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(expectedMaxValue); in testWriteReadIntegerValue()
131 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadLongValue()
134 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(expectedMaxValue); in testWriteReadLongValue()
156 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isNull(); in testWriteReadIntegerArray()
158 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadIntegerArray()
DCarCabinManagerTest.java140 int max = property.getMaxValue(areId); in checkIntMinMax()
145 int max = property.getMaxValue(); in checkIntMinMax()
150 assertThat(property.getMaxValue(0x1 << i)).isNull(); in checkIntMinMax()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DHvacUtilsTest.java209 when(mAreaIdConfig1.getMaxValue()).thenReturn(1); in getLowestMaxValueForAllAreaIds_integer_returnsLowest()
210 when(mAreaIdConfig2.getMaxValue()).thenReturn(2); in getLowestMaxValueForAllAreaIds_integer_returnsLowest()
211 when(mAreaIdConfig3.getMaxValue()).thenReturn(3); in getLowestMaxValueForAllAreaIds_integer_returnsLowest()
221 when(mAreaIdConfig1.getMaxValue()).thenReturn(0); in getLowestMaxValueForAllAreaIds_integer_ignoresNullValues()
222 when(mAreaIdConfig2.getMaxValue()).thenReturn(1); in getLowestMaxValueForAllAreaIds_integer_ignoresNullValues()
223 when(mAreaIdConfig3.getMaxValue()).thenReturn(null); in getLowestMaxValueForAllAreaIds_integer_ignoresNullValues()
DSeatTemperatureLevelButtonTest.java72 when(mAreaIdConfig.getMaxValue()).thenReturn(3); in setUp()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacUtils.java93 if (lowestMaxValue == null || (areaIdConfig.getMaxValue() != null in getLowestMaxValueForAllAreaIds()
94 && (Integer) areaIdConfig.getMaxValue() < lowestMaxValue)) { in getLowestMaxValueForAllAreaIds()
95 lowestMaxValue = (Integer) areaIdConfig.getMaxValue(); in getLowestMaxValueForAllAreaIds()
DSeatTemperatureLevelButton.java113 mTotalLevelCount = Math.min(areaIdConfig.getMaxValue(), mIcons.size()); in setConfigInfo()
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DAreaIdConfigTest.java62 assertThat(AREA_ID_CONFIG.getMaxValue()).isEqualTo(MAX_VALUE); in getMaxValue_returnsExpectedValue()
67 assertThat(new AreaIdConfig.Builder<Long>(ACCESS, AREA_ID).build().getMaxValue()).isNull(); in getMaxValue_returnsNullIfNotSet()
107 assertThat((Integer) areaIdConfig.getMaxValue()).isEqualTo(MAX_VALUE); in writeToParcel_writesCorrectly()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropConfigTest.java285 assertThat(areaIdConfig.getMaxValue()).isNull(); in toCarPropertyConfig_populatesGlobalAreaId()
304 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_INT32_VALUE); in toCarPropertyConfig_convertsIntegerMinMax()
324 assertThat(areaIdConfig.getMaxValue()).isNull(); in toCarPropertyConfig_doesNotConvertIntegerMinMaxIfBothZero()
343 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_INT64_VALUE); in toCarPropertyConfig_convertsLongMinMax()
364 assertThat(areaIdConfig.getMaxValue()).isNull(); in toCarPropertyConfig_doesNotConvertLongMinMaxIfBothZero()
383 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_FLOAT_VALUE); in toCarPropertyConfig_convertsFloatMinMax()
404 assertThat(areaIdConfig.getMaxValue()).isNull(); in toCarPropertyConfig_doesNotConvertFloatMinMaxIfBothZero()
424 assertThat(areaIdConfig.getMaxValue()).isNull(); in toCarPropertyConfig_doesNotPopulateMinMaxForUnsupportedType()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java367 public T getMaxValue(int areaId) { in getMaxValue() method in CarPropertyConfig
369 return areaIdConfig == null ? null : areaIdConfig.getMaxValue(); in getMaxValue()
391 public T getMaxValue() { in getMaxValue() method in CarPropertyConfig
393 return areaIdConfig == null ? null : areaIdConfig.getMaxValue(); in getMaxValue()
520 @Nullable public T getMaxValue() { in getMaxValue() method
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DPrivateIntegerEncoder.java71 mReport.getMaxValue(), in encode()
DPrivateIndexCalculations.java114 return min(report.getMaxValue(), max(report.getMinValue(), value)); in clipValue()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java1264 if (areaIdConfig.getMaxValue() != null) { in validateSetParameters()
1268 (Integer) valueToSet <= (Integer) areaIdConfig.getMaxValue(); in validateSetParameters()
1271 (Long) valueToSet <= (Long) areaIdConfig.getMaxValue(); in validateSetParameters()
1274 (Float) valueToSet <= (Float) areaIdConfig.getMaxValue(); in validateSetParameters()
1280 toHexString(areaId), areaIdConfig.getMaxValue()); in validateSetParameters()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java384 mMaxFanSpeeds[i] = (Integer) prop.getMaxValue(mZonesForFanSpeed[i]); in configureFanSpeed()
449 mMaxDTemp = (Float) prop.getMaxValue(mZoneForSetTempD); in configureTempSetpoint()
476 mMaxPTemp = (Float) prop.getMaxValue(mZoneForSetTempP); in configureTempSetpoint()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DAreaIdConfig.java134 public T getMaxValue() {
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java147 assertEquals(MAX_PROP_INT32, prop1.getMaxValue()); in testPropertyList()
/packages/services/Car/car-lib/api/
Dcurrent.txt576 method @Deprecated @Nullable public T getMaxValue(int);
577 method @Deprecated @Nullable public T getMaxValue();
754 method @Nullable public T getMaxValue();
/packages/services/Car/car-lib-module/api/
Dcurrent.txt576 method @Deprecated @Nullable public T getMaxValue(int);
577 method @Deprecated @Nullable public T getMaxValue();
754 method @Nullable public T getMaxValue();
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java636 assertEquals(384.0, signal.getLinkspeed().getMaxValue(), TOL); in testAccessPointSerialization()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java2461 maxValue = Math.max(maxValue, stats.getMaxValue()); in merge()
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.2.txt270 android.car.hardware CarPropertyConfig.AreaConfig T getMaxValue()
Dcar_hidden_apis_release_33.1.txt270 android.car.hardware CarPropertyConfig.AreaConfig T getMaxValue()
Dcar_hidden_apis.txt354 android.car.hardware CarPropertyConfig.AreaConfig T getMaxValue()
Dcar_hidden_apis_release_33.3.txt296 android.car.hardware CarPropertyConfig.AreaConfig T getMaxValue()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1243 method TIRAMISU_0 T getMaxValue(int areaId);
1245 method TIRAMISU_0 T getMaxValue();
1254 method TIRAMISU_0 T getMaxValue();

12