/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
D | SysuiLifecycleTest.java | 35 import android.testing.TestableLooper; 36 import android.testing.TestableLooper.RunWithLooper; 68 TestableLooper.get(this).processAllMessages(); in tearDown() 79 TestableLooper.get(this).processAllMessages(); in testAttach() 93 TestableLooper.get(this).processAllMessages(); in testDetach() 96 TestableLooper.get(this).processAllMessages(); in testDetach() 118 TestableLooper.get(this).processAllMessages(); in testStateAfterAttach() 129 TestableLooper.get(this).processAllMessages(); in testStateAfterDetach() 131 TestableLooper.get(this).processAllMessages(); in testStateAfterDetach() 142 TestableLooper.get(this).processAllMessages(); in testStateAfterReattach() [all …]
|
D | LifecycleFragmentTest.java | 31 import android.testing.TestableLooper; 32 import android.testing.TestableLooper.RunWithLooper; 58 TestableLooper.get(this).processAllMessages(); in testCreateLifecycle() 70 TestableLooper.get(this).processAllMessages(); in testResumeLifecycle() 82 TestableLooper.get(this).processAllMessages(); in testStartLifecycle() 94 TestableLooper.get(this).processAllMessages(); in testStopLifecycle() 96 TestableLooper.get(this).processAllMessages(); in testStopLifecycle() 108 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle() 110 TestableLooper.get(this).processAllMessages(); in testPauseLifecycle() 122 TestableLooper.get(this).processAllMessages(); in testDestroyLifecycle() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSSecurityFooterTest.java | 34 import android.testing.TestableLooper; 35 import android.testing.TestableLooper.RunWithLooper; 82 TestableLooper.get(this).getLooper()); in setUp() 102 TestableLooper.get(this).processAllMessages(); in testUnmanaged() 112 TestableLooper.get(this).processAllMessages(); in testManagedNoOwnerName() 128 TestableLooper.get(this).processAllMessages(); in testManagedOwnerName() 149 TestableLooper.get(this).processAllMessages(); in testManagedDemoMode() 159 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled() 171 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled() 184 TestableLooper.get(this).processAllMessages(); in testManagedCACertsInstalled() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 36 import android.testing.TestableLooper.MessageHandler; 37 import android.testing.TestableLooper.RunWithLooper; 44 private TestableLooper mTestableLooper; 48 mTestableLooper = TestableLooper.get(this); in setup() 135 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() 170 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 41 public class TestableLooper { class 57 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper 61 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper 66 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper 215 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>(); 221 public static TestableLooper get(Object test) { in get() 232 private final TestableLooper mTestableLooper; 240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 251 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod() 317 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
|
D | BaseFragmentTest.java | 77 TestableLooper.get(this)); in setupFragment() 78 TestableLooper.get(this).runWithLooper(() -> { in setupFragment() 102 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown() 175 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow() 180 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow() 190 TestableLooper.get(this).processAllMessages(); in processAllMessages()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotifBindPipelineTest.java | 24 import android.testing.TestableLooper; 48 @TestableLooper.RunWithLooper 65 TestableLooper.get(this).getLooper()); in setUp() 84 TestableLooper.get(this).processAllMessages(); in testCallbackCalled() 101 TestableLooper.get(this).processAllMessages(); in testCallbackCancelled() 121 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks() 126 TestableLooper.get(this).processAllMessages(); in testMultipleCallbacks()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this).getLooper(), sliceDir); in testGrant() 80 TestableLooper.get(this).getLooper(), sliceDir); in testBackup() 90 TestableLooper.get(this).processAllMessages(); in testBackup() 99 TestableLooper.get(this).getLooper()); in testBackup() 124 TestableLooper.get(this).getLooper(), sliceDir); in testInvalid()
|
D | PinnedSliceStateTest.java | 33 import android.testing.TestableLooper; 34 import android.testing.TestableLooper.RunWithLooper; 79 new Handler(TestableLooper.get(this).getLooper())); in setUp() 107 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 111 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 174 TestableLooper.get(this).processAllMessages(); in testPinFailed() 178 TestableLooper.get(this).processAllMessages(); in testPinFailed()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 34 import android.testing.TestableLooper; 49 @TestableLooper.RunWithLooper 68 new Handler(TestableLooper.get(this).getLooper())); in setUp() 78 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification() 85 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification() 92 TestableLooper.get(this).processAllMessages(); in testRankingUpdateCallsNotificationRankingUpdate()
|
D | ScrimViewTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 61 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
D | StatusBarStateControllerImplTest.kt | 20 import android.testing.TestableLooper 31 @TestableLooper.RunWithLooper 45 TestableLooper.get(this).runWithLooper { in testChangeState_logged()
|
D | NonPhoneDependencyTest.java | 23 import android.testing.TestableLooper; 54 @TestableLooper.RunWithLooper(setAsMainLooper = true) 71 new Handler(TestableLooper.get(this).getLooper())); in setUp() 99 TestableLooper.get(this).processAllMessages(); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/ |
D | QSCarrierTest.java | 23 import android.testing.TestableLooper; 36 @TestableLooper.RunWithLooper 41 private TestableLooper mTestableLooper; 45 mTestableLooper = TestableLooper.get(this); in setUp()
|
D | QSCarrierGroupControllerTest.java | 30 import android.testing.TestableLooper; 51 @TestableLooper.RunWithLooper 68 private TestableLooper mTestableLooper; 74 mTestableLooper = TestableLooper.get(this); in setup() 75 Handler handler = new FakeHandler(TestableLooper.get(this).getLooper()); in setup() 100 mActivityStarter, handler, TestableLooper.get(this).getLooper(), in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTileTest.kt | 21 import android.testing.TestableLooper 22 import android.testing.TestableLooper.RunWithLooper 51 private lateinit var testableLooper: TestableLooper 57 testableLooper = TestableLooper.get(this) in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 31 import android.testing.TestableLooper; 32 import android.testing.TestableLooper.RunWithLooper; 96 TestableLooper.get(this).processAllMessages(); in testDoubleTapTimeout_timeoutCallbackCalled() 134 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackCalled() 141 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackNotCalled() 153 TestableLooper.get(this).processAllMessages(); in testHoverExitTimeout_timeoutCallbackNotCalled_ifButtonPress()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 42 import android.testing.TestableLooper; 43 import android.testing.TestableLooper.RunWithLooper; 127 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical() 140 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency() 153 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical() 165 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency() 177 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning() 190 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm() 203 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning() 216 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm() [all …]
|
/frameworks/base/packages/CarSystemUI/tests/src/com/android/systemui/car/voicerecognition/ |
D | ConnectedDeviceVoiceRecognitionNotifierTest.java | 31 import android.testing.TestableLooper; 42 @TestableLooper.RunWithLooper 53 TestableLooper testableLooper = TestableLooper.get(this); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileAdapterTest.java | 22 import android.testing.TestableLooper; 23 import android.testing.TestableLooper.RunWithLooper; 46 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationViewWrapperTest.java | 23 import android.testing.TestableLooper; 24 import android.testing.TestableLooper.RunWithLooper; 55 TestableLooper.get(this)); in setup()
|
D | NotificationCustomViewWrapperTest.java | 20 import android.testing.TestableLooper; 21 import android.testing.TestableLooper.RunWithLooper; 50 TestableLooper.get(this)); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManagerTest.java | 27 import android.testing.TestableLooper; 40 @TestableLooper.RunWithLooper 81 TestableLooper.get(this).processMessages(2); in testShowNotification_autoDismissesWithAccessibilityTimeout()
|
D | LocationControllerImplTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 47 private TestableLooper mTestableLooper; 51 mTestableLooper = TestableLooper.get(this); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ExpandHelperTest.java | 26 import android.testing.TestableLooper; 27 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this)); in setUp()
|