Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DIconLoggerImplTest.java57 private TestableLooper mTestableLooper; field in IconLoggerImplTest
64 mTestableLooper = TestableLooper.get(this); in setup()
66 mTestableLooper.setMessageHandler(mMessageHandler); in setup()
73 mIconLogger = new IconLoggerImpl(mContext, mTestableLooper.getLooper(), mMetricsLogger); in setup()
85 mTestableLooper.processAllMessages(); in testIconShown()
89 mTestableLooper.processAllMessages(); in testIconShown()
98 mTestableLooper.processAllMessages(); in testIconHidden()
106 mTestableLooper.processAllMessages(); in testIconHidden()
110 mTestableLooper.processAllMessages(); in testIconHidden()
118 mTestableLooper.processAllMessages(); in testLog()
[all …]
DBluetoothControllerImplTest.java57 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest
64 mTestableLooper = TestableLooper.get(this); in setup()
77 mTestableLooper.getLooper()); in setup()
114 mTestableLooper.processMessages(1); in testAsyncBondState()
136 mTestableLooper.processMessages(1); in testAsyncConnectionState()
160 mTestableLooper.processMessages(1); in testNullAsync_DoesNotCrash()
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java44 private TestableLooper mTestableLooper; field in TestableLooperTest
48 mTestableLooper = TestableLooper.get(this); in setup()
57 mTestableLooper.processAllMessages(); in testMessageExecuted()
68 mTestableLooper.setMessageHandler(messageHandler); in testMessageCallback()
73 mTestableLooper.processAllMessages(); in testMessageCallback()
89 mTestableLooper.processMessages(2); in testProcessNumberOfMessages()
101 mTestableLooper.processAllMessages(); in testProcessAllMessages()
113 mTestableLooper.processAllMessages(); in test3Chain()
125 mTestableLooper.processAllMessages(); in testProcessAllMessages_2Messages()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSDetailTest.java55 private TestableLooper mTestableLooper; field in QSDetailTest
59 mTestableLooper = TestableLooper.get(this); in setup()
60 mTestableLooper.runWithLooper(() -> { in setup()
77 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
85 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
91 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
102 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java221 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod
229 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
233 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod()
240 mTestableLooper = other; in LooperFrameworkMethod()
257 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively()
259 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively()
275 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively()
292 mTestableLooper.mQueueWrapper.release(); in invokeExplosively()
293 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java64 private TestableLooper mTestableLooper; field in QSTileImplTest
72 mTestableLooper = TestableLooper.get(this); in setup()
73 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setup()
80 mTile.mHandler = mTile.new H(mTestableLooper.getLooper()); in setup()
120 mTestableLooper.processAllMessages(); in testStaleTimeout()
124 mTestableLooper.processAllMessages(); in testStaleTimeout()
131 mTestableLooper.processAllMessages(); in testStaleListening()
135 mTestableLooper.processAllMessages(); in testStaleListening()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java47 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest
51 mTestableLooper = TestableLooper.get(this); in setup()
62 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
68 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationInfoTest.java99 private TestableLooper mTestableLooper; field in NotificationInfoTest
116 mTestableLooper = TestableLooper.get(this); in setUp()
117 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp()
385 mTestableLooper.processAllMessages(); in testBindNotification_DoesNotUpdateNotificationChannel()
397 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChanged()
410 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChangedMin()
423 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged()
438 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified()
458 mTestableLooper.processAllMessages(); in testHandleCloseControls_setsNotificationsDisabledForMultipleChannelNotifications()
479 mTestableLooper.processAllMessages(); in testHandleCloseControls_keepsNotificationsEnabledForMultipleChannelNotifications()
[all …]
DNotificationGutsManagerTest.java83 private TestableLooper mTestableLooper; field in NotificationGutsManagerTest
97 mTestableLooper = TestableLooper.get(this); in setUp()
98 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp()
135 mTestableLooper.processAllMessages(); in testOpenAndCloseGuts()
175 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale()
185 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java89 private TestableLooper mTestableLooper; field in ZenModeHelperTest
98 mTestableLooper = TestableLooper.get(this); in setUp()
106 mZenModeHelperSpy = spy(new ZenModeHelper(mContext, mTestableLooper.getLooper(), in setUp()