/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/broadcast/ |
D | UserBroadcastDispatcherTest.kt | 74 private lateinit var testableLooper: TestableLooper in capture() variable in com.android.systemui.broadcast.UserBroadcastDispatcherTest 84 testableLooper = TestableLooper.get(this) in capture() 85 handler = Handler(testableLooper.looper) in capture() 91 testableLooper.looper, in capture() 112 testableLooper.processAllMessages() in testSingleReceiverRegistered() 129 testableLooper.processAllMessages() in testDifferentActionReceiversForDifferentFlags() 147 testableLooper.processAllMessages() in testDifferentActionReceiversForDifferentPermissions() 161 testableLooper.processAllMessages() in testSingleReceiverRegistered_logging() 172 testableLooper.processAllMessages() in testSingleReceiverUnregistered() 175 testableLooper.processAllMessages() in testSingleReceiverUnregistered() [all …]
|
D | BroadcastDispatcherTest.kt | 105 private lateinit var testableLooper: TestableLooper in <lambda>() variable in com.android.systemui.broadcast.BroadcastDispatcherTest 111 testableLooper = TestableLooper.get(this) in <lambda>() 118 testableLooper.looper, in <lambda>() 139 testableLooper.processAllMessages() in <lambda>() 157 testableLooper.processAllMessages() in <lambda>() 173 testableLooper.processAllMessages() in <lambda>() 187 testableLooper.processAllMessages() in <lambda>() 198 testableLooper.processAllMessages() in <lambda>() 217 testableLooper.processAllMessages() in <lambda>() 229 testableLooper.processAllMessages() in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | VariableDateViewControllerTest.kt | 71 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.statusbar.policy.VariableDateViewControllerTest 81 testableLooper = TestableLooper.get(this) in setUp() 82 testableHandler = Handler(testableLooper.looper) in setUp() 120 testableLooper.processAllMessages() in setUp() 139 testableLooper.processAllMessages() in testLotsOfSpaceUseLongText() 146 testableLooper.processAllMessages() in testSmallSpaceUseEmpty() 156 testableLooper.processAllMessages() in testSpaceInBetweenUseShortText() 164 testableLooper.processAllMessages() in testSwitchBackToLonger() 167 testableLooper.processAllMessages() in testSwitchBackToLonger() 178 testableLooper.processAllMessages() in testNoSwitchingWhenFrozen() [all …]
|
D | DeviceProvisionedControllerImplTest.kt | 70 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.statusbar.policy.DeviceProvisionedControllerImplTest 78 testableLooper = TestableLooper.get(this) in setUp() 89 Handler(testableLooper.looper), in setUp() 127 testableLooper.processAllMessages() // background observer in testDeviceProvisionedChange() 137 testableLooper.processAllMessages() // background observer in testUserSetupChange() 148 testableLooper.processAllMessages() // background observer in testUserSetupChange_otherUser() 162 testableLooper.processAllMessages() in testCurrentUserSetup() 186 testableLooper.processAllMessages() in testListenerCalledOnUserSwitched() 200 testableLooper.processAllMessages() in testListenerCalledOnUserSetupChanged() 214 testableLooper.processAllMessages() in testListenerCalledOnDeviceProvisionedChanged() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | CameraToggleTileTest.kt | 76 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.CameraToggleTileTest 82 testableLooper = TestableLooper.get(this) in setUp() 88 testableLooper.looper, in setUp() 89 Handler(testableLooper.looper), in setUp() 103 testableLooper.processAllMessages() in tearDown() 132 testableLooper.looper, in testLongClickIntent_safetyCenterEnabled() 133 Handler(testableLooper.looper), in testLongClickIntent_safetyCenterEnabled() 144 testableLooper.processAllMessages() in testLongClickIntent_safetyCenterEnabled() 153 testableLooper.looper, in testLongClickIntent_safetyCenterDisabled() 154 Handler(testableLooper.looper), in testLongClickIntent_safetyCenterDisabled() [all …]
|
D | MicrophoneToggleTileTest.kt | 76 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.MicrophoneToggleTileTest 83 testableLooper = TestableLooper.get(this) in setUp() 89 testableLooper.looper, in setUp() 90 Handler(testableLooper.looper), in setUp() 104 testableLooper.processAllMessages() in tearDown() 131 testableLooper.looper, in testLongClickIntent_safetyCenterEnabled() 132 Handler(testableLooper.looper), in testLongClickIntent_safetyCenterEnabled() 143 testableLooper.processAllMessages() in testLongClickIntent_safetyCenterEnabled() 152 testableLooper.looper, in testLongClickIntent_safetyCenterDisabled() 153 Handler(testableLooper.looper), in testLongClickIntent_safetyCenterDisabled() [all …]
|
D | DndTileTest.kt | 108 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.DndTileTest 114 testableLooper = TestableLooper.get(this) in setUp() 132 testableLooper.looper, in setUp() 133 Handler(testableLooper.looper), in setUp() 149 testableLooper.processAllMessages() in tearDown() 157 testableLooper.processAllMessages() in testForceExpandIcon_durationAskAlways_true() 167 testableLooper.processAllMessages() in testForceExpandIcon_durationNotAskAlways_false() 177 testableLooper.processAllMessages() in testForceExpandIcon_changeWhileListening() 184 testableLooper.processAllMessages() in testForceExpandIcon_changeWhileListening() 194 testableLooper.processAllMessages() in testLaunchDialogFromViewWhenPrompt() [all …]
|
D | AlarmTileTest.kt | 61 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.AlarmTileTest 67 testableLooper = TestableLooper.get(this) in setUp() 74 testableLooper.looper, in setUp() 75 Handler(testableLooper.looper), in setUp() 89 testableLooper.processAllMessages() in setUp() 95 testableLooper.processAllMessages() in tearDown() 122 testableLooper.processAllMessages() in testInactiveAfterNullNextAlarm() 131 testableLooper.processAllMessages() in testActivityStartedWhenNullNextAlarm() 141 testableLooper.processAllMessages() in testActiveAfterNextAlarm() 151 testableLooper.processAllMessages() in testActivityStartedWhenNextAlarm()
|
D | DeviceControlsTileTest.kt | 105 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.DeviceControlsTileTest 115 testableLooper = TestableLooper.get(this) in setUp() 135 testableLooper.processAllMessages() in tearDown() 214 testableLooper.processAllMessages() in testStateUnavailableIfNoListings() 228 testableLooper.processAllMessages() in testStateUnavailableIfNotEnabled() 249 testableLooper.processAllMessages() in testStateActiveIfListingsHasControlsFavorited() 266 testableLooper.processAllMessages() in testStateInactiveIfListingsHasNoControlsFavorited() 282 testableLooper.processAllMessages() in testStateActiveIfPreferredIsPanel() 297 testableLooper.processAllMessages() in testStateInactiveIfLocked() 310 testableLooper.processAllMessages() in testMoveBetweenStates() [all …]
|
D | FontScalingTileTest.kt | 72 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.FontScalingTileTest 82 testableLooper = TestableLooper.get(this) in setUp() 93 testableLooper.looper, in setUp() 94 Handler(testableLooper.looper), in setUp() 105 testableLooper.processAllMessages() in setUp() 111 testableLooper.processAllMessages() in tearDown() 125 testableLooper.processAllMessages() in clickTile_screenUnlocked_showDialogAnimationFromView() 143 testableLooper.processAllMessages() in clickTile_onLockScreen_neverShowDialogAnimationFromView()
|
D | BatterySaverTileTest.kt | 72 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.BatterySaverTileTest 78 testableLooper = TestableLooper.get(this) in setUp() 89 testableLooper.looper, in setUp() 90 Handler(testableLooper.looper), in setUp() 101 testableLooper.processAllMessages() in setUp() 107 testableLooper.processAllMessages() in tearDown() 119 testableLooper.processAllMessages() in testSettingChangesUser()
|
D | DataSaverTileTest.kt | 63 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.DataSaverTileTest 69 testableLooper = TestableLooper.get(this) in setUp() 78 testableLooper.looper, in setUp() 79 Handler(testableLooper.looper), in setUp() 94 testableLooper.processAllMessages() in tearDown()
|
D | FlashlightTileTest.kt | 51 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.FlashlightTileTest 57 testableLooper = TestableLooper.get(this) in setUp() 65 testableLooper.looper, in setUp() 66 Handler(testableLooper.looper), in setUp() 79 testableLooper.processAllMessages() in tearDown()
|
D | LocationTileTest.kt | 77 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.LocationTileTest 83 testableLooper = TestableLooper.get(this) in setUp() 89 testableLooper.looper, in setUp() 90 Handler(testableLooper.looper), in setUp() 105 testableLooper.processAllMessages() in tearDown()
|
D | UiModeNightTileTest.kt | 69 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.tiles.UiModeNightTileTest 76 testableLooper = TestableLooper.get(this) in setUp() 89 testableLooper.looper, in setUp() 90 Handler(testableLooper.looper), in setUp() 105 testableLooper.processAllMessages() in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | CustomTileTest.kt | 104 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.external.CustomTileTest 114 testableLooper.looper, in create() 115 Handler(testableLooper.looper), in create() 134 testableLooper = TestableLooper.get(this) in setUp() 155 testableLooper.processAllMessages() in setUp() 168 testableLooper.processAllMessages() in testCorrectUser() 178 testableLooper.processAllMessages() in testToggleableTileHasBooleanState() 195 testableLooper.processAllMessages() in testValueUpdatedInBooleanTile() 228 testableLooper.processAllMessages() in testNoLoadStateTileNotActive() 240 testableLooper.processAllMessages() in testNoPersistedStateTileNotActive() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/view/ |
D | ModernStatusBarMobileViewTest.kt | 62 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.statusbar.pipeline.mobile.ui.view.ModernStatusBarMobileViewTest 84 testableLooper = TestableLooper.get(this) in setUp() 115 testableLooper.processAllMessages() in setVisibleState_icon_iconShownDotHidden() 135 testableLooper.processAllMessages() in setVisibleState_dot_iconHiddenDotShown() 155 testableLooper.processAllMessages() in setVisibleState_hidden_iconAndDotHidden() 176 testableLooper.processAllMessages() in isIconVisible_noData_outputsFalse() 196 testableLooper.processAllMessages() in isIconVisible_hasData_outputsTrue() 215 testableLooper.processAllMessages() in <lambda>() 234 testableLooper.processAllMessages() in <lambda>() 251 testableLooper.processAllMessages() in onDarkChanged_iconHasNewColor() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | UserSettingObserverTest.kt | 48 private lateinit var testableLooper: TestableLooper in <lambda>() variable in com.android.systemui.qs.UserSettingObserverTest 56 testableLooper = TestableLooper.get(this) in <lambda>() 63 Handler(testableLooper.looper), in <lambda>() 88 testableLooper.processAllMessages() in <lambda>() 98 testableLooper.processAllMessages() in <lambda>() 109 testableLooper.processAllMessages() in <lambda>() 142 testableLooper.processAllMessages() in <lambda>() 153 testableLooper.processAllMessages() in <lambda>()
|
D | QuickQSPanelTest.kt | 26 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.qs.QuickQSPanelTest 35 testableLooper = TestableLooper.get(this) in setup() 37 testableLooper.runWithLooper { in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSettingsControllerTest.kt | 69 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.statusbar.notification.row.NotificationSettingsControllerTest 81 testableLooper = TestableLooper.get(this) in setUp() 82 mainHandler = Handler(testableLooper.looper) in setUp() 83 backgroundHandler = Handler(testableLooper.looper) in setUp() 143 testableLooper.processAllMessages() in addCallback_onlyFirstForUriRegistersObserver() 161 testableLooper.processAllMessages() in addCallback_secondUriRegistersObserver() 173 testableLooper.processAllMessages() in addCallback_secondUriRegistersObserver() 189 testableLooper.processAllMessages() in removeCallback_lastUnregistersObserver() 201 testableLooper.processAllMessages() in removeCallback_lastUnregistersObserver() 207 testableLooper.processAllMessages() in removeCallback_lastUnregistersObserver() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/ |
D | BrightnessControllerTest.kt | 55 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.settings.brightness.BrightnessControllerTest 62 testableLooper = TestableLooper.get(this) in setUp() 75 Handler(testableLooper.looper) in setUp() 83 val messagesProcessed = testableLooper.processMessagesNonBlocking(repeats) in registerCallbacksMultipleTimes_onlyOneRegistration() 95 testableLooper.processAllMessages() in unregisterCallbacksMultipleTimes_onlyOneUnregistration() 98 val messagesProcessed = testableLooper.processMessagesNonBlocking(repeats) in unregisterCallbacksMultipleTimes_onlyOneUnregistration()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/view/ |
D | ModernStatusBarWifiViewTest.kt | 65 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.statusbar.pipeline.wifi.ui.view.ModernStatusBarWifiViewTest 81 testableLooper = TestableLooper.get(this) in setUp() 127 testableLooper.processAllMessages() in setVisibleState_icon_iconShownDotHidden() 142 testableLooper.processAllMessages() in setVisibleState_dot_iconHiddenDotShown() 157 testableLooper.processAllMessages() in setVisibleState_hidden_iconAndDotHidden() 179 testableLooper.processAllMessages() in setVisibleState_hidden_keepWidth() 183 testableLooper.processAllMessages() in setVisibleState_hidden_keepWidth() 203 testableLooper.processAllMessages() in isIconVisible_notEnabled_outputsFalse() 220 testableLooper.processAllMessages() in isIconVisible_enabled_outputsTrue() 231 testableLooper.processAllMessages() in onDarkChanged_iconHasNewColor() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/android/os/ |
D | LooperKosmos.kt | 25 val testableLooper = TestableLooper.get(testCase) in <lambda>() constant 26 checkNotNull(testableLooper) { in <lambda>() 29 checkNotNull(testableLooper.looper) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | GlanceableHubContainerControllerTest.kt | 99 private lateinit var testableLooper: TestableLooper variable in com.android.systemui.shade.GlanceableHubContainerControllerTest 136 testableLooper = TestableLooper.get(this) in setUp() 235 testableLooper.processAllMessages() in onTouchEvent_communalTransitioning_interceptsTouches() 269 testableLooper.processAllMessages() in onTouchEvent_communalAndBouncerShowing_doesNotIntercept() 288 testableLooper.processAllMessages() in onTouchEvent_communalAndShadeShowing_doesNotIntercept() 397 testableLooper.processAllMessages() in lifecycle_startedAfterPrimaryBouncerShows() 412 testableLooper.processAllMessages() in lifecycle_startedAfterAlternateBouncerShows() 435 testableLooper.processAllMessages() in lifecycle_startedAfterShadeShows() 480 testableLooper.processAllMessages() in gestureExclusionZone_unsetWhenShadeOpen() 495 testableLooper.processAllMessages() in gestureExclusionZone_unsetWhenBouncerOpen() [all …]
|
/frameworks/base/tests/testables/tests/src/android/testing/ |
D | TestableLooperTest.java | 139 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testMainLooper() local 142 testableLooper.setMessageHandler(m -> { in testMainLooper() 147 testableLooper.processAllMessages(); in testMainLooper() 152 testableLooper.destroy(); in testMainLooper() 174 TestableLooper testableLooper = new TestableLooper(Looper.getMainLooper()); in testCorrectLooperExecution() local 177 testableLooper.processAllMessages(); in testCorrectLooperExecution() 181 testableLooper.destroy(); in testCorrectLooperExecution()
|