Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
H A DAppOpsControllerTest.java104 private TestableLooper mTestableLooper; field in AppOpsControllerTest
135 mTestableLooper.getLooper(), in setUp()
169 mTestableLooper.processAllMessages(); in addCallback_includedCode()
179 mTestableLooper.processAllMessages(); in addCallback_notIncludedCode()
190 mTestableLooper.processAllMessages(); in removeCallback_sameCode()
201 mTestableLooper.processAllMessages(); in addCallback_notSameCode()
264 mTestableLooper.processAllMessages(); in exemptedRoleNotNotified()
372 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted()
382 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted()
400 mTestableLooper.processAllMessages(); in testNotedNotRemovedAfterActive()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DLocationControllerImplTest.java55 private TestableLooper mTestableLooper; field in LocationControllerImplTest
69 mTestableLooper.getLooper(), in setup()
75 mTestableLooper.processAllMessages(); in setup()
96 mTestableLooper.processAllMessages(); in testRemoveSelfActive_DoesNotCrash()
110 mTestableLooper.processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
119 mTestableLooper.processAllMessages(); in testAddCallback_notifiedImmediately()
130 mTestableLooper.processAllMessages(); in testCallbackNotified()
134 mTestableLooper.processAllMessages(); in testCallbackNotified()
142 mTestableLooper.processAllMessages(); in testCallbackNotified()
152 mTestableLooper.processAllMessages(); in testCallbackRemoved()
[all …]
H A DBluetoothControllerImplTest.java61 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest
69 mTestableLooper = TestableLooper.get(this); in setup()
84 mTestableLooper.getLooper(), in setup()
85 mTestableLooper.getLooper(), in setup()
120 mTestableLooper.processAllMessages(); in testAsyncBondState()
137 mTestableLooper.processAllMessages(); in testAsyncConnectionState()
155 mTestableLooper.processAllMessages(); in testNullAsync_DoesNotCrash()
207 mTestableLooper.processAllMessages(); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
H A DSmartReplyConstantsTest.java46 private TestableLooper mTestableLooper; field in SmartReplyConstantsTest
63 mTestableLooper = TestableLooper.get(this); in setUp()
65 new Handler(mTestableLooper.getLooper()), in setUp()
213 mTestableLooper.processAllMessages(); in overrideSetting()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierPrivilegesTrackerTest.java192 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
195 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
253 mTestableLooper.processAllMessages(); in verifyRegisterListener()
274 mTestableLooper.processAllMessages(); in testUnregisterListener()
280 mTestableLooper.processAllMessages(); in testUnregisterListener()
296 mTestableLooper.processAllMessages(); in testCarrierConfigUpdated()
307 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedMismatchedSlotIndex()
318 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedInvalidSubId()
332 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedNotIdentifiedCarrier()
350 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedExplicitPackageNames()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
H A DScreenRecordTileTest.java80 private TestableLooper mTestableLooper; field in ScreenRecordTileTest
93 mTestableLooper.getLooper(), in setUp()
107 mTestableLooper.processAllMessages(); in setUp()
118 mTestableLooper.processAllMessages(); in testNotActive()
125 mTestableLooper.processAllMessages(); in testNotActive()
144 mTestableLooper.processAllMessages(); in testIsStarting()
168 mTestableLooper.processAllMessages(); in testIsRecording()
189 mTestableLooper.processAllMessages(); in testContentDescriptionHasTileName()
200 mTestableLooper.processAllMessages(); in testForceExpandIcon_notRecordingNotStarting()
211 mTestableLooper.processAllMessages(); in testForceExpandIcon_recordingNotStarting()
[all …]
H A DReduceBrightColorsTileTest.java69 private TestableLooper mTestableLooper; field in ReduceBrightColorsTileTest
76 mTestableLooper = TestableLooper.get(this); in setUp()
84 mTestableLooper.getLooper(), in setUp()
85 new Handler(mTestableLooper.getLooper()), in setUp()
94 mTestableLooper.processAllMessages(); in setUp()
101 mTestableLooper.processAllMessages(); in testNotActive()
112 mTestableLooper.processAllMessages(); in testActive()
123 mTestableLooper.processAllMessages(); in testActive_clicked_featureIsActivated()
H A DCastTileTest.java97 private TestableLooper mTestableLooper; field in CastTileTest
109 mTestableLooper.getLooper(), in setUp()
128 mTestableLooper.processAllMessages(); in setUp()
154 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled()
167 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected()
179 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages()
206 mTestableLooper.processAllMessages(); in testStateUnavailable_hotspotDisabled()
214 mTestableLooper.processAllMessages(); in testStateUnavailable_hotspotEnabledNotConnected()
228 mTestableLooper.processAllMessages(); in testStateActive_hotspotEnabledAndConnectedAndCasting()
235 mTestableLooper.processAllMessages(); in testStateInactive_hotspotEnabledAndConnectedAndNotCasting()
[all …]
H A DColorInversionTileTest.java73 private TestableLooper mTestableLooper; field in ColorInversionTileTest
82 mTestableLooper = TestableLooper.get(this); in setUp()
89 mTestableLooper.getLooper(), in setUp()
90 new Handler(mTestableLooper.getLooper()), in setUp()
101 mTestableLooper.processAllMessages(); in setUp()
109 mTestableLooper.processAllMessages(); in longClick_expectedAction()
H A DNfcTileTest.java73 private TestableLooper mTestableLooper; field in NfcTileTest
79 mTestableLooper = TestableLooper.get(this); in setUp()
86 mTestableLooper.getLooper(), in setUp()
87 new Handler(mTestableLooper.getLooper()), in setUp()
97 mTestableLooper.processAllMessages(); in setUp()
H A DQuickAccessWalletTileTest.java128 private TestableLooper mTestableLooper; field in QuickAccessWalletTileTest
135 mTestableLooper = TestableLooper.get(this); in setUp()
150 mTestableLooper.getLooper(), in setUp()
163 mTestableLooper.processAllMessages(); in setUp()
205 mTestableLooper.processAllMessages(); in testHandleClick_noCards_hasIntent_openWalletApp()
218 mTestableLooper.processAllMessages(); in testHandleClick_noCards_noIntent_doNothing()
229 mTestableLooper.processAllMessages(); in testHandleClick_hasCards_deviceLocked_startWalletActivity()
248 mTestableLooper.processAllMessages(); in testHandleClick_hasCards_deviceUnlocked_startWalletActivity()
319 mTestableLooper.processAllMessages(); in testHandleUpdateState_walletIsUpdating()
438 mTestableLooper.processAllMessages(); in testQueryCards_error_notUpdateSideViewDrawable()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/
H A DWalletScreenControllerTest.java102 private TestableLooper mTestableLooper; field in WalletScreenControllerTest
143 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
153 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
167 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
177 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
192 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard()
202 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard()
218 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel()
228 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel()
244 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_badCard_parseLabel_notCrash()
[all …]
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/
H A DQSCarrierGroupControllerTest.java82 private TestableLooper mTestableLooper; field in QSCarrierGroupControllerTest
173 mTestableLooper.processAllMessages(); in testUpdateCarrierText_sameLengths()
213 mTestableLooper.processAllMessages(); in testUpdateCarrierText_differentLength()
227 mTestableLooper.processAllMessages(); in testUpdateCarrierText_invalidSim()
251 mTestableLooper.processAllMessages(); in testNoEmptyVisibleView_airplaneMode()
275 mTestableLooper.processAllMessages(); in testSingleCarrier()
294 mTestableLooper.processAllMessages(); in testMultiCarrier()
320 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch()
327 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch()
331 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch()
[all …]
/aosp12/frameworks/base/tests/testables/tests/src/android/testing/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
H A DKeyguardUpdateMonitorTest.java181 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest
265 mTestableLooper.processAllMessages(); in testInitialBatteryLevelRequested()
291 mTestableLooper.processAllMessages(); in testSimStateInitialized()
301 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
307 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
324 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent()
335 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError()
349 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService()
366 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimValid_ServiceState_PowerOff()
387 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService()
[all …]
/aosp12/frameworks/base/tests/testables/src/android/testing/
H A DTestableLooper.java232 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod
240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
242 mTestableLooper.getLooper().getThread().setName(test.getClass().getName()); in LooperFrameworkMethod()
247 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod()
254 mTestableLooper = other; in LooperFrameworkMethod()
271 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively()
273 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively()
289 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively()
306 mTestableLooper.mQueueWrapper.release(); in invokeExplosively()
307 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
H A DQSPanelTest.kt50 private lateinit var mTestableLooper: TestableLooper
78 mTestableLooper = TestableLooper.get(this)
82 mTestableLooper.runWithLooper {
106 mTestableLooper.runWithLooper {
115 mTestableLooper.runWithLooper {
127 mTestableLooper.runWithLooper {
142 mTestableLooper.runWithLooper {
157 mTestableLooper.runWithLooper {
H A DQSDetailTest.java63 private TestableLooper mTestableLooper; field in QSDetailTest
69 mTestableLooper = TestableLooper.get(this); in setup()
101 mTestableLooper.processAllMessages(); in tearDown()
107 mTestableLooper.processAllMessages(); in testShowDetail_Metrics()
124 mTestableLooper.processAllMessages(); in testShowDetail_ShouldAnimate()
141 mTestableLooper.processAllMessages(); in testShowDetail_ShouldNotAnimate()
160 mTestableLooper.processAllMessages(); in testDoneButton_CloseDetailPanel()
171 mTestableLooper.processAllMessages(); in testDoneButton_KeepDetailPanelOpen()
182 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
/aosp12/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/voicerecognition/
H A DConnectedDeviceVoiceRecognitionNotifierTest.java58 private TestableLooper mTestableLooper; field in ConnectedDeviceVoiceRecognitionNotifierTest
65 mTestableLooper = TestableLooper.get(this); in setUp()
66 mHandler = new Handler(mTestableLooper.getLooper()); in setUp()
82 mTestableLooper.processAllMessages(); in testReceiveIntent_started_showToast()
100 mTestableLooper.processAllMessages(); in testReceiveIntent_invalidExtra_noToast()
114 mTestableLooper.processAllMessages(); in testReceiveIntent_noExtra_noToast()
128 mTestableLooper.processAllMessages(); in testReceiveIntent_invalidIntent_noToast()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSTileImplTest.java93 private TestableLooper mTestableLooper; field in QSTileImplTest
113 mTestableLooper = TestableLooper.get(this); in setup()
120 Handler mainHandler = new Handler(mTestableLooper.getLooper()); in setup()
125 mTestableLooper.processAllMessages(); in setup()
160 mTestableLooper.processAllMessages(); in testClick_falsing()
165 mTestableLooper.processAllMessages(); in testClick_falsing()
249 mTestableLooper.processAllMessages(); in testStaleListening()
253 mTestableLooper.processAllMessages(); in testStaleListening()
270 mTestableLooper.processAllMessages(); in testHandleDestroyLifecycle()
331 mTestableLooper.processAllMessages(); in testRefreshStateAfterDestroyedDoesNotCrash()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
H A DImsTestBase.java42 protected TestableLooper mTestableLooper; field in ImsTestBase
51 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp()
52 monitorTestableLooper(mTestableLooper); in setUp()
56 unmonitorTestableLooper(mTestableLooper); in tearDown()
/aosp12/packages/services/Telephony/tests/src/com/android/phone/
H A DCarrierConfigLoaderTest.java95 private TestableLooper mTestableLooper; field in CarrierConfigLoaderTest
123 mTestableLooper = new TestableLooper(mHandlerThread.getLooper()); in setUp()
125 mTestableLooper.getLooper()); in setUp()
135 mTestableLooper.destroy(); in tearDown()
183 mTestableLooper.processAllMessages(); in testUpdateConfigForPhoneId_simAbsent()
217 mTestableLooper.processAllMessages(); in testUpdateConfigForPhoneId_simLoaded_withCachedConfigInXml()
259 mTestableLooper.processAllMessages(); in testOverrideConfig_withNullBundle()
281 mTestableLooper.processAllMessages(); in testOverrideConfig_withNonNullBundle()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationInfoTest.java95 private TestableLooper mTestableLooper; field in NotificationInfoTest
762 mTestableLooper.processAllMessages(); in testBindNotification_DoesNotUpdateNotificationChannel()
811 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChanged()
838 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChangedSilenced()
865 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChangedAutomatic()
893 mTestableLooper.processAllMessages(); in testHandleCloseControls_persistAutomatic()
920 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged()
956 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified()
986 mTestableLooper.processAllMessages(); in testSilenceCallsUpdateNotificationChannel()
1026 mTestableLooper.processAllMessages(); in testUnSilenceCallsUpdateNotificationChannel()
[all …]
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/
H A DPeopleServiceTest.java102 private TestableLooper mTestableLooper; field in PeopleServiceTest
114 mTestableLooper = TestableLooper.get(this); in setUp()
174 mTestableLooper.processAllMessages(); in testRegisterConversationListener()
180 mTestableLooper.processAllMessages(); in testRegisterConversationListener()
186 mTestableLooper.processAllMessages(); in testRegisterConversationListener()
202 mTestableLooper.processAllMessages(); in testUnregisterConversationListener()
/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
H A DGsmCellBroadcastHandlerTest.java84 private TestableLooper mTestableLooper; field in GsmCellBroadcastHandlerTest
171 mTestableLooper = TestableLooper.get(GsmCellBroadcastHandlerTest.this); in setUp()
194 mTestableLooper.getLooper(), mSendMessageFactory, mHandlerHelper, mMockedResources, in setUp()
221 mTestableLooper.processAllMessages(); in testTriggerMessage()
258 mTestableLooper.processAllMessages(); in testAirplaneModeReset()
274 mTestableLooper.processAllMessages(); in testGeofencingAlertOutOfPolygon()
307 mTestableLooper.processAllMessages(); in testSmsCbLocation()
447 mTestableLooper.processAllMessages(); in testGeofencingDontSendWithMockCalculator()
480 mTestableLooper.processAllMessages(); in createMockCalculatorAndSendCellBroadcast()

12