/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 …]
|
/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/systemui/qs/tiles/ |
D | RotationLockTileTest.java | 96 private TestableLooper mTestableLooper; field in RotationLockTileTest 103 mTestableLooper = TestableLooper.get(this); in setUp() 117 mTestableLooper.getLooper(), in setUp() 118 new Handler(mTestableLooper.getLooper()), in setUp() 136 mTestableLooper.processAllMessages(); in setUp() 149 mTestableLooper.processAllMessages(); in setUp() 155 mTestableLooper.processAllMessages(); in tearDown() 169 mTestableLooper.processAllMessages(); in testSecondaryString_rotateOff_isEmpty() 179 mTestableLooper.processAllMessages(); in testSecondaryString_cameraRotateOff_isEmpty() 189 mTestableLooper.processAllMessages(); in testSecondaryString_powerSaveEnabled_isEmpty() [all …]
|
D | InternetTileTest.java | 70 private TestableLooper mTestableLooper; field in InternetTileTest 76 mTestableLooper = TestableLooper.get(this); in setUp() 83 mTestableLooper.getLooper(), in setUp() 84 new Handler(mTestableLooper.getLooper()), in setUp() 96 mTestableLooper.processAllMessages(); in setUp() 102 mTestableLooper.processAllMessages(); in tearDown() 111 mTestableLooper.processAllMessages(); in setConnectivityStatus_defaultNetworkNotExists_updateTile() 123 mTestableLooper.processAllMessages(); in setConnectivityStatus_defaultNetworkExists_notUpdateTile() 135 mTestableLooper.processAllMessages(); in setIsAirplaneMode_APM_enabled_wifi_disabled() 145 mTestableLooper.processAllMessages(); in setIsAirplaneMode_APM_enabled_wifi_enabled() [all …]
|
D | CastTileTest.java | 115 private TestableLooper mTestableLooper; field in CastTileTest 121 mTestableLooper = TestableLooper.get(this); in setUp() 129 mTestableLooper.processAllMessages(); in tearDown() 143 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled() 157 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected() 169 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages() 200 mTestableLooper.processAllMessages(); in stateUnavailable_noDefaultNetworks_newPipeline() 209 mTestableLooper.processAllMessages(); in stateUnavailable_mobileConnected_newPipeline() 218 mTestableLooper.processAllMessages(); in stateInactive_wifiConnected_newPipeline() 227 mTestableLooper.processAllMessages(); in stateInactive_ethernetConnected_newPipeline() [all …]
|
D | DreamTileTest.java | 90 private TestableLooper mTestableLooper; field in DreamTileTest 108 mTestableLooper = TestableLooper.get(this); in setUp() 115 mTestableLooper.processAllMessages(); in setUp() 122 mTestableLooper.processAllMessages(); in tearDown() 131 mTestableLooper.processAllMessages(); in testNotAvailable() 138 mTestableLooper.processAllMessages(); in testNotAvailable() 152 mTestableLooper.processAllMessages(); in testInactiveWhenDreaming() 165 mTestableLooper.processAllMessages(); in testActive() 178 mTestableLooper.processAllMessages(); in testClick() 188 mTestableLooper.processAllMessages(); in testClick() [all …]
|
D | ReduceBrightColorsTileTest.java | 76 private TestableLooper mTestableLooper; field in ReduceBrightColorsTileTest 83 mTestableLooper = TestableLooper.get(this); in setUp() 92 mTestableLooper.getLooper(), in setUp() 93 new Handler(mTestableLooper.getLooper()), in setUp() 102 mTestableLooper.processAllMessages(); in setUp() 108 mTestableLooper.processAllMessages(); in tearDown() 115 mTestableLooper.processAllMessages(); in testNotActive() 126 mTestableLooper.processAllMessages(); in testActive() 137 mTestableLooper.processAllMessages(); in testActive_clicked_featureIsActivated()
|
D | ScreenRecordTileTest.java | 103 private TestableLooper mTestableLooper; field in ScreenRecordTileTest 110 mTestableLooper = TestableLooper.get(this); in setUp() 118 mTestableLooper.getLooper(), in setUp() 119 new Handler(mTestableLooper.getLooper()), in setUp() 136 mTestableLooper.processAllMessages(); in setUp() 142 mTestableLooper.processAllMessages(); in tearDown() 153 mTestableLooper.processAllMessages(); in testNotActive() 160 mTestableLooper.processAllMessages(); in testNotActive() 181 mTestableLooper.processAllMessages(); in testIsStarting() 205 mTestableLooper.processAllMessages(); in testIsRecording() [all …]
|
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 | 72 private TestableLooper mTestableLooper; field in OneHandedModeTileTest 78 mTestableLooper = TestableLooper.get(this); in setUp() 85 mTestableLooper.getLooper(), in setUp() 86 new Handler(mTestableLooper.getLooper()), in setUp() 95 mTestableLooper.processAllMessages(); in setUp() 102 mTestableLooper.processAllMessages(); in tearDown()
|
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 | 77 private TestableLooper mTestableLooper; field in NfcTileTest 83 mTestableLooper = TestableLooper.get(this); in setUp() 91 mTestableLooper.getLooper(), in setUp() 92 new Handler(mTestableLooper.getLooper()), in setUp() 102 mTestableLooper.processAllMessages(); in setUp() 108 mTestableLooper.processAllMessages(); in tearDown()
|
D | HearingDevicesTileTest.java | 92 private TestableLooper mTestableLooper; field in HearingDevicesTileTest 97 mTestableLooper = TestableLooper.get(this); in setUp() 103 mTestableLooper.getLooper(), in setUp() 104 new Handler(mTestableLooper.getLooper()), in setUp() 115 mTestableLooper.processAllMessages(); in setUp() 121 mTestableLooper.processAllMessages(); in tearDown() 139 mTestableLooper.processAllMessages(); in longClick_expectedAction() 152 mTestableLooper.processAllMessages(); in handleClick_dialogShown()
|
D | QRCodeScannerTileTest.java | 71 private TestableLooper mTestableLooper; field in QRCodeScannerTileTest 77 mTestableLooper = TestableLooper.get(this); in setUp() 83 mTestableLooper.getLooper(), in setUp() 84 new Handler(mTestableLooper.getLooper()), in setUp() 93 mTestableLooper.processAllMessages(); in setUp() 99 mTestableLooper.processAllMessages(); in tearDown()
|
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/ |
D | MainContentCaptureSessionV2Test.java | 89 private TestableLooper mTestableLooper; field in MainContentCaptureSessionV2Test 101 mTestableLooper = TestableLooper.get(this); in setup() 110 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionEnabled_processorCreated() 124 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionDisabled_processorNotCreated() 145 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionNoBuffer_processorNotCreated() 166 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionNoGroups_processorNotCreated() 178 mTestableLooper.processAllMessages(); in onSessionStarted_noComponentName_processorNotCreated() 192 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureDisabled_contentProtectionDisabled() 207 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureDisabled_contentProtectionEnabled() 222 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureEnabled_contentProtectionDisabled() [all …]
|
D | MainContentCaptureSessionTest.java | 89 private TestableLooper mTestableLooper; field in MainContentCaptureSessionTest 101 mTestableLooper = TestableLooper.get(this); in setup() 110 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionEnabled_processorCreated() 124 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionDisabled_processorNotCreated() 145 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionNoBuffer_processorNotCreated() 166 mTestableLooper.processAllMessages(); in onSessionStarted_contentProtectionNoGroups_processorNotCreated() 178 mTestableLooper.processAllMessages(); in onSessionStarted_noComponentName_processorNotCreated() 192 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureDisabled_contentProtectionDisabled() 207 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureDisabled_contentProtectionEnabled() 222 mTestableLooper.processAllMessages(); in sendEvent_contentCaptureEnabled_contentProtectionDisabled() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 111 private TestableLooper mTestableLooper; field in AppOpsControllerTest 119 mTestableLooper = TestableLooper.get(this); in setUp() 143 mTestableLooper.getLooper(), in setUp() 367 mTestableLooper.processAllMessages(); in addCallback_existingCallbacksNotifiedOfCurrentActive() 398 mTestableLooper.processAllMessages(); in addCallback_includedCode() 420 mTestableLooper.processAllMessages(); in addCallback_partialIncludedCode() 434 mTestableLooper.processAllMessages(); in addCallback_notIncludedCode() 449 mTestableLooper.processAllMessages(); in removeCallback_sameCode() 463 mTestableLooper.processAllMessages(); in addCallback_notSameCode() 528 mTestableLooper.processAllMessages(); in exemptedRoleNotNotified() [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 | 99 private TestableLooper mTestableLooper; field in QSTileImplTest 121 mTestableLooper = TestableLooper.get(this); in setup() 129 Handler mainHandler = new Handler(mTestableLooper.getLooper()); in setup() 134 mTestableLooper.getLooper(), in setup() 143 mTestableLooper.processAllMessages(); in setup() 171 mTestableLooper.processAllMessages(); in testHandleClick_log() 173 mTestableLooper.processAllMessages(); in testHandleClick_log() 197 mTestableLooper.processAllMessages(); in testClick_falsing() 202 mTestableLooper.processAllMessages(); in testClick_falsing() 210 mTestableLooper.processAllMessages(); in testLongClick_falsing() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 217 new CarrierPrivilegesTracker(mTestableLooper.getLooper(), mPhone, mContext); in createCarrierPrivilegesTracker() 221 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker() 223 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker() 307 mTestableLooper.processAllMessages(); in testCarrierConfigUpdated() 320 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedMismatchedSlotIndex() 333 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedInvalidSubId() 352 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedNotIdentifiedCarrier() 371 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedExplicitPackageNames() 383 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedExplicitPackageNames() 401 mTestableLooper.processAllMessages(); in testSimCardStateChanged() [all …]
|
D | CallWaitingControllerTest.java | 194 mTestableLooper.processAllMessages(); in testGetCallWaitingSyncNone() 197 mTestableLooper.processAllMessages(); in testGetCallWaitingSyncNone() 207 mTestableLooper.processAllMessages(); in testGetCallWaitingSyncNone() 210 mTestableLooper.processAllMessages(); in testGetCallWaitingSyncNone() 270 mTestableLooper.processAllMessages(); in testSyncUserChange() 286 mTestableLooper.processAllMessages(); in testSyncUserChange() 300 mTestableLooper.processAllMessages(); in testSyncUserChange() 320 mTestableLooper.processAllMessages(); in testSyncFirstPowerUp() 341 mTestableLooper.processAllMessages(); in testSyncFirstChange() 347 mTestableLooper.processAllMessages(); in testSyncFirstChange() [all …]
|
D | TelephonyCountryDetectorTest.java | 95 mTestableLooper = new TestableLooper(mLooper); in setUp() 253 mTestableLooper.processAllMessages(); in testCachedLocationCountryCodeUpdate() 280 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() 287 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() 295 mTestableLooper.moveTimeForward( in testRegisterForLocationUpdates() 297 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() 304 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() 310 mTestableLooper.moveTimeForward( in testRegisterForLocationUpdates() 312 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() 321 mTestableLooper.processAllMessages(); in testRegisterForLocationUpdates() [all …]
|
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/ |
D | DreamServiceTest.java | 57 private TestableLooper mTestableLooper; field in DreamServiceTest 61 mTestableLooper = new TestableLooper(Looper.getMainLooper()); in setup() 66 mTestableLooper.destroy(); in tearDown() 119 final TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testCreate() 130 final TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testBind() 142 final TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testDreamActivityCreate() 153 final TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testStart() 164 final TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testWake() 173 TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testRedirect() 189 TestDreamEnvironment environment = new TestDreamEnvironment.Builder(mTestableLooper) in testPartialKeyHandling()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 293 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest 346 mTestableLooper = TestableLooper.get(this); in setup() 384 mTestableLooper.processAllMessages(); in setupBiometrics() 438 mTestableLooper.processAllMessages(); in testInitialBatteryLevelRequested() 465 mTestableLooper.processAllMessages(); in testSimStateInitialized() 475 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 481 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 498 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent() 509 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError() 523 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/carrier/ |
D | ShadeCarrierGroupControllerTest.java | 110 private TestableLooper mTestableLooper; field in ShadeCarrierGroupControllerTest 137 mTestableLooper = TestableLooper.get(this); in setup() 241 mTestableLooper.processAllMessages(); in testUpdateCarrierText_sameLengths() 281 mTestableLooper.processAllMessages(); in testUpdateCarrierText_differentLength() 295 mTestableLooper.processAllMessages(); in testUpdateCarrierText_invalidSim() 320 mTestableLooper.processAllMessages(); in testNoEmptyVisibleView_airplaneMode() 335 mTestableLooper.processAllMessages(); in testVisibleView_airplaneMode_WFCOn() 351 mTestableLooper.processAllMessages(); in isInSatelliteMode_true_noSimViewShownWithText() 374 mTestableLooper.processAllMessages(); in isInSatelliteMode_false_normalSimViewsShown() 401 mTestableLooper.processAllMessages(); in testSingleCarrier() [all …]
|