Files
frameworks_base/core/java/android/os
Jeff Sharkey 8439ac08b1 Start accepting Executors instead of Handlers.
After discussion in API council, our new best-practices are to have
developers provide an Executor to dispatch callbacks/listeners on,
instead of the previous guidance of using a Handler.

Define Context.getMainExecutor() to easily obtain an Executor
associated with the main thread of application.  This allows new
APIs to require a @NonNull Executor.  Also define a new
@CallbackExecutor auto-doc annotation that explains background and
points developers at new Context method above.

Test: cts-tradefed run commandAndExit cts-dev -m CtsContentTestCases -t android.content.cts.ContextTest#testMainLooper
Test: cts-tradefed run commandAndExit cts-dev -m CtsContentTestCases -t android.content.cts.ContextTest#testMainExecutor
Bug: 70348426
Change-Id: I536892bcd80fcfba1bb1ddf67648c08a26d7ddd2
2017-12-13 13:59:04 -07:00
..
2017-12-05 20:38:25 +00:00
2017-11-01 14:19:33 +00:00
2016-10-19 11:29:47 -07:00
2017-11-03 17:36:35 -06:00
2017-11-16 22:58:45 -07:00
2017-04-27 16:24:26 -07:00
2017-08-07 15:36:10 -07:00
2017-12-05 10:46:59 -08:00
2017-04-24 13:20:46 -06:00
2017-06-28 16:49:12 -07:00
2017-08-07 15:36:10 -07:00
2017-11-21 10:17:14 -08:00
2017-11-21 10:17:14 -08:00
2016-11-04 10:43:25 -07:00