/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/ |
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 …]
|
D | SysuiLifecycleTest.java | 33 import android.testing.TestableLooper; 34 import android.testing.TestableLooper.RunWithLooper; 60 TestableLooper.get(this).processAllMessages(); in testAttach() 67 TestableLooper.get(this).processAllMessages(); in testAttach() 78 TestableLooper.get(this).processAllMessages(); in testDetach() 81 TestableLooper.get(this).processAllMessages(); in testDetach()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSSecurityFooterTest.java | 31 import android.testing.TestableLooper; 32 import android.testing.TestableLooper.RunWithLooper; 79 TestableLooper.get(this).getLooper()); in setUp() 98 TestableLooper.get(this).processAllMessages(); in testUnmanaged() 108 TestableLooper.get(this).processAllMessages(); in testManagedNoOwnerName() 124 TestableLooper.get(this).processAllMessages(); in testManagedOwnerName() 145 TestableLooper.get(this).processAllMessages(); in testManagedDemoMode() 155 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled() 167 TestableLooper.get(this).processAllMessages(); in testNetworkLoggingEnabled() 180 TestableLooper.get(this).processAllMessages(); in testManagedCACertsInstalled() [all …]
|
D | QSDetailTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 56 private TestableLooper mTestableLooper; 60 mTestableLooper = TestableLooper.get(this); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 32 import android.testing.TestableLooper; 33 import android.testing.TestableLooper.RunWithLooper; 61 private TestableLooper mTestableLooper; 68 mTestableLooper = TestableLooper.get(this); in setup() 114 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState() 135 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState() 158 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testNullAsync_DoesNotCrash() 222 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
|
D | LocationControllerImplTest.java | 24 import android.testing.TestableLooper; 25 import android.testing.TestableLooper.RunWithLooper; 47 TestableLooper.get(this).getLooper())); in setup() 69 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash() 84 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
|
D | HotspotControllerImplTest.java | 32 import android.testing.TestableLooper; 50 @TestableLooper.RunWithLooper 62 private TestableLooper mLooper; 67 mLooper = TestableLooper.get(this); in setUp()
|
D | HeadsUpManagerTest.java | 27 import android.testing.TestableLooper; 40 @TestableLooper.RunWithLooper 81 TestableLooper.get(this).processMessages(2); in testShowNotification_autoDismissesWithAccessibilityTimeout()
|
/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() 248 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod() 314 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/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 33 import android.testing.TestableLooper; 51 @TestableLooper.RunWithLooper 75 new Handler(TestableLooper.get(this).getLooper())); in setUp() 88 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification() 96 TestableLooper.get(this).processAllMessages(); in testNotificationUpdateCallsUpdateNotification() 103 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification() 110 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 | NonPhoneDependencyTest.java | 23 import android.testing.TestableLooper; 55 @TestableLooper.RunWithLooper 72 new Handler(TestableLooper.get(this).getLooper())); in setUp() 102 TestableLooper.get(this).processAllMessages(); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
|
/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 | 32 import android.testing.TestableLooper; 33 import android.testing.TestableLooper.RunWithLooper; 78 new Handler(TestableLooper.get(this).getLooper())); in setUp() 106 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 110 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 173 TestableLooper.get(this).processAllMessages(); in testPinFailed() 177 TestableLooper.get(this).processAllMessages(); in testPinFailed()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerUITest.java | 39 import android.testing.TestableLooper; 40 import android.testing.TestableLooper.RunWithLooper; 106 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingCritical() 119 TestableLooper.get(this).processAllMessages(); in testSkinWarning_throttlingEmergency() 132 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingCritical() 144 TestableLooper.get(this).processAllMessages(); in testUsbAlarm_throttlingEmergency() 156 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableSkinTemperatureWarning() 169 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_enableUsbTemperatureAlarm() 182 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableSkinTemperatureWarning() 195 TestableLooper.get(this).processAllMessages(); in testSettingOverrideConfig_disableUsbTemperatureAlarm() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardPresentationTest.java | 21 import android.testing.TestableLooper; 35 @TestableLooper.RunWithLooper 39 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper(); in testInflation_doesntCrash()
|
D | KeyguardStatusViewTest.java | 23 import android.testing.TestableLooper; 24 import android.testing.TestableLooper.RunWithLooper; 53 Assert.sMainLooper = TestableLooper.get(this).getLooper(); 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; 45 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = new TileAdapter(mContext)); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingManagerProxyTest.java | 27 import android.testing.TestableLooper; 45 @TestableLooper.RunWithLooper 53 private TestableLooper mTestableLooper; 58 mTestableLooper = TestableLooper.get(this); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/ |
D | KeepAwakeAnimationListenerTest.java | 26 import android.testing.TestableLooper; 40 @TestableLooper.RunWithLooper 48 Assert.sMainLooper = TestableLooper.get(this).getLooper(); 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; 51 Assert.sMainLooper = TestableLooper.get(this).getLooper(); 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; 51 Assert.sMainLooper = TestableLooper.get(this).getLooper(); in setup()
|
D | NotificationCustomViewWrapperTest.java | 20 import android.testing.TestableLooper; 21 import android.testing.TestableLooper.RunWithLooper; 46 com.android.systemui.util.Assert.sMainLooper = TestableLooper.get(this).getLooper(); in setUp()
|