• Home
  • Raw
  • Download

Lines Matching refs:Executor

9 In SystemUI, we are encouraging the use of Java's [Executor][Executor] over
12 Executor available, as well as our own sub-interface,
16 [Executor]: https://developer.android.com/reference/java/util/concurrent/Executor.html
31 internal behaviors), an Executor implementation can be made to be directly
38 At present, there are two interfaces of Executor avaiable, each implemented, and
41 ### Executor subsection
43 The simplest Executor available implements the interface directly, making
44 available one method: `Executor.execute()`. You can access an implementation of
45 this Executor through Dependency Injection:
50 public Foobar(@Background Executor bgExecutor) {
58 `@Main` will give you an Executor that runs on the ui thread. `@Background` will
60 non-annotated Executor, you will get the `@Background` Executor.
62 We do not currently have support for creating an Executor on a new, virgin
74 A DelayableExecutor can be accessed via Injection just like a standard Executor.
76 Executor.
114 Handler | Executor | DelayableExecutor
162 This could easily be replaced by equivalent, more direct Executor code:
187 DelayableExecutor (which in turn is an Executor). It takes a FakeSystemClock in
265 seen. You will need to tell the Executor to run its ready items. A quick example
277 clock.synchronizeListeners(); // The clock just told the Executor it's time-0.
279 clock.setUptimeMillis(500); // The clock just told the Executor it's time-500.
314 The Runnables _will not_ interleave. All of one Executor's callbacks will run,