/packages/apps/Contacts/src/com/android/contacts/util/ |
MoreMath.java | 27 public static int clamp(int input, int lowerBound, int upperBound) { 28 if (input < lowerBound) return lowerBound; 37 public static float clamp(float input, float lowerBound, float upperBound) { 38 if (input < lowerBound) return lowerBound; 47 public static double clamp(double input, double lowerBound, double upperBound) { 48 if (input < lowerBound) return lowerBound;
|
/external/apache-http/src/org/apache/http/message/ |
ParserCursor.java | 47 private final int lowerBound; 51 public ParserCursor(int lowerBound, int upperBound) { 53 if (lowerBound < 0) { 56 if (lowerBound > upperBound) { 59 this.lowerBound = lowerBound; 61 this.pos = lowerBound; 65 return this.lowerBound; 77 if (pos < this.lowerBound) { 93 buffer.append(Integer.toString(this.lowerBound)); [all...] |
/external/guava/guava/src/com/google/common/collect/ |
Range.java | 114 final Cut<C> lowerBound; 117 Range(Cut<C> lowerBound, Cut<C> upperBound) { 118 if (lowerBound.compareTo(upperBound) > 0) { 120 "Invalid range: " + toString(lowerBound, upperBound)); 122 this.lowerBound = lowerBound; 130 return lowerBound != Cut.belowAll(); 140 return lowerBound.endpoint(); 152 return lowerBound.typeAsLowerBound(); 194 return lowerBound.equals(upperBound) [all...] |
TreeBasedTable.java | 177 @Nullable final C lowerBound; 184 TreeRow(R rowKey, @Nullable C lowerBound, @Nullable C upperBound) { 186 this.lowerBound = lowerBound; 188 checkArgument(lowerBound == null || upperBound == null 189 || compare(lowerBound, upperBound) <= 0); 204 return o != null && (lowerBound == null || compare(lowerBound, o) <= 0) 216 return new TreeRow(rowKey, lowerBound, toKey); 263 if (lowerBound != null) [all...] |
DescendingImmutableSortedMultiset.java | 78 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { 79 return forward.headMultiset(lowerBound, boundType).descendingMultiset();
|
EmptyImmutableSortedMultiset.java | 81 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { 82 checkNotNull(lowerBound);
|
SortedMultiset.java | 108 * {@code lowerBound} and {@code upperBound}. The returned multiset is a view 116 * {@code tailMultiset(lowerBound, lowerBoundType).headMultiset(upperBound, 119 SortedMultiset<E> subMultiset(E lowerBound, BoundType lowerBoundType, 124 * {@code lowerBound}, optionally including {@code lowerBound} itself. The 132 SortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType);
|
Ranges.java | 75 Cut<C> lowerBound, Cut<C> upperBound) { 76 return new Range<C>(lowerBound, upperBound); 138 Cut<C> lowerBound = (lowerType == BoundType.OPEN) 144 return create(lowerBound, upperBound);
|
RegularImmutableSortedMultiset.java | 171 public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { 176 elementList(), checkNotNull(lowerBound), comparator(), ANY_PRESENT, NEXT_LOWER) + 1; 180 elementList(), checkNotNull(lowerBound), comparator(), ANY_PRESENT, NEXT_HIGHER);
|
/frameworks/base/services/java/com/android/server/firewall/ |
PortFilter.java | 38 private PortFilter(int lowerBound, int upperBound) { 39 mLowerBound = lowerBound; 60 int lowerBound = NO_BOUND; 72 lowerBound = value; 87 lowerBound = Integer.parseInt(lowerBoundString); 107 return new PortFilter(lowerBound, upperBound);
|
/cts/tools/signature-tools/src/signature/model/impl/ |
SigWildcardType.java | 28 private ITypeReference lowerBound; 31 public SigWildcardType(ITypeReference lowerBound, 33 this.lowerBound = lowerBound; 38 return lowerBound;
|
/external/opencv/cv/src/ |
cvcondens.cpp | 224 // lowerBound - vector of lower bounds used to random update of sample set 225 // lowerBound - vector of upper bounds used to random update of sample set 232 cvConDensInitSampleSet( CvConDensation * conDens, CvMat * lowerBound, CvMat * upperBound ) 242 if( !conDens || !lowerBound || !upperBound ) 245 if( CV_MAT_TYPE(lowerBound->type) != CV_32FC1 || 246 !CV_ARE_TYPES_EQ(lowerBound,upperBound) ) 249 if( (lowerBound->cols != 1) || (upperBound->cols != 1) ) 252 if( (lowerBound->rows != conDens->DP) || (upperBound->rows != conDens->DP) ) 255 LBound = lowerBound->data.fl;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
TrimTimeBar.java | 155 private int clampScrubber(int scrubberLeft, int offset, int lowerBound, int upperBound) { 157 int min = lowerBound - offset; 257 int lowerBound = mTrimStartScrubberLeft + trimStartScrubberTipOffset(); 265 lowerBound, upperBound); 275 lowerBound = mProgressBar.left; 279 lowerBound, upperBound); 289 lowerBound, upperBound);
|
/cts/tools/signature-tools/test/signature/converter/ |
ConvertWildcardTest.java | 96 ITypeReference lowerBound = wildcardType.getLowerBound(); 97 assertTrue(lowerBound instanceof IClassReference); 98 assertEquals("Number", ((IClassReference)lowerBound).getClassDefinition().getName());
|
/external/chromium_org/content/test/data/indexeddb/ |
cursor_test.js | 14 keyRange = webkitIDBKeyRange.lowerBound('InexistentKey'); 40 var keyRange = webkitIDBKeyRange.lowerBound(3.12);
|
key_path_test.js | 23 keyRange = webkitIDBKeyRange.lowerBound("myKey" + count);
|
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBKeyRange.idl | 34 [CallWith=ExecutionContext, RaisesException] static IDBKeyRange lowerBound(any bound, [Default=Undefined] optional boolean open);
|
IDBKeyRange.h | 69 static PassRefPtr<IDBKeyRange> lowerBound(ExecutionContext*, const ScriptValue& bound, bool open, ExceptionState&);
|
/cts/tools/signature-tools/src/signature/model/util/ |
ITypeFactory.java | 94 * @param lowerBound 100 public SigWildcardType getWildcardType(ITypeReference lowerBound,
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
RegularContiguousSet.java | 86 return range.lowerBound.leastValueAbove(domain); 147 return Ranges.create(range.lowerBound.withLowerBoundType(lowerBoundType, domain),
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
WildcardTypeTest.java | 82 Type lowerBound = lowerBounds[0]; 83 assertEquals(getTypeParameter(method), lowerBound);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
BitmapUtils.java | 74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : 78 return lowerBound; 81 return Math.max(sampleSize, lowerBound);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : 78 return lowerBound; 81 return Math.max(sampleSize, lowerBound);
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/ |
BitmapUtils.java | 74 int lowerBound = (maxNumOfPixels == UNCONSTRAINED) ? 1 : 78 return lowerBound; 81 return Math.max(sampleSize, lowerBound);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
WindowOrientationListener.java | 593 int lowerBound = rotation * 90 - 45 596 if (orientationAngle >= 315 && orientationAngle < lowerBound + 360) { 600 if (orientationAngle < lowerBound) { [all...] |