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-13 13:59:04 -07:00
2017-11-30 17:43:13 -08:00
2017-12-04 13:02:10 -08:00
2017-11-22 22:07:06 +00:00
2017-12-07 16:16:13 -08:00
2017-12-12 09:30:28 -05:00
2017-12-08 15:41:14 +00:00
2017-06-06 15:48:24 +00:00
2017-12-13 16:53:55 +00:00
2017-12-05 18:44:50 -08:00
2017-12-12 00:48:22 +00:00
2017-12-11 16:19:48 -08:00
2017-10-27 17:09:39 -07:00
2017-12-13 13:59:04 -07:00
2017-09-08 16:01:10 -07:00
2017-09-01 21:31:18 +00:00
2017-12-05 12:56:29 -08:00
2017-05-24 15:39:23 -07:00
2017-08-15 16:48:42 -04:00
2017-11-16 22:58:45 -07:00
2017-12-04 14:26:46 -08:00
2017-11-27 15:27:16 +00:00
2017-06-05 13:27:11 -06:00
2017-12-05 18:44:50 -08:00
2017-12-13 13:59:04 -07:00
2017-11-14 12:31:11 -08:00
2017-05-24 15:39:23 -07:00
2017-11-13 10:55:59 -08:00
2017-07-15 21:08:56 -06:00
2017-08-11 14:45:47 -06:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-11-13 10:55:59 -08:00
2017-12-08 13:53:42 -08:00
2017-11-21 18:13:52 -08:00
2017-11-14 12:39:21 -08:00
2017-12-04 13:02:10 -08:00
2017-07-21 13:14:37 -07:00
2017-11-21 11:28:07 -05:00
2017-11-14 01:03:50 +00:00
2017-07-31 19:41:01 -07:00
2017-10-06 16:34:43 -07:00
2017-11-30 13:02:14 -08:00
2017-07-10 17:24:20 +01:00
2017-08-02 18:34:00 -07:00
2017-08-02 18:34:00 -07:00
2017-11-29 15:25:35 -08:00
2017-11-13 10:55:59 -08:00
2017-12-04 17:11:31 -08:00
2017-11-13 10:55:59 -08:00
2017-12-05 18:44:50 -08:00
2017-07-11 18:08:10 -07:00
2017-12-07 15:40:20 +01:00
2017-10-11 17:59:17 +00:00
2017-10-03 12:35:48 -07:00
2017-11-21 11:28:07 -05:00
2017-10-27 15:34:49 +00:00
2017-11-27 18:15:49 -08:00
2017-06-29 14:01:43 -07:00
2017-08-16 10:01:26 -07:00
2017-08-31 21:44:25 +00:00
2017-11-27 18:15:49 -08:00
2017-06-05 13:27:11 -06:00
2017-05-23 10:37:09 -07:00
2017-09-29 15:03:47 -07:00
2017-12-05 02:34:41 +00:00
2017-10-10 21:04:42 +01:00
2017-12-07 13:53:44 -08:00
2017-10-13 14:25:26 -07:00
2017-11-13 12:49:44 +00:00
2017-11-30 13:02:14 -08:00
2017-11-30 13:02:14 -08:00
2017-06-05 13:27:11 -06:00
2017-06-29 19:01:39 +00:00
2017-12-08 00:55:11 +00:00
2017-08-24 21:45:24 +00:00
2017-08-15 11:30:19 -07:00
2017-10-16 10:05:20 -07:00
2017-08-18 07:57:06 -07:00
2017-11-27 08:59:19 -08:00