Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DIntRangeManager.java116 void insert(ClientRange range) { in insert() argument
121 if (range.mStartId <= nextRange.mStartId) { in insert()
123 if (!range.equals(nextRange)) { in insert()
125 if (range.mStartId == nextRange.mStartId in insert()
126 && range.mEndId > nextRange.mEndId) { in insert()
135 mClients.add(i, range); in insert()
141 mClients.add(insert, range); in insert()
144 mClients.add(range); // append to end of list in insert()
223 IntRange range = mRanges.get(startIndex); in enableRange() local
224 if ((startId) >= range.mStartId && (endId) <= range.mEndId) { in enableRange()
[all …]
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/utilities/easing/
DCubicEasing.java110 float range = 0.5f; in getDiff() local
111 while (range > D_ERROR) { in getDiff()
113 range *= 0.5; in getDiff()
115 t += range; in getDiff()
117 t -= range; in getDiff()
120 float x1 = getX(t - range); in getDiff()
121 float x2 = getX(t + range); in getDiff()
122 float y1 = getY(t - range); in getDiff()
123 float y2 = getY(t + range); in getDiff()
138 float range = 0.5f; in get() local
[all …]
/frameworks/base/core/java/android/util/
DRange.java134 public boolean contains(Range<T> range) { in contains() argument
135 checkNotNull(range, "value must not be null"); in contains()
137 boolean gteLower = range.mLower.compareTo(mLower) >= 0; in contains()
138 boolean lteUpper = range.mUpper.compareTo(mUpper) <= 0; in contains()
207 public Range<T> intersect(Range<T> range) { in intersect() argument
208 checkNotNull(range, "range must not be null"); in intersect()
210 int cmpLower = range.mLower.compareTo(mLower); in intersect()
211 int cmpUpper = range.mUpper.compareTo(mUpper); in intersect()
218 return range; in intersect()
221 cmpLower <= 0 ? mLower : range.mLower, in intersect()
[all …]
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp36 void setNextRange(const Range& range, bool dir) { in setNextRange() argument
37 mRange = range; in setNextRange()
73 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics()
111 for (const auto [context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureText()
125 void setNextContext(const Range& range, HyphenEdit edit, bool dir) { in setNextContext() argument
126 mRange = range; in setNextContext()
149 float StyleRun::measureHyphenPiece(const U16StringPiece& textBuf, const Range& range, in measureHyphenPiece() argument
154 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in measureHyphenPiece()
155 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece()
157 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece()
[all …]
DGreedyLineBreaker.cpp95 bool tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker);
103 bool doLineBreakWithGraphemeBounds(const Range& range);
105 bool overhangExceedLineLimit(const Range& range);
106 bool doLineBreakWithFallback(const Range& range);
178 bool GreedyLineBreaker::tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker) { in tryLineBreakWithHyphenation() argument
185 if (run->getRange().contains(range)) { in tryLineBreakWithHyphenation()
195 if (!range.contains(targetRange)) { in tryLineBreakWithHyphenation()
205 Range contextRange = range; in tryLineBreakWithHyphenation()
276 bool GreedyLineBreaker::doLineBreakWithGraphemeBounds(const Range& range) { in doLineBreakWithGraphemeBounds() argument
277 float width = mMeasuredText.widths[range.getStart()]; in doLineBreakWithGraphemeBounds()
[all …]
DLayout.cpp99 float adjustAdvanceLetterSpacingEdge(const U16StringPiece& textBuf, const Range& range, in adjustAdvanceLetterSpacingEdge() argument
107 const uint32_t advOffset = range.getStart(); in adjustAdvanceLetterSpacingEdge()
113 for (uint32_t i : lRun.range) { in adjustAdvanceLetterSpacingEdge()
126 for (uint32_t i : lRun.range) { in adjustAdvanceLetterSpacingEdge()
142 for (uint32_t i : rRun.range) { in adjustAdvanceLetterSpacingEdge()
154 for (uint32_t i : rRun.range) { in adjustAdvanceLetterSpacingEdge()
193 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout() argument
196 const uint32_t count = range.getLength(); in doLayout()
199 const BidiText bidiText(textBuf, range, bidiFlags); in doLayout()
201 doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range.getStart(), in doLayout()
[all …]
DScriptUtils.cpp33 static hb_codepoint_t decodeUtf16(U16StringPiece text, Range range, uint32_t pos) { in decodeUtf16() argument
35 U16_NEXT(text.data(), pos, range.getEnd(), result); in decodeUtf16()
57 std::pair<uint32_t, hb_script_t> ScriptText::getScriptRun(U16StringPiece text, Range range, in getScriptRun() argument
59 if (!range.contains(pos)) { in getScriptRun()
60 return std::make_pair(range.getEnd(), HB_SCRIPT_UNKNOWN); in getScriptRun()
63 uint32_t cp = decodeUtf16(text, range, pos); in getScriptRun()
67 for (i = pos + U16_LENGTH(cp); i < range.getEnd(); i += U16_LENGTH(cp)) { in getScriptRun()
68 cp = decodeUtf16(text, range, i); in getScriptRun()
DLayoutSplitter.h57 LayoutSplitter(const U16StringPiece& textBuf, const Range& range, bool isRtl) in LayoutSplitter() argument
58 : mTextBuf(textBuf), mRange(range), mIsRtl(isRtl) {} in LayoutSplitter()
72 const Range& range = mParent->mRange; variable
77 mPieceRange.setStart(std::max(mContextRange.getStart(), range.getStart()));
84 mPieceRange.setEnd(std::min(mContextRange.getEnd(), range.getEnd()));
94 const Range& range = mParent->mRange; in iterator() local
98 mPieceRange.setStart(std::max(mContextRange.getStart(), range.getStart())); in iterator()
102 getPrevWordBreakForCache(textBuf, pos == range.getEnd() ? pos : pos + 1)); in iterator()
105 mPieceRange.setEnd(std::min(mContextRange.getEnd(), range.getEnd())); in iterator()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DImtConflictPerfTestGen.py85 for i in range(max_conflict_depth):
87 for j in range(i+1):
92 for i in range(max_conflict_depth):
100 for j in range(max_conflict_depth):
106 for i in range(max_conflict_depth):
110 for i in range(max_conflict_depth):
111 interfaces = ", ".join(["I{}".format(j) for j in range(i+1)])
115 for i in range(max_conflict_depth):
117 for j in range(imt_size):
/frameworks/minikin/tests/unittest/
DBidiUtilsTest.cpp39 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
48 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
57 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
66 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
75 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
84 EXPECT_EQ(Range(0, ltrLength), (*it).range); in TEST()
98 EXPECT_EQ(Range(0, rtlLength), (*it).range); in TEST()
107 EXPECT_EQ(Range(0, rtlLength), (*it).range); in TEST()
116 EXPECT_EQ(Range(0, rtlLength), (*it).range); in TEST()
125 EXPECT_EQ(Range(0, rtlLength), (*it).range); in TEST()
[all …]
DLayoutTest.cpp70 Range range(0, text.size()); in TEST_F() local
71 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
89 Range range(0, text.size()); in TEST_F() local
90 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
108 Range range(0, text.size()); in TEST_F() local
109 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
127 Range range(0, text.size()); in TEST_F() local
128 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
158 Range range(0, text.size()); in TEST_F() local
159 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F()
[all …]
DSparseBitSetTest.cpp33 std::vector<uint32_t> range{distribution(mt)}; in TEST() local
35 range.push_back((range.back() - 1) + distribution(mt)); in TEST()
38 SparseBitSet bitset(range.data(), range.size() / 2); in TEST()
41 for (size_t i = 0; i < range.size() / 2; ++i) { in TEST()
42 uint32_t start = range[i * 2]; in TEST()
43 uint32_t end = range[i * 2 + 1]; in TEST()
58 std::vector<uint32_t> range({10, 20}); in TEST() local
59 SparseBitSet originalBitset(range.data(), range.size() / 2); in TEST()
DLayoutSplitterTest.cpp31 Range range; in parseTestString() local
36 range.setStart(outText.size()); in parseTestString()
39 range.setEnd(outText.size()); in parseTestString()
45 return std::make_pair(outText, range); in parseTestString()
145 auto[text, range] = parseTestString(testCase.testStr); in TEST()
147 for (auto[acContext, acPiece] : LayoutSplitter(text, range, false /* isRtl */)) { in TEST()
207 auto[text, range] = parseTestString(testCase.testStr); in TEST()
209 for (auto[acContext, acPiece] : LayoutSplitter(text, range, true /* isRtl */)) { in TEST()
259 auto[text, range] = parseTestString(testCase.testStr); in TEST()
261 for (auto[acContext, acPiece] : LayoutSplitter(text, range, false /* isRtl */)) { in TEST()
[all …]
/frameworks/minikin/include/minikin/
DLayoutPieces.h32 Key(const Range& range, HyphenEdit hyphenEdit, bool dir, uint32_t paintId) in Key()
33 : range(range), in Key()
39 Range range; member
47 .update(range.getStart()) in calcHash()
48 .update(range.getEnd()) in calcHash()
56 return range == o.range && hyphenEdit == o.hyphenEdit && dir == o.dir &&
80 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert()
88 std::forward_as_tuple(range, edit, dir, paintId), in insert()
93 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const Range& context, in getOrCreate()
97 auto it = offsetMap.find(Key(range, edit, dir, paintId)); in getOrCreate()
[all …]
DMeasuredText.h57 Run(const Range& range) : mRange(range) {} in Run() argument
83 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
85 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
88 virtual LineMetrics getLineMetrics(const U16StringPiece& text, const Range& range,
91 virtual void appendLayout(const U16StringPiece& text, const Range& range,
132 StyleRun(const Range& range, MinikinPaint&& paint, int lineBreakStyle, int lineBreakWordStyle, in StyleRun() argument
134 : Run(range), in StyleRun()
156 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range,
159 MinikinExtent getExtent(const U16StringPiece& text, const Range& range,
162 LineMetrics getLineMetrics(const U16StringPiece& text, const Range& range,
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_pdb_PersistentDataBlockService.cpp44 uint64_t range[2]; in wipe_block_device() local
48 range[0] = 0; in wipe_block_device()
49 range[1] = len; in wipe_block_device()
51 if (range[1] == 0) return 0; in wipe_block_device()
53 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device()
56 range[0] = 0; in wipe_block_device()
57 range[1] = len; in wipe_block_device()
58 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DSourceTransformer.kt189 val parentRange = parentStmt.range.get() in <lambda>()
197 if (!parentStmt.range.isPresent) { in <lambda>()
202 val range = parentStmt.range.get() in <lambda>() constant
203 val begin = range.begin.line - 1 in <lambda>()
204 val oldLines = processedCode.subList(begin, range.end.line) in <lambda>()
207 offsets[begin] + range.begin.column - 1, in <lambda>()
209 range.end.column + offsets[range.end.line - 1], newStmt) in <lambda>()
221 val range = call.range.get() in <lambda>() constant
222 val begin = range.begin.line - 1 in <lambda>()
223 val oldLines = processedCode.subList(begin, range.end.line) in <lambda>()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DSessionStatsBuilderTest.cpp60 for (size_t range = 1; range < SessionStatsBuilder::FPS_HISTOGRAM_MAX_SIZE + 2; range++) { in TEST() local
62 for (size_t i = 0; i < count - range; i++, fc++) b.incFpsRequestedCount(range, range, fc); in TEST()
/frameworks/base/media/java/android/media/
DUtils.java87 for (Range<T> range: another) { in intersectSortedDistinctRanges()
89 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges()
93 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges()
94 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
100 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges()
101 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges()
156 static Range<Integer>factorRange(Range<Integer> range, int factor) {
158 return range;
160 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor);
167 static Range<Long>factorRange(Range<Long> range, long factor) {
[all …]
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionSpatializer.cpp63 return mDesc.capability.range.getTag() == Range::spatializer && in isSpatializerParameterSupported()
177 const auto& range = getRange<Range::spatializer, Range::SpatializerRange>( in getParameter() local
179 if (!range) { in getParameter()
186 if (spatializer >= range->min && spatializer <= range->max) { in getParameter()
209 const auto& range = getRange<Range::spatializer, Range::SpatializerRange>( in getParameter() local
211 if (!range) { in getParameter()
217 const bool support = (range->min > range->max || in getParameter()
218 (range->min == nonSupport && range->max == nonSupport)) in getParameter()
255 const auto& range = getRange<Range::spatializer, Range::SpatializerRange>( in getParameter() local
257 if (!range) { in getParameter()
[all …]
/frameworks/av/media/module/foundation/
DColorUtils.cpp158 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange() argument
160 if (sRanges.map(range, &res)) { in wrapColorAspectsIntoColorRange()
162 } else if (!isValid(range)) { in wrapColorAspectsIntoColorRange()
165 CHECK(!isDefined(range)); in wrapColorAspectsIntoColorRange()
167 return kColorRangeVendorStart + range; in wrapColorAspectsIntoColorRange()
173 int32_t range, ColorAspects::Range *aspect) { in unwrapColorAspectsFromColorRange() argument
174 if (sRanges.map((ColorRange)range, aspect)) { in unwrapColorAspectsFromColorRange()
180 if (range >= start && range < start + numRanges) { in unwrapColorAspectsFromColorRange()
181 *aspect = (ColorAspects::Range)(range - start); in unwrapColorAspectsFromColorRange()
236 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { in convertPlatformColorAspectsToCodecAspects() argument
[all …]
/frameworks/base/core/jni/
Dandroid_view_InputDevice.cpp99 for (const InputDeviceInfo::MotionRange& range: ranges) { in android_view_InputDevice_create() local
100 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis, in android_view_InputDevice_create()
101 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution); in android_view_InputDevice_create()
/frameworks/base/core/java/android/view/
DInputDevice.java791 final MotionRange range = mMotionRanges.get(i); in build() local
793 range.getAxis(), in build()
794 range.getSource(), in build()
795 range.getMin(), in build()
796 range.getMax(), in build()
797 range.getFlat(), in build()
798 range.getFuzz(), in build()
799 range.getResolution()); in build()
1139 final MotionRange range = mMotionRanges.get(i); in getMotionRange() local
1140 if (range.mAxis == axis) { in getMotionRange()
[all …]
/frameworks/base/core/java/android/hardware/
DDataSpace.java681 @DataSpaceRange int range) { in pack() argument
688 if ((range & RANGE_MASK) != range) { in pack()
689 throw new IllegalArgumentException("Invalid range " + range); in pack()
691 return standard | transfer | range; in pack()
726 @DataSpaceRange int range = dataSpace & RANGE_MASK; in getRange() local
727 return range; in getRange()
/frameworks/av/media/codec2/components/tests/
DC2SoftCodecTest.cpp84 ASSERT_EQ(validValueInfos[0].values.range.max.ref<uint32_t>(), 1920) in TEST_F()
86 ASSERT_EQ(validValueInfos[1].values.range.max.ref<uint32_t>(), 1920) in TEST_F()
88 ASSERT_EQ(validValueInfos[0].values.range.min.ref<uint32_t>(), 2) in TEST_F()
90 ASSERT_EQ(validValueInfos[1].values.range.min.ref<uint32_t>(), 2) in TEST_F()
92 ASSERT_EQ(validValueInfos[0].values.range.step.ref<uint32_t>(), 2) in TEST_F()
94 ASSERT_EQ(validValueInfos[1].values.range.step.ref<uint32_t>(), 2) in TEST_F()

12345678910>>...19