/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | Preconditions.java | 313 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/ |
D | Preconditions.java | 351 public static float checkArgumentInRange(float value, float lower, float upper, in checkArgumentInRange() argument 355 } else if (value < lower) { in checkArgumentInRange() 358 "%s is out of range of [%f, %f] (too low)", valueName, lower, upper)); in checkArgumentInRange() 362 "%s is out of range of [%f, %f] (too high)", valueName, lower, upper)); in checkArgumentInRange() 381 public static int checkArgumentInRange(int value, int lower, int upper, in checkArgumentInRange() argument 383 if (value < lower) { in checkArgumentInRange() 386 "%s is out of range of [%d, %d] (too low)", valueName, lower, upper)); in checkArgumentInRange() 390 "%s is out of range of [%d, %d] (too high)", valueName, lower, upper)); in checkArgumentInRange() 408 public static long checkArgumentInRange(long value, long lower, long upper, in checkArgumentInRange() argument 410 if (value < lower) { in checkArgumentInRange() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Range.java | 54 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/ |
D | image_wallpaper_fragment_shader.glsl | 36 // '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/ |
D | EpicenterTranslateClipReveal.java | 248 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/ |
D | RandomVariable.h | 42 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);
|
D | RandomGraphGeneratorUtils.h | 289 inline std::enable_if_t<nnIsFloat<T>, T> getUniform(T lower, T upper) { in getUniform() argument 290 float nextLower = std::nextafter(static_cast<float>(lower), std::numeric_limits<float>::max()); in getUniform() 295 inline std::enable_if_t<nnIsFloat<T>, T> getUniformNonZero(T lower, T upper, T zeroPoint) { in getUniformNonZero() argument 299 std::uniform_real_distribution<float> dis(lower, upper); in getUniformNonZero() 307 inline std::enable_if_t<std::is_integral_v<T>, T> getUniform(T lower, T upper) { in getUniform() argument 308 std::uniform_int_distribution<T> dis(lower, upper); in getUniform() 312 inline std::enable_if_t<std::is_integral_v<T>, T> getUniformNonZero(T lower, T upper, T zeroPoint) { in getUniformNonZero() argument 314 std::uniform_int_distribution<T> dis(lower, upper); in getUniformNonZero()
|
D | RandomVariable.cpp | 43 RandomVariableBase::RandomVariableBase(int lower, int upper) in RandomVariableBase() argument 46 range(lower, upper), in RandomVariableBase() 65 void RandomVariableRange::setRange(int lower, int upper) { in setRange() argument 67 auto head = lower == kInvalidValue ? mChoices.begin() in setRange() 68 : std::lower_bound(mChoices.begin(), mChoices.end(), lower); in setRange() 117 RandomVariable::RandomVariable(int lower, int upper) : mVar(new RandomVariableBase(lower, upper)) { in RandomVariable() argument 148 void RandomVariable::setRange(int lower, int upper) { in setRange() argument 150 NN_FUZZER_LOG << "Set range [" << lower << ", " << upper << "] on var" << mVar->index; in setRange() 152 mVar->range.setRange(lower, upper); in setRange() 176 static inline void fillRange(std::set<int>* range, int lower, int upper) { in fillRange() argument [all …]
|
/frameworks/compile/libbcc/lib/ |
D | RSScreenFunctionsPass.cpp | 38 auto lower = std::lower_bound(stubList.begin(), in isPresent() local 42 if (lower != stubList.end() && name.compare(*lower) == 0) in isPresent()
|
D | RSIsThreadablePass.cpp | 82 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/ |
D | ThumbnailUtils.java | 185 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/ |
D | NewDatabasePerformanceTests.java | 250 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/ |
D | structgen.py | 88 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/ |
D | gen_parcel_helper.py | 103 …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/ |
D | hwcCommit.cpp | 182 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/ |
D | stringslint.py | 143 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/base/core/java/android/widget/ |
D | RemoteViewsAdapter.java | 1179 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/core/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableRange.java | 83 T lower = mNestedTypeMarshaler.unmarshal(buffer); in unmarshal() local 87 return mConstructor.newInstance(lower, upper); in unmarshal()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberRange.java | 169 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/ |
D | ColorCutQuantizer.java | 424 final int lower, final int upper) { in modifySignificantOctet() argument 431 for (int i = lower; i <= upper; i++) { in modifySignificantOctet() 440 for (int i = lower; i <= upper; i++) { in modifySignificantOctet()
|
/frameworks/native/cmds/installd/ |
D | matchgen.py | 67 v = v.lower()
|
/frameworks/base/obex/javax/obex/ |
D | ObexHelper.java | 957 int lower = b[(2 * i) + 1]; in convertToUnicode() local 961 if (lower < 0) { in convertToUnicode() 962 lower += 256; in convertToUnicode() 966 if (upper == 0 && lower == 0) { in convertToUnicode() 970 c[i] = (char)((upper << 8) | lower); in convertToUnicode()
|
/frameworks/base/core/proto/android/os/ |
D | cpuinfo.proto | 99 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/av/services/audiopolicy/engineconfigurable/tools/ |
D | buildStrategiesStructureFile.py | 79 strategy_pfw_name = strategy_name.replace('STRATEGY_', '').lower()
|
/frameworks/ex/common/tools/ |
D | make-iana-tld-pattern.py | 161 domain = domain.lower()
|