/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsTestBase.java | 24 import android.testing.TestableLooper; 41 protected List<TestableLooper> mTestableLoopers = new ArrayList<>(); 42 protected TestableLooper mTestableLooper; 51 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp() 57 for (TestableLooper looper : mTestableLoopers) { in tearDown() 60 TestableLooper.remove(ImsTestBase.this); in tearDown() 83 public void monitorTestableLooper(TestableLooper looper) { in monitorTestableLooper() 93 public void unmonitorTestableLooper(TestableLooper looper) { in unmonitorTestableLooper() 107 for (TestableLooper looper : mTestableLoopers) looper.processAllMessages(); in processAllMessages() 118 for (TestableLooper looper : mTestableLoopers) { in areAllTestableLoopersIdle()
|
/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 | 43 import android.testing.TestableLooper; 44 import android.testing.TestableLooper.RunWithLooper; 101 Looper looper = TestableLooper.get(this).getLooper(); in setUp() 124 TestableLooper.get(this).processAllMessages(); in testUnmanaged() 134 TestableLooper.get(this).processAllMessages(); in testManagedNoOwnerName() 149 TestableLooper.get(this).processAllMessages(); in testManagedOwnerName() 168 TestableLooper.get(this).processAllMessages(); in testManagedFinancedDeviceWithOwnerName() 188 TestableLooper.get(this).processAllMessages(); in testManagedDemoMode() 198 TestableLooper.get(this).processAllMessages(); in testUntappableView_profileOwnerOfOrgOwnedDevice() 212 TestableLooper.get(this).processAllMessages(); in testTappableView_profileOwnerOfOrgOwnedDevice_networkLoggingEnabled() [all …]
|
D | SecureSettingTest.kt | 21 import android.testing.TestableLooper in <lambda>() 37 @TestableLooper.RunWithLooper in <lambda>() 48 private lateinit var testableLooper: TestableLooper in <lambda>() 56 testableLooper = TestableLooper.get(this) in <lambda>()
|
/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 | 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() 100 TestableLooper.get(this).processAllMessages(); in testNotificationManagementCodeHasNoDependencyOnStatusBarWindowManager()
|
/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/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | BatterySaverTileTest.kt | 22 import android.testing.TestableLooper 23 import android.testing.TestableLooper.RunWithLooper 67 private lateinit var testableLooper: TestableLooper 73 testableLooper = TestableLooper.get(this) in setUp()
|
D | NfcTileTest.java | 28 import android.testing.TestableLooper; 49 @TestableLooper.RunWithLooper(setAsMainLooper = true) 73 private TestableLooper mTestableLooper; 79 mTestableLooper = TestableLooper.get(this); in setUp()
|
D | ReduceBrightColorsTileTest.java | 29 import android.testing.TestableLooper; 51 @TestableLooper.RunWithLooper(setAsMainLooper = true) 69 private TestableLooper mTestableLooper; 76 mTestableLooper = TestableLooper.get(this); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/scrim/ |
D | ScrimViewTest.java | 26 import android.testing.TestableLooper; 27 import android.testing.TestableLooper.RunWithLooper; 59 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 61 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileAdapterTest.java | 21 import android.testing.TestableLooper; 22 import android.testing.TestableLooper.RunWithLooper; 51 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = in setup()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | PackageManagerServiceHibernationTests.kt | 24 import android.testing.TestableLooper 25 import android.testing.TestableLooper.RunWithLooper 70 .thenReturn(Handler(TestableLooper.get(this).looper)) in setup() 86 TestableLooper.get(this).processAllMessages() in testExitForceStopExitsHibernation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/ |
D | QSCarrierTest.java | 24 import android.testing.TestableLooper; 41 @TestableLooper.RunWithLooper 46 private TestableLooper mTestableLooper; 51 mTestableLooper = TestableLooper.get(this); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationCustomViewWrapperTest.java | 20 import android.testing.TestableLooper; 21 import android.testing.TestableLooper.RunWithLooper; 50 TestableLooper.get(this)); in setUp()
|
D | NotificationViewWrapperTest.java | 24 import android.testing.TestableLooper; 25 import android.testing.TestableLooper.RunWithLooper; 57 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()
|