summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/common/concurrent/Annotations.java
Commit message (Collapse)AuthorAgeFilesLines
* Added bindings for ListeningExecutorServices.zachh2017-12-071-0/+8
| | | | | | | | | Use them where appropriate. Bug: 34672501 Test: existing PiperOrigin-RevId: 178182298 Change-Id: If454225e0d636c7cb14b5af02d46780d7732abf0
* Add UiThreadExecutorZachary Heidepriem2017-11-111-0/+4
| | | | | | | | | | This CL adds an executor which runs tasks on the Ui thread, using the existing ThreadUtil class. Bug: 67752611 Test: UiThreadExecutorTest PiperOrigin-RevId: 175046280 Change-Id: Iff15e216be0e91891a9d63fddf1288ecbec41f83
* Improved dagger support for executor services.zachh2017-10-251-0/+38
By always creating executor services via dagger, we can now bind special versions during espresso tests that can implement idling resources. We should be using idling resources during espresso tests for threads that we create ourselves, because espresso does not know about them. Hopefully this reduces some of the flakiness of espresso tests that we have today. This required converting all existing calls to DialerExecutors to pass a context used to fetch the component, and also required creating new application classes for espresso tests. Test: temporarily added a task which just slept to DialtactsActivity and verified that its integration test failed due to idling resource timeout PiperOrigin-RevId: 173334773 Change-Id: I876a93022d235d62cfc377bf5b06687e21a34758