Home
last modified time | relevance | path

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

123

/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/base/core/java/com/android/internal/util/
DPreconditions.java349 public static float checkArgumentInRange(float value, float lower, float upper, in checkArgumentInRange() argument
353 } else if (value < lower) { in checkArgumentInRange()
356 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange()
360 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange()
379 public static int checkArgumentInRange(int value, int lower, int upper, in checkArgumentInRange() argument
381 if (value < lower) { in checkArgumentInRange()
384 "%s is out of range of [%d, %d] (too low)", valueName, lower, upper)); in checkArgumentInRange()
388 "%s is out of range of [%d, %d] (too high)", valueName, lower, upper)); in checkArgumentInRange()
406 public static long checkArgumentInRange(long value, long lower, long upper, in checkArgumentInRange() argument
408 if (value < lower) { in checkArgumentInRange()
[all …]
/frameworks/base/core/java/android/util/
DRange.java54 public Range(final T lower, final T upper) { in Range() argument
55 mLower = checkNotNull(lower, "lower must not be null"); in Range()
58 if (lower.compareTo(upper) > 0) { in Range()
77 public static <T extends Comparable<? super T>> Range<T> create(final T lower, final T upper) { in create() argument
78 return new Range<T>(lower, upper); in create()
236 public Range<T> intersect(T lower, T upper) { in intersect() argument
237 checkNotNull(lower, "lower must not be null"); in intersect()
240 int cmpLower = lower.compareTo(mLower); in intersect()
248 cmpLower <= 0 ? mLower : lower, in intersect()
304 public Range<T> extend(T lower, T upper) { in extend() argument
[all …]
/frameworks/base/packages/SystemUI/res/raw/
Dimage_wallpaper_fragment_shader.glsl36 // 'lower' value represents the capped 'reveal' value to the range [0, per85]
38 float lower = mix(uReveal, uPer85, selector);
42 * - from reveal=1 to reveal=per85 => lower=per85, diffuse=luminance
47 * - from reveal=per85 to reveal=0 => lower=reveal, 'diffuse' changes from luminance to color
49 * from a possible values of [0,1] to [lower, 1] (if the pixel color is darker than 'lower',
50 * it's gonna be 0, if it's between 'lower' and 1, it's gonna be remap to a value
52 * - if reveal=0 => lower=0, diffuse=color image
55 vec3 remaps = smoothstep(lower, 1., diffuse);
/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/ml/nn/runtime/test/fuzzing/
DRandomVariable.h42 RandomVariableRange(int lower, int upper) : mChoices(upper - lower + 1) { in RandomVariableRange() argument
43 std::iota(mChoices.begin(), mChoices.end(), lower); in RandomVariableRange()
60 void setRange(int lower, int upper);
112 RandomVariableBase(int lower, int upper);
145 RandomVariable(int lower, int upper);
179 void setRange(int lower, int upper);
DRandomGraphGeneratorUtils.h427 inline std::enable_if_t<NN_IS_FLOAT(T), T> getUniform(T lower, T upper) { in getUniform() argument
428 float nextLower = std::nextafter(static_cast<float>(lower), std::numeric_limits<float>::max()); in getUniform()
436 inline std::enable_if_t<std::is_integral_v<T>, T> getUniform(T lower, T upper) { in getUniform() argument
437 std::uniform_int_distribution<T> dis(lower, upper); in getUniform()
DRandomVariable.cpp42 RandomVariableBase::RandomVariableBase(int lower, int upper) in RandomVariableBase() argument
45 range(lower, upper), in RandomVariableBase()
64 void RandomVariableRange::setRange(int lower, int upper) { in setRange() argument
66 auto head = lower == kInvalidValue ? mChoices.begin() in setRange()
67 : std::lower_bound(mChoices.begin(), mChoices.end(), lower); in setRange()
116 RandomVariable::RandomVariable(int lower, int upper) : mVar(new RandomVariableBase(lower, upper)) { in RandomVariable() argument
147 void RandomVariable::setRange(int lower, int upper) { in setRange() argument
149 NN_FUZZER_LOG << "Set range [" << lower << ", " << upper << "] on var" << mVar->index; in setRange()
151 mVar->range.setRange(lower, upper); in setRange()
175 static inline void fillRange(std::set<int>* range, int lower, int upper) { in fillRange() argument
[all …]
/frameworks/compile/libbcc/lib/
DRSScreenFunctionsPass.cpp40 auto lower = std::lower_bound(list.begin(), in isPresent() local
44 if (lower != list.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.java185 final String lower = name.toLowerCase(); in createAudioThumbnail()
186 return (lower.endsWith(".jpg") || lower.endsWith(".png")); in createAudioThumbnail()
190 final String lower = f.getName().toLowerCase(); in createAudioThumbnail()
191 if (lower.equals("albumart.jpg")) return 4; in createAudioThumbnail()
192 if (lower.startsWith("albumart") && lower.endsWith(".jpg")) return 3; in createAudioThumbnail()
193 if (lower.contains("albumart") && lower.endsWith(".jpg")) return 2; in createAudioThumbnail()
194 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/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/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/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.py143 if "do not translate" in comment.text.lower():
145 if "translatable" in child.attrib and child.attrib["translatable"].lower() == "false":
175 if "wi-fi" in text.lower():
178 if "wifi" in text.lower():
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBUtilitiesTests.m75 // underscore, lower + 0 (01 op)
77 // 2 byte key: as is + 3 (00 op), underscore, lower + 4 (01 op),
78 // underscore, lower + 3 (01 op), underscore, lower + 1 (01 op),
79 // underscore, lower + 30 (01 op), as is + 30 (00 op), as is + 13 (00 op),
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/app/src/main/proto/
Dtuningfork_clearcut_log.proto13 // the lower order 16 bits the minor version. A value of 0
52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
/frameworks/opt/gamesdk/src/tuningfork/proto/
Dtuningfork_clearcut_log.proto13 // the lower order 16 bits the minor version. A value of 0
52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
/frameworks/opt/gamesdk/samples/tuningfork/prototest/proto/
Dtuningfork_clearcut_log.proto13 // the lower order 16 bits the minor version. A value of 0
52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
/frameworks/opt/gamesdk/test/tuningfork/proto/
Dtuningfork_clearcut_log.proto13 // the lower order 16 bits the minor version. A value of 0
52 // Tuning fork version (upper 16 bits: major, lower 16 bits minor)
/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.java1179 int lower = mVisibleWindowLowerBound; in getVisibleWindow() local
1182 if ((lower == 0 && upper == 0) || lower < 0 || upper < 0) { in getVisibleWindow()
1187 if (lower <= upper) { in getVisibleWindow()
1188 window = new int[upper + 1 - lower]; in getVisibleWindow()
1189 for (int i = lower, j = 0; i <= upper; i++, j++){ in getVisibleWindow()
1195 count = Math.max(count, lower); in getVisibleWindow()
1196 window = new int[count - lower + upper + 1]; in getVisibleWindow()
1202 for (int i = lower; i < count; i++, j++) { in getVisibleWindow()
/frameworks/base/telephony/java/android/telephony/
DPhoneNumberRange.java167 int lower = Integer.parseInt(mLowerBound); in matches() local
170 return numberToCheck <= upper && numberToCheck >= lower; in matches()
/frameworks/native/cmds/installd/
Dmatchgen.py67 v = v.lower()

123