Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java113 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest
142 mTestableLooper = TestableLooper.get(this); in setup()
151 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
157 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
174 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent()
185 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError()
199 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService()
216 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimValid_ServiceState_PowerOff()
237 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
252 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_SimState_NotReady()
[all …]
DCarrierTextControllerTest.java106 private TestableLooper mTestableLooper; field in CarrierTextControllerTest
111 mTestableLooper = TestableLooper.get(this); in setUp()
123 new Handler(mTestableLooper.getLooper())); in setUp()
152 mTestableLooper.processAllMessages(); in testAirplaneMode()
175 mTestableLooper.processAllMessages(); in testCardIOError()
187 mTestableLooper.processAllMessages(); in testCardIOError()
223 mTestableLooper.processAllMessages(); in testMoreSlotsThanSubs()
232 mTestableLooper.processAllMessages(); in testCallback()
249 mTestableLooper.processAllMessages(); in testNullingCallback()
268 mTestableLooper.processAllMessages(); in testCreateInfo_OneValidSubscription()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java172 new CarrierPrivilegesTracker(mTestableLooper.getLooper(), mPhone, mContext); in createCarrierPrivilegesTracker()
173 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
176 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
235 mTestableLooper.processAllMessages(); in verifyRegisterListener()
256 mTestableLooper.processAllMessages(); in testUnregisterListener()
262 mTestableLooper.processAllMessages(); in testUnregisterListener()
280 mTestableLooper.processAllMessages(); in testCarrierConfigUpdated()
291 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedMismatchedSlotIndex()
302 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedInvalidSubId()
316 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedNotIdentifiedCarrier()
[all …]
DTelephonyTest.java312 protected TestableLooper mTestableLooper; field in TelephonyTest
675 mTestableLooper = TestableLooper.get(TelephonyTest.this); in setUp()
676 if (mTestableLooper != null) { in setUp()
677 monitorTestableLooper(mTestableLooper); in setUp()
685 if (mTestableLooper != null) { in tearDown()
686 unmonitorTestableLooper(mTestableLooper); in tearDown()
/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/appops/
DAppOpsControllerTest.java69 private TestableLooper mTestableLooper; field in AppOpsControllerTest
74 mTestableLooper = TestableLooper.get(this); in setUp()
78 mController = new AppOpsControllerImpl(mContext, mTestableLooper.getLooper()); in setUp()
102 mTestableLooper.processAllMessages(); in addCallback_includedCode()
112 mTestableLooper.processAllMessages(); in addCallback_notIncludedCode()
123 mTestableLooper.processAllMessages(); in removeCallback_sameCode()
134 mTestableLooper.processAllMessages(); in addCallback_notSameCode()
230 AppOpsControllerImpl.H testHandler = mController.new H(mTestableLooper.getLooper()) { in testActiveOpNotRemovedAfterNoted()
246 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted()
256 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSDetailTest.java56 private TestableLooper mTestableLooper; field in QSDetailTest
60 mTestableLooper = TestableLooper.get(this); in setup()
61 mTestableLooper.runWithLooper(() -> { in setup()
78 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
86 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
92 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
103 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
DQSPanelTest.java60 private TestableLooper mTestableLooper; field in QSPanelTest
78 mTestableLooper = TestableLooper.get(this); in setup()
79 mTestableLooper.runWithLooper(() -> { in setup()
106 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException()
108 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException()
124 mTestableLooper.processAllMessages(); in testOpenDetailsWithNonExistingTile_NoException()
126 mTestableLooper.processAllMessages(); in testOpenDetailsWithNonExistingTile_NoException()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java232 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod
240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
244 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod()
251 mTestableLooper = other; in LooperFrameworkMethod()
268 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively()
270 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively()
286 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively()
303 mTestableLooper.mQueueWrapper.release(); in invokeExplosively()
304 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DFalsingManagerProxyTest.java53 private TestableLooper mTestableLooper; field in FalsingManagerProxyTest
58 mTestableLooper = TestableLooper.get(this); in setup()
59 mHandler = new Handler(mTestableLooper.getLooper()); in setup()
99 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled()
105 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DCastTileTest.java75 private TestableLooper mTestableLooper; field in CastTileTest
81 mTestableLooper = TestableLooper.get(this); in setUp()
83 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp()
113 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled()
125 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected()
136 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages()
168 mTestableLooper.processAllMessages(); in testHandleClick_castDevicePresent()
184 mTestableLooper.processAllMessages(); in testHandleClick_projectionOnly()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java71 private TestableLooper mTestableLooper; field in QSTileImplTest
84 mTestableLooper = TestableLooper.get(this); in setup()
85 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setup()
94 mTile.mHandler = mTile.new H(mTestableLooper.getLooper()); in setup()
172 mTestableLooper.processAllMessages(); in testStaleTimeout()
176 mTestableLooper.processAllMessages(); in testStaleTimeout()
183 mTestableLooper.processAllMessages(); in testStaleListening()
187 mTestableLooper.processAllMessages(); in testStaleListening()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImplTest.java61 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest
68 mTestableLooper = TestableLooper.get(this); in setup()
81 mTestableLooper.getLooper(), in setup()
119 mTestableLooper.processMessages(1); in testAsyncBondState()
141 mTestableLooper.processMessages(1); in testAsyncConnectionState()
165 mTestableLooper.processMessages(1); in testNullAsync_DoesNotCrash()
225 mTestableLooper.processAllMessages(); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInfoTest.java102 private TestableLooper mTestableLooper; field in NotificationInfoTest
128 mTestableLooper = TestableLooper.get(this); in setUp()
129 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp()
757 mTestableLooper.processAllMessages(); in testBindNotification_DoesNotUpdateNotificationChannel()
782 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChanged()
808 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChangedSilenced()
834 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged()
862 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified()
901 mTestableLooper.processAllMessages(); in testCloseControls_nonNullCheckSaveListenerDoesntDelayKeepShowing_BlockingHelper()
931 mTestableLooper.processAllMessages(); in testCloseControls_nonNullCheckSaveListenerDoesntDelayDismiss_BlockingHelper()
[all …]
DNotificationGutsManagerTest.java95 private TestableLooper mTestableLooper; field in NotificationGutsManagerTest
113 mTestableLooper = TestableLooper.get(this); in setUp()
119 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp()
157 mTestableLooper.processAllMessages(); in testOpenAndCloseGuts()
204 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale()
218 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java82 private TestableLooper mTestableLooper; field in DozeSensorsTest
88 mTestableLooper = TestableLooper.get(this); in setUp()
103 mTestableLooper.processAllMessages(); in testSensorDebounce()
110 mTestableLooper.processAllMessages(); in testSensorDebounce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DVisualStabilityManagerTest.java48 private TestableLooper mTestableLooper; field in VisualStabilityManagerTest
58 mTestableLooper = TestableLooper.get(this); in setUp()
61 new Handler(mTestableLooper.getLooper())); in setUp()
235 mTestableLooper.processMessages(1); in testTemporarilyAllowReorderingExpires()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManagerTest.java86 private TestableLooper mTestableLooper; field in NotificationViewHierarchyManagerTest
95 mTestableLooper = TestableLooper.get(this); in setUp()
96 Assert.sMainLooper = mTestableLooper.getLooper(); in setUp()
97 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp()
248 mTestableLooper.processAllMessages(); in testReentrantCallsToOnDynamicPrivacyChangedPostForLater()
273 mTestableLooper.processAllMessages(); in testMultipleReentrantCallsToOnDynamicPrivacyChangedOnlyPostOnce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java77 private TestableLooper mTestableLooper; field in ScreenDecorationsTest
90 mTestableLooper = TestableLooper.get(this); in setup()
92 new Handler(mTestableLooper.getLooper())); in setup()
117 mTestableLooper.processAllMessages(); in setup()
122 return new Handler(mTestableLooper.getLooper()); in setup()
128 mTestableLooper.processAllMessages(); in setup()
134 mTestableLooper.processAllMessages(); in setup()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationShellCmdTest.java75 private TestableLooper mTestableLooper; field in NotificationShellCmdTest
82 mTestableLooper = TestableLooper.get(this); in setUp()
83 mResultReceiver = new ResultReceiver(new Handler(mTestableLooper.getLooper())); in setUp()
DZenModeHelperTest.java109 private TestableLooper mTestableLooper; field in ZenModeHelperTest
119 mTestableLooper = TestableLooper.get(this); in setUp()
136 mZenModeHelperSpy = spy(new ZenModeHelper(mContext, mTestableLooper.getLooper(), in setUp()
DNotificationManagerServiceTest.java197 private TestableLooper mTestableLooper; field in NotificationManagerServiceTest
343 mTestableLooper = TestableLooper.get(this); in setUp()
344 mHandler = mService.new WorkerHandler(mTestableLooper.getLooper()); in setUp()
389 mService.init(mTestableLooper.getLooper(), in setUp()
419 mTestableLooper.processAllMessages(); in waitForIdle()