Home
last modified time | relevance | path

Searched refs:upperBound (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/util/
DMoreMath.java27 public static int clamp(int input, int lowerBound, int upperBound) { in clamp() argument
29 if (input > upperBound) return upperBound; in clamp()
37 public static float clamp(float input, float lowerBound, float upperBound) { in clamp() argument
39 if (input > upperBound) return upperBound; in clamp()
47 public static double clamp(double input, double lowerBound, double upperBound) { in clamp() argument
49 if (input > upperBound) return upperBound; in clamp()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DInterpolators.java148 float upperBound) { in clampToProgress() argument
149 if (upperBound <= lowerBound) { in clampToProgress()
151 "lowerBound (%f) must be less than upperBound (%f)", lowerBound, upperBound)); in clampToProgress()
157 if (t > upperBound) { in clampToProgress()
160 return interpolator.getInterpolation((t - lowerBound) / (upperBound - lowerBound)); in clampToProgress()
170 float upperBound) {
171 return t -> Utilities.mapRange(interpolator.getInterpolation(t), lowerBound, upperBound);
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimTimeBar.java155 private int clampScrubber(int scrubberLeft, int offset, int lowerBound, int upperBound) { in clampScrubber() argument
156 int max = upperBound - offset; in clampScrubber()
258 int upperBound = mTrimEndScrubberLeft + trimEndScrubberTipOffset(); in onTouchEvent() local
265 lowerBound, upperBound); in onTouchEvent()
279 lowerBound, upperBound); in onTouchEvent()
285 upperBound = mProgressBar.right; in onTouchEvent()
289 lowerBound, upperBound); in onTouchEvent()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java135 int upperBound = Math.min(position + count, size()); in removeItems() local
136 for (int i = position; i < upperBound; i++) { in removeItems()
139 if (upperBound > size() - mExtraItemCount) { in removeItems()
140 mExtraItemCount -= upperBound - Math.max(size() - mExtraItemCount, position); in removeItems()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncCursorPair.java84 SyncCursorPair(final long lowerBound, final long upperBound) { in SyncCursorPair() argument
89 upperBound, in SyncCursorPair()
95 upperBound, in SyncCursorPair()
101 ((upperBound < 0) ? upperBound : (upperBound + 999) / 1000), /*seconds*/ in SyncCursorPair()
DSyncMessagesAction.java134 private SyncMessagesAction(final long lowerBound, final long upperBound, in SyncMessagesAction() argument
137 actionParameters.putLong(KEY_UPPER_BOUND, upperBound); in SyncMessagesAction()
/packages/apps/Launcher3/src/com/android/launcher3/
DUtilities.java420 public static int boundToRange(int value, int lowerBound, int upperBound) { in boundToRange() argument
421 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
427 public static float boundToRange(float value, float lowerBound, float upperBound) { in boundToRange() argument
428 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
434 public static long boundToRange(long value, long lowerBound, long upperBound) { in boundToRange() argument
435 return Math.max(lowerBound, Math.min(value, upperBound)); in boundToRange()
/packages/apps/Gallery/src/com/android/camera/
DUtil.java127 int upperBound = (minSideLength == IImage.UNCONSTRAINED) ? 128 : in computeInitialSampleSize() local
131 if (upperBound < lowerBound) { in computeInitialSampleSize()
142 return upperBound; in computeInitialSampleSize()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/audio/
DMpegTsDefaultAudioTrackRenderer.java610 long upperBound = mPresentationTimeUs + CURRENT_POSITION_FROM_PTS_LIMIT_US; in getPositionUs() local
611 if (mCurrentPositionUs > upperBound) { in getPositionUs()
612 mCurrentPositionUs = upperBound; in getPositionUs()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java200 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize() local
204 if (upperBound < lowerBound) { in computeInitialSampleSize()
214 return upperBound; in computeInitialSampleSize()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java226 int upperBound = (minSideLength < 0) ? 128 : in computeInitialSampleSize() local
230 if (upperBound < lowerBound) { in computeInitialSampleSize()
240 return upperBound; in computeInitialSampleSize()
/packages/apps/Dialer/java/com/android/dialer/app/list/
DPhoneFavoritesTileAdapter.java622 final int upperBound = Math.max(oldPos, newPinPos); in getReflowedPinningOperations() local
623 for (int i = lowerBound; i <= upperBound; i++) { in getReflowedPinningOperations()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java647 final long upperBound = startTime + 7_200_000; // start timestamp + 2h
650 assertTrue(upperBound > expiry);