Searched defs:range (Results 1 - 25 of 55) sorted by last modified time

123

/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp292 // initialize number of bands, band level range, and number of presets
297 int16_t range[2] = {0, 0}; local
298 if (android::NO_ERROR == android_eq_getParam(ieq->mEqEffect, EQ_PARAM_LEVEL_RANGE, 0, range)) {
299 ieq->mBandLevelRangeMin = range[0];
300 ieq->mBandLevelRangeMax = range[1];
303 SL_LOGV(" EQ init: num bands = %u, band range=[%d %d]mB", num, range[0], range[1]);
/frameworks/support/slices/view/src/main/java/androidx/slice/widget/
H A DRowView.java151 * @return height row content (i.e. title, subtitle) without the height of the range element.
193 // Might be gone if we have range / progress but nothing else
276 final SliceItem range = mRowContent.getRange();
277 if (range != null) {
281 addRange(range);
365 private void addRange(final SliceItem range) { argument
366 final boolean isSeekBar = FORMAT_ACTION.equals(range.getFormat());
376 SliceItem min = SliceQuery.findSubtype(range, FORMAT_INT, SUBTYPE_MIN);
381 SliceItem max = SliceQuery.findSubtype(range, FORMAT_INT, SUBTYPE_MAX);
385 SliceItem progress = SliceQuery.findSubtype(range, FORMAT_IN
[all...]
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DAsyncListUtilLayoutTest.java236 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument
237 outRange[0] = range[0] - mStartPrefetch;
238 outRange[1] = range[1] + mEndPrefetch;
H A DAsyncListUtilTest.java249 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument
250 outRange[0] = range[0] - mStartPreload;
251 outRange[1] = range[1] + mEndPreload;
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DAsyncListUtil.java37 * {@link AsyncListUtil} queries the currently visible range through {@link ViewCallback},
88 * @param viewCallback Callback for querying visible item range and update notifications.
111 * Updates the currently visible item range.
120 return; // Will update range will the refresh result arrives.
130 * range. To be called when the data item count and/or contents has changed.
144 * this position stays outside of the cached item range (as defined by
184 // Invalid range may arrive soon after the refresh.
227 // There will be no scroll event if the size change does not affect the current range.
332 log("requesting tile range: %d..%d",
496 * tiles that is required to cover the range returne
576 extendRangeInto(@onNull int[] range, @NonNull int[] outRange, int scrollHint) argument
[all...]
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DPagedScrollBarView.java158 * Sets the range, offset and extent of the scroll bar. The range represents the size of a
165 * @param range The range of the scrollbar's thumb
169 * position specified by the given range, offset and extent.
176 @IntRange(from = 0) int range,
185 if (getVisibility() == View.GONE || range == 0) {
189 int thumbLength = calculateScrollThumbLength(range, extent);
190 int thumbOffset = calculateScrollThumbOffset(range, offset, thumbLength);
211 * @param range Th
175 setParameters( @ntRangefrom = 0) int range, @IntRange(from = 0) int offset, @IntRange(from = 0) int extent, boolean animate) argument
217 setParametersInLayout(int range, int offset, int extent) argument
490 calculateScrollThumbLength(int range, int extent) argument
505 calculateScrollThumbOffset(int range, int offset, int thumbLength) argument
[all...]
/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/native/libs/input/
H A DInputDevice.cpp173 const MotionRange& range = mMotionRanges.itemAt(i); local
174 if (range.axis == axis && range.source == source) {
175 return ⦥
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/native/services/inputflinger/
H A DInputReader.cpp1091 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); local
1092 const char* label = getAxisLabel(range.axis);
1098 snprintf(name, sizeof(name), "%d", range.axis);
1102 name, range.source, range.min, range.max, range.flat, range.fuzz,
1103 range.resolution);
2059 dump += StringPrintf(INDENT4 "%s: unknown range\
[all...]
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp1623 const InputDeviceInfo::MotionRange* range = info.getMotionRange(axis, source); local
1624 ASSERT_TRUE(range != NULL) << "Axis: " << axis << " Source: " << source;
1625 ASSERT_EQ(axis, range->axis) << "Axis: " << axis << " Source: " << source;
1626 ASSERT_EQ(source, range->source) << "Axis: " << axis << " Source: " << source;
1627 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source;
1628 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source;
1629 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source;
1630 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source;
2176 // Initially there may not be a valid motion range.
2182 // When the bounds are set, then there should be a valid motion range
[all...]
/frameworks/native/services/surfaceflinger/
H A DLayerStats.cpp129 const char* LayerStats::destinationLocation(int32_t location, int32_t range, bool isHorizontal) { argument
131 int32_t ratio = location * 8 / range;
143 const char* LayerStats::destinationSize(int32_t size, int32_t range, bool isWidth) { argument
145 int32_t ratio = size * 8 / range;
/frameworks/native/vulkan/include/vulkan/
H A Dvulkan_core.h2081 VkDeviceSize range; member in struct:VkBufferViewCreateInfo
2446 VkDeviceSize range; member in struct:VkDescriptorBufferInfo
/frameworks/minikin/include/minikin/
H A DLayoutCache.h32 LayoutCacheKey(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, argument
36 mStart(range.getStart()),
37 mCount(range.getLength()),
138 void getOrCreate(const U16StringPiece& text, const Range& range, const MinikinPaint& paint, argument
140 LayoutCacheKey key(text, range, paint, dir, startHyphen, endHyphen);
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,
H A DMeasuredText.h35 Run(const Range& range) : mRange(range) {} argument
51 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
78 StyleRun(const Range& range, MinikinPaint&& paint, bool isRtl) argument
79 : Run(range), mPaint(std::move(paint)), mIsRtl(isRtl) {}
92 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
95 return Layout::getBoundsWithPrecomputedPieces(text, range, bidiFlag, mPaint, pieces);
100 float measureHyphenPiece(const U16StringPiece& text, const Range& range,
104 return Layout::measureText(text, range, bidiFlag, mPaint, startHyphen, endHyphen, advances,
115 ReplacementRun(const Range& range, floa argument
[all...]
/frameworks/minikin/libs/minikin/
H A DBidiUtils.h43 Range range; member in struct:minikin::BidiText::RunInfo
47 BidiText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags);
81 const Range mRange; // The range in the original buffer. Used for range check.
H A DFontCollection.cpp85 // the base code point without variation selector. The family won't be listed in the range in
90 Range* range = &mRanges.back(); local
91 range->start = mFamilyVec.size();
100 range->end = mFamilyVec.size();
259 Range range = mRanges[ch >> kLogCharsPerPage]; local
262 range = {0, static_cast<uint16_t>(mFamilies.size())};
267 for (size_t i = range.start; i < range.end; i++) {
H A DGreedyLineBreaker.cpp92 bool tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker);
99 void doLineBreakWithGraphemeBounds(const Range& range);
162 bool GreedyLineBreaker::tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker) { argument
169 if (run->getRange().contains(range)) {
175 return false; // The target range may lay on multiple run. Unable to hyphenate.
179 if (!range.contains(targetRange)) {
185 Range contextRange = range;
256 void GreedyLineBreaker::doLineBreakWithGraphemeBounds(const Range& range) { argument
257 double width = mMeasuredText.widths[range.getStart()];
260 for (uint32_t i = range
325 const Range range = run->getRange(); local
[all...]
H A DLayout.cpp228 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, argument
231 const uint32_t count = range.getLength();
236 for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) {
237 doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range.getStart(),
243 void Layout::doLayoutWithPrecomputedPieces(const U16StringPiece& textBuf, const Range& range, argument
247 const uint32_t count = range.getLength();
252 for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) {
253 doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range
258 getBoundsWithPrecomputedPieces(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, const LayoutPieces& pieces) argument
273 measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, const MinikinPaint& paint, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, float* advances, MinikinExtent* extents, LayoutPieces* pieces) argument
289 doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, const MinikinPaint& paint, size_t dstStart, StartHyphenEdit startHyphen, EndHyphenEdit endHyphen, const LayoutPieces* lpIn, Layout* layout, float* advances, MinikinExtent* extents, MinikinRect* bounds, LayoutPieces* lpOut) argument
344 LayoutAppendFunctor(const U16StringPiece& textBuf, const Range& range, const MinikinPaint& paint, bool dir, StartHyphenEdit startEdit, EndHyphenEdit endEdit, Layout* layout, float* advances, MinikinExtent* extents, LayoutPieces* pieces, float* totalAdvance, MinikinRect* bounds, uint32_t outOffset, float wordSpacing) argument
[all...]
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);
H A DOptimalLineBreaker.cpp165 const Range& range) {
167 ParaWidth width = measured.widths[range.getStart()];
168 for (uint32_t i = range.getStart() + 1; i < range.getEnd(); ++i) {
220 const Range& range = run->getRange(); local
232 for (uint32_t i = range.getStart(); i < range.getEnd(); ++i) {
258 if (nextCharOffset == range.getEnd() || measured.widths[nextCharOffset] > 0) {
164 populateDesperatePoints(const MeasuredText& measured, const Range& range) argument
/frameworks/minikin/tests/unittest/
H A DLineBreakerTestHelper.h46 ConstantRun(const Range& range, const std::string& lang, float width) argument
47 : Run(range), mPaint(nullptr /* font collection */), mWidth(width) {
61 const Range& /* range */,
68 virtual float measureHyphenPiece(const U16StringPiece&, const Range& range, argument
78 return mWidth * (range.getLength() + extraCharForHyphen);
/frameworks/ml/nn/common/include/
H A DUtils.h127 std::string toString(const std::vector<Type>& range) { argument
129 for (size_t i = 0; i < range.size(); ++i) {
130 os += (i == 0 ? "" : ", ") + toString(range[i]);
/frameworks/ml/nn/runtime/
H A DExecutionPlan.cpp121 auto range = mOperandToOperations.equal_range(operandIndex); local
122 for (auto i = range.first; i != range.second; i++) {
H A DModelBuilder.cpp378 auto range = operandToOperations.equal_range(operandIndex); local
379 for (auto i = range.first; i != range.second; i++) {

Completed in 436 milliseconds

123