Home
last modified time | relevance | path

Searched refs:lower (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DPreconditions.java313 public static float checkArgumentInRange(float value, float lower, float upper, in checkArgumentInRange() argument
317 } else if (value < lower) { in checkArgumentInRange()
320 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
324 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
342 public static int checkArgumentInRange(int value, int lower, int upper, in checkArgumentInRange() argument
344 if (value < lower) { in checkArgumentInRange()
347 "%s is out of range of [%d, %d] (too low)", valueName, lower, upper)); in checkArgumentInRange()
351 "%s is out of range of [%d, %d] (too high)", valueName, lower, upper)); in checkArgumentInRange()
369 public static long checkArgumentInRange(long value, long lower, long upper, in checkArgumentInRange() argument
371 if (value < lower) { in checkArgumentInRange()
[all …]
/frameworks/libs/modules-utils/java/com/android/internal/util/
DPreconditions.java461 public static float checkArgumentInRange(float value, float lower, float upper, in checkArgumentInRange() argument
465 } else if (value < lower) { in checkArgumentInRange()
468 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
472 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
493 public static double checkArgumentInRange(double value, double lower, double upper, in checkArgumentInRange() argument
497 } else if (value < lower) { in checkArgumentInRange()
500 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
504 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
523 public static int checkArgumentInRange(int value, int lower, int upper, in checkArgumentInRange() argument
525 if (value < lower) { in checkArgumentInRange()
[all …]
/frameworks/base/core/java/android/util/
DRange.java55 public Range(final T lower, final T upper) { in Range() argument
56 mLower = checkNotNull(lower, "lower must not be null"); in Range()
59 if (lower.compareTo(upper) > 0) { in Range()
78 public static <T extends Comparable<? super T>> Range<T> create(final T lower, final T upper) { in create() argument
79 return new Range<T>(lower, upper); in create()
237 public Range<T> intersect(T lower, T upper) { in intersect() argument
238 checkNotNull(lower, "lower must not be null"); in intersect()
241 int cmpLower = lower.compareTo(mLower); in intersect()
249 cmpLower <= 0 ? mLower : lower, in intersect()
305 public Range<T> extend(T lower, T upper) { in extend() argument
[all …]
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java248 int lower; field in EpicenterTranslateClipReveal.State
254 public State(int lower, int upper, float trans) { in State() argument
255 this.lower = lower; in State()
267 mTemp.lower = startValue.lower + (int) ((endValue.lower - startValue.lower) * fraction); in evaluate()
297 tempState.lower = tempRect.left + (int) tempState.trans; in get()
301 tempState.lower = tempRect.top + (int) tempState.trans; in get()
312 tempRect.left = value.lower - (int) value.trans; in set()
315 tempRect.top = value.lower - (int) value.trans; in set()
/frameworks/compile/libbcc/lib/
DRSScreenFunctionsPass.cpp38 auto lower = std::lower_bound(stubList.begin(), in isPresent() local
42 if (lower != stubList.end() && name.compare(*lower) == 0) in isPresent()
DRSIsThreadablePass.cpp82 auto lower = std::lower_bound(list.begin(), in isPresent() local
86 if (lower != list.end() && name.compare(*lower) == 0) in isPresent()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java183 final String lower = name.toLowerCase(); in createAudioThumbnail()
184 return (lower.endsWith(".jpg") || lower.endsWith(".png")); in createAudioThumbnail()
188 final String lower = f.getName().toLowerCase(); in createAudioThumbnail()
189 if (lower.equals("albumart.jpg")) return 4; in createAudioThumbnail()
190 if (lower.startsWith("albumart") && lower.endsWith(".jpg")) return 3; in createAudioThumbnail()
191 if (lower.contains("albumart") && lower.endsWith(".jpg")) return 2; in createAudioThumbnail()
192 if (lower.endsWith(".jpg")) return 1; in createAudioThumbnail()
/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java250 int lower = i * 100; in prepareForTest() local
252 mWhere[i] = "b >= " + lower + " AND b < " + upper; in prepareForTest()
321 int lower = i * 100; in prepareForTest() local
323 mWhere[i] = "b >= " + lower + " AND b < " + upper; in prepareForTest()
473 int lower = i * 100; in prepareForTest() local
476 "t1.b IN (SELECT t2.b FROM t2 WHERE t2.b >= " + lower in prepareForTest()
740 int lower = i * 100; in prepareForTest() local
742 mWhere[i] = "b >= " + lower + " AND b < " + upper; in prepareForTest()
773 int lower = i * 100; in prepareForTest() local
775 mWhere[i] = "b >= " + lower + " AND b < " + upper; in prepareForTest()
[all …]
/frameworks/base/media/mca/
Dstructgen.py88 lower = cname.split("_")
89 upper = [c.title() for c in lower]
90 return "".join(lower[:start_upper_at] + upper[start_upper_at:])
321 return jniFileTemplate % (self.structname.lower(),\
342 hfilename = "%s.h" % structspec.structname.lower()
344 jnifilename = "jni_%s.c" % structspec.structname.lower()
/frameworks/native/libs/binder/ndk/scripts/
Dgen_parcel_helper.py103 …if nca: arg_types = "const void* arrayData, int32_t length, AParcel_" + pretty.lower() + "ArrayGet…
135 allocator_type = "AParcel_" + pretty.lower() + "ArrayAllocator"
136 getter_type = "AParcel_" + pretty.lower() + "ArrayGetter"
137 setter_type = "AParcel_" + pretty.lower() + "ArraySetter"
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp182 Range(uint32_t lower, uint32_t upper) : _l(lower), _u(upper) {} in Range() argument
183 uint32_t lower(void) { return _l; } in lower() function in Range
217 Rational& lower, Rational& upper);
1121 Rational lower, upper, selected; in scHScale() local
1132 lower, upper); in scHScale()
1133 if (((lower == best) && (upper == minBad))) { in scHScale()
1138 selected = (lower != best) ? lower : upper; in scHScale()
1220 Rational lower, upper, selected; in scVScale() local
1231 lower, upper); in scVScale()
1232 if (((lower == best) && (upper == minBad))) { in scVScale()
[all …]
/frameworks/base/tools/stringslint/
Dstringslint.py141 if "do not translate" in comment.text.lower():
143 if "translatable" in child.attrib and child.attrib["translatable"].lower() == "false":
173 if "wi-fi" in text.lower():
176 if "wifi" in text.lower():
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableRange.java83 T lower = mNestedTypeMarshaler.unmarshal(buffer); in unmarshal() local
87 return mConstructor.newInstance(lower, upper); in unmarshal()
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java1181 int lower = mVisibleWindowLowerBound; in getVisibleWindow() local
1184 if ((lower == 0 && upper == 0) || lower < 0 || upper < 0) { in getVisibleWindow()
1189 if (lower <= upper) { in getVisibleWindow()
1190 window = new int[upper + 1 - lower]; in getVisibleWindow()
1191 for (int i = lower, j = 0; i <= upper; i++, j++){ in getVisibleWindow()
1197 count = Math.max(count, lower); in getVisibleWindow()
1198 window = new int[count - lower + upper + 1]; in getVisibleWindow()
1204 for (int i = lower; i < count; i++, j++) { in getVisibleWindow()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberRange.java169 int lower = Integer.parseInt(mLowerBound); in matches() local
172 return numberToCheck <= upper && numberToCheck >= lower; in matches()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DColorCutQuantizer.java412 final int lower, final int upper) { in modifySignificantOctet() argument
419 for (int i = lower; i <= upper; i++) { in modifySignificantOctet()
428 for (int i = lower; i <= upper; i++) { in modifySignificantOctet()
/frameworks/native/cmds/installd/
Dmatchgen.py67 v = v.lower()
/frameworks/base/core/java/com/android/internal/util/
DHeavyHitterSketch.java230 final int lower = mPassSize / mCapacity; in validate() local
234 if (val < lower) { in validate()
/frameworks/base/core/proto/android/os/
Dcpuinfo.proto99 POLICY_fg = 1; // foreground, the name is lower case for parsing the value
100 POLICY_bg = 2; // background, the name is lower case for parsing the value
/frameworks/base/services/core/java/com/android/server/integrity/parser/
DRuleBinaryParser.java181 long lower = getIntValue(bitInputStream); in parseAtomicFormula() local
182 long longValue = (upper << 32) | lower; in parseAtomicFormula()
/frameworks/base/obex/javax/obex/
DObexHelper.java958 int lower = b[(2 * i) + 1]; in convertToUnicode() local
962 if (lower < 0) { in convertToUnicode()
963 lower += 256; in convertToUnicode()
967 if (upper == 0 && lower == 0) { in convertToUnicode()
971 c[i] = (char)((upper << 8) | lower); in convertToUnicode()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DHeavyHitterSketchTest.java54 final int lower = mTotalInput / (k + 1); in getTopHeavyHitters() local
56 .filter(e -> e.getValue() >= lower) in getTopHeavyHitters()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildStrategiesStructureFile.py79 strategy_pfw_name = strategy_name.replace('STRATEGY_', '').lower()
DbuildCommonTypesStructureFile.py142 component_type_literal = match.groupdict()['literal'].lower()
/frameworks/ex/common/tools/
Dmake-iana-tld-pattern.py164 domain = domain.lower()

12