/packages/apps/Contacts/src/com/android/contacts/util/ |
MoreMath.java | 27 public static int clamp(int input, int lowerBound, int upperBound) { 29 if (input > upperBound) return upperBound; 37 public static float clamp(float input, float lowerBound, float upperBound) { 39 if (input > upperBound) return upperBound; 47 public static double clamp(double input, double lowerBound, double upperBound) { 49 if (input > upperBound) return upperBound;
|
/external/apache-http/src/org/apache/http/message/ |
ParserCursor.java | 48 private final int upperBound; 51 public ParserCursor(int lowerBound, int upperBound) { 56 if (lowerBound > upperBound) { 60 this.upperBound = upperBound; 69 return this.upperBound; 80 if (pos > this.upperBound) { 87 return this.pos >= this.upperBound; 97 buffer.append(Integer.toString(this.upperBound));
|
/external/guava/guava/src/com/google/common/collect/ |
Range.java | 115 final Cut<C> upperBound; 117 Range(Cut<C> lowerBound, Cut<C> upperBound) { 118 if (lowerBound.compareTo(upperBound) > 0) { 120 "Invalid range: " + toString(lowerBound, upperBound)); 123 this.upperBound = upperBound; 159 return upperBound != Cut.aboveAll(); 169 return upperBound.endpoint(); 181 return upperBound.typeAsUpperBound(); 194 return lowerBound.equals(upperBound); [all...] |
TreeBasedTable.java | 178 @Nullable final C upperBound; 184 TreeRow(R rowKey, @Nullable C lowerBound, @Nullable C upperBound) { 187 this.upperBound = upperBound; 188 checkArgument(lowerBound == null || upperBound == null 189 || compare(lowerBound, upperBound) <= 0); 205 && (upperBound == null || compare(upperBound, o) > 0); 221 return new TreeRow(rowKey, fromKey, upperBound); 266 if (upperBound != null) [all...] |
DescendingImmutableSortedMultiset.java | 73 public ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { 74 return forward.tailMultiset(upperBound, boundType).descendingMultiset();
|
EmptyImmutableSortedMultiset.java | 74 public ImmutableSortedMultiset<E> headMultiset(E upperBound, BoundType boundType) { 75 checkNotNull(upperBound);
|
SortedMultiset.java | 96 * {@code upperBound}, optionally including {@code upperBound} itself. The 104 SortedMultiset<E> headMultiset(E upperBound, BoundType boundType); 108 * {@code lowerBound} and {@code upperBound}. The returned multiset is a view 116 * {@code tailMultiset(lowerBound, lowerBoundType).headMultiset(upperBound, 120 E upperBound, BoundType upperBoundType);
|
Ranges.java | 75 Cut<C> lowerBound, Cut<C> upperBound) { 76 return new Range<C>(lowerBound, upperBound); 141 Cut<C> upperBound = (upperType == BoundType.OPEN) 144 return create(lowerBound, upperBound);
|
/frameworks/base/services/java/com/android/server/firewall/ |
PortFilter.java | 38 private PortFilter(int lowerBound, int upperBound) { 40 mUpperBound = upperBound; 61 int upperBound = NO_BOUND; 73 upperBound = value; 97 upperBound = Integer.parseInt(upperBoundString); 107 return new PortFilter(lowerBound, upperBound);
|
/cts/tools/signature-tools/test/signature/converter/ |
ConvertWildcardTest.java | 63 ITypeReference upperBound = wildcardType.getUpperBounds().get(0); 64 assertTrue(upperBound instanceof IClassReference); 66 assertEquals("Number", ((IClassReference)upperBound).getClassDefinition().getName()); 92 ITypeReference upperBound = wildcardType.getUpperBounds().get(0); 93 assertTrue(upperBound instanceof IClassReference); 94 assertEquals("Object", ((IClassReference)upperBound).getClassDefinition().getName());
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
TrimTimeBar.java | 155 private int clampScrubber(int scrubberLeft, int offset, int lowerBound, int upperBound) { 156 int max = upperBound - offset; 258 int upperBound = mTrimEndScrubberLeft + trimEndScrubberTipOffset(); 265 lowerBound, upperBound); 279 lowerBound, upperBound); 285 upperBound = mProgressBar.right; 289 lowerBound, upperBound);
|
/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/ |
IDBKeyRange.idl | 35 [CallWith=ExecutionContext, RaisesException] static IDBKeyRange upperBound(any bound, [Default=Undefined] optional boolean open);
|
IDBKeyRange.h | 70 static PassRefPtr<IDBKeyRange> upperBound(ExecutionContext*, const ScriptValue& bound, bool open, ExceptionState&);
|
/external/opencv/cv/src/ |
cvcondens.cpp | 232 cvConDensInitSampleSet( CvConDensation * conDens, CvMat * lowerBound, CvMat * upperBound ) 242 if( !conDens || !lowerBound || !upperBound ) 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) ) 256 UBound = upperBound->data.fl;
|
/external/chromium_org/third_party/icu/source/i18n/ |
nfrule.h | 70 double upperBound, 86 double upperBound) const;
|
nfsubs.h | 170 * @param upperBound When searching the rule set for a rule 189 double upperBound, 210 * to upperBound are not considered.
|
nfsubs.cpp | 154 double upperBound, 214 double upperBound, 281 double upperBound, 313 double /*upperBound*/, 659 * @param upperBound When searching the rule set for a rule 679 double upperBound, 684 fprintf(stderr, "<nfsubs> %x bv: %g ub: %g\n", this, baseValue, upperBound); 692 upperBound = calcUpperBound(upperBound); 701 ruleSet->parse(text, parsePosition, upperBound, result) [all...] |
/external/icu4c/i18n/ |
nfrule.h | 70 double upperBound, 86 double upperBound) const;
|
nfsubs.h | 170 * @param upperBound When searching the rule set for a rule 189 double upperBound, 210 * to upperBound are not considered.
|
nfsubs.cpp | 161 double upperBound, 229 double upperBound, 302 double upperBound, 337 double /*upperBound*/, 685 * @param upperBound When searching the rule set for a rule 705 double upperBound, 710 fprintf(stderr, "<nfsubs> %x bv: %g ub: %g\n", this, baseValue, upperBound); 718 upperBound = calcUpperBound(upperBound); 727 ruleSet->parse(text, parsePosition, upperBound, result) [all...] |
nfrs.h | 54 UBool parse(const UnicodeString& text, ParsePosition& pos, double upperBound, Formattable& result) const;
|
/external/compiler-rt/lib/ubsan/ |
ubsan_diag.cc | 145 static Range *upperBound(MemoryLocation Loc, Range *Ranges, 187 Range *InRange = upperBound(Min, Ranges, NumRanges); 191 InRange = upperBound(P, Ranges, NumRanges); 208 InRange = upperBound(P, Ranges, NumRanges);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
ScriptFormatter.js | 68 var lineNumber = lineEndings.upperBound(position - 1); 264 var index = positions1.upperBound(position) - 1;
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
RegularContiguousSet.java | 90 return range.upperBound.greatestValueBelow(domain); 148 range.upperBound.withUpperBoundType(upperBoundType, domain));
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
WildcardTypeTest.java | 104 Type upperBound = upperBounds[0]; 105 assertEquals(getTypeParameter(method), upperBound);
|