/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 29 import android.testing.TestableLooper; 30 import android.testing.TestableLooper.RunWithLooper; 55 private TestableLooper mTestableLooper; 62 mTestableLooper = TestableLooper.get(this); in setup() 105 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncBondState() 126 TestableLooper mainLooper = new TestableLooper(Looper.getMainLooper()); in testAsyncConnectionState()
|
D | LocationControllerImplTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 45 TestableLooper.get(this).getLooper())); in setup() 66 TestableLooper.get(this).processAllMessages(); in testRemoveSelfActive_DoesNotCrash() 80 TestableLooper.get(this).processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
|
D | KeyButtonViewTest.java | 26 import android.testing.TestableLooper; 27 import android.testing.TestableLooper.RunWithLooper; 53 TestableLooper.get(this).runWithLooper(() -> in setup()
|
D | ZenModeControllerImplTest.java | 25 import android.testing.TestableLooper.RunWithLooper;
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 40 public class TestableLooper { class 52 public TestableLooper(Looper l) throws Exception { in TestableLooper() method in TestableLooper 56 private TestableLooper(TestLooperManager wrapper, Looper l) throws Exception { in TestableLooper() method in TestableLooper 61 private TestableLooper(Looper looper, boolean b) throws Exception { in TestableLooper() method in TestableLooper 207 private static final Map<Object, TestableLooper> sLoopers = new ArrayMap<>(); 209 public static TestableLooper get(Object test) { in get() 216 private final TestableLooper mTestableLooper; 224 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 232 public LooperFrameworkMethod(TestableLooper other, FrameworkMethod base) { in LooperFrameworkMethod() 296 mHandlerThread = new HandlerThread(TestableLooper.class.getSimpleName()); in createLooper()
|
D | BaseFragmentTest.java | 74 TestableLooper.get(this)); in setupFragment() 75 TestableLooper.get(this).runWithLooper(() -> { in setupFragment() 95 TestableLooper.get(this).runWithLooper(() -> mFragments.dispatchDestroy()); in tearDown() 168 TestableLooper.get(this).processAllMessages(); in attachFragmentToWindow() 173 TestableLooper.get(this).processAllMessages(); in detachFragmentToWindow() 183 TestableLooper.get(this).processAllMessages(); in processAllMessages()
|
D | AndroidTestingRunner.java | 21 import android.testing.TestableLooper.LooperFrameworkMethod; 22 import android.testing.TestableLooper.RunWithLooper;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationMenuRowTest.java | 21 import android.testing.TestableLooper; 22 import android.testing.TestableLooper.RunWithLooper; 47 TestableLooper.get(this).processAllMessages(); in testAttachDetach() 49 TestableLooper.get(this).processAllMessages(); in testAttachDetach()
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 34 import android.testing.TestableLooper.MessageHandler; 35 import android.testing.TestableLooper.RunWithLooper; 41 private TestableLooper mTestableLooper; 45 mTestableLooper = TestableLooper.get(this); in setup() 132 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileQueryHelperTest.java | 29 import android.testing.TestableLooper; 30 import android.testing.TestableLooper.RunWithLooper; 43 private TestableLooper mBGLooper; 48 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/ |
D | QSPanelTest.java | 24 import android.testing.TestableLooper; 25 import android.testing.TestableLooper.RunWithLooper; 51 TestableLooper.get(this).runWithLooper(() -> { in setup()
|
D | QSFooterTest.java | 25 import android.testing.TestableLooper; 26 import android.testing.TestableLooper.RunWithLooper; 56 TestableLooper.get(this).runWithLooper(() -> { in setup()
|
D | QSDetailTest.java | 30 import android.testing.TestableLooper; 31 import android.testing.TestableLooper.RunWithLooper; 57 private TestableLooper mTestableLooper; 61 mTestableLooper = TestableLooper.get(this); in setup()
|
D | QSFragmentTest.java | 40 import android.testing.TestableLooper; 41 import android.testing.TestableLooper.RunWithLooper; 76 TestableLooper.get(this).getLooper()); in addLeakCheckDependencies()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServicesTest.java | 32 import android.testing.TestableLooper; 33 import android.testing.TestableLooper.RunWithLooper; 55 TestableLooper.get(this).setAsMainLooper(); in setUp() 65 TestableLooper.get(this).processAllMessages(); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 35 import android.testing.TestableLooper; 36 import android.testing.TestableLooper.RunWithLooper; 56 private TestableLooper mTestableLooper; 64 mTestableLooper = TestableLooper.get(this); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarTest.java | 54 import android.testing.TestableLooper; 55 import android.testing.TestableLooper.MessageHandler; 56 import android.testing.TestableLooper.RunWithLooper; 138 TestableLooper.get(this).setMessageHandler(new MessageHandler() { in setup() 347 TestableLooper.get(this).processAllMessages(); in testPanelOpenForPeek() 366 TestableLooper.get(this).processAllMessages(); in testPanelOpenAndClear() 385 TestableLooper.get(this).processAllMessages(); in testPanelOpenAndNoClear()
|
D | StatusBarIconControllerTest.java | 23 import android.testing.TestableLooper.RunWithLooper;
|
D | NavigationBarFragmentTest.java | 36 import android.testing.TestableLooper.RunWithLooper;
|
D | CollapsedStatusBarFragmentTest.java | 34 import android.testing.TestableLooper.RunWithLooper;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/plugins/ |
D | PluginManagerTest.java | 33 import android.testing.TestableLooper; 34 import android.testing.TestableLooper.RunWithLooper; 69 TestableLooper.get(this).getLooper()); in setup()
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | NotificationManagerServiceTest.java | 60 import android.testing.TestableLooper; 61 import android.testing.TestableLooper.RunWithLooper; 91 private TestableLooper mTestableLooper; 145 mTestableLooper = TestableLooper.get(this); in setUp()
|