OSDN Git Service

Reduce usages of main looper in sysui tests
authorJason Monk <jmonk@google.com>
Wed, 16 May 2018 00:24:07 +0000 (20:24 -0400)
committerJason Monk <jmonk@google.com>
Thu, 17 May 2018 14:32:31 +0000 (10:32 -0400)
commit6dceace0eddd08156e6b71c17e3de4ed5f4f2f41
treeed29ba6168c7e3534057ad7bab2e2f3035a616e8
parent1e352f4c34534864306a79f20a1af9d73b7cbd5f
Reduce usages of main looper in sysui tests

Push over to a standard testable looper, and a testable looper +
setAsMain when needed.

Also make tests more synchronous and single threaded as possible.
This will make them more deterministic and speeds them up noticeably.

Test: runtest systemui
Bug: 79550837
Change-Id: Iab0eb794329d7b1de95aef904ec08ecae7dadc98
33 files changed:
packages/SystemUI/src/com/android/systemui/statusbar/notification/NotificationInflater.java
packages/SystemUI/tests/src/com/android/keyguard/KeyguardMessageAreaTest.java
packages/SystemUI/tests/src/com/android/systemui/ExpandHelperTest.java
packages/SystemUI/tests/src/com/android/systemui/doze/DozeTriggersTest.java
packages/SystemUI/tests/src/com/android/systemui/pip/phone/PipTouchStateTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/external/TileLifecycleManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/qs/external/TileServiceManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/AppOpsListenerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NonPhoneDependencyTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationBlockingHelperManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationDataTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationEntryManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationGutsManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationListenerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationLockscreenUserManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationLoggerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationRemoteInputManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationTestHelper.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationViewHierarchyManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/AboveShelfObserverTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationInflaterTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationViewWrapperTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/AutoTileManagerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/HeadsUpAppearanceControllerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/RemoteInputViewTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/SmartReplyConstantsTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ZenModeControllerImplTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationChildrenContainerTest.java
packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationRoundnessManagerTest.java