Home
last modified time | relevance | path

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

12

/frameworks/libs/modules-utils/javatests/com/android/modules/expresslog/
DUniformOptionsTest.java100 final int maxValue = 100000; in testBinIndexForRangeEqual90() local
103 maxValue); in testBinIndexForRangeEqual90()
109 assertEquals(binCount + 1, options.getBinForSample(maxValue)); in testBinIndexForRangeEqual90()
110 assertEquals(binCount + 1, options.getBinForSample(maxValue + 1)); in testBinIndexForRangeEqual90()
116 assertEquals(binCount, options.getBinForSample(maxValue - 1)); in testBinIndexForRangeEqual90()
119 final int binSize = (maxValue - minValue) / binCount; in testBinIndexForRangeEqual90()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/backlight/ui/
DKeyboardBacklightDialogCoordinatorTest.kt60 private val createDialog = { value: Int, maxValue: Int -> in <lambda>() method
62 dialogCreationMaxValue = maxValue in <lambda>()
95 setBacklightValue(value = 1, maxValue = 5) in <lambda>()
96 setBacklightValue(value = 2, maxValue = 5) in <lambda>()
104 setBacklightValue(value = 4, maxValue = 5) in <lambda>()
150 private fun TestScope.setBacklightValue(value: Int, maxValue: Int = MAX_BACKLIGHT) { in <lambda>()
151 keyboardRepository.setBacklight(BacklightModel(value, maxValue)) in <lambda>()
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DHardwareProperties.cpp39 props.right = absMtPositionX.maxValue; in createHardwareProperties()
45 props.bottom = absMtPositionY.maxValue; in createHardwareProperties()
51 props.orientation_maximum = absMtOrientation.maxValue; in createHardwareProperties()
55 props.max_finger_cnt = absMtSlot.maxValue - absMtSlot.minValue + 1; in createHardwareProperties()
/frameworks/base/media/java/android/media/
DAudioGain.java77 int minValue, int maxValue, int defaultValue, int stepValue, in AudioGain() argument
83 mMaxValue = maxValue; in AudioGain()
115 public int maxValue() { in maxValue() method in AudioGain
/frameworks/native/services/inputflinger/reader/mapper/
DCapturedTouchpadEventConverter.cpp59 if (orientationInfo.maxValue > 0) { in CapturedTouchpadEventConverter()
60 mOrientationScale = M_PI_2 / orientationInfo.maxValue; in CapturedTouchpadEventConverter()
69 if (pressureInfo.valid && pressureInfo.maxValue > 0) { in CapturedTouchpadEventConverter()
70 mPressureScale = 1.0 / pressureInfo.maxValue; in CapturedTouchpadEventConverter()
78 if (mHasTouchMajor && touchMajorInfo.maxValue != 0) { in CapturedTouchpadEventConverter()
79 mSizeScale = 1.0f / touchMajorInfo.maxValue; in CapturedTouchpadEventConverter()
80 } else if (mHasToolMajor && toolMajorInfo.maxValue != 0) { in CapturedTouchpadEventConverter()
81 mSizeScale = 1.0f / toolMajorInfo.maxValue; in CapturedTouchpadEventConverter()
124 if (orientationInfo.valid && (orientationInfo.maxValue > 0 || orientationInfo.minValue < 0)) { in populateMotionRanges()
139 deviceInfo.addMotionRange(androidAxis, SOURCE, info.minValue, info.maxValue, info.flat, in tryAddRawMotionRange()
DJoystickInputMapper.cpp101 rawAxis, axis.rawAxisInfo.minValue, axis.rawAxisInfo.maxValue, in dump()
186 highScale = 1.0f / (rawAxisInfo.maxValue - axisInfo.splitValue); in createAxis()
188 scale = 2.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in createAxis()
189 offset = avg(rawAxisInfo.minValue, rawAxisInfo.maxValue) * -scale; in createAxis()
194 scale = 1.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in createAxis()
272 newValue = (axis.rawAxisInfo.maxValue - rawEvent.value) * axis.scale + in process()
DMultiTouchInputMapper.cpp205 mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) { in configureRawPointerAxes()
206 size_t slotCount = mRawPointerAxes.slot.maxValue + 1; in configureRawPointerAxes()
DExternalStylusInputMapper.cpp88 static_cast<float>(mRawPressureAxis.maxValue - mRawPressureAxis.minValue); in sync()
DSensorInputMapper.cpp112 axis.rawAxisInfo.minValue, axis.rawAxisInfo.maxValue, in dump()
171 offset = avg(rawAxisInfo.minValue, rawAxisInfo.maxValue) * -scale; in createAxis()
173 const float max = rawAxisInfo.maxValue / rawAxisInfo.resolution; in createAxis()
DTouchpadInputMapper.cpp245 if (!slotAxisInfo.valid || slotAxisInfo.maxValue < 0) { in TouchpadInputMapper()
248 slotAxisInfo.maxValue = 0; in TouchpadInputMapper()
250 mMotionAccumulator.configure(deviceContext, slotAxisInfo.maxValue + 1, true); in TouchpadInputMapper()
/frameworks/minikin/tests/unittest/
DFontUtilsTest.cpp47 Fvar(uint32_t tag, float minValue, float defaultValue, float maxValue) in Fvar()
48 : tag(tag), minValue(minValue), defaultValue(defaultValue), maxValue(maxValue) {} in Fvar()
53 float maxValue; member
74 head = writeU32(floatToFixed(fvar.maxValue), out.data(), head); in buildFvarTable()
/frameworks/base/core/java/android/content/res/
DTagCounter.java35 void reset(int maxValue) { in reset() argument
36 this.mMaxValue = maxValue; in reset()
/frameworks/base/libs/hwui/jni/
DNinePatchPeeker.cpp51 static void scaleDivRange(int32_t* divs, int count, float scale, int maxValue) { in scaleDivRange() argument
59 if (CC_UNLIKELY(divs[count - 1] > maxValue)) { in scaleDivRange()
62 int highestAvailable = maxValue; in scaleDivRange()
/frameworks/base/core/java/com/android/internal/widget/
DNumericTextView.java138 public final void setRange(int minValue, int maxValue) { in setRange() argument
143 if (mMaxValue != maxValue) { in setRange()
144 mMaxValue = maxValue; in setRange()
145 mMaxCount = 1 + (int) (Math.log(maxValue) / LOG_RADIX); in setRange()
/frameworks/base/libs/hwui/utils/
DMathUtils.h88 static inline T clamp(T a, T minValue, T maxValue) { in clamp() argument
89 return std::min(std::max(a, minValue), maxValue); in clamp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/
DKeyboardBacklightDialogCoordinator.kt72 dialog = createDialog(model.currentValue, model.maxValue) in showDialog()
74 dialog?.updateState(model.currentValue, model.maxValue) in showDialog()
/frameworks/base/core/java/android/service/controls/templates/
DRangeTemplate.java69 float maxValue, in RangeTemplate() argument
75 mMaxValue = maxValue; in RangeTemplate()
/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/
DFlingAnimation.java102 public FlingAnimation setMaxValue(float maxValue) { in setMaxValue() argument
103 super.setMaxValue(maxValue); in setMaxValue()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h46 void setMaxValueInMb(int maxValue) { mGain.max_value = maxValue; } in setMaxValueInMb() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyboard/backlight/ui/viewmodel/
DBacklightDialogContentViewModel.kt20 data class BacklightDialogContentViewModel(val currentValue: Int, val maxValue: Int) constant in com.android.systemui.keyboard.backlight.ui.viewmodel.BacklightDialogContentViewModel
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DFlagged.h132 static constexpr Flag minMask(Flag maxValue, int shift=sizeof(Flag) * 4) {
135 return shift ? minMask<Flag>(Flag(maxValue | (maxValue >> shift)), shift >> 1) : maxValue;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
DBrightnessSliderControllerTest.kt143 val maxValue = 100 in testSettingMirrorControllerReliesValuesAndSetsTouchTracking() constant
146 whenever(brightnessSliderView.max).thenReturn(maxValue) in testSettingMirrorControllerReliesValuesAndSetsTouchTracking()
151 verify(mirror).max = maxValue in testSettingMirrorControllerReliesValuesAndSetsTouchTracking()
/frameworks/rs/script_api/
DGenerateTestFiles.cpp336 << vectorSize << ", " << seed << ", " << param.minValue << ", " << param.maxValue in writeJavaInputAllocationDefinition()
354 double maxValue = 0.0; in writeJavaRandomCompatibleFloatAllocation() local
360 maxValue = ldexp(0.95, (1 << bits) - 1); in writeJavaRandomCompatibleFloatAllocation()
361 minValue = -maxValue; in writeJavaRandomCompatibleFloatAllocation()
365 maxValue = maxDoubleForInteger(compatibleType.significantBits, in writeJavaRandomCompatibleFloatAllocation()
370 maxValue = maxDoubleForInteger(compatibleType.significantBits, in writeJavaRandomCompatibleFloatAllocation()
372 minValue = -maxValue - 1.0; in writeJavaRandomCompatibleFloatAllocation()
376 *mJava << minValue << ", " << maxValue << ")"; in writeJavaRandomCompatibleFloatAllocation()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java954 MinimumOneByteRangeValidator(int minValue, int maxValue) { in MinimumOneByteRangeValidator() argument
956 mMaxValue = maxValue; in MinimumOneByteRangeValidator()
972 SingleByteRangeValidator(int minValue, int maxValue) { in SingleByteRangeValidator() argument
974 mMaxValue = maxValue; in SingleByteRangeValidator()
/frameworks/base/core/java/android/widget/
DTimePickerSpinnerDelegate.java121 int maxValue = mMinuteSpinner.getMaxValue(); in TimePickerSpinnerDelegate()
122 if (oldVal == maxValue && newVal == minValue) { in TimePickerSpinnerDelegate()
129 } else if (oldVal == minValue && newVal == maxValue) { in TimePickerSpinnerDelegate()

12