Home
last modified time | relevance | path

Searched refs:runs (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/minikin/tests/unittest/
DFontCollectionItemizeTest.cpp88 std::vector<Run> runs; in itemize() local
90 runs.push_back( in itemize()
93 return runs; in itemize()
132 auto runs = itemize(collection, "'a' 'b' 'c' 'd' 'e'", kRegularStyle); in TEST() local
133 ASSERT_EQ(1U, runs.size()); in TEST()
134 EXPECT_EQ(0, runs[0].start); in TEST()
135 EXPECT_EQ(5, runs[0].end); in TEST()
136 EXPECT_EQ(kLatinFont, getFontName(runs[0])); in TEST()
137 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST()
138 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST()
[all …]
DMeasuredTextTest.cpp606 EXPECT_EQ((size_t)1, mt->runs.size()); in TEST()
607 EXPECT_EQ(LineBreakStyle::Loose, mt->runs[0]->lineBreakStyle()); in TEST()
608 EXPECT_EQ(LineBreakWordStyle::Phrase, mt->runs[0]->lineBreakWordStyle()); in TEST()
619 EXPECT_EQ((size_t)1, mt->runs.size()); in TEST()
620 EXPECT_EQ(LineBreakStyle::Normal, mt->runs[0]->lineBreakStyle()); in TEST()
621 EXPECT_EQ(LineBreakWordStyle::Phrase, mt->runs[0]->lineBreakWordStyle()); in TEST()
633 EXPECT_EQ((size_t)1, mt->runs.size()); in TEST()
634 EXPECT_EQ(LineBreakStyle::Strict, mt->runs[0]->lineBreakStyle()); in TEST()
635 EXPECT_EQ(LineBreakWordStyle::None, mt->runs[0]->lineBreakWordStyle()); in TEST()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DInitControllerTest.java39 boolean[] runs = {false, false, false}; in testInitControllerExecutesTasks()
41 runs[0] = true; in testInitControllerExecutesTasks()
44 runs[1] = true; in testInitControllerExecutesTasks()
47 runs[2] = true; in testInitControllerExecutesTasks()
49 assertFalse(runs[0] || runs[1] || runs[2]); in testInitControllerExecutesTasks()
52 assertTrue(runs[0] && runs[1] && runs[2]); in testInitControllerExecutesTasks()
57 boolean[] runs = {false, false, false}; in testInitControllerThrowsWhenTasksAreAddedAfterExecution()
59 runs[0] = true; in testInitControllerThrowsWhenTasksAreAddedAfterExecution()
62 runs[1] = true; in testInitControllerThrowsWhenTasksAreAddedAfterExecution()
69 runs[2] = true; in testInitControllerThrowsWhenTasksAreAddedAfterExecution()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java47 mRuns = classConfig != null && classConfig.runs() != -1 ? in PerformanceRunner()
48 classConfig.runs() : in PerformanceRunner()
55 int runs; in methodInvoker() local
61 runs = methodConfig != null && methodConfig.runs() != -1 ? in methodInvoker()
62 methodConfig.runs() : in methodInvoker()
64 return new TimedStatement(super.methodInvoker(method, test), warmUpIterations, runs, in methodInvoker()
78 int runs() default -1; in runs() method
DTimedStatementResult.java35 TimedStatementResult(int warmUpIterations, int runs, in TimedStatementResult() argument
40 mRuns = runs; in TimedStatementResult()
DTimedStatement.java55 TimedStatement(Statement statement, int warmUpIterations, int runs, in TimedStatement() argument
59 mRuns = runs; in TimedStatement()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DTextInterpolator.kt86 private class Line(val runs: List<Run>) in <lambda>() constant in Line
217 line.runs.forEach { run -> in <lambda>()
242 line.runs.forEach { run -> in <lambda>()
271 val runs = in <lambda>() constant
334 Line(runs) in <lambda>()
432 lines.zip(layoutResult) { line, runs -> in <lambda>() method
433 line.runs.zip(runs) { lineRun, newGlyphs -> in <lambda>()
504 val runs = mutableListOf<PositionedGlyphs>() in <lambda>() constant
512 runs.add(glyphs) in <lambda>()
514 out.add(runs) in <lambda>()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DVariationalKMeansQuantizer.java131 int runs = mInitializations; in getOptimalKMeans() local
132 while (runs > 0) { in getOptimalKMeans()
134 Log.d(TAG, "k-means run: " + runs); in getOptimalKMeans()
145 runs--; in getOptimalKMeans()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DFlattener.cpp419 std::vector<Run> runs; in findCandidateRuns() local
464 runs.push_back(*run); in findCandidateRuns()
478 runs.push_back(*run); in findCandidateRuns()
482 ALOGV("[%s] Found %zu candidate runs", __func__, runs.size()); in findCandidateRuns()
484 return runs; in findCandidateRuns()
487 std::optional<Flattener::Run> Flattener::findBestRun(std::vector<Flattener::Run>& runs) const { in findBestRun()
488 if (runs.empty()) { in findBestRun()
493 return runs[0]; in findBestRun()
516 std::vector<Run> runs = findCandidateRuns(now); in buildCachedSets() local
518 std::optional<Run> bestRun = findBestRun(runs); in buildCachedSets()
/frameworks/base/ravenwood/
DREADME.md3 …lly-supported lightweight unit testing environment for Android platform code that runs on the host.
11 …rectly from build artifacts (no flashing required), runs immediately (no booting required), and ru…
18 ….** This improves maintenance of APIs by providing awareness of what code runs under Ravenwood, in…
22 …mulation of how a device behaves, or they can bring more “real” code that runs on physical devices.
Dapi-maintainers.md20 // This method implementation runs as-is on both devices and Ravenwood
24 // This method implementation runs as-is on devices, but because there
38 // This method implementation runs as-is on both devices and Ravenwood,
44 // This method implementation runs as-is on devices, but the
58 // This method implementation runs as-is on devices, but the
64 // This method implementation only runs under Ravenwood
/frameworks/base/tools/lint/fix/
DREADME.md7 It's a python script that runs the framework linter,
18 directory. This script runs the lint, unpacks those files, and copies them back into the tree.
/frameworks/av/media/libaaudio/tests/
Dtest_timestamps.cpp249 for (int runs = 0; runs < NUM_LOOPS; runs++) { in testTimeStamps() local
250 printf("------------------ loop #%d\n", runs); in testTimeStamps()
/frameworks/base/core/java/android/text/
DLayout.java1431 int[] runs = dirs.mDirections; in isLevelBoundary() local
1436 int runIndex = offset == lineStart ? 0 : runs.length - 2; in isLevelBoundary()
1437 return ((runs[runIndex + 1] >>> RUN_LEVEL_SHIFT) & RUN_LEVEL_MASK) != paraLevel; in isLevelBoundary()
1441 for (int i = 0; i < runs.length; i += 2) { in isLevelBoundary()
1442 if (offset == runs[i]) { in isLevelBoundary()
1463 int[] runs = dirs.mDirections; in isRtlCharAt() local
1465 for (int i = 0; i < runs.length; i += 2) { in isRtlCharAt()
1466 int start = lineStart + runs[i]; in isRtlCharAt()
1467 int limit = start + (runs[i+1] & RUN_LENGTH_MASK); in isRtlCharAt()
1469 int level = (runs[i+1] >>> RUN_LEVEL_SHIFT) & RUN_LEVEL_MASK; in isRtlCharAt()
[all …]
DTextLine.java948 int[] runs = mDirections.mDirections;
956 runIndex = runs.length;
960 for (runIndex = 0; runIndex < runs.length; runIndex += 2) {
961 runStart = lineStart + runs[runIndex];
963 runLimit = runStart + (runs[runIndex+1] & Layout.RUN_LENGTH_MASK);
968 runLevel = (runs[runIndex+1] >>> Layout.RUN_LEVEL_SHIFT) &
976 for (prevRunIndex = 0; prevRunIndex < runs.length; prevRunIndex += 2) {
977 prevRunStart = lineStart + runs[prevRunIndex];
980 (runs[prevRunIndex+1] & Layout.RUN_LENGTH_MASK);
985 prevRunLevel = (runs[prevRunIndex+1] >>> Layout.RUN_LEVEL_SHIFT)
[all …]
/frameworks/base/tests/ActivityManagerPerfTests/
DREADME.txt13 to the time the Service runs its callbacks
18 * Each test will run multiple times to account for variation in test runs
22 * Instrumentation test which runs the various performance tests and reports the results
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp179 for (const auto& run : runs) { in measure()
358 for (const auto& run : runs) { in buildLayout()
378 for (const auto& run : runs) { in getBounds()
393 for (const auto& run : runs) { in getExtent()
406 for (const auto& run : runs) { in getLineMetrics()
DGreedyLineBreaker.cpp184 for (const auto& run : mMeasuredText.runs) { in tryLineBreakWithHyphenation()
311 for (const auto& run : mMeasuredText.runs) { in doLineBreakWithFallback()
457 for (uint32_t runIndex = 0; runIndex < mMeasuredText.runs.size(); ++runIndex) { in process()
458 const std::unique_ptr<Run>& run = mMeasuredText.runs[runIndex]; in process()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/docs/
Dthreading.md29 - This thread runs with `THREAD_PRIORITY_DISPLAY` priority since so many windowing-critical
39 - This thread runs with `THREAD_PRIORITY_BACKGROUND` priority
66 - Since everything in the Shell runs on the main Shell thread, you do **not** need to explicitly
/frameworks/base/tests/SystemMemoryTest/
DREADME.txt18 This installs and runs the test on device. You can see the metrics in the
/frameworks/av/media/
DTEST_MAPPING4 // runs whenever we change something in this tree
/frameworks/native/services/surfaceflinger/tests/tracing/
Dreadme.md5 runs through all testdata/transactions_trace_*.winscope files,
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java360 ArrayList<UiBenchmarkResult> runs = detailedResults.get(test); in writeRawResults() local
361 for (int i = 0; i < runs.size(); i++) { in writeRawResults()
362 UiBenchmarkResult run = runs.get(i); in writeRawResults()
/frameworks/base/libs/WindowManager/Shell/tests/
DREADME.md12 @LargeTest and runs with UI automation on real device
/frameworks/native/opengl/tests/testViewport/
DREADME28 call (which means it is called before every draw), the program runs correctly.

123