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

1234567

/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.cpp30 std::vector<uint32_t> range { distribution(mt) };
32 range.push_back((range.back() - 1) + distribution(mt));
35 SparseBitSet bitset(range.data(), range.size() / 2);
38 for (size_t i = 0; i < range.size() / 2; ++i) {
39 uint32_t start = range[i * 2];
40 uint32_t end = range[i * 2 + 1];
/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/ml/nn/runtime/test/specs/
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)])()
H A Drnn.mod.py188 #for i in range(input_sequence_size):
189 for i in range(1):
194 input0[hidden_state_in] = [0 for x in range(batches * units)]
196 hidden_state_out: [0 for x in range(batches * units)],
/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/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);
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
H A Dderinging_luma.cpp34 int thres[4], range[4], max_range_blk, max_thres_blk; local
66 range[blks] = max_blk - min_blk;
68 if (range[blks] >= max_range_blk)
70 max_range_blk = range[blks];
86 if (range[blks]<32 && max_range_blk >= 64)
120 range[blks] = max_blk - min_blk;
122 if (range[blks] >= max_range_blk)
124 max_range_blk = range[blks];
140 if (range[blks]<32 && max_range_blk >= 64)
178 range[blk
[all...]
/frameworks/base/core/java/android/view/
H A DInputDevice.java100 * Use {@link #getMotionRange} to query the range of the pointing device. Some devices permit
101 * touches outside the display area so the effective range may be somewhat smaller or larger
114 * Use {@link #getMotionRange} to query the range of motion.
125 * Use {@link #getMotionRange} to query the range of positions.
134 * Use {@link #getMotionRange} to query the range of positions.
299 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_X}.
308 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_Y}.
317 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_PRESSURE}.
326 * Constant for retrieving the range of values for {@link MotionEvent#AXIS_SIZE}.
335 * Constant for retrieving the range o
[all...]
/frameworks/native/libs/input/
H A DInputDevice.cpp173 const MotionRange& range = mMotionRanges.itemAt(i); local
174 if (range.axis == axis && range.source == source) {
175 return &range;
187 MotionRange range = { axis, source, min, max, flat, fuzz, resolution }; local
188 mMotionRanges.add(range);
191 void InputDeviceInfo::addMotionRange(const MotionRange& range) { argument
192 mMotionRanges.add(range);
/frameworks/rs/tests/lldb/tests/testcases/
H A Dtest_script_group.py83 for x in range(array_size):
100 for x in range(array_size):
/frameworks/base/media/java/android/media/
H A DUtils.java43 * Sorts distinct (non-intersecting) range array in ascending order.
71 for (Range<T> range: another) {
73 one[ix].getUpper().compareTo(range.getLower()) < 0) {
77 one[ix].getUpper().compareTo(range.getUpper()) < 0) {
78 result.add(range.intersect(one[ix]));
84 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) {
85 result.add(range.intersect(one[ix]));
92 * Returns the index of the range that contains a value in a sorted array of distinct ranges.
95 * @return if the value is in one of the ranges, it returns the index of that range. Otherwise,
96 * the return value is {@code (-1-index)} for the {@code index} of the range tha
140 factorRange(Range<Integer> range, int factor) argument
151 factorRange(Range<Long> range, long factor) argument
167 scaleRange(Range<Rational> range, int num, int den) argument
176 alignRange(Range<Integer> range, int align) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DConsumerIrManager.java88 * Represents a range of carrier frequencies (inclusive) on which the
96 * Create a segment of a carrier frequency range.
98 * @param min The minimum transmittable frequency in this range segment.
99 * @param max The maximum transmittable frequency in this range segment.
107 * Get the minimum (inclusive) frequency in this range segment.
114 * Get the maximum (inclusive) frequency in this range segment.
141 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2];
144 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]);
146 return range;
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DProgressReporterTest.java35 final int[] range = r.getSegmentRange();
36 assertEquals("start", start, range[0]);
37 assertEquals("len", len, range[1]);
/frameworks/minikin/tests/perftests/
H A DGraphemeBreak.cpp39 const size_t testIndex = state.range(0);
54 const size_t testIndex = state.range(0);
69 const size_t testIndex = state.range(0);

Completed in 665 milliseconds

1234567