/packages/apps/Contacts/src/com/android/contacts/util/ |
D | MoreMath.java | 27 public static int clamp(int input, int lowerBound, int upperBound) { in clamp() argument 28 if (input < lowerBound) return lowerBound; in clamp() 37 public static float clamp(float input, float lowerBound, float upperBound) { in clamp() argument 38 if (input < lowerBound) return lowerBound; in clamp() 47 public static double clamp(double input, double lowerBound, double upperBound) { in clamp() argument 48 if (input < lowerBound) return lowerBound; in clamp()
|
/packages/apps/Launcher3/src/com/android/launcher3/anim/ |
D | Interpolators.java | 147 public static Interpolator clampToProgress(Interpolator interpolator, float lowerBound, in clampToProgress() argument 149 if (upperBound <= lowerBound) { in clampToProgress() 151 "lowerBound (%f) must be less than upperBound (%f)", lowerBound, upperBound)); in clampToProgress() 154 if (t < lowerBound) { in clampToProgress() 160 return interpolator.getInterpolation((t - lowerBound) / (upperBound - lowerBound)); in clampToProgress() 169 public static Interpolator mapToProgress(Interpolator interpolator, float lowerBound, 171 return t -> Utilities.mapRange(interpolator.getInterpolation(t), lowerBound, upperBound);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TrimTimeBar.java | 155 private int clampScrubber(int scrubberLeft, int offset, int lowerBound, int upperBound) { in clampScrubber() argument 157 int min = lowerBound - offset; in clampScrubber() 257 int lowerBound = mTrimStartScrubberLeft + trimStartScrubberTipOffset(); in onTouchEvent() local 265 lowerBound, upperBound); in onTouchEvent() 275 lowerBound = mProgressBar.left; in onTouchEvent() 279 lowerBound, upperBound); in onTouchEvent() 289 lowerBound, upperBound); in onTouchEvent()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | SyncCursorPair.java | 84 SyncCursorPair(final long lowerBound, final long upperBound) { in SyncCursorPair() argument 88 lowerBound, in SyncCursorPair() 94 lowerBound, in SyncCursorPair() 100 ((lowerBound < 0) ? lowerBound : (lowerBound + 999) / 1000), /*seconds*/ in SyncCursorPair()
|
D | SyncMessagesAction.java | 134 private SyncMessagesAction(final long lowerBound, final long upperBound, in SyncMessagesAction() argument 136 actionParameters.putLong(KEY_LOWER_BOUND, lowerBound); in SyncMessagesAction()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 420 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/ |
D | Util.java | 125 int lowerBound = (maxNumOfPixels == IImage.UNCONSTRAINED) ? 1 : in computeInitialSampleSize() local 131 if (upperBound < lowerBound) { in computeInitialSampleSize() 133 return lowerBound; in computeInitialSampleSize() 140 return lowerBound; in computeInitialSampleSize()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 73 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : in computeInitialSampleSize() local 77 return lowerBound; in computeInitialSampleSize() 80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 198 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize() local 204 if (upperBound < lowerBound) { in computeInitialSampleSize() 206 return lowerBound; in computeInitialSampleSize() 212 return lowerBound; in computeInitialSampleSize()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 224 int lowerBound = (maxNumOfPixels < 0) ? 1 : in computeInitialSampleSize() local 230 if (upperBound < lowerBound) { in computeInitialSampleSize() 232 return lowerBound; in computeInitialSampleSize() 238 return lowerBound; in computeInitialSampleSize()
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
D | PhoneFavoritesTileAdapter.java | 621 final int lowerBound = Math.min(oldPos, newPinPos); in getReflowedPinningOperations() local 623 for (int i = lowerBound; i <= upperBound; i++) { in getReflowedPinningOperations()
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 648 final long lowerBound = startTime + 3_600_000; // start timestamp + 1h 651 assertTrue(lowerBound < expiry);
|