/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 | 91 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest 118 mTestableLooper = TestableLooper.get(this); in setup() 127 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 133 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 150 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent() 161 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError() 175 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService() 192 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimValid_ServiceState_PowerOff() 213 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService() 228 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_SimState_NotReady() [all …]
|
D | CarrierTextControllerTest.java | 98 private TestableLooper mTestableLooper; field in CarrierTextControllerTest 103 mTestableLooper = TestableLooper.get(this); in setUp() 111 new Handler(mTestableLooper.getLooper())); in setUp() 155 mTestableLooper.processAllMessages(); in testMoreSlotsThanSubs() 164 mTestableLooper.processAllMessages(); in testCallback() 181 mTestableLooper.processAllMessages(); in testNullingCallback() 200 mTestableLooper.processAllMessages(); in testCreateInfo_OneValidSubscription() 224 mTestableLooper.processAllMessages(); in testCreateInfo_OneValidSubscriptionWithRoaming() 244 mTestableLooper.processAllMessages(); in testCreateInfo_noSubscriptions() 269 mTestableLooper.processAllMessages(); in testCarrierText_twoValidSubscriptions() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSDetailTest.java | 56 private TestableLooper mTestableLooper; field in QSDetailTest 60 mTestableLooper = TestableLooper.get(this); in setup() 61 mTestableLooper.runWithLooper(() -> { in setup() 78 mTestableLooper.processAllMessages(); in testShowDetail_Metrics() 86 mTestableLooper.processAllMessages(); in testShowDetail_Metrics() 92 mTestableLooper.processAllMessages(); in testMoreSettingsButton() 103 mTestableLooper.processAllMessages(); in testMoreSettingsButton()
|
D | QSPanelTest.java | 60 private TestableLooper mTestableLooper; field in QSPanelTest 78 mTestableLooper = TestableLooper.get(this); in setup() 79 mTestableLooper.runWithLooper(() -> { in setup() 106 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException() 108 mTestableLooper.processAllMessages(); in testOpenDetailsWithExistingTile_NoException() 124 mTestableLooper.processAllMessages(); in testOpenDetailsWithNonExistingTile_NoException() 126 mTestableLooper.processAllMessages(); in testOpenDetailsWithNonExistingTile_NoException()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 228 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod 236 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 240 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod() 247 mTestableLooper = other; in LooperFrameworkMethod() 264 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively() 266 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively() 282 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively() 299 mTestableLooper.mQueueWrapper.release(); in invokeExplosively() 300 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingManagerProxyTest.java | 50 private TestableLooper mTestableLooper; field in FalsingManagerProxyTest 55 mTestableLooper = TestableLooper.get(this); in setup() 56 mHandler = new Handler(mTestableLooper.getLooper()); in setup() 93 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled() 99 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 71 private TestableLooper mTestableLooper; field in QSTileImplTest 84 mTestableLooper = TestableLooper.get(this); in setup() 85 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setup() 94 mTile.mHandler = mTile.new H(mTestableLooper.getLooper()); in setup() 172 mTestableLooper.processAllMessages(); in testStaleTimeout() 176 mTestableLooper.processAllMessages(); in testStaleTimeout() 183 mTestableLooper.processAllMessages(); in testStaleListening() 187 mTestableLooper.processAllMessages(); in testStaleListening()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CastTileTest.java | 75 private TestableLooper mTestableLooper; field in CastTileTest 81 mTestableLooper = TestableLooper.get(this); in setUp() 83 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp() 113 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiDisabled() 125 mTestableLooper.processAllMessages(); in testStateUnavailable_wifiNotConnected() 136 mTestableLooper.processAllMessages(); in enableWifiAndProcessMessages() 168 mTestableLooper.processAllMessages(); in testHandleClick_castDevicePresent() 184 mTestableLooper.processAllMessages(); in testHandleClick_projectionOnly()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 60 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest 67 mTestableLooper = TestableLooper.get(this); in setup() 80 mTestableLooper.getLooper(), in setup() 118 mTestableLooper.processMessages(1); in testAsyncBondState() 140 mTestableLooper.processMessages(1); in testAsyncConnectionState() 164 mTestableLooper.processMessages(1); in testNullAsync_DoesNotCrash() 224 mTestableLooper.processAllMessages(); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationInfoTest.java | 102 private TestableLooper mTestableLooper; field in NotificationInfoTest 128 mTestableLooper = TestableLooper.get(this); in setUp() 129 mDependency.injectTestDependency(Dependency.BG_LOOPER, mTestableLooper.getLooper()); in setUp() 757 mTestableLooper.processAllMessages(); in testBindNotification_DoesNotUpdateNotificationChannel() 782 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChanged() 808 mTestableLooper.processAllMessages(); in testDoesNotUpdateNotificationChannelAfterImportanceChangedSilenced() 834 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnchanged() 862 mTestableLooper.processAllMessages(); in testHandleCloseControls_DoesNotUpdateNotificationChannelIfUnspecified() 901 mTestableLooper.processAllMessages(); in testCloseControls_nonNullCheckSaveListenerDoesntDelayKeepShowing_BlockingHelper() 931 mTestableLooper.processAllMessages(); in testCloseControls_nonNullCheckSaveListenerDoesntDelayDismiss_BlockingHelper() [all …]
|
D | NotificationGutsManagerTest.java | 95 private TestableLooper mTestableLooper; field in NotificationGutsManagerTest 113 mTestableLooper = TestableLooper.get(this); in setUp() 119 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp() 157 mTestableLooper.processAllMessages(); in testOpenAndCloseGuts() 204 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale() 218 mTestableLooper.processAllMessages(); in testChangeDensityOrFontScale()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSensorsTest.java | 82 private TestableLooper mTestableLooper; field in DozeSensorsTest 88 mTestableLooper = TestableLooper.get(this); in setUp() 103 mTestableLooper.processAllMessages(); in testSensorDebounce() 110 mTestableLooper.processAllMessages(); in testSensorDebounce()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 74 private TestableLooper mTestableLooper; field in ScreenDecorationsTest 87 mTestableLooper = TestableLooper.get(this); in setup() 89 new Handler(mTestableLooper.getLooper())); in setup() 114 mTestableLooper.processAllMessages(); in setup() 119 return new Handler(mTestableLooper.getLooper()); in setup() 125 mTestableLooper.processAllMessages(); in setup() 131 mTestableLooper.processAllMessages(); in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/ |
D | VisualStabilityManagerTest.java | 48 private TestableLooper mTestableLooper; field in VisualStabilityManagerTest 58 mTestableLooper = TestableLooper.get(this); in setUp() 61 new Handler(mTestableLooper.getLooper())); in setUp() 235 mTestableLooper.processMessages(1); in testTemporarilyAllowReorderingExpires()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationViewHierarchyManagerTest.java | 85 private TestableLooper mTestableLooper; field in NotificationViewHierarchyManagerTest 94 mTestableLooper = TestableLooper.get(this); in setUp() 95 Assert.sMainLooper = mTestableLooper.getLooper(); in setUp() 96 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp() 244 mTestableLooper.processAllMessages(); in testReentrantCallsToOnDynamicPrivacyChangedPostForLater() 269 mTestableLooper.processAllMessages(); in testMultipleReentrantCallsToOnDynamicPrivacyChangedOnlyPostOnce()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationShellCmdTest.java | 75 private TestableLooper mTestableLooper; field in NotificationShellCmdTest 82 mTestableLooper = TestableLooper.get(this); in setUp() 83 mResultReceiver = new ResultReceiver(new Handler(mTestableLooper.getLooper())); in setUp()
|
D | ZenModeHelperTest.java | 109 private TestableLooper mTestableLooper; field in ZenModeHelperTest 119 mTestableLooper = TestableLooper.get(this); in setUp() 136 mZenModeHelperSpy = spy(new ZenModeHelper(mContext, mTestableLooper.getLooper(), in setUp()
|
D | NotificationManagerServiceTest.java | 195 private TestableLooper mTestableLooper; field in NotificationManagerServiceTest 341 mTestableLooper = TestableLooper.get(this); in setUp() 342 mHandler = mService.new WorkerHandler(mTestableLooper.getLooper()); in setUp() 387 mService.init(mTestableLooper.getLooper(), in setUp() 417 mTestableLooper.processAllMessages(); in waitForIdle()
|