/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | LocationControllerImplTest.java | 55 private TestableLooper mTestableLooper; field in LocationControllerImplTest 66 mTestableLooper = TestableLooper.get(this); in setup() 69 mTestableLooper.getLooper(), in setup() 70 new Handler(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() [all …]
|
D | BluetoothControllerImplTest.java | 61 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()
|
D | SmartReplyConstantsTest.java | 46 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()
|
/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/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | ScreenRecordTileTest.java | 71 private TestableLooper mTestableLooper; field in ScreenRecordTileTest 78 mTestableLooper = TestableLooper.get(this); in setUp() 84 mTestableLooper.getLooper(), in setUp() 85 new Handler(mTestableLooper.getLooper()), in setUp() 96 mTestableLooper.processAllMessages(); in setUp() 107 mTestableLooper.processAllMessages(); in testNotActive() 114 mTestableLooper.processAllMessages(); in testNotActive() 125 mTestableLooper.processAllMessages(); in testIsStarting() 149 mTestableLooper.processAllMessages(); in testIsRecording() 170 mTestableLooper.processAllMessages(); in testContentDescriptionHasTileName() [all …]
|
D | ReduceBrightColorsTileTest.java | 69 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()
|
D | CastTileTest.java | 91 private TestableLooper mTestableLooper; field in CastTileTest 97 mTestableLooper = TestableLooper.get(this); in setUp() 103 mTestableLooper.getLooper(), in setUp() 104 new Handler(mTestableLooper.getLooper()), in setUp() 121 mTestableLooper.processAllMessages(); in setUp() 148 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled() 162 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected() 175 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages() 202 mTestableLooper.processAllMessages(); in testStateUnavailable_hotspotDisabled() 210 mTestableLooper.processAllMessages(); in testStateUnavailable_hotspotEnabledNotConnected() [all …]
|
D | NfcTileTest.java | 73 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()
|
D | QuickAccessWalletTileTest.java | 128 private TestableLooper mTestableLooper; field in QuickAccessWalletTileTest 135 mTestableLooper = TestableLooper.get(this); in setUp() 150 mTestableLooper.getLooper(), in setUp() 151 new Handler(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() 246 mTestableLooper.processAllMessages(); in testHandleClick_hasCards_deviceUnlocked_startWalletActivity() 316 mTestableLooper.processAllMessages(); in testHandleUpdateState_walletIsUpdating() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelTest.java | 54 private TestableLooper mTestableLooper; field in QSPanelTest 76 mTestableLooper = TestableLooper.get(this); in setup() 84 mTestableLooper.runWithLooper(() -> { in setup() 103 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException() 105 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException() 112 mTestableLooper.processAllMessages(); in testOpenDetailsWithNullParameter_NoException() 114 mTestableLooper.processAllMessages(); in testOpenDetailsWithNullParameter_NoException() 121 mTestableLooper.processAllMessages(); in testSecurityFooterAtEndNoMedia_portrait() 133 mTestableLooper.processAllMessages(); in testSecurityFooterRightBeforeMedia_portrait() 149 mTestableLooper.processAllMessages(); in testSecurityFooterRightBeforeMedia_portrait_configChange() [all …]
|
D | QSDetailTest.java | 63 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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 191 new CarrierPrivilegesTracker(mTestableLooper.getLooper(), mPhone, mContext); in createCarrierPrivilegesTracker() 192 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() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/carrier/ |
D | QSCarrierGroupControllerTest.java | 80 private TestableLooper mTestableLooper; field in QSCarrierGroupControllerTest 91 mTestableLooper = TestableLooper.get(this); in setup() 171 mTestableLooper.processAllMessages(); in testUpdateCarrierText_sameLengths() 211 mTestableLooper.processAllMessages(); in testUpdateCarrierText_differentLength() 225 mTestableLooper.processAllMessages(); in testUpdateCarrierText_invalidSim() 249 mTestableLooper.processAllMessages(); in testNoEmptyVisibleView_airplaneMode() 273 mTestableLooper.processAllMessages(); in testSingleCarrier() 292 mTestableLooper.processAllMessages(); in testMultiCarrier() 318 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch() 325 mTestableLooper.processAllMessages(); in testSingleMultiCarrierSwitch() [all …]
|
D | QSCarrierTest.java | 46 private TestableLooper mTestableLooper; field in QSCarrierTest 51 mTestableLooper = TestableLooper.get(this); in setUp() 53 mTestableLooper.runWithLooper(() -> in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/ |
D | WalletScreenControllerTest.java | 103 private TestableLooper mTestableLooper; field in WalletScreenControllerTest 108 mTestableLooper = TestableLooper.get(this); in setUp() 126 new Handler(mTestableLooper.getLooper()), in setUp() 144 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton() 154 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton() 168 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton() 178 mTestableLooper.processAllMessages(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton() 193 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard() 203 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_activeCard() 219 mTestableLooper.processAllMessages(); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 44 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/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 179 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest 249 mTestableLooper = TestableLooper.get(this); in setup() 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() [all …]
|
D | AdminSecondaryLockScreenControllerTest.java | 67 private TestableLooper mTestableLooper; field in AdminSecondaryLockScreenControllerTest 88 mTestableLooper = TestableLooper.get(this); in setUp() 182 mTestableLooper.processAllMessages(); in verifySurfaceReady() 186 mTestableLooper.processAllMessages(); in verifySurfaceReady()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 232 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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsTestBase.java | 42 protected TestableLooper mTestableLooper; field in ImsTestBase 51 mTestableLooper = TestableLooper.get(ImsTestBase.this); in setUp() 52 monitorTestableLooper(mTestableLooper); in setUp() 56 unmonitorTestableLooper(mTestableLooper); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 93 private TestableLooper mTestableLooper; field in QSTileImplTest 113 mTestableLooper = TestableLooper.get(this); in setup() 120 Handler mainHandler = new Handler(mTestableLooper.getLooper()); in setup() 122 mTile = new TileImpl(mHost, mTestableLooper.getLooper(), mainHandler, mFalsingManager, 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() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfoTest.java | 95 private TestableLooper mTestableLooper; field in NotificationInfoTest 122 mTestableLooper = TestableLooper.get(this); in setUp() 124 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp() 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() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/people/ |
D | PeopleServiceTest.java | 102 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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | AssistantFeedbackControllerTest.java | 69 private TestableLooper mTestableLooper; field in AssistantFeedbackControllerTest 76 mTestableLooper = TestableLooper.get(this); in setUp() 78 new Handler(mTestableLooper.getLooper()), in setUp() 157 mTestableLooper.processAllMessages(); in switchFlag()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSensorsTest.java | 90 private TestableLooper mTestableLooper; field in DozeSensorsTest 97 mTestableLooper = TestableLooper.get(this); in setUp() 119 mTestableLooper.processAllMessages(); in testSensorDebounce() 126 mTestableLooper.processAllMessages(); in testSensorDebounce()
|