Home
last modified time | relevance | path

Searched refs:mTestableLooper (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java41 private TestableLooper mTestableLooper; field in TestableLooperTest
45 mTestableLooper = TestableLooper.get(this); in setup()
54 mTestableLooper.processAllMessages(); in testMessageExecuted()
65 mTestableLooper.setMessageHandler(messageHandler); in testMessageCallback()
70 mTestableLooper.processAllMessages(); in testMessageCallback()
86 mTestableLooper.processMessages(2); in testProcessNumberOfMessages()
98 mTestableLooper.processAllMessages(); in testProcessAllMessages()
110 mTestableLooper.processAllMessages(); in test3Chain()
122 mTestableLooper.processAllMessages(); in testProcessAllMessages_2Messages()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSDetailTest.java57 private TestableLooper mTestableLooper; field in QSDetailTest
61 mTestableLooper = TestableLooper.get(this); in setup()
62 mTestableLooper.runWithLooper(() -> { in setup()
79 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
87 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
93 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
104 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java216 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod
224 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
228 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod()
235 mTestableLooper = other; in LooperFrameworkMethod()
252 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively()
254 mTestableLooper.mQueueWrapper = InstrumentationRegistry.getInstrumentation() in invokeExplosively()
271 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively()
288 mTestableLooper.mQueueWrapper.release(); in invokeExplosively()
289 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java55 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest
62 mTestableLooper = TestableLooper.get(this); in setup()
73 mTestableLooper.getLooper()); in setup()
110 mTestableLooper.processMessages(1); in testAsyncBondState()
132 mTestableLooper.processMessages(1); in testAsyncConnectionState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java56 private TestableLooper mTestableLooper; field in QSTileImplTest
64 mTestableLooper = TestableLooper.get(this); in setup()
65 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setup()
69 mTestableLooper.runWithLooper(() -> { in setup()
/frameworks/base/services/tests/notification/src/com/android/server/notification/
DNotificationManagerServiceTest.java91 private TestableLooper mTestableLooper; field in NotificationManagerServiceTest
145 mTestableLooper = TestableLooper.get(this); in setUp()
150 mNotificationManagerService.init(mTestableLooper.getLooper(), mPackageManager, in setUp()
163 mTestableLooper.processAllMessages(); in waitForIdle()