/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/ |
D | PrivateIndexCalculationsTest.java | 45 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()
|
D | PrivacyGeneratorStatisticalTest.java | 182 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/ |
D | AidlVehiclePropConfigBuilder.java | 140 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, int minValue, int maxValue) { in addAreaConfig() argument 145 area.maxInt32Value = maxValue; in addAreaConfig() 150 public AidlVehiclePropConfigBuilder addAreaConfig(int areaId, float minValue, float maxValue) { in addAreaConfig() argument 155 area.maxFloatValue = maxValue; in addAreaConfig() 169 int minValue, int maxValue) { in addAreaConfig() argument 174 area.maxInt32Value = maxValue; in addAreaConfig() 180 float minValue, float maxValue) { in addAreaConfig() argument 185 area.maxFloatValue = maxValue; in addAreaConfig()
|
D | HidlVehiclePropConfigBuilder.java | 106 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/ |
D | Softmax.cpp | 63 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()
|
D | LogSoftmax.cpp | 43 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()
|
D | RoiPooling.cpp | 110 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/ |
D | HalAudioDeviceInfo.java | 78 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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/ |
D | NoiseUtil.java | 33 public int applyNoiseToBestValue(int actualValue, int maxValue, ThreadLocalRandom random) { in applyNoiseToBestValue() argument 34 if (actualValue < 0 || actualValue > maxValue) { in applyNoiseToBestValue() 38 maxValue); in applyNoiseToBestValue() 46 noisedValue = random.nextInt(maxValue); in applyNoiseToBestValue()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/ |
D | MinMaxSupportedValueUnitTest.java | 28 Float maxValue = 1.2f; in testMinMaxSupportedValue() local 30 var minMaxSupportedValue = new MinMaxSupportedValue(minValue, maxValue); in testMinMaxSupportedValue() 33 expectThat(minMaxSupportedValue.getMaxValue()).isEqualTo(maxValue); in testMinMaxSupportedValue()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioDeviceInfoTest.java | 63 maxValue = TEST_GAIN_MAX_VALUE; 142 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresJointModeAudioGain() 165 maxValue = 10; in constructor_requiresMaxGainLargerThanMin() 188 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresDefaultGainLargerThanMin() 211 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresDefaultGainSmallerThanMax() 234 maxValue = TEST_GAIN_MAX_VALUE; in constructor_requiresGainStepSizeFactorOfRange() 257 maxValue = 98; in constructor_requiresGainStepSizeFactorOfRangeToDefault() 337 maxValue = TEST_GAIN_MAX_VALUE; in hash_forTheSameHalAudioDeviceInfos_equals() 358 maxValue = 50; in hash_withDifferentAudioGains_notEquals() 407 maxValue = 50; in equals_withDifferentGains_fails()
|
/packages/modules/AdServices/adservices/libraries/cobalt/java/com/android/cobalt/observations/ |
D | PrivateIndexCalculations.java | 58 double maxValue, in doubleToIndex() argument 61 double intervalSize = (maxValue - minValue) / (double) (numIndexPoints - 1); in doubleToIndex() 84 long maxValue, in longToIndex() argument 88 (double) value, (double) minValue, (double) maxValue, numIndexPoints, secureRandom); in longToIndex()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | GainBuilder.java | 41 GainBuilder setMaxValue(int maxValue) { in setMaxValue() argument 42 mMaxValue = maxValue; in setMaxValue() 64 when(mockGain.maxValue()).thenReturn(mMaxValue); in build()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/ |
D | AudioManagerHelper.java | 135 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/apps/Launcher3/src/com/android/launcher3/anim/ |
D | FlingSpringAnim.java | 44 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/ |
D | MinMaxSupportedValue.java | 40 public MinMaxSupportedValue(@Nullable T minValue, @Nullable T maxValue) { in MinMaxSupportedValue() argument 42 mMaxValue = maxValue; in MinMaxSupportedValue()
|
D | AreaIdConfig.java | 59 int areaId, @Nullable T minValue, @Nullable T maxValue, List<T> supportedEnumValues, in AreaIdConfig() argument 66 mMaxValue = maxValue; in AreaIdConfig() 393 public Builder<T> setMaxValue(T maxValue) { 394 mMaxValue = maxValue;
|
/packages/modules/Profiling/service/java/com/android/os/profiling/ |
D | Configs.java | 564 int maxValue, @Nullable Bundle params) { in getWithinBounds() argument 571 } else if (value > maxValue) { in getWithinBounds() 572 return maxValue; in getWithinBounds() 603 int maxValue, @Nullable Bundle bundle) { in getAndRemoveWithinBounds() argument 612 } else if (value > maxValue) { in getAndRemoveWithinBounds() 613 value = maxValue; in getAndRemoveWithinBounds() 621 long maxValue, @Nullable Bundle bundle) { in getAndRemoveWithinBounds() argument 630 } else if (value > maxValue) { in getAndRemoveWithinBounds() 631 value = maxValue; in getAndRemoveWithinBounds()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | CameraSettings.java | 206 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/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/ |
D | MdnsQueryScheduler.java | 231 private static int boundedLeftShift(int value, int shift, int maxValue) { in boundedLeftShift() argument 237 return maxValue; in boundedLeftShift() 239 return Math.min(value << shift, maxValue); in boundedLeftShift()
|
/packages/apps/Settings/src/com/android/settings/slices/ |
D | SliceBroadcastReceiver.java | 158 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/ |
D | MultiScalePropertyFactory.java | 91 float maxValue = Math.max(mMaxOfOthers, newValue); in setValue() local 93 mLastAggregatedValue = Utilities.boundToRange(multValue, minValue, maxValue); in setValue()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioPolicyVolumeCallback.java | 176 int maxValue = Math.min(currentVolume + 1, in evaluateVolumeAdjustmentInternal() local 179 maxValue = minGain; in evaluateVolumeAdjustmentInternal() 181 mVolumeCallback.onGroupVolumeChange(zoneId, groupId, maxValue, flags); in evaluateVolumeAdjustmentInternal()
|
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/util/ |
D | BitwiseUtilsTest.java | 216 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/apps/Settings/src/com/android/settings/accessibility/ |
D | FloatingMenuTransparencyPreferenceController.java | 147 final float maxValue = MAX_PROGRESS / PRECISION; in getTransparency() local 149 return (transparencyValue < minValue || transparencyValue > maxValue) in getTransparency()
|