Home
last modified time | relevance | path

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

123456

/frameworks/minikin/tests/
DFontCollectionItemizeTest.cpp85 std::vector<FontCollection::Run> runs; in TEST_F() local
92 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kRegularStyle, &runs); in TEST_F()
93 ASSERT_EQ(1U, runs.size()); in TEST_F()
94 EXPECT_EQ(0, runs[0].start); in TEST_F()
95 EXPECT_EQ(5, runs[0].end); in TEST_F()
96 EXPECT_EQ(kLatinFont, getFontPath(runs[0])); in TEST_F()
97 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeBold()); in TEST_F()
98 EXPECT_FALSE(runs[0].fakedFont.fakery.isFakeItalic()); in TEST_F()
100 itemize(collection.get(), "'a' 'b' 'c' 'd' 'e'", kItalicStyle, &runs); in TEST_F()
101 ASSERT_EQ(1U, runs.size()); in TEST_F()
[all …]
/frameworks/base/core/java/android/text/
DTextLine.java206 int[] runs = mDirections.mDirections; in draw() local
208 int lastRunIndex = runs.length - 2; in draw()
209 for (int i = 0; i < runs.length; i += 2) { in draw()
210 int runStart = runs[i]; in draw()
211 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in draw()
215 boolean runIsRtl = (runs[i+1] & Layout.RUN_RTL_FLAG) != 0; in draw()
285 int[] runs = mDirections.mDirections; in measure() local
286 for (int i = 0; i < runs.length; i += 2) { in measure()
287 int runStart = runs[i]; in measure()
288 int runLimit = runStart + (runs[i+1] & Layout.RUN_LENGTH_MASK); in measure()
[all …]
DLayout.java756 int[] runs = dirs.mDirections; in isLevelBoundary() local
761 int runIndex = offset == lineStart ? 0 : runs.length - 2; in isLevelBoundary()
762 return ((runs[runIndex + 1] >>> RUN_LEVEL_SHIFT) & RUN_LEVEL_MASK) != paraLevel; in isLevelBoundary()
766 for (int i = 0; i < runs.length; i += 2) { in isLevelBoundary()
767 if (offset == runs[i]) { in isLevelBoundary()
788 int[] runs = dirs.mDirections; in isRtlCharAt() local
790 for (int i = 0; i < runs.length; i += 2) { in isRtlCharAt()
791 int start = lineStart + runs[i]; in isRtlCharAt()
792 int limit = start + (runs[i+1] & RUN_LENGTH_MASK); in isRtlCharAt()
794 int level = (runs[i+1] >>> RUN_LEVEL_SHIFT) & RUN_LEVEL_MASK; in isRtlCharAt()
[all …]
/frameworks/base/docs/html/training/sync-adapters/
Drunning-sync-adapter.jd39 includes a sync adapter, but none of the code you've seen actually runs the sync adapter.
279 You can run your sync adapter periodically by setting a period of time to wait between runs,
293 In general, periodic runs make sense if your users don't need instant updates, but expect to
294 have regular updates. Periodic runs also make sense if you want to balance the availability of
295 up-to-date data with the efficiency of smaller sync adapter runs that don't over-use device
313 ensure that sync adapter runs from different devices are staggered.
318 so you may get multiple sync runs in a relatively short period of time. Also, only a few
325 The following code snippet shows you how to schedule periodic sync adapter runs:
368 when it runs sync adapters according to a schedule. Options that run a sync in response to data
372 In comparison, allowing users to run a sync on demand means that the sync runs by itself, which
Dindex.jd67 run to a queue, and runs them when possible.
73 The system only runs your data transfer when the device has network connectivity.
/frameworks/base/docs/html/training/load-data-background/
Dindex.jd49 You can do this in a straightforward way by using an object that runs a query asynchronously in
52 background query, a {@link android.support.v4.content.CursorLoader} automatically re-runs the
Dhandle-results.jd47 data changes, the framework also re-runs the current query.
118 finishes, {@link android.support.v4.content.CursorLoader} re-runs its query.
/frameworks/native/opengl/tests/testViewport/
DREADME28 call (which means it is called before every draw), the program runs correctly.
/frameworks/base/docs/html/training/multiple-threads/
Dcommunicate-ui.jd37 Every app has its own special thread that runs UI objects such as {@link android.view.View}
47 {@link android.os.Handler} object receives messages and runs code to handle the messages.
51 runs on the UI thread.
60 {@link android.os.Handler} runs on the same thread as the {@link android.os.Looper}.
Drun-code.jd35 {@link java.util.concurrent.ThreadPoolExecutor} takes a task from the queue and runs it on the
52 runs it on the thread:
Dindex.jd46 display them on a thumbnail screen runs substantially faster when you do each decode on a
Ddefine-runnable.jd32 This lesson shows you how to implement a {@link java.lang.Runnable} class, which runs the code
/frameworks/base/docs/html/guide/topics/resources/
Dlocalization.jd81 user runs the application, Android automatically selects and loads the
102 <strong>When a user runs your application:</strong>
117 <p>Whenever the application runs in a locale for which you have not provided
258 <p>If the application runs on a device that is configured to use Japanese,
327 matter what device it runs on.</p>
338 the application needs: When the application runs in an unsupported locale and
354 name fields when the application runs in Japanese, but three name fields when
355 the application runs in some other language. You could handle this in either of
384 application runs on a device in the United Kingdom. </li>
389 should be different when the application runs in the U.K. For all the rest of
/frameworks/base/docs/html/guide/practices/
Dscreens-support-1.5.jd49 android:targetSdkVersion}</a> set to {@code "4"} or higher runs in <a
101 runs fine on them, as long as you don't use APIs in your application code from Android 1.6. </li>
121 Observe the way your application looks and runs, and test all of the user interactions.</li>
/frameworks/base/docs/html/training/permissions/
Dindex.jd35 To protect the system's integrity and the user's privacy, Android runs each
/frameworks/base/docs/html/training/testing/integration-testing/
Dindex.jd28 <em>integration tests</em> in order to validate the component's behavior when your app runs on a
/frameworks/base/docs/html/training/backward-compatible-ui/
Dindex.jd37 …ndroid in a backward-compatible way, ensuring that your application still runs on previous version…
/frameworks/base/docs/html/training/animation/
Dlayout.jd27 <p>A layout animation is a pre-loaded animation that the system runs each time you make a change
/frameworks/base/docs/html/guide/platform/
Dindex.jd93 runs in its own process and with its own instance of the <a href=
121 If your app runs well on ART, then it should work on Dalvik as well, but
/frameworks/rs/java/tests/Refocus/dataExtraction/
DRefocusTestTimingProcess.txt9 …s) and average the performance number. Make sure not to use the first two runs since the device mi…
/frameworks/base/docs/html/training/custom-views/
Doptimizing-view.jd28 ensure that the view runs fast. To avoid a UI that feels sluggish or stutters during playback,
/frameworks/base/docs/html/guide/topics/graphics/
Ddrawable-animation.jd30 <p>This animation runs for just three frames. By setting the <code>android:oneshot</code>
/frameworks/base/docs/html/training/tv/discovery/
Din-app-search.jd144 that runs the search query on a separate thread. This technique keeps potentially slow-running
/frameworks/native/cmds/flatland/
DREADME.txt29 measured, each sample measurement runs for between 50 and 200 ms, so a sleep
/frameworks/base/docs/html/training/articles/
Dperf-anr.jd85 <p>Therefore, any method that runs in the UI thread should do as little work
102 runs on the UI thread), you can notify the user. For example:</p>

123456