Home
last modified time | relevance | path

Searched refs:maxValue (Results 1 – 25 of 36) 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/
DSoftmax.cpp64 float maxValue = -FLT_MAX; in softmaxSlowFloat32() local
66 maxValue = std::max(maxValue, *p); in softmaxSlowFloat32()
71 sum += std::exp((*p - maxValue) * beta); in softmaxSlowFloat32()
76 *pOut = std::exp((*p - maxValue) * beta) / sum; in softmaxSlowFloat32()
139 T maxValue = std::is_same_v<T, int8_t> ? -128 : 0; in softmaxQuant8Impl() local
141 maxValue = std::max(maxValue, *p); in softmaxQuant8Impl()
147 int32_t input_diff = static_cast<int32_t>(*p) - maxValue; in softmaxQuant8Impl()
175 int32_t input_diff = static_cast<int32_t>(*p) - maxValue; in softmaxQuant8Impl()
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()
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/core/jni/android/graphics/
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.cpp102 mAxes.keyAt(i), axis.rawAxisInfo.minValue, axis.rawAxisInfo.maxValue, in dump()
139 float highScale = 1.0f / (rawAxisInfo.maxValue - axisInfo.splitValue); in configure()
144 float scale = 2.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in configure()
145 float offset = avg(rawAxisInfo.minValue, rawAxisInfo.maxValue) * -scale; in configure()
150 float scale = 1.0f / (rawAxisInfo.maxValue - rawAxisInfo.minValue); in configure()
262 newValue = (axis.rawAxisInfo.maxValue - rawEvent->value) * axis.scale + in process()
DTouchInputMapper.cpp815 if (mRawPointerAxes.touchMajor.valid && mRawPointerAxes.touchMajor.maxValue != 0) { in configureSurface()
816 mSizeScale = 1.0f / mRawPointerAxes.touchMajor.maxValue; in configureSurface()
817 } else if (mRawPointerAxes.toolMajor.valid && mRawPointerAxes.toolMajor.maxValue != 0) { in configureSurface()
818 mSizeScale = 1.0f / mRawPointerAxes.toolMajor.maxValue; in configureSurface()
867 pressureMax = mPressureScale * mRawPointerAxes.pressure.maxValue; in configureSurface()
868 } else if (mRawPointerAxes.pressure.valid && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
869 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
888 mTiltXCenter = avg(mRawPointerAxes.tiltX.minValue, mRawPointerAxes.tiltX.maxValue); in configureSurface()
889 mTiltYCenter = avg(mRawPointerAxes.tiltY.minValue, mRawPointerAxes.tiltY.maxValue); in configureSurface()
921 if (mRawPointerAxes.orientation.maxValue > 0) { in configureSurface()
[all …]
DExternalStylusInputMapper.cpp80 mStylusState.pressure = float(pressure) / mRawPressureAxis.maxValue; in sync()
DMultiTouchInputMapper.cpp342 mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) { in configureRawPointerAxes()
343 size_t slotCount = mRawPointerAxes.slot.maxValue + 1; in configureRawPointerAxes()
DInputMapper.cpp88 axis.minValue, axis.maxValue, axis.flat, axis.fuzz, axis.resolution); in dumpRawAbsoluteAxisInfo()
DTouchInputMapper.h110 inline int32_t getRawWidth() const { return x.maxValue - x.minValue + 1; } in getRawWidth()
111 inline int32_t getRawHeight() const { return y.maxValue - y.minValue + 1; } in getRawHeight()
/frameworks/av/media/libaudiofoundation/include/media/
DAudioGain.h44 void setMaxValueInMb(int maxValue) { mGain.max_value = maxValue; } in setMaxValueInMb() argument
/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/opt/net/wifi/service/java/com/android/server/wifi/
DWifiScoreCard.java704 public double maxValue = Double.NEGATIVE_INFINITY; field in WifiScoreCard.PerUnivariateStatistic
718 this.maxValue = stats.getMaxValue(); in PerUnivariateStatistic()
732 maxValue = Math.max(maxValue, value); in update()
747 maxValue = Math.max(maxValue, stats.getMaxValue()); in merge()
774 .setMaxValue(maxValue); in toUnivariateStatistic()
/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/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()
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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiScoreCardTest.java185 .rssi.maxValue, TOL); in testRssiPollUpdates()
233 .elapsedMs.maxValue, TOL); in testDurationStatistics()
276 .rssi.maxValue, TOL); in checkSerializationExample()
/frameworks/layoutlib/bridge/src/android/view/
DBridgeInflater.java481 String maxValue = attrs.getAttributeValue(BridgeConstants.NS_TOOLS_URI, "maxValue"); in setupViewInContext() local
482 if (maxValue != null) { in setupViewInContext()
483 numberPicker.setMaxValue(Integer.parseInt(maxValue)); in setupViewInContext()
/frameworks/native/services/inputflinger/reader/include/
DEventHub.h64 int32_t maxValue; // maximum value member
72 maxValue = 0; in clear()

12