/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationListenerTest.java | 33 import android.testing.TestableLooper; 48 @TestableLooper.RunWithLooper 84 TestableLooper.get(this).processAllMessages(); in testNotificationAddCallsAddNotification() 91 TestableLooper.get(this).processAllMessages(); in testPostNotificationRemovesKeyKeptForRemoteInput() 99 TestableLooper.get(this).processAllMessages(); in testNotificationUpdateCallsUpdateNotification() 106 TestableLooper.get(this).processAllMessages(); in testNotificationRemovalCallsRemoveNotification() 113 TestableLooper.get(this).processAllMessages(); in testRankingUpdateCallsNotificationRankingUpdate()
|
D | AppOpsListenerTest.java | 28 import android.testing.TestableLooper; 41 @TestableLooper.RunWithLooper 84 TestableLooper.get(this).processAllMessages(); in testInformEntryMgrOnAppOpsChange() 94 TestableLooper.get(this).processAllMessages(); in testInformFscOnAppOpsChange()
|
D | NotificationMenuRowTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 56 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 58 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
D | ScrimViewTest.java | 33 import android.testing.TestableLooper; 34 import android.testing.TestableLooper.RunWithLooper; 65 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 67 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
D | NotificationLoggerTest.java | 35 import android.testing.TestableLooper; 55 @TestableLooper.RunWithLooper(setAsMainLooper = true) 115 TestableLooper.get(this).processAllMessages(); in testOnChildLocationsChangedReportsVisibilityChanged() 125 TestableLooper.get(this).processAllMessages(); in testOnChildLocationsChangedReportsVisibilityChanged() 137 TestableLooper.get(this).processAllMessages(); in testStoppingNotificationLoggingReportsCurrentNotifications()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSSecurityFooterTest.java | 32 import android.testing.TestableLooper; 33 import android.testing.TestableLooper.RunWithLooper; 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() 192 TestableLooper.get(this).processAllMessages(); in testManagedOneVpnEnabled() [all …]
|
D | QSDetailTest.java | 28 import android.testing.TestableLooper; 29 import android.testing.TestableLooper.RunWithLooper; 55 private TestableLooper mTestableLooper; 59 mTestableLooper = TestableLooper.get(this); in setup()
|
D | QSPanelTest.java | 24 import android.testing.TestableLooper; 25 import android.testing.TestableLooper.RunWithLooper; 50 TestableLooper.get(this).runWithLooper(() -> { in setup()
|
D | QSFooterImplTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 57 TestableLooper.get(this).runWithLooper( in setup()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 40 public class TestableLooper { class 50 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper 54 private TestableLooper(TestLooperManager wrapper, Looper l) { in TestableLooper() method in TestableLooper 59 private TestableLooper(Looper looper, boolean b) { in TestableLooper() method in TestableLooper 208 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>(); 214 public static TestableLooper get(Object test) { in get() 221 private final TestableLooper mTestableLooper; 229 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 237 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod() 303 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
|
D | BaseFragmentTest.java | 74 TestableLooper.get(this)); in setupFragment() 75 TestableLooper.get(this).runWithLooper(() -> { in setupFragment() 99 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown() 172 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow() 177 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow() 187 TestableLooper.get(this).processAllMessages(); in processAllMessages()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 30 import android.testing.TestableLooper; 31 import android.testing.TestableLooper.RunWithLooper; 57 private TestableLooper mTestableLooper; 64 mTestableLooper = TestableLooper.get(this); in setup() 109 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState() 130 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState() 153 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testNullAsync_DoesNotCrash()
|
D | LocationControllerImplTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 47 TestableLooper.get(this).getLooper())); in setup() 68 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash() 82 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
|
D | IconLoggerImplTest.java | 37 import android.testing.TestableLooper; 38 import android.testing.TestableLooper.MessageHandler; 39 import android.testing.TestableLooper.RunWithLooper; 57 private TestableLooper mTestableLooper; 64 mTestableLooper = TestableLooper.get(this); in setup()
|
D | KeyButtonViewTest.java | 26 import android.testing.TestableLooper; 27 import android.testing.TestableLooper.RunWithLooper; 53 TestableLooper.get(this).runWithLooper(() -> in setup()
|
/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/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SlicePermissionManagerTest.java | 27 import android.testing.TestableLooper; 28 import android.testing.TestableLooper.RunWithLooper; 54 TestableLooper.get(this).getLooper(), sliceDir); in testGrant() 71 TestableLooper.get(this).getLooper(), sliceDir); in testBackup() 81 TestableLooper.get(this).processAllMessages(); in testBackup() 90 TestableLooper.get(this).getLooper()); in testBackup()
|
D | PinnedSliceStateTest.java | 31 import android.testing.TestableLooper; 32 import android.testing.TestableLooper.RunWithLooper; 74 … when(mSliceService.getHandler()).thenReturn(new Handler(TestableLooper.get(this).getLooper())); in setup() 102 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin() 106 TestableLooper.get(this).processAllMessages(); in testSendPinnedOnPin()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 23 import android.testing.TestableLooper; 24 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/qs/customize/ |
D | TileQueryHelperTest.java | 28 import android.testing.TestableLooper; 29 import android.testing.TestableLooper.RunWithLooper; 50 private TestableLooper mBGLooper; 57 mBGLooper = TestableLooper.get(this); in setup()
|
D | TileAdapterTest.java | 23 import android.testing.TestableLooper; 24 import android.testing.TestableLooper.RunWithLooper; 44 TestableLooper.get(this).runWithLooper(() -> mTileAdapter = new TileAdapter(mContext)); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/car/ |
D | CarQsFragmentTest.java | 23 import android.testing.TestableLooper; 24 import android.testing.TestableLooper.RunWithLooper; 63 TestableLooper.get(this).getLooper()); in initDependencies()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | AutoTileManagerTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 54 Handler.createAsync(TestableLooper.get(this).getLooper())); in setUp()
|
D | KeyguardPresentationTest.java | 21 import android.testing.TestableLooper; 34 @TestableLooper.RunWithLooper(setAsMainLooper = true)
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | GarbageMonitorTest.java | 29 import android.testing.TestableLooper; 30 import android.testing.TestableLooper.RunWithLooper; 54 TestableLooper.get(this).getLooper(), in setup()
|