/frameworks/base/core/tests/coretests/src/android/text/ |
D | MeasuredParagraphTest.java | 65 MeasuredParagraph mt = null; in buildForBidi() local 67 mt = MeasuredParagraph.buildForBidi("XXX", 0, 3, LTR, null); in buildForBidi() 68 assertNotNull(mt); in buildForBidi() 69 assertNotNull(mt.getChars()); in buildForBidi() 70 assertEquals("XXX", charsToString(mt.getChars())); in buildForBidi() 71 assertEquals(Layout.DIR_LEFT_TO_RIGHT, mt.getParagraphDir()); in buildForBidi() 72 assertNotNull(mt.getDirections(0, 3)); in buildForBidi() 73 assertEquals(0, mt.getWholeWidth(), 0); in buildForBidi() 74 assertEquals(0, mt.getWidths().size()); in buildForBidi() 75 assertEquals(0, mt.getSpanEndCache().size()); in buildForBidi() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | MeasuredTextTest.cpp | 68 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local 71 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST() 72 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST() 73 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST() 74 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(1, 2))); in TEST() 75 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 130.0f, 0.0f), mt->getBounds(text, Range(0, text.size()))); in TEST() 90 auto mt = builder.build(text, true /* hyphenation */, true /* full layout */, in TEST() local 93 EXPECT_EQ(MinikinRect(0.0f, 0.0f, 0.0f, 0.0f), mt->getBounds(text, Range(0, 0))); in TEST() 94 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 10.0f, 0.0f), mt->getBounds(text, Range(0, 1))); in TEST() 95 EXPECT_EQ(MinikinRect(0.0f, 10.0f, 20.0f, 0.0f), mt->getBounds(text, Range(0, 2))); in TEST() [all …]
|
D | SparseBitSetTest.cpp | 28 std::mt19937 mt; // Fix seeds to be able to reproduce the result. in TEST() local 31 std::vector<uint32_t> range{distribution(mt)}; in TEST() 33 range.push_back((range.back() - 1) + distribution(mt)); in TEST()
|
/frameworks/base/core/java/android/text/ |
D | MeasuredParagraph.java | 67 final MeasuredParagraph mt = sPool.acquire(); in obtain() local 68 return mt != null ? mt : new MeasuredParagraph(); in obtain() 316 final MeasuredParagraph mt = recycle == null ? obtain() : recycle; in buildForBidi() local 317 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForBidi() 318 return mt; in buildForBidi() 342 final MeasuredParagraph mt = recycle == null ? obtain() : recycle; in buildForMeasurement() local 343 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForMeasurement() 345 mt.mWidths.resize(mt.mTextLength); in buildForMeasurement() 346 if (mt.mTextLength == 0) { in buildForMeasurement() 347 return mt; in buildForMeasurement() [all …]
|
D | TextUtils.java | 1322 MeasuredParagraph mt = null; in ellipsize() local 1324 mt = MeasuredParagraph.buildForMeasurement(paint, text, 0, text.length(), textDir, mt); in ellipsize() 1325 float width = mt.getWholeWidth(); in ellipsize() 1345 right = len - mt.breakText(len, false, avail); in ellipsize() 1347 left = mt.breakText(len, true, avail); in ellipsize() 1349 right = len - mt.breakText(len, false, avail / 2); in ellipsize() 1350 avail -= mt.measure(right, len); in ellipsize() 1351 left = mt.breakText(right, true, avail); in ellipsize() 1358 final char[] buf = mt.getChars(); in ellipsize() 1398 if (mt != null) { in ellipsize() [all …]
|
D | Layout.java | 2146 MeasuredParagraph mt = null; 2149 mt = MeasuredParagraph.buildForBidi(text, start, end, textDir, mt); 2150 final char[] chars = mt.getChars(); 2152 final Directions directions = mt.getDirections(0, len); 2153 final int dir = mt.getParagraphDir(); 2187 if (mt != null) { 2188 mt.recycle();
|
/frameworks/minikin/tests/stresstest/ |
D | MultithreadTest.cpp | 45 static std::vector<uint16_t> generateTestText(std::mt19937* mt, int lettersInWord, in generateTestText() argument 56 text.emplace_back(dist(*mt)); in generateTestText() 69 std::mt19937 mt(tid); in thread_main() local 77 std::vector<uint16_t> text = generateTestText(&mt, 3, 10); in thread_main()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | CachedPathIteratorFactory.java | 130 float mt = t0 + (t1 - t0) / 2; in quadCurveSegment() local 131 float mu = 1 - mt; in quadCurveSegment() 132 float mx = mu * mu * coords[0] + 2 * mu * mt * coords[2] + mt * mt * coords[4]; in quadCurveSegment() 133 float my = mu * mu * coords[1] + 2 * mu * mt * coords[3] + mt * mt * coords[5]; in quadCurveSegment()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 55 minikin::MeasuredText* mt) { in doLayout() argument 64 if (mt == nullptr) { in doLayout() 68 return mt->buildLayout(textBuf, range, contextRange, minikinPaint, startHyphen, endHyphen); in doLayout()
|
D | MinikinUtils.h | 49 minikin::MeasuredText* mt);
|
D | Canvas.cpp | 153 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt) { in drawText() argument 158 start, count, contextStart, contextCount, mt); in drawText()
|
D | Canvas.h | 288 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt);
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | ViewfinderProcessor.java | 210 long mt = System.nanoTime(); in run() local 214 mt = System.nanoTime() - mt; in run() 215 Log.v(TAG, " hough = " + df.format(mt * 1E-6) + "ms"); in run()
|
/frameworks/base/core/jni/android/graphics/text/ |
D | MeasuredText.cpp | 102 minikin::MeasuredText* mt = toMeasuredParagraph(ptr); in nGetWidth() local 105 r += mt->widths[i]; in nGetWidth()
|
/frameworks/base/core/jni/ |
D | eventlog_helper.h | 55 struct { jclass *c; const char *name, *mt; jmethodID *id; } gMethods[] = { in Init() member 71 *gMethods[i].c, gMethods[i].name, gMethods[i].mt); in Init()
|
D | android_graphics_Canvas.cpp | 576 minikin::MeasuredText* mt = reinterpret_cast<minikin::MeasuredText*>(mtHandle); in drawTextRunChars() local 587 bidiFlags, *paint, typeface, mt); in drawTextRunChars()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/m4/ |
D | acx_pthread.m4 | 102 …ne -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 116 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 119 # ... -mt is also the pthreads flag for HP/aCC 129 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 135 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
|
D | acx_check_suncc.m4 | 29 …CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -temp…
|
/frameworks/av/media/extractors/mp4/ |
D | MPEG4Extractor.cpp | 1153 int32_t mt; in parseChunk() local 1155 !mDataSource->getUInt32(entriesoffset + 4, (uint32_t*)&mt)) { in parseChunk() 1159 media_time = mt; in parseChunk()
|