Home
last modified time | relevance | path

Searched refs:mMax (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/common/
DSeekBarPreference.java49 private int mMax; field in SeekBarPreference
223 mSeekBar.setMax(mMax - mMin); in onBindViewHolder()
258 if (min > mMax) { in setMin()
259 min = mMax; in setMin()
277 if (max != mMax) { in setMax()
278 mMax = max; in setMax()
303 mSeekBarIncrement = Math.min(mMax - mMin, Math.abs(seekBarIncrement)); in setSeekBarIncrement()
310 return mMax; in getMax()
342 if (seekBarValue > mMax) { in setValueInternal()
343 seekBarValue = mMax; in setValueInternal()
[all …]
DProgressBarPreference.java43 private int mMax; field in ProgressBarPreference
72 mMax = a.getInteger(R.styleable.ProgressBarPreference_max, 100); in init()
106 if (mMax != max) { in setMax()
107 mMax = max; in setMax()
131 progressBar.setMax(mMax); in onBindViewHolder()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/
DQCSlider.java30 private int mMax = 100; field in QCSlider
39 mMax = max; in QCSlider()
48 mMax = in.readInt(); in QCSlider()
64 dest.writeInt(mMax); in writeToParcel()
93 return mMax; in getMax()
117 private int mMax = 100; field in QCSlider.Builder
136 mMax = max; in setMax()
185 return new QCSlider(mMin, mMax, mValue, mIsEnabled, mIsClickableWhileDisabled, in build()
/packages/apps/TV/src/com/android/tv/menu/
DPlaybackProgressBar.java34 private long mMax = 100; field in PlaybackProgressBar
84 if (max != mMax) { in setMax()
85 mMax = max; in setMax()
101 start = constrain(start, 0, mMax); in setProgressRange()
102 end = constrain(end, start, mMax); in setProgressRange()
141 if (mMax == 0) { in setProgressBound()
150 int left = (int) (width * start / mMax); in setProgressBound()
151 int right = (int) (width * end / mMax); in setProgressBound()
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java53 private int mMax; field in SeekBarPreference
74 setMax(a.getInt(com.android.internal.R.styleable.ProgressBar_max, mMax)); in SeekBarPreference()
125 mSeekBar.setMax(mMax); in onBindViewHolder()
197 if (max != mMax) { in setMax()
198 mMax = max; in setMax()
211 return mMax; in getMax()
255 if (progress > mMax) { in setProgress()
256 progress = mMax; in setProgress()
288 if (progress == mMax || progress == mMin) { in syncProgress()
377 myState.max = mMax; in onSaveInstanceState()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DBrightnessLevelPreferenceControllerTest.java64 private int mMax; field in BrightnessLevelPreferenceControllerTest
86 mMax = mController.mMaximumBacklight; in setUp()
87 mMid = (mMax + mMin) / 2; in setUp()
126 mController.saveScreenBrightnessLinearValue(mMax); in testRefreshUi_maxValue()
137 assertThat(mSeekBarPreference.getValue()).isEqualTo(convertLinearToGamma(mMid, mMin, mMax)); in testRefreshUi_midValue()
151 assertThat(mController.getScreenBrightnessLinearValue()).isEqualTo(mMax); in testHandlePreferenceChanged_maxValue()
156 mSeekBarPreference.callChangeListener(convertLinearToGamma(mMid, mMin, mMax)); in testHandlePreferenceChanged_midValue()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
DCarVolumeItem.java39 private int mMax; field in CarVolumeItem
63 mMax = max; in setMax()
128 mSeekBar.setMax(carVolumeItem.mMax); in bind()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java486 private int mMax; field in WifiDiagnostics.LimitedCircularArray
489 mMax = max; in LimitedCircularArray()
493 if (mArrayList.size() >= mMax) in addLast()
/packages/modules/Connectivity/service-t/src/com/android/server/
DIpSecService.java328 private final int mMax; field in IpSecService.ResourceTracker
332 mMax = max; in ResourceTracker()
337 return (mCurrent < mMax); in isAvailable()
360 .append(mMax) in toString()