/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 113 private TestableLooper mTestableLooper; field in KeyguardUpdateMonitorTest 142 mTestableLooper = TestableLooper.get(this); in setup() 151 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 157 mTestableLooper.processAllMessages(); in testIgnoresSimStateCallback_rebroadcast() 174 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_Absent() 185 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimState_CardIOError() 199 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimInvalid_ServiceState_InService() 216 mTestableLooper.processAllMessages(); in testTelephonyCapable_SimValid_ServiceState_PowerOff() 237 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_ServiceState_OutOfService() 252 mTestableLooper.processAllMessages(); in testTelephonyCapable_BootInitState_SimState_NotReady() [all …]
|
D | CarrierTextControllerTest.java | 106 private TestableLooper mTestableLooper; field in CarrierTextControllerTest 111 mTestableLooper = TestableLooper.get(this); in setUp() 123 new Handler(mTestableLooper.getLooper())); in setUp() 152 mTestableLooper.processAllMessages(); in testAirplaneMode() 175 mTestableLooper.processAllMessages(); in testCardIOError() 187 mTestableLooper.processAllMessages(); in testCardIOError() 223 mTestableLooper.processAllMessages(); in testMoreSlotsThanSubs() 232 mTestableLooper.processAllMessages(); in testCallback() 249 mTestableLooper.processAllMessages(); in testNullingCallback() 268 mTestableLooper.processAllMessages(); in testCreateInfo_OneValidSubscription() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 172 new CarrierPrivilegesTracker(mTestableLooper.getLooper(), mPhone, mContext); in createCarrierPrivilegesTracker() 173 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker() 176 mTestableLooper.processAllMessages(); in createCarrierPrivilegesTracker() 235 mTestableLooper.processAllMessages(); in verifyRegisterListener() 256 mTestableLooper.processAllMessages(); in testUnregisterListener() 262 mTestableLooper.processAllMessages(); in testUnregisterListener() 280 mTestableLooper.processAllMessages(); in testCarrierConfigUpdated() 291 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedMismatchedSlotIndex() 302 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedInvalidSubId() 316 mTestableLooper.processAllMessages(); in testCarrierConfigUpdatedNotIdentifiedCarrier() [all …]
|
D | TelephonyTest.java | 312 protected TestableLooper mTestableLooper; field in TelephonyTest 675 mTestableLooper = TestableLooper.get(TelephonyTest.this); in setUp() 676 if (mTestableLooper != null) { in setUp() 677 monitorTestableLooper(mTestableLooper); in setUp() 685 if (mTestableLooper != null) { in tearDown() 686 unmonitorTestableLooper(mTestableLooper); in tearDown()
|
/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/systemui/appops/ |
D | AppOpsControllerTest.java | 69 private TestableLooper mTestableLooper; field in AppOpsControllerTest 74 mTestableLooper = TestableLooper.get(this); in setUp() 78 mController = new AppOpsControllerImpl(mContext, mTestableLooper.getLooper()); in setUp() 102 mTestableLooper.processAllMessages(); in addCallback_includedCode() 112 mTestableLooper.processAllMessages(); in addCallback_notIncludedCode() 123 mTestableLooper.processAllMessages(); in removeCallback_sameCode() 134 mTestableLooper.processAllMessages(); in addCallback_notSameCode() 230 AppOpsControllerImpl.H testHandler = mController.new H(mTestableLooper.getLooper()) { in testActiveOpNotRemovedAfterNoted() 246 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted() 256 mTestableLooper.processAllMessages(); in testActiveOpNotRemovedAfterNoted() [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 | 232 private final TestableLooper mTestableLooper; field in TestableLooper.LooperFrameworkMethod 240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod() 244 sLoopers.put(test, mTestableLooper); in LooperFrameworkMethod() 251 mTestableLooper = other; in LooperFrameworkMethod() 268 boolean set = mTestableLooper.mQueueWrapper == null; in invokeExplosively() 270 mTestableLooper.mQueueWrapper = acquireLooperManager(mLooper); in invokeExplosively() 286 mTestableLooper.mQueueWrapper.execute(m); in invokeExplosively() 303 mTestableLooper.mQueueWrapper.release(); in invokeExplosively() 304 mTestableLooper.mQueueWrapper = null; in invokeExplosively()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingManagerProxyTest.java | 53 private TestableLooper mTestableLooper; field in FalsingManagerProxyTest 58 mTestableLooper = TestableLooper.get(this); in setup() 59 mHandler = new Handler(mTestableLooper.getLooper()); in setup() 99 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled() 105 mTestableLooper.processAllMessages(); in test_brightLineFalsingManagerToggled()
|
/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/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/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 61 private TestableLooper mTestableLooper; field in BluetoothControllerImplTest 68 mTestableLooper = TestableLooper.get(this); in setup() 81 mTestableLooper.getLooper(), in setup() 119 mTestableLooper.processMessages(1); in testAsyncBondState() 141 mTestableLooper.processMessages(1); in testAsyncConnectionState() 165 mTestableLooper.processMessages(1); in testNullAsync_DoesNotCrash() 225 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/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 | 86 private TestableLooper mTestableLooper; field in NotificationViewHierarchyManagerTest 95 mTestableLooper = TestableLooper.get(this); in setUp() 96 Assert.sMainLooper = mTestableLooper.getLooper(); in setUp() 97 mHandler = Handler.createAsync(mTestableLooper.getLooper()); in setUp() 248 mTestableLooper.processAllMessages(); in testReentrantCallsToOnDynamicPrivacyChangedPostForLater() 273 mTestableLooper.processAllMessages(); in testMultipleReentrantCallsToOnDynamicPrivacyChangedOnlyPostOnce()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 77 private TestableLooper mTestableLooper; field in ScreenDecorationsTest 90 mTestableLooper = TestableLooper.get(this); in setup() 92 new Handler(mTestableLooper.getLooper())); in setup() 117 mTestableLooper.processAllMessages(); in setup() 122 return new Handler(mTestableLooper.getLooper()); in setup() 128 mTestableLooper.processAllMessages(); in setup() 134 mTestableLooper.processAllMessages(); in setup()
|
/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 | 197 private TestableLooper mTestableLooper; field in NotificationManagerServiceTest 343 mTestableLooper = TestableLooper.get(this); in setUp() 344 mHandler = mService.new WorkerHandler(mTestableLooper.getLooper()); in setUp() 389 mService.init(mTestableLooper.getLooper(), in setUp() 419 mTestableLooper.processAllMessages(); in waitForIdle()
|