OSDN Git Service

Make slices precheck executes in parallel.
authorYi-Ling Chuang <emilychuang@google.com>
Thu, 14 Feb 2019 13:31:11 +0000 (21:31 +0800)
committerYi-Ling Chuang <emilychuang@google.com>
Thu, 21 Feb 2019 07:24:28 +0000 (15:24 +0800)
commitdde76e6d5caa467486f58899855e8de4b1a37208
tree808525f2a47138a0c6ad35b9699c610fd1ac75a7
parentdaa8ff36cc271d6ded3c0227ad29c69e50e7b555
Make slices precheck executes in parallel.

Slice binding takes up sometime which may cause latency.
Thus, making it run in parallel instead of sequentially to improve the
performance and avoid hitting the timeout problem.

Bug: 124366297
Fixes: 123668403
Test: robotests, unit tests
Change-Id: I5d9fa4605f59e2acef65aadf6fce85df36d8fff1
src/com/android/settings/homepage/contextualcards/ContextualCardLoader.java
src/com/android/settings/homepage/contextualcards/EligibleCardChecker.java [new file with mode: 0644]
tests/robotests/src/com/android/settings/homepage/contextualcards/ContextualCardLoaderTest.java
tests/unit/src/com/android/settings/homepage/contextualcards/ContextualCardLoaderTest.java