Home
last modified time | relevance | path

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

12

/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DCheckHelpers.java24 public static void checkTypeInRange(int type, int maxValue) { in checkTypeInRange() argument
29 if (type > maxValue) { in checkTypeInRange()
31 String.format("type out of range (value=%d, max=%d)", type, maxValue)); in checkTypeInRange()
36 public static void checkStateInRange(int state, int maxValue) { in checkStateInRange() argument
41 if (state > maxValue) { in checkStateInRange()
43 String.format("state out of range (value=%d, max=%d)", state, maxValue)); in checkStateInRange()
/frameworks/base/media/java/android/media/
DAudioGain.java76 int minValue, int maxValue, int defaultValue, int stepValue, in AudioGain() argument
82 mMaxValue = maxValue; in AudioGain()
114 public int maxValue() { in maxValue() method in AudioGain
/frameworks/ml/nn/common/operations/
DLogSoftmax.cpp52 T maxValue = input[outer * axisSize * innerSize + inner]; in compute() local
54 maxValue = std::max(maxValue, input[(outer * axisSize + i) * innerSize + inner]); in compute()
60 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta)); in compute()
66 (input[(outer * axisSize + i) * innerSize + inner] - maxValue) * beta - in compute()
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()
DRoiPooling.cpp122 T_Input maxValue = static_cast<T_Input>(inputShape.offset); in roiPoolingNhwc() local
127 if (first || inputValue > maxValue) { in roiPoolingNhwc()
128 maxValue = inputValue; in roiPoolingNhwc()
133 outPtr[k] = maxValue; in roiPoolingNhwc()
/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/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.java137 public final void setRange(int minValue, int maxValue) { in setRange() argument
142 if (mMaxValue != maxValue) { in setRange()
143 mMaxValue = maxValue; in setRange()
144 mMaxCount = 1 + (int) (Math.log(maxValue) / LOG_RADIX); in setRange()
DAutoScrollHelper.java604 private float getEdgeValue(float relativeValue, float size, float maxValue, float current) { in getEdgeValue() argument
606 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue); in getEdgeValue()
/frameworks/base/libs/hwui/utils/
DMathUtils.h86 static inline T clamp(T a, T minValue, T maxValue) { in clamp() argument
87 return std::min(std::max(a, minValue), maxValue); in clamp()
/frameworks/native/services/inputflinger/reader/mapper/
DJoystickInputMapper.cpp103 mAxes.keyAt(i), axis.rawAxisInfo.minValue, axis.rawAxisInfo.maxValue, in dump()
141 float highScale = 1.0f / (rawAxisInfo.maxValue - axisInfo.splitValue); in configure()
146 float scale = 2.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in configure()
147 float offset = avg(rawAxisInfo.minValue, rawAxisInfo.maxValue) * -scale; in configure()
152 float scale = 1.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in configure()
264 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process()
DExternalStylusInputMapper.cpp80 mStylusState.pressure = float(pressure) / mRawPressureAxis.maxValue; in sync()
DInputMapper.cpp86 axis.minValue, axis.maxValue, axis.flat, axis.fuzz, axis.resolution); in dumpRawAbsoluteAxisInfo()
DTouchInputMapper.cpp802 if (mRawPointerAxes.touchMajor.valid && mRawPointerAxes.touchMajor.maxValue != 0) { in configureSurface()
803 mSizeScale = 1.0f / mRawPointerAxes.touchMajor.maxValue; in configureSurface()
804 } else if (mRawPointerAxes.toolMajor.valid && mRawPointerAxes.toolMajor.maxValue != 0) { in configureSurface()
805 mSizeScale = 1.0f / mRawPointerAxes.toolMajor.maxValue; in configureSurface()
854 pressureMax = mPressureScale * mRawPointerAxes.pressure.maxValue; in configureSurface()
855 } else if (mRawPointerAxes.pressure.valid && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
856 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
875 mTiltXCenter = avg(mRawPointerAxes.tiltX.minValue, mRawPointerAxes.tiltX.maxValue); in configureSurface()
876 mTiltYCenter = avg(mRawPointerAxes.tiltY.minValue, mRawPointerAxes.tiltY.maxValue); in configureSurface()
908 if (mRawPointerAxes.orientation.maxValue > 0) { in configureSurface()
[all …]
DMultiTouchInputMapper.cpp349 mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) { in configureRawPointerAxes()
350 size_t slotCount = mRawPointerAxes.slot.maxValue + 1; in configureRawPointerAxes()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h44 void setMaxValueInMb(int maxValue) { mGain.max_value = maxValue; } in setMaxValueInMb() argument
/frameworks/base/core/java/android/service/controls/templates/
DRangeTemplate.java69 float maxValue, in RangeTemplate() argument
75 mMaxValue = maxValue; in RangeTemplate()
/frameworks/av/media/libstagefright/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/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/av/media/libaaudio/examples/loopback/src/analyzer/
DLatencyAnalyzer.h184 float maxValue = 1.0e-9f; in normalize() local
186 maxValue = std::max(maxValue, abs(mData[i])); in normalize()
188 float gain = target / maxValue; in normalize()
/frameworks/base/core/java/android/widget/
DTimePickerSpinnerDelegate.java123 int maxValue = mMinuteSpinner.getMaxValue(); in TimePickerSpinnerDelegate()
124 if (oldVal == maxValue && newVal == minValue) { in TimePickerSpinnerDelegate()
131 } else if (oldVal == minValue && newVal == maxValue) { in TimePickerSpinnerDelegate()
DRadialTimePickerView.java1118 final int maxValue; in adjustPicker() local
1127 maxValue = 23; in adjustPicker()
1131 maxValue = 12; in adjustPicker()
1137 maxValue = 55; in adjustPicker()
1141 final int clampedValue = MathUtils.constrain(nextValue, minValue, maxValue); in adjustPicker()
/frameworks/layoutlib/bridge/src/android/view/
DBridgeInflater.java480 String maxValue = attrs.getAttributeValue(BridgeConstants.NS_TOOLS_URI, "maxValue"); in setupViewInContext() local
481 if (maxValue != null) { in setupViewInContext()
482 numberPicker.setMaxValue(Integer.parseInt(maxValue)); in setupViewInContext()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DToggleRangeBehavior.kt285 return MathUtils.constrainedMap(rangeTemplate.minValue, rangeTemplate.maxValue, in <lambda>()
291 rangeTemplate.minValue, rangeTemplate.maxValue, i).toInt() in <lambda>()
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h64 int32_t maxValue; // maximum value member
72 maxValue = 0; in clear()

12