Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java70 private TestableLooper mTestableLooper; field in LocationControllerImplTest
89 mTestableLooper = TestableLooper.get(this); in setup()
94 mTestableLooper.getLooper(), in setup()
95 new Handler(mTestableLooper.getLooper()), in setup()
103 mTestableLooper.processAllMessages(); in setup()
127 mTestableLooper.processAllMessages(); in testRemoveSelfActive_DoesNotCrash()
141 mTestableLooper.processAllMessages(); in testRemoveSelfSettings_DoesNotCrash()
150 mTestableLooper.processAllMessages(); in testAddCallback_notifiedImmediately()
161 mTestableLooper.processAllMessages(); in testCallbackNotified()
165 mTestableLooper.processAllMessages(); in testCallbackNotified()
[all …]
DBluetoothControllerImplTest.java64 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest
72 mTestableLooper = TestableLooper.get(this); in setup()
90 mTestableLooper.getLooper(), in setup()
91 mTestableLooper.getLooper(), in setup()
126 mTestableLooper.processAllMessages(); in testAsyncBondState()
143 mTestableLooper.processAllMessages(); in testAsyncConnectionState()
161 mTestableLooper.processAllMessages(); in testNullAsync_DoesNotCrash()
213 mTestableLooper.processAllMessages(); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java104 private TestableLooper mTestableLooper; field in AppOpsControllerTest
111 mTestableLooper = TestableLooper.get(this); in setUp()
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()
357 TestHandler testHandler = new TestHandler(mTestableLooper.getLooper()); in testActiveOpNotRemovedAfterNoted()
372 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableLooperTest.java48 private TestableLooper mTestableLooper; field in TestableLooperTest
52 mTestableLooper = TestableLooper.get(this); in setup()
61 mTestableLooper.processAllMessages(); in testMessageExecuted()
72 mTestableLooper.setMessageHandler(messageHandler); in testMessageCallback()
77 mTestableLooper.processAllMessages(); in testMessageCallback()
93 mTestableLooper.processMessages(2); in testProcessNumberOfMessages()
105 mTestableLooper.processAllMessages(); in testProcessAllMessages()
117 mTestableLooper.processAllMessages(); in test3Chain()
129 mTestableLooper.processAllMessages(); in testProcessAllMessages_2Messages()
187 Handler handler = spy(new Handler(mTestableLooper.getLooper())); in testDelayedDispatchNoTimeMove()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java256 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest
321 mTestableLooper = TestableLooper.get(this); in setup()
350 mTestableLooper.processAllMessages(); in setup()
386 mTestableLooper.processAllMessages(); in testInitialBatteryLevelRequested()
413 mTestableLooper.processAllMessages(); in testSimStateInitialized()
423 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
429 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast()
446 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent()
457 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError()
471 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DInternetTileTest.java67 private TestableLooper mTestableLooper; field in InternetTileTest
73 mTestableLooper = TestableLooper.get(this); in setUp()
79 mTestableLooper.getLooper(), in setUp()
80 new Handler(mTestableLooper.getLooper()), in setUp()
92 mTestableLooper.processAllMessages(); in setUp()
98 mTestableLooper.processAllMessages(); in tearDown()
107 mTestableLooper.processAllMessages(); in setConnectivityStatus_defaultNetworkNotExists_updateTile()
119 mTestableLooper.processAllMessages(); in setConnectivityStatus_defaultNetworkExists_notUpdateTile()
131 mTestableLooper.processAllMessages(); in setIsAirplaneMode_APM_enabled_wifi_disabled()
141 mTestableLooper.processAllMessages(); in setIsAirplaneMode_APM_enabled_wifi_enabled()
[all …]
DRotationLockTileTest.java92 private TestableLooper mTestableLooper; field in RotationLockTileTest
98 mTestableLooper = TestableLooper.get(this); in setUp()
108 mTestableLooper.getLooper(), in setUp()
109 new Handler(mTestableLooper.getLooper()), in setUp()
127 mTestableLooper.processAllMessages(); in setUp()
140 mTestableLooper.processAllMessages(); in setUp()
146 mTestableLooper.processAllMessages(); in tearDown()
160 mTestableLooper.processAllMessages(); in testSecondaryString_rotateOff_isEmpty()
170 mTestableLooper.processAllMessages(); in testSecondaryString_cameraRotateOff_isEmpty()
180 mTestableLooper.processAllMessages(); in testSecondaryString_powerSaveEnabled_isEmpty()
[all …]
DScreenRecordTileTest.java87 private TestableLooper mTestableLooper; field in ScreenRecordTileTest
94 mTestableLooper = TestableLooper.get(this); in setUp()
100 mTestableLooper.getLooper(), in setUp()
101 new Handler(mTestableLooper.getLooper()), in setUp()
115 mTestableLooper.processAllMessages(); in setUp()
121 mTestableLooper.processAllMessages(); in tearDown()
132 mTestableLooper.processAllMessages(); in testNotActive()
139 mTestableLooper.processAllMessages(); in testNotActive()
159 mTestableLooper.processAllMessages(); in testIsStarting()
183 mTestableLooper.processAllMessages(); in testIsRecording()
[all …]
DDreamTileTest.java87 private TestableLooper mTestableLooper; field in DreamTileTest
105 mTestableLooper = TestableLooper.get(this); in setUp()
112 mTestableLooper.processAllMessages(); in setUp()
119 mTestableLooper.processAllMessages(); in tearDown()
128 mTestableLooper.processAllMessages(); in testNotAvailable()
135 mTestableLooper.processAllMessages(); in testNotAvailable()
150 mTestableLooper.processAllMessages(); in testInactiveWhenDreaming()
164 mTestableLooper.processAllMessages(); in testActive()
178 mTestableLooper.processAllMessages(); in testClick()
188 mTestableLooper.processAllMessages(); in testClick()
[all …]
DReduceBrightColorsTileTest.java73 private TestableLooper mTestableLooper; field in ReduceBrightColorsTileTest
80 mTestableLooper = TestableLooper.get(this); in setUp()
88 mTestableLooper.getLooper(), in setUp()
89 new Handler(mTestableLooper.getLooper()), in setUp()
98 mTestableLooper.processAllMessages(); in setUp()
104 mTestableLooper.processAllMessages(); in tearDown()
111 mTestableLooper.processAllMessages(); in testNotActive()
122 mTestableLooper.processAllMessages(); in testActive()
133 mTestableLooper.processAllMessages(); in testActive_clicked_featureIsActivated()
DColorCorrectionTileTest.java74 private TestableLooper mTestableLooper; field in ColorCorrectionTileTest
83 mTestableLooper = TestableLooper.get(this); in setUp()
90 mTestableLooper.getLooper(), in setUp()
91 new Handler(mTestableLooper.getLooper()), in setUp()
102 mTestableLooper.processAllMessages(); in setUp()
108 mTestableLooper.processAllMessages(); in tearDown()
116 mTestableLooper.processAllMessages(); in longClick_expectedAction()
DOneHandedModeTileTest.java69 private TestableLooper mTestableLooper; field in OneHandedModeTileTest
75 mTestableLooper = TestableLooper.get(this); in setUp()
81 mTestableLooper.getLooper(), in setUp()
82 new Handler(mTestableLooper.getLooper()), in setUp()
91 mTestableLooper.processAllMessages(); in setUp()
98 mTestableLooper.processAllMessages(); in tearDown()
DCastTileTest.java98 private TestableLooper mTestableLooper; field in CastTileTest
104 mTestableLooper = TestableLooper.get(this); in setUp()
110 mTestableLooper.getLooper(), in setUp()
111 new Handler(mTestableLooper.getLooper()), in setUp()
129 mTestableLooper.processAllMessages(); in setUp()
148 mTestableLooper.processAllMessages(); in tearDown()
161 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled()
174 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected()
186 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages()
213 mTestableLooper.processAllMessages(); in testStateUnavailable_hotspotDisabled()
[all …]
DColorInversionTileTest.java79 private TestableLooper mTestableLooper; field in ColorInversionTileTest
88 mTestableLooper = TestableLooper.get(this); in setUp()
95 mTestableLooper.getLooper(), in setUp()
96 new Handler(mTestableLooper.getLooper()), in setUp()
107 mTestableLooper.processAllMessages(); in setUp()
113 mTestableLooper.processAllMessages(); in tearDown()
121 mTestableLooper.processAllMessages(); in longClick_expectedAction()
DNfcTileTest.java74 private TestableLooper mTestableLooper; field in NfcTileTest
80 mTestableLooper = TestableLooper.get(this); in setUp()
87 mTestableLooper.getLooper(), in setUp()
88 new Handler(mTestableLooper.getLooper()), in setUp()
98 mTestableLooper.processAllMessages(); in setUp()
104 mTestableLooper.processAllMessages(); in tearDown()
DQRCodeScannerTileTest.java71 private TestableLooper mTestableLooper; field in QRCodeScannerTileTest
77 mTestableLooper = TestableLooper.get(this); in setUp()
82 mTestableLooper.getLooper(), in setUp()
83 new Handler(mTestableLooper.getLooper()), in setUp()
92 mTestableLooper.processAllMessages(); in setUp()
98 mTestableLooper.processAllMessages(); in tearDown()
DAirplaneModeTileTest.kt71 private lateinit var mTestableLooper: TestableLooper variable in com.android.systemui.qs.tiles.AirplaneModeTileTest
79 mTestableLooper = TestableLooper.get(this) in setUp()
85 mTestableLooper.looper, in setUp()
86 Handler(mTestableLooper.looper), in setUp()
101 mTestableLooper.processAllMessages() in tearDown()
DNightDisplayTileTest.kt71 private lateinit var mTestableLooper: TestableLooper variable in com.android.systemui.qs.tiles.NightDisplayTileTest
79 mTestableLooper = TestableLooper.get(this) in setUp()
90 mTestableLooper.looper, in setUp()
91 Handler(mTestableLooper.looper), in setUp()
106 mTestableLooper.processAllMessages() in tearDown()
DQuickAccessWalletTileTest.java131 private TestableLooper mTestableLooper; field in QuickAccessWalletTileTest
138 mTestableLooper = TestableLooper.get(this); in setUp()
155 mTestableLooper.getLooper(), in setUp()
156 new Handler(mTestableLooper.getLooper()), in setUp()
168 mTestableLooper.processAllMessages(); in setUp()
174 mTestableLooper.processAllMessages(); in tearDown()
215 mTestableLooper.processAllMessages(); in testHandleClick_startQuickAccessUiIntent_noCard()
228 mTestableLooper.processAllMessages(); in testHandleClick_startQuickAccessUiIntent_hasCard()
294 mTestableLooper.processAllMessages(); in testHandleUpdateState_walletIsUpdating()
407 mTestableLooper.processAllMessages(); in testQueryCards_notCurrentUser_hasCards_noSideViewDrawable()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/
DWalletScreenControllerTest.java109 private TestableLooper mTestableLooper; field in WalletScreenControllerTest
114 mTestableLooper = TestableLooper.get(this); in setUp()
132 new Handler(mTestableLooper.getLooper()), in setUp()
150 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
160 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
174 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
184 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
199 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard()
209 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard()
225 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java96 private TestableLooper mTestableLooper; field in QSTileImplTest
117 mTestableLooper = TestableLooper.get(this); in setup()
124 Handler mainHandler = new Handler(mTestableLooper.getLooper()); in setup()
126 mTile = new TileImpl(mHost, mTestableLooper.getLooper(), mainHandler, mFalsingManager, in setup()
129 mTestableLooper.processAllMessages(); in setup()
156 mTestableLooper.processAllMessages(); in testHandleClick_log()
158 mTestableLooper.processAllMessages(); in testHandleClick_log()
182 mTestableLooper.processAllMessages(); in testClick_falsing()
187 mTestableLooper.processAllMessages(); in testClick_falsing()
213 mTestableLooper.processAllMessages(); in testHandleSecondaryClick_log()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java226 new CarrierPrivilegesTracker(mTestableLooper.getLooper(), mPhone, mContext); in createCarrierPrivilegesTracker()
227 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
230 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker()
340 mTestableLooper.processAllMessages(); in testRegisterListener()
357 mTestableLooper.processAllMessages(); in testUnregisterListener()
367 mTestableLooper.processAllMessages(); in testUnregisterListener()
375 mTestableLooper.processAllMessages(); in testUnregisterListener()
393 mTestableLooper.processAllMessages(); in testCarrierConfigUpdated()
407 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedMismatchedSlotIndex()
421 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedInvalidSubId()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/
DQSCarrierGroupControllerTest.java89 private TestableLooper mTestableLooper; field in QSCarrierGroupControllerTest
100 mTestableLooper = TestableLooper.get(this); in setup()
181 mTestableLooper.processAllMessages(); in testUpdateCarrierText_sameLengths()
221 mTestableLooper.processAllMessages(); in testUpdateCarrierText_differentLength()
235 mTestableLooper.processAllMessages(); in testUpdateCarrierText_invalidSim()
259 mTestableLooper.processAllMessages(); in testNoEmptyVisibleView_airplaneMode()
283 mTestableLooper.processAllMessages(); in testSingleCarrier()
302 mTestableLooper.processAllMessages(); in testMultiCarrier()
328 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch()
335 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java276 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod
284 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
286 mTestableLooper.getLooper().getThread().setName(test.getClass().getName()); in LooperFrameworkMethod()
291 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod()
298 mTestableLooper = other; in LooperFrameworkMethod()
315 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively()
317 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively()
333 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively()
350 mTestableLooper.mQueueWrapper.release(); in invokeExplosively()
351 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java44 protected TestableLooper mTestableLooper; field in ImsTestBase
54 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp()
55 monitorTestableLooper(mTestableLooper); in setUp()
59 unmonitorTestableLooper(mTestableLooper); in tearDown()

123