/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/ |
D | CheckHelpers.java | 24 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/ |
D | AudioGain.java | 76 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/ |
D | Softmax.cpp | 64 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()
|
D | LogSoftmax.cpp | 52 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()
|
D | RoiPooling.cpp | 122 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/ |
D | FontUtilsTest.cpp | 47 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/ |
D | NinePatchPeeker.cpp | 51 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/ |
D | NumericTextView.java | 137 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()
|
D | AutoScrollHelper.java | 604 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/ |
D | MathUtils.h | 86 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/ |
D | JoystickInputMapper.cpp | 102 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()
|
D | TouchInputMapper.cpp | 815 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 …]
|
D | ExternalStylusInputMapper.cpp | 80 mStylusState.pressure = float(pressure) / mRawPressureAxis.maxValue; in sync()
|
D | MultiTouchInputMapper.cpp | 342 mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) { in configureRawPointerAxes() 343 size_t slotCount = mRawPointerAxes.slot.maxValue + 1; in configureRawPointerAxes()
|
D | InputMapper.cpp | 88 axis.minValue, axis.maxValue, axis.flat, axis.fuzz, axis.resolution); in dumpRawAbsoluteAxisInfo()
|
D | TouchInputMapper.h | 110 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/ |
D | AudioGain.h | 44 void setMaxValueInMb(int maxValue) { mGain.max_value = maxValue; } in setMaxValueInMb() argument
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | Flagged.h | 132 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/ |
D | WifiScoreCard.java | 704 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/ |
D | GenerateTestFiles.cpp | 336 << 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/ |
D | TimePickerSpinnerDelegate.java | 121 int maxValue = mMinuteSpinner.getMaxValue(); in TimePickerSpinnerDelegate() 122 if (oldVal == maxValue && newVal == minValue) { in TimePickerSpinnerDelegate() 129 } else if (oldVal == minValue && newVal == maxValue) { in TimePickerSpinnerDelegate()
|
D | RadialTimePickerView.java | 1118 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/ |
D | WifiScoreCardTest.java | 185 .rssi.maxValue, TOL); in testRssiPollUpdates() 233 .elapsedMs.maxValue, TOL); in testDurationStatistics() 276 .rssi.maxValue, TOL); in checkSerializationExample()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | BridgeInflater.java | 481 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/ |
D | EventHub.h | 64 int32_t maxValue; // maximum value member 72 maxValue = 0; in clear()
|