/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImplTest.java | 70 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 …]
|
D | BluetoothControllerImplTest.java | 64 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/ |
D | AppOpsControllerTest.java | 104 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/ |
D | TestableLooperTest.java | 48 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/ |
D | KeyguardUpdateMonitorTest.java | 256 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/ |
D | InternetTileTest.java | 67 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 …]
|
D | RotationLockTileTest.java | 92 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 …]
|
D | ScreenRecordTileTest.java | 87 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 …]
|
D | DreamTileTest.java | 87 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 …]
|
D | ReduceBrightColorsTileTest.java | 73 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()
|
D | ColorCorrectionTileTest.java | 74 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()
|
D | OneHandedModeTileTest.java | 69 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()
|
D | CastTileTest.java | 98 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 …]
|
D | ColorInversionTileTest.java | 79 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()
|
D | NfcTileTest.java | 74 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()
|
D | QRCodeScannerTileTest.java | 71 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()
|
D | AirplaneModeTileTest.kt | 71 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()
|
D | NightDisplayTileTest.kt | 71 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()
|
D | QuickAccessWalletTileTest.java | 131 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/ |
D | WalletScreenControllerTest.java | 109 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/ |
D | QSTileImplTest.java | 96 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/ |
D | CarrierPrivilegesTrackerTest.java | 226 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/ |
D | QSCarrierGroupControllerTest.java | 89 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/ |
D | TestableLooper.java | 276 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/ |
D | ImsTestBase.java | 44 protected TestableLooper mTestableLooper; field in ImsTestBase 54 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp() 55 monitorTestableLooper(mTestableLooper); in setUp() 59 unmonitorTestableLooper(mTestableLooper); in tearDown()
|