/frameworks/support/design/base/android/support/design/widget/ |
H A D | MathUtils.java | 21 static int constrain(int amount, int low, int high) { method in class:MathUtils 25 static float constrain(float amount, float low, float high) { method in class:MathUtils
|
/frameworks/support/v4/java/android/support/v4/graphics/ |
H A D | ColorUtils.java | 193 hsl[0] = constrain(h, 0f, 360f); 194 hsl[1] = constrain(s, 0f, 1f); 195 hsl[2] = constrain(l, 0f, 1f); 272 r = constrain(r, 0, 255); 273 g = constrain(g, 0, 255); 274 b = constrain(b, 0, 255); 289 private static float constrain(float amount, float low, float high) { method in class:ColorUtils 293 private static int constrain(int amount, int low, int high) { method in class:ColorUtils
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 61 * <li>Maximum size used to constrain relative size, see 75 * <li>Minimum velocity used to constrain relative velocity, see 79 * <li>Maximum velocity used to constrain relative velocity, see 362 * be used to constrain the calculated relative edge size. 383 * the maximum edge will be used to constrain the calculated relative edge 556 return constrain(value * targetVelocity, minimumVelocity, maximumVelocity); 558 return -constrain(-value * targetVelocity, minimumVelocity, maximumVelocity); 607 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue); 620 return constrain(interpolated, -1, 1); 652 private static int constrain(in method in class:AutoScrollHelper 662 private static float constrain(float value, float min, float max) { method in class:AutoScrollHelper [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 60 * <li>Maximum size used to constrain relative size, see 74 * <li>Minimum velocity used to constrain relative velocity, see 78 * <li>Maximum velocity used to constrain relative velocity, see 361 * be used to constrain the calculated relative edge size. 382 * the maximum edge will be used to constrain the calculated relative edge 555 return constrain(value * targetVelocity, minimumVelocity, maximumVelocity); 557 return -constrain(-value * targetVelocity, minimumVelocity, maximumVelocity); 606 final float edgeSize = constrain(relativeValue * size, NO_MIN, maxValue); 619 return constrain(interpolated, -1, 1); 651 private static int constrain(in method in class:AutoScrollHelper 661 private static float constrain(float value, float min, float max) { method in class:AutoScrollHelper [all...] |
H A D | ViewPager.java | 525 item = MathUtils.constrain(item, 0, mAdapter.getCount() - 1); 595 final int scaledOffset = (int) (width * MathUtils.constrain( 2246 targetPage = MathUtils.constrain(targetPage, firstItem.position, lastItem.position);
|
/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 38 public static int constrain(int amount, int low, int high) { method in class:MathUtils 42 public static long constrain(long amount, long low, long high) { method in class:MathUtils 46 public static float constrain(float amount, float low, float high) { method in class:MathUtils
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Color.java | 269 h = MathUtils.constrain(h, 0.0f, 1.0f); 270 s = MathUtils.constrain(s, 0.0f, 1.0f); 271 b = MathUtils.constrain(b, 0.0f, 1.0f);
|
/frameworks/base/core/java/android/widget/ |
H A D | DayPickerView.java | 162 final long setDateMillis = MathUtils.constrain( 368 return MathUtils.constrain(diffMonth, 0, diffMonthMax);
|
H A D | FastScroller.java | 995 final int exactSection = MathUtils.constrain( 1063 targetIndex = MathUtils.constrain(targetIndex, 0, count - 1); 1076 final int index = MathUtils.constrain((int) (position * count), 0, count - 1); 1220 final float previewMiddle = MathUtils.constrain(previewPos, minP, maxP); 1235 return MathUtils.constrain((y - mThumbOffset) / mThumbRange, 0f, 1f);
|
H A D | SimpleMonthView.java | 566 mEnabledDayStart = MathUtils.constrain(enabledDayStart, 1, mDaysInMonth); 567 mEnabledDayEnd = MathUtils.constrain(enabledDayEnd, mEnabledDayStart, mDaysInMonth);
|
H A D | Switch.java | 967 final float newPos = MathUtils.constrain(mThumbPosition + dPos, 0, 1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | DozeParameters.java | 139 return MathUtils.constrain(value, 0, MAX_DURATION);
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | BatchedScanSettings.java | 139 public void constrain() { method in class:BatchedScanSettings
|
/frameworks/base/core/java/android/content/res/ |
H A D | ColorStateList.java | 451 final int alpha = MathUtils.constrain((int) (baseAlpha * alphaMod + 0.5f), 0, 255);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QSTileView.java | 107 float largeFactor = (MathUtils.constrain(getResources().getConfiguration().fontScale,
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsRecorder.java | 107 mPersistThresholdBytes = MathUtils.constrain(
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 249 return MathUtils.constrain(index, 0, bucketCount - 1); 263 return MathUtils.constrain(index, 0, bucketCount - 1);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | NetworkControllerImpl.java | 713 int num = MathUtils.constrain(Integer.parseInt(sims), 1, 8); 735 slot = MathUtils.constrain(slot, 0, 8);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | DisplayPowerController.java | 810 return MathUtils.constrain( 1192 return MathUtils.constrain(value, PowerManager.BRIGHTNESS_OFF, PowerManager.BRIGHTNESS_ON);
|
H A D | AutomaticBrightnessController.java | 524 return MathUtils.constrain(value,
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageInstallerSession.java | 320 mProgress = MathUtils.constrain(mClientProgress * 0.8f, 0f, 0.8f) 321 + MathUtils.constrain(mInternalProgress * 0.2f, 0f, 0.2f);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | SwitchCompat.java | 683 final float newPos = constrain(mThumbPosition + dPos, 0, 1); 1141 private static float constrain(float amount, float low, float high) { method in class:SwitchCompat
|
/frameworks/base/core/java/android/service/dreams/ |
H A D | DreamService.java | 1089 return MathUtils.constrain(value, PowerManager.BRIGHTNESS_OFF, PowerManager.BRIGHTNESS_ON);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingTextHelper.java | 240 fraction = MathUtils.constrain(fraction, 0f, 1f);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | ZenModePanel.java | 894 return MathUtils.constrain(index, -1, MINUTE_BUCKETS.length - 1); 904 return MathUtils.constrain(noneSelected, 0, Integer.MAX_VALUE);
|