Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/CarHiddenApiTest/src/android/car/hiddenapitest/
DCarHvacManagerTest.java137 int max = property.getMaxValue(areaId) == null ? 0 : property.getMaxValue(areaId); in checkIntMinMax()
142 int max = property.getMaxValue() == null ? 0 : property.getMinValue(); in checkIntMinMax()
147 assertThat(property.getMaxValue(0x1 << i)).isNull(); in checkIntMinMax()
164 property.getMaxValue(areaId) == null ? 0f : property.getMinValue(areaId); in checkFloatMinMax()
169 float max = property.getMaxValue() == null ? 0f : property.getMinValue(); in checkFloatMinMax()
174 assertThat(property.getMaxValue(0x1 << i)).isNull(); in checkFloatMinMax()
DCarCabinManagerTest.java141 int max = property.getMaxValue(areId); in checkIntMinMax()
146 int max = property.getMaxValue(); in checkIntMinMax()
151 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/services/Car/tests/CarLibUnitTest/src/android/car/hardware/
DCarPropertyConfigTest.java66 assertThat(config.getMaxValue(WINDOW_DRIVER)).isNull(); in createFloatPropertyConfig()
69 assertThat(config.getMaxValue(WINDOW_PASSENGER)).isEqualTo(20f); in createFloatPropertyConfig()
88 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadFloat()
91 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(20f); in testWriteReadFloat()
112 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadIntegerValue()
115 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(expectedMaxValue); in testWriteReadIntegerValue()
136 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadLongValue()
139 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isEqualTo(expectedMaxValue); in testWriteReadLongValue()
161 assertThat(configRead.getMaxValue(WINDOW_PASSENGER)).isNull(); in testWriteReadIntegerArray()
163 assertThat(configRead.getMaxValue(WINDOW_DRIVER)).isNull(); in testWriteReadIntegerArray()
/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.java65 assertThat(AREA_ID_CONFIG.getMaxValue()).isEqualTo(MAX_VALUE); in getMaxValue_returnsExpectedValue()
70 assertThat(new AreaIdConfig.Builder<Long>(ACCESS, AREA_ID).build().getMaxValue()).isNull(); in getMaxValue_returnsNullIfNotSet()
110 expectThat((Integer) areaIdConfig.getMaxValue()).isEqualTo(MAX_VALUE); in writeToParcel_writesCorrectly()
136 expectThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_VALUE); in testSetMaxSupportedValue()
DMinMaxSupportedValueUnitTest.java33 expectThat(minMaxSupportedValue.getMaxValue()).isEqualTo(maxValue); in testMinMaxSupportedValue()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DPrivateIntegerEncoder.java66 if (aggregateValue.getIntegerValue() > mReport.getMaxValue()) { in encode()
75 mReport.getMaxValue(), in encode()
DPrivateIndexCalculations.java113 return min(report.getMaxValue(), max(report.getMinValue(), value)); in clipValue()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java403 public T getMaxValue(int areaId) { in getMaxValue() method in CarPropertyConfig
405 return areaIdConfig == null ? null : areaIdConfig.getMaxValue(); in getMaxValue()
427 public T getMaxValue() { in getMaxValue() method in CarPropertyConfig
429 return areaIdConfig == null ? null : areaIdConfig.getMaxValue(); in getMaxValue()
567 @Nullable public T getMaxValue() { in getMaxValue() method
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropConfigTest.java298 assertThat(areaIdConfig.getMaxValue()).isNull(); in testToCarPropertyConfig_populatesGlobalAreaId()
317 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_INT32_VALUE); in testToCarPropertyConfig_convertsIntegerMinMax()
337 assertThat(areaIdConfig.getMaxValue()).isNull(); in testToCarPropertyConfig_doesNotConvertIntegerMinMaxIfBothZero()
356 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_INT64_VALUE); in testToCarPropertyConfig_convertsLongMinMax()
377 assertThat(areaIdConfig.getMaxValue()).isNull(); in testToCarPropertyConfig_doesNotConvertLongMinMaxIfBothZero()
396 assertThat(areaIdConfig.getMaxValue()).isEqualTo(MAX_FLOAT_VALUE); in testToCarPropertyConfig_convertsFloatMinMax()
417 assertThat(areaIdConfig.getMaxValue()).isNull(); in testToCarPropertyConfig_doesNotConvertFloatMinMaxIfBothZero()
437 assertThat(areaIdConfig.getMaxValue()).isNull(); in testToCarPropertyConfig_doesNotPopulateMinMaxForUnsupportedType()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DMinMaxSupportedValue.java60 public @Nullable T getMaxValue() { in getMaxValue() method in MinMaxSupportedValue
DAreaIdConfig.java182 public T getMaxValue() {
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/registry/
DRegistryValidator.java145 report.getMaxValue())) { in isValid()
152 report.getMaxValue()); in isValid()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java213 @Nullable RawPropertyValue getMaxValue( in getMaxValue() method
227 public @Nullable RawPropertyValue getMaxValue( in getMaxValue() method in CarPropertyService.SystemMinMaxSupportedPropertyValueHelper
1512 .getMaxValue(minMaxSupportedPropertyValue); in validateValueRange()
1573 if (areaIdConfig.getMaxValue() != null) { in validateValueRangeBasedOnConfig()
1575 valueToSet, areaIdConfig.getMaxValue()), in validateValueRangeBasedOnConfig()
1580 areaIdConfig.getMaxValue()); in validateValueRangeBasedOnConfig()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java546 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in testSetPropertiesAsync_valueLargerThanMaxValue_IntValue()
568 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in testSetPropertiesAsync_valueLargerThanMaxValue_LongValue()
595 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in testSetPropertiesAsync_valueLargerThanMaxValue_FloatValue()
1558 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in setProperty_throwsExceptionIntSetValueWithinRange()
1588 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in setProperty_throwsExceptionIntSetValueTooLarge()
1626 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in setProperty_throwsExceptionLongSetValueTooLarge()
1664 when(mMinMaxSupportedPropertyValueHelper.getMaxValue(any())).thenReturn( in setProperty_throwsExceptionFloatSetValueTooLarge()
2094 expectThat(areaIdConfigCaptor.getValue().getMaxValue()).isNull(); in testGetMinMaxSupportedValue()
2130 expectThat(areaIdConfigCaptor.getValue().getMaxValue()).isNull(); in testGetSupportedValuesList()
/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/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHeaderPreference.kt111 override fun getMaxValue(context: Context): Int = 100 in getMinValue() method in com.android.settings.fuelgauge.BatteryHeaderPreference
/packages/apps/Settings/src/com/android/settings/notification/
DCallVolumePreference.kt113 override fun getMaxValue(context: Context) = in getWritePermit() method in com.android.settings.notification.CallVolumePreference
DMediaVolumePreference.kt113 override fun getMaxValue(context: Context) = in getWritePermit() method in com.android.settings.notification.MediaVolumePreference
DSeparateRingVolumePreference.kt130 override fun getMaxValue(context: Context) = in getWritePermit() method in com.android.settings.notification.SeparateRingVolumePreference
/packages/services/Car/tests/CarServiceTest/src/com/android/car/
DCarPropertyManagerTest.java1496 assertThat(minMaxSupportedValue.getMaxValue()).isEqualTo(TEST_MAX_INT32_VALUE); in testGetMinMaxSupportedValue()
1510 assertThat(minMaxSupportedValue.getMaxValue()).isEqualTo(TEST_MAX_INT32_VALUE); in testGetMinMaxSupportedValue_noMinValueSpecified()
1524 assertThat(minMaxSupportedValue.getMaxValue()).isNull(); in testGetMinMaxSupportedValue_noMaxValueSpecified()
1538 assertThat(minMaxSupportedValue.getMaxValue()).isEqualTo(TEST_MAX_INT32_VALUE); in testGetMinMaxSupportedValue_supportedValueChange()
1546 assertThat(minMaxSupportedValue.getMaxValue()).isEqualTo(10); in testGetMinMaxSupportedValue_supportedValueChange()
1561 assertThat(minMaxSupportedValue.getMaxValue()).isEqualTo(TEST_MAX_INT32_VALUE); in testGetMinMaxSupportedValue_isSupportedValuesNotImplemented()
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreference.kt132 override fun getMaxValue(context: Context) = 100 in getReadPermissions() method in com.android.settings.display.BrightnessLevelPreference

12