Searched refs:range (Results 1 - 25 of 225) sorted by relevance

123456789

/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DRangeTest.kt27 val range: Range<String> = "a" rangeTo "c"
28 assertEquals("a", range.lower)
29 assertEquals("c", range.upper)
33 val range = ("a" rangeTo "c") + "e"
34 assertEquals("a", range.lower)
35 assertEquals("e", range.upper)
39 val range = ("a" rangeTo "c") + ("e" rangeTo "g")
40 assertEquals("a", range.lower)
41 assertEquals("g", range.upper)
45 val range
[all...]
/frameworks/base/tests/net/jni/
H A DUidRangeTest.cpp28 const UidRange range = unmarshall(env, inParcel); local
29 return marshall(env, range);
34 const UidRange range = unmarshall(env, inParcel); local
35 return range.getStart();
40 const UidRange range = unmarshall(env, inParcel); local
41 return range.getStop();
58 UidRange range; local
59 range.readFromParcel(&p);
60 return range;
64 * Creates a Java byte[] array and writes the contents of 'range' t
70 marshall(JNIEnv* env, const UidRange& range) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollBarUtils.java21 public static int getThumbLength(int size, int thickness, int extent, int range) { argument
24 int length = Math.round((float) size * extent / range);
31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { argument
33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DIntRangeManager.java26 * radio when the range of enabled message identifiers changes.
36 * of the caller) so that a call to remove a range can be mapped to the
37 * client that enabled that range (or else rejected).
48 * One or more clients forming the continuous range [startId, endId].
62 * @param startId the first id included in the range
63 * @param endId the last id included in the range
64 * @param client the client requesting the enabled range
110 * @param range the new ClientRange to insert
112 void insert(ClientRange range) { argument
117 if (range
[all...]
/frameworks/minikin/tests/unittest/
H A DSparseBitSetTest.cpp31 std::vector<uint32_t> range{distribution(mt)};
33 range.push_back((range.back() - 1) + distribution(mt));
36 SparseBitSet bitset(range.data(), range.size() / 2);
39 for (size_t i = 0; i < range.size() / 2; ++i) {
40 uint32_t start = range[i * 2];
41 uint32_t end = range[i * 2 + 1];
H A DBidiUtilsTest.cpp39 EXPECT_EQ(Range(0, ltrLength), (*it).range);
48 EXPECT_EQ(Range(0, ltrLength), (*it).range);
57 EXPECT_EQ(Range(0, ltrLength), (*it).range);
66 EXPECT_EQ(Range(0, ltrLength), (*it).range);
75 EXPECT_EQ(Range(0, ltrLength), (*it).range);
84 EXPECT_EQ(Range(0, ltrLength), (*it).range);
98 EXPECT_EQ(Range(0, rtlLength), (*it).range);
107 EXPECT_EQ(Range(0, rtlLength), (*it).range);
116 EXPECT_EQ(Range(0, rtlLength), (*it).range);
125 EXPECT_EQ(Range(0, rtlLength), (*it).range);
[all...]
/frameworks/base/core/java/android/util/
H A DRange.java24 * Immutable class for describing the range of two numeric values.
26 * A range (or "interval") defines the inclusive boundaries around a contiguous span of
31 * All ranges are bounded, and the left side of the range is always {@code >=}
32 * the right side of the range.
36 * stored must also be immutable. If mutable objects are stored here, then the range
41 * Create a new immutable range.
45 * is the range is bounded. {@code lower} must be {@link Comparable#compareTo lesser or equal}
64 * Create a new immutable range, with the argument types inferred.
68 * is the range is bounded. {@code lower} must be {@link Comparable#compareTo lesser or equal}
100 * Checks if the {@code value} is within the bounds of this range
131 contains(Range<T> range) argument
204 intersect(Range<T> range) argument
272 extend(Range<T> range) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DMeasuredText.cpp35 const Range& range = run->getRange(); local
36 const uint32_t runOffset = range.getStart();
44 for (uint32_t i = range.getStart(); i < range.getEnd(); ++i) {
58 void MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, argument
62 layout->doLayoutWithPrecomputedPieces(textBuf, range, bidiFlags, paint, startHyphen, endHyphen,
66 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) { argument
71 if (!Range::intersects(range, runRange)) {
75 run->getBounds(textBuf, Range::intersection(runRange, range), layoutPieces);
/frameworks/ml/nn/runtime/test/specs/V1_0/
H A Dembedding_lookup.mod.py22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
24 for j in range(columns):
25 for k in range(features):
H A Dconcat_float_3.mod.py32 input1_values = [x for x in range(row * col1)]
33 input2_values = [-x for x in range(row * col2)]
37 output_values = [x for x in range(row * output_col)]
38 for r in range(row):
39 for c1 in range(col1):
41 for c2 in range(col2):
H A Dconcat_quant8_3.mod.py32 input1_values = [(x % 128 + 128) for x in range(row * col1)]
33 input2_values = [x % 128 for x in range(row * col2)]
37 output_values = [x for x in range(row * output_col)]
38 for r in range(row):
39 for c1 in range(col1):
41 for c2 in range(col2):
H A Dconcat_float_2.mod.py32 input1_values = [x for x in range(row1 * col)]
34 [x + s1 for x in range(s2)])()
37 output_values = [x for x in range(output_row * col)]
H A Dconcat_quant8_2.mod.py32 input1_values = [x % 256 for x in range(row1 * col)]
34 [(x + s1) % 256 for x in range(s2)])()
37 output_values = [x % 256 for x in range(output_row * col)]
H A Dhashtable_lookup_float.mod.py22 table = [x for x in range(rows * features)]
23 for i in range(rows):
24 for j in range(features):
H A Dhashtable_lookup_quant8.mod.py22 table = [x for x in range(rows * features)]
23 for i in range(rows):
24 for j in range(features):
H A Drelu_float_2.mod.py33 input_values = (lambda r = rng: [x * (x % 2 - .5) * 2 for x in range(r)])()
35 output_values = (lambda r = rng: [x * (x % 2) for x in range(r)])()
H A Drelu_quant8_2.mod.py33 input_values = (lambda r = rng: [x % 256 for x in range(r)])()
35 output_values = (lambda r = rng: [x % 256 if x % 256 > 128 else 128 for x in range(r)])()
/frameworks/ml/nn/runtime/test/specs/V1_1/
H A Dembedding_lookup_relaxed.mod.py22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
24 for j in range(columns):
25 for k in range(features):
H A Dconcat_float_3_relaxed.mod.py33 input1_values = [x for x in range(row * col1)]
34 input2_values = [-x for x in range(row * col2)]
38 output_values = [x for x in range(row * output_col)]
39 for r in range(row):
40 for c1 in range(col1):
42 for c2 in range(col2):
H A Dconcat_float_2_relaxed.mod.py33 input1_values = [x for x in range(row1 * col)]
35 [x + s1 for x in range(s2)])()
38 output_values = [x for x in range(output_row * col)]
H A Dhashtable_lookup_float_relaxed.mod.py22 table = [x for x in range(rows * features)]
23 for i in range(rows):
24 for j in range(features):
/frameworks/base/services/core/jni/
H A Dcom_android_server_PersistentDataBlockService.cpp50 uint64_t range[2]; local
54 range[0] = 0;
55 range[1] = len;
57 if (range[1] == 0)
60 ret = ioctl(fd, BLKSECDISCARD, &range);
63 range[0] = 0;
64 range[1] = len;
65 ret = ioctl(fd, BLKDISCARD, &range);
/frameworks/minikin/include/minikin/
H A DLayoutPieces.h42 void insert(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, argument
46 std::forward_as_tuple(textBuf, range, paint, dir, startEdit, endEdit),
54 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, argument
56 auto it = offsetMap.find(LayoutCacheKey(textBuf, range, paint, dir, startEdit, endEdit));
58 LayoutCache::getInstance().getOrCreate(textBuf, range, paint, dir, startEdit, endEdit,
/frameworks/support/core/ktx/src/main/java/androidx/core/text/
H A DSpannableString.kt42 * Add [span] to the range [start]&hellip;[end] of the text.
58 * Add [span] to the [range] of the text.
65 * Note: The range end value is exclusive.
69 inline operator fun Spannable.set(range: IntRange, span: Any) {
71 setSpan(span, range.start, range.endInclusive, SPAN_INCLUSIVE_EXCLUSIVE)
/frameworks/base/core/jni/
H A Dandroid_view_InputDevice.cpp73 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); local
74 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis,
75 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution);

Completed in 334 milliseconds

123456789