/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IntRangeManager.java | 115 void insert(ClientRange range) { in insert() argument 120 if (range.mStartId <= nextRange.mStartId) { in insert() 122 if (!range.equals(nextRange)) { in insert() 124 if (range.mStartId == nextRange.mStartId in insert() 125 && range.mEndId > nextRange.mEndId) { in insert() 134 mClients.add(i, range); in insert() 140 mClients.add(insert, range); in insert() 143 mClients.add(range); // append to end of list in insert() 222 IntRange range = mRanges.get(startIndex); in enableRange() local 223 if ((startId) >= range.mStartId && (endId) <= range.mEndId) { in enableRange() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 35 void setNextRange(const Range& range, bool dir) { in setNextRange() argument 36 mRange = range; in setNextRange() 63 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics() 83 void setNextContext(const Range& range, HyphenEdit edit, bool dir) { in setNextContext() argument 84 mRange = range; in setNextContext() 106 float StyleRun::measureHyphenPiece(const U16StringPiece& textBuf, const Range& range, in measureHyphenPiece() argument 111 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in measureHyphenPiece() 112 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece() 114 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece() 116 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece() [all …]
|
D | Layout.cpp | 48 void Layout::doLayout(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in doLayout() argument 51 const uint32_t count = range.getLength(); in doLayout() 54 for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) { in doLayout() 55 doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, range.getStart(), in doLayout() 60 float Layout::measureText(const U16StringPiece& textBuf, const Range& range, Bidi bidiFlags, in measureText() argument 64 for (const BidiText::RunInfo& runInfo : BidiText(textBuf, range, bidiFlags)) { in measureText() 65 const size_t offset = range.toRangeOffset(runInfo.range.getStart()); in measureText() 67 advance += doLayoutRunCached(textBuf, runInfo.range, runInfo.isRtl, paint, 0, startHyphen, in measureText() 73 float Layout::doLayoutRunCached(const U16StringPiece& textBuf, const Range& range, bool isRtl, in doLayoutRunCached() argument 77 if (!range.isValid()) { in doLayoutRunCached() [all …]
|
D | LayoutSplitter.h | 57 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()
|
D | GreedyLineBreaker.cpp | 92 bool tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker); 100 bool doLineBreakWithGraphemeBounds(const Range& range); 163 bool GreedyLineBreaker::tryLineBreakWithHyphenation(const Range& range, WordBreaker* breaker) { in tryLineBreakWithHyphenation() argument 170 if (run->getRange().contains(range)) { in tryLineBreakWithHyphenation() 180 if (!range.contains(targetRange)) { in tryLineBreakWithHyphenation() 186 Range contextRange = range; in tryLineBreakWithHyphenation() 257 bool GreedyLineBreaker::doLineBreakWithGraphemeBounds(const Range& range) { in doLineBreakWithGraphemeBounds() argument 258 double width = mMeasuredText.widths[range.getStart()]; in doLineBreakWithGraphemeBounds() 261 for (uint32_t i = range.getStart() + 1; i < range.getEnd(); ++i) { in doLineBreakWithGraphemeBounds() 281 breakLineAt(range.getEnd(), mLineWidth, 0, 0, EndHyphenEdit::NO_EDIT, StartHyphenEdit::NO_EDIT); in doLineBreakWithGraphemeBounds() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Range.java | 131 public boolean contains(Range<T> range) { in contains() argument 132 checkNotNull(range, "value must not be null"); in contains() 134 boolean gteLower = range.mLower.compareTo(mLower) >= 0; in contains() 135 boolean lteUpper = range.mUpper.compareTo(mUpper) <= 0; in contains() 204 public Range<T> intersect(Range<T> range) { in intersect() argument 205 checkNotNull(range, "range must not be null"); in intersect() 207 int cmpLower = range.mLower.compareTo(mLower); in intersect() 208 int cmpUpper = range.mUpper.compareTo(mUpper); in intersect() 215 return range; in intersect() 218 cmpLower <= 0 ? mLower : range.mLower, in intersect() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 63 Range range(0, text.size()); in TEST_F() local 64 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 81 Range range(0, text.size()); in TEST_F() local 82 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 99 Range range(0, text.size()); in TEST_F() local 100 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 117 Range range(0, text.size()); in TEST_F() local 118 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() 147 Range range(0, text.size()); in TEST_F() local 148 Layout layout(text, range, Bidi::LTR, paint, StartHyphenEdit::NO_EDIT, in TEST_F() [all …]
|
D | BidiUtilsTest.cpp | 39 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 …]
|
D | SparseBitSetTest.cpp | 31 std::vector<uint32_t> range{distribution(mt)}; in TEST() local 33 range.push_back((range.back() - 1) + distribution(mt)); in TEST() 36 SparseBitSet bitset(range.data(), range.size() / 2); in TEST() 39 for (size_t i = 0; i < range.size() / 2; ++i) { in TEST() 40 uint32_t start = range[i * 2]; in TEST() 41 uint32_t end = range[i * 2 + 1]; in TEST()
|
D | LayoutSplitterTest.cpp | 31 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/ |
D | LayoutPieces.h | 32 Key(const Range& range, HyphenEdit hyphenEdit, bool dir, uint32_t paintId) in Key() 33 : range(range), hyphenEdit(hyphenEdit), dir(dir), paintId(paintId) {} in Key() 35 Range range; member 42 .update(range.getStart()) in hash() 43 .update(range.getEnd()) in hash() 51 return range == o.range && hyphenEdit == o.hyphenEdit && dir == o.dir && 75 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert() 83 std::forward_as_tuple(range, edit, dir, paintId), in insert() 88 void getOrCreate(const U16StringPiece& textBuf, const Range& range, const Range& context, in getOrCreate() 92 auto it = offsetMap.find(Key(range, edit, dir, paintId)); in getOrCreate() [all …]
|
D | MeasuredText.h | 35 Run(const Range& range) : mRange(range) {} in Run() argument 51 virtual std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, 53 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 56 virtual void appendLayout(const U16StringPiece& text, const Range& range, 86 StyleRun(const Range& range, MinikinPaint&& paint, bool isRtl) in StyleRun() argument 87 : Run(range), mPaint(std::move(paint)), mIsRtl(isRtl) {} in StyleRun() 96 std::pair<float, MinikinRect> getBounds(const U16StringPiece& text, const Range& range, 99 MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 102 void appendLayout(const U16StringPiece& text, const Range& range, const Range& contextRange, 109 float measureHyphenPiece(const U16StringPiece& text, const Range& range, [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_PersistentDataBlockService.cpp | 50 uint64_t range[2]; in wipe_block_device() local 54 range[0] = 0; in wipe_block_device() 55 range[1] = len; in wipe_block_device() 57 if (range[1] == 0) in wipe_block_device() 60 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device() 63 range[0] = 0; in wipe_block_device() 64 range[1] = len; in wipe_block_device() 65 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | deringing_luma.cpp | 34 int thres[4], range[4], max_range_blk, max_thres_blk; in Deringing_Luma() local 66 range[blks] = max_blk - min_blk; in Deringing_Luma() 68 if (range[blks] >= max_range_blk) in Deringing_Luma() 70 max_range_blk = range[blks]; in Deringing_Luma() 86 if (range[blks]<32 && max_range_blk >= 64) in Deringing_Luma() 120 range[blks] = max_blk - min_blk; in Deringing_Luma() 122 if (range[blks] >= max_range_blk) in Deringing_Luma() 124 max_range_blk = range[blks]; in Deringing_Luma() 140 if (range[blks]<32 && max_range_blk >= 64) in Deringing_Luma() 178 range[blks] = max_blk - min_blk; in Deringing_Luma() [all …]
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 716 final MotionRange range = mMotionRanges.get(i); in getMotionRange() local 717 if (range.mAxis == axis) { in getMotionRange() 718 return range; in getMotionRange() 741 final MotionRange range = mMotionRanges.get(i); in getMotionRange() local 742 if (range.mAxis == axis && range.mSource == source) { in getMotionRange() 743 return range; in getMotionRange() 987 MotionRange range = mMotionRanges.get(i); in writeToParcel() local 988 out.writeInt(range.mAxis); in writeToParcel() 989 out.writeInt(range.mSource); in writeToParcel() 990 out.writeFloat(range.mMin); in writeToParcel() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 72 for (const InputDeviceInfo::MotionRange& range: ranges) { in android_view_InputDevice_create() local 73 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis, in android_view_InputDevice_create() 74 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution); in android_view_InputDevice_create()
|
/frameworks/ml/nn/runtime/test/specs/V1_0/ |
D | concat_quant8_3.mod.py | 32 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):
|
D | concat_float_3.mod.py | 32 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):
|
/frameworks/ml/nn/runtime/test/specs/V1_2/ |
D | concat_float16_3.mod.py | 32 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):
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 88 for (Range<T> range: another) { in intersectSortedDistinctRanges() 90 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges() 94 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges() 95 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges() 101 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges() 102 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges() 157 static Range<Integer>factorRange(Range<Integer> range, int factor) { 159 return range; 161 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor); 168 static Range<Long>factorRange(Range<Long> range, long factor) { [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_1/ |
D | concat_float_3_relaxed.mod.py | 33 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):
|
/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 154 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange() argument 156 if (sRanges.map(range, &res)) { in wrapColorAspectsIntoColorRange() 158 } else if (!isValid(range)) { in wrapColorAspectsIntoColorRange() 161 CHECK(!isDefined(range)); in wrapColorAspectsIntoColorRange() 163 return kColorRangeVendorStart + range; in wrapColorAspectsIntoColorRange() 169 int32_t range, ColorAspects::Range *aspect) { in unwrapColorAspectsFromColorRange() argument 170 if (sRanges.map((ColorRange)range, aspect)) { in unwrapColorAspectsFromColorRange() 176 if (range >= start && range < start + numRanges) { in unwrapColorAspectsFromColorRange() 177 *aspect = (ColorAspects::Range)(range - start); in unwrapColorAspectsFromColorRange() 232 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { in convertPlatformColorAspectsToCodecAspects() argument [all …]
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | FileInfo.kt | 94 mainClassBounds.fileInfo.sourceLines.subList(0, mainClassBounds.range.start))) in <lambda>() 143 … val range: ClosedRange<Int> = ast.range.get()!!.let { rng -> rng.begin.line-1..rng.end.line-1 }, in <lambda>() constant in com.android.codegen.FileInfo.ClassBounds 148 nested.filter { it.isDataclass }.sortedBy { it.range.start } in <lambda>() 155 val sourceNoPrefix = fileInfo.sourceLines.drop(range.start) in <lambda>() 170 … range.start + start - fileInfo.generatedWarningNumPrecedingEmptyLines, in <lambda>() 171 range.start + endInclusive) in <lambda>() 178 appendln("class $name $range") in <lambda>() 214 fromIndex = classBounds.range.start, in <lambda>() 225 fromIndex = nestedDataClass.range.endInclusive + 1, in <lambda>() 265 return nextNestedClass?.range?.start in <lambda>() [all …]
|
/frameworks/ml/nn/runtime/test/specs/V1_3/ |
D | concat_quant8_signed.mod.py | 91 input1_values = [x % 256 for x in range(row1 * col)] 93 [(x + s1) % 256 for x in range(s2)])() 96 output_values = [x % 256 - 128 for x in range(output_row * col)] 118 input1_values = [(x % 128) for x in range(row * col1)] 119 input2_values = [x % 128 - 128 for x in range(row * col2)] 123 output_values = [x for x in range(row * output_col)] 124 for r in range(row): 125 for c1 in range(col1): 127 for c2 in range(col2):
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollBarUtils.java | 24 public static int getThumbLength(int size, int thickness, int extent, int range) { in getThumbLength() argument 27 int length = Math.round((float) size * extent / range); in getThumbLength() 34 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument 36 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
|