Home
last modified time | relevance | path

Searched refs:maxValue (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DPrivateIndexCalculationsTest.java45 double maxValue = 6.0; in testDoubleToIndex_maxValue_equalsMaxIndex() local
52 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_maxValue_equalsMaxIndex()
59 double maxValue = 6.0; in testDoubleToIndex_minValue_equalsMinIndex() local
66 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_minValue_equalsMinIndex()
73 double maxValue = 6.0; in testDoubleToIndex_middleValue_equalsInteriorIndex() local
80 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_middleValue_equalsInteriorIndex()
87 double maxValue = 6.0; in testDoubleToIndex_distanceAboveLambda_returnsUpperIndex() local
96 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_distanceAboveLambda_returnsUpperIndex()
103 double maxValue = 6.0; in testDoubleToIndex_distanceBelowLambda_returnsLowerIndex() local
112 value, minValue, maxValue, numIndexPoints, mSecureRandom)) in testDoubleToIndex_distanceBelowLambda_returnsLowerIndex()
DPrivacyGeneratorStatisticalTest.java182 int numTrials, double value, double minValue, double maxValue, int numIndexPoints) { in doubleToIndexTest() argument
183 double intervalSize = (maxValue - minValue) / (double) (numIndexPoints - 1); in doubleToIndexTest()
197 maxValue, in doubleToIndexTest()
/packages/services/Car/libs/vehicle-hal-support-lib/src/com/android/car/hal/test/
DAidlVehiclePropConfigBuilder.java135 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument
140 area.maxInt32Value = maxValue; in addAreaConfig()
146 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument
151 area.maxFloatValue = maxValue; in addAreaConfig()
167 int minValue, int maxValue) { in addAreaConfig() argument
172 area.maxInt32Value = maxValue; in addAreaConfig()
179 float minValue, float maxValue) { in addAreaConfig() argument
184 area.maxFloatValue = maxValue; in addAreaConfig()
DHidlVehiclePropConfigBuilder.java106 public HidlVehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument
110 area.maxInt32Value = maxValue; in addAreaConfig()
116 public HidlVehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument
120 area.maxFloatValue = maxValue; in addAreaConfig()
/packages/modules/NeuralNetworks/common/cpu_operations/
DSoftmax.cpp63 float maxValue = -FLT_MAX; in softmaxSlowFloat32() local
65 maxValue = std::max(maxValue, *p); in softmaxSlowFloat32()
70 sum += std::exp((*p - maxValue) * beta); in softmaxSlowFloat32()
75 *pOut = std::exp((*p - maxValue) * beta) / sum; in softmaxSlowFloat32()
138 T maxValue = std::is_same_v<T, int8_t> ? -128 : 0; in softmaxQuant8Impl() local
140 maxValue = std::max(maxValue, *p); in softmaxQuant8Impl()
146 int32_t input_diff = static_cast<int32_t>(*p) - maxValue; in softmaxQuant8Impl()
174 int32_t input_diff = static_cast<int32_t>(*p) - maxValue; in softmaxQuant8Impl()
DLogSoftmax.cpp43 T maxValue = input[outer * axisSize * innerSize + inner]; in compute() local
45 maxValue = std::max(maxValue, input[(outer * axisSize + i) * innerSize + inner]); in compute()
51 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta)); in compute()
57 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta - in compute()
DRoiPooling.cpp110 T_Input maxValue = static_cast<T_Input>(inputShape.offset); in roiPoolingNhwc() local
115 if (first || inputValue > maxValue) { in roiPoolingNhwc()
116 maxValue = inputValue; in roiPoolingNhwc()
121 outPtr[k] = maxValue; in roiPoolingNhwc()
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioDeviceInfo.java78 return mAudioGain.maxValue; in getGainMaxValue()
168 Preconditions.checkArgument(gain.maxValue >= gain.minValue, in checkAudioGainConfiguration()
170 gain.maxValue, gain.minValue); in checkAudioGainConfiguration()
172 && (gain.defaultValue <= gain.maxValue), in checkAudioGainConfiguration()
174 gain.minValue, gain.maxValue); in checkAudioGainConfiguration()
178 ((gain.maxValue - gain.minValue) % gain.stepValue) == 0, in checkAudioGainConfiguration()
180 gain.stepValue, gain.maxValue - gain.minValue); in checkAudioGainConfiguration()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioDeviceInfoTest.java61 maxValue = TEST_GAIN_MAX_VALUE;
140 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresJointModeAudioGain()
163 maxValue = 10; in constructor_requiresMaxGainLargerThanMin()
186 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresDefaultGainLargerThanMin()
209 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresDefaultGainSmallerThanMax()
232 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresGainStepSizeFactorOfRange()
255 maxValue = 98; in constructor_requiresGainStepSizeFactorOfRangeToDefault()
335 maxValue = TEST_GAIN_MAX_VALUE; in hash_forTheSameHalAudioDeviceInfos_equals()
356 maxValue = 50; in hash_withDifferentAudioGains_notEquals()
405 maxValue = 50; in equals_withDifferentGains_fails()
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/
DPrivateIndexCalculations.java59 double maxValue, in doubleToIndex() argument
62 double intervalSize = (maxValue - minValue) / (double) (numIndexPoints - 1); in doubleToIndex()
85 long maxValue, in longToIndex() argument
89 (double) value, (double) minValue, (double) maxValue, numIndexPoints, secureRandom); in longToIndex()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DGainBuilder.java41 GainBuilder setMaxValue(int maxValue) { in setMaxValue() argument
42 mMaxValue = maxValue; in setMaxValue()
64 when(mockGain.maxValue()).thenReturn(mMaxValue); in build()
DHalAudioDeviceInfoBuilder.java104 maxValue = mMaxValue; in build()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DFlingSpringAnim.java44 float minVisChange, float minValue, float maxValue, float damping, float stiffness, in FlingSpringAnim() argument
56 .setMaxValue(maxValue); in FlingSpringAnim()
61 || startPosition >= maxValue && startVelocityPxPerS > 0; in FlingSpringAnim()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DAreaIdConfig.java50 int areaId, @Nullable T minValue, @Nullable T maxValue, List<T> supportedEnumValues, in AreaIdConfig() argument
56 mMaxValue = maxValue; in AreaIdConfig()
237 public Builder<T> setMaxValue(T maxValue) {
238 mMaxValue = maxValue;
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java135 Preconditions.checkArgument(audioGain.maxValue() >= audioGain.minValue(), in checkAudioGainConfiguration()
137 audioGain.maxValue(), audioGain.minValue()); in checkAudioGainConfiguration()
139 && (audioGain.defaultValue() <= audioGain.maxValue()), in checkAudioGainConfiguration()
141 audioGain.minValue(), audioGain.maxValue()); in checkAudioGainConfiguration()
143 ((audioGain.maxValue() - audioGain.minValue()) % audioGain.stepValue()) == 0, in checkAudioGainConfiguration()
145 audioGain.stepValue(), audioGain.maxValue() - audioGain.minValue()); in checkAudioGainConfiguration()
378 mMaxGain = gain.maxValue(); in AudioGainInfo()
/packages/modules/Profiling/service/java/com/android/os/profiling/
DConfigs.java532 int maxValue, @Nullable Bundle params) { in getWithinBounds() argument
539 } else if (value > maxValue) { in getWithinBounds()
540 return maxValue; in getWithinBounds()
571 int maxValue, @Nullable Bundle bundle) { in getAndRemoveWithinBounds() argument
580 } else if (value > maxValue) { in getAndRemoveWithinBounds()
581 value = maxValue; in getAndRemoveWithinBounds()
589 long maxValue, @Nullable Bundle bundle) { in getAndRemoveWithinBounds() argument
598 } else if (value > maxValue) { in getAndRemoveWithinBounds()
599 value = maxValue; in getAndRemoveWithinBounds()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java206 int maxValue = (int) Math.floor(max * step); in buildExposureCompensation() local
208 CharSequence entries[] = new CharSequence[maxValue - minValue + 1]; in buildExposureCompensation()
209 CharSequence entryValues[] = new CharSequence[maxValue - minValue + 1]; in buildExposureCompensation()
210 for (int i = minValue; i <= maxValue; ++i) { in buildExposureCompensation()
211 entryValues[maxValue - i] = Integer.toString(Math.round(i / step)); in buildExposureCompensation()
214 entries[maxValue - i] = builder.append(i).toString(); in buildExposureCompensation()
/packages/apps/Settings/src/com/android/settings/slices/
DSliceBroadcastReceiver.java158 final int maxValue = sliderController.getMax(); in handleSliderAction() local
159 if (newPosition < minValue || newPosition > maxValue) { in handleSliderAction()
162 + " and " + maxValue + " but found " + newPosition); in handleSliderAction()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DMultiScalePropertyFactory.java91 float maxValue = Math.max(mMaxOfOthers, newValue); in setValue() local
93 mLastAggregatedValue = Utilities.boundToRange(multValue, minValue, maxValue); in setValue()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/util/
DBitwiseUtilsTest.java216 public void maxValue() { in maxValue() method in BitwiseUtilsTest
217 assertEquals(3, BitwiseUtils.maxValue(3, true)); in maxValue()
218 assertEquals(7, BitwiseUtils.maxValue(3, false)); in maxValue()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPolicyVolumeCallback.java176 int maxValue = Math.min(currentVolume + 1, in evaluateVolumeAdjustmentInternal() local
179 maxValue = minGain; in evaluateVolumeAdjustmentInternal()
181 mVolumeCallback.onGroupVolumeChange(zoneId, groupId, maxValue, flags); in evaluateVolumeAdjustmentInternal()
/packages/apps/Settings/src/com/android/settings/accessibility/
DFloatingMenuTransparencyPreferenceController.java147 final float maxValue = MAX_PROGRESS / PRECISION; in getTransparency() local
149 return (transparencyValue < minValue || transparencyValue > maxValue) in getTransparency()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAnimUtils.java261 public ClampedProperty(FloatProperty<T> property, float minValue, float maxValue) { in ClampedProperty() argument
265 mMaxValue = maxValue; in ClampedProperty()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/util/
DBitwiseUtils.java209 public static long maxValue(int bitCount, boolean signedValue) { in maxValue() method in BitwiseUtils
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java488 private AreaConfig(T minValue, T maxValue) { in AreaConfig() argument
490 mMaxValue = maxValue; in AreaConfig()

12