/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/ |
D | UiModeNightTileDataInteractorTest.kt | 64 @Mock private lateinit var uiModeManager: UiModeManager variable in com.android.systemui.qs.tiles.impl.uimodenight.domain.UiModeNightTileDataInteractorTest 69 uiModeManager = mock<UiModeManager>() in setup() 72 whenever(uiModeManager.customNightModeStart).thenReturn(LocalTime.MIN) in setup() 73 whenever(uiModeManager.customNightModeEnd).thenReturn(LocalTime.MAX) in setup() 79 uiModeManager, in setup() 89 whenever(uiModeManager.nightMode).thenReturn(expectedNightMode) in <lambda>() 108 verify(uiModeManager).nightMode in <lambda>() 109 verify(uiModeManager).nightModeCustomType in <lambda>() 110 verify(uiModeManager).customNightModeStart in <lambda>() 111 verify(uiModeManager).customNightModeEnd in <lambda>()
|
D | UiModeNightTileUserActionInteractorTest.kt | 51 @Mock private lateinit var uiModeManager: UiModeManager variable in com.android.systemui.qs.tiles.impl.uimodenight.domain.UiModeNightTileUserActionInteractorTest 55 uiModeManager = mock<UiModeManager>() in setup() 59 uiModeManager, in setup() 70 verify(uiModeManager).setNightModeActivated(!stateBeforeClick) in <lambda>() 79 verify(uiModeManager).setNightModeActivated(!stateBeforeClick) in <lambda>() 89 verify(uiModeManager, never()).setNightModeActivated(any()) in <lambda>() 99 verify(uiModeManager, never()).setNightModeActivated(any()) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/ |
D | UiModeNightTileDataInteractor.kt | 43 private val uiModeManager: UiModeManager, constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.interactor.UiModeNightTileDataInteractor 89 val uiMode = uiModeManager.nightMode in createModel() 95 val nightModeCustomType = uiModeManager.nightModeCustomType in createModel() 97 val customNightModeEnd = uiModeManager.customNightModeEnd in createModel() 98 val customNightModeStart = uiModeManager.customNightModeStart in createModel()
|
D | UiModeNightTileUserActionInteractor.kt | 37 private val uiModeManager: UiModeManager, constant in com.android.systemui.qs.tiles.impl.uimodenight.domain.interactor.UiModeNightTileUserActionInteractor 47 uiModeManager.setNightModeActivated(!input.data.isNightMode) in handleInput()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | DisableCarModeActivity.java | 34 IUiModeManager uiModeManager = IUiModeManager.Stub.asInterface( in onCreate() local 36 uiModeManager.disableCarModeByCallingPackage(UiModeManager.DISABLE_CAR_MODE_GO_HOME in onCreate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | UiModeNightTileTest.kt | 56 @Mock private lateinit var uiModeManager: UiModeManager variable in com.android.systemui.qs.tiles.UiModeNightTileTest 78 mContext.addMockSystemService(UiModeManager::class.java, uiModeManager) in setUp() 131 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_YES) in setNightModeOn() 136 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_NO) in setNightModeOff()
|
/frameworks/base/core/java/android/app/ |
D | SearchManager.java | 631 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in startSearch() local 633 if (uiModeManager.getCurrentModeType() != Configuration.UI_MODE_TYPE_TELEVISION) { in startSearch()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootImplTest.java | 160 var uiModeManager = sContext.getSystemService(UiModeManager.class); in teardown() local 161 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in teardown() 1378 var uiModeManager = sContext.getSystemService(UiModeManager.class); in forceInvertOffDarkThemeOff_forceDarkModeDisabled() local 1379 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in forceInvertOffDarkThemeOff_forceDarkModeDisabled() 1398 var uiModeManager = sContext.getSystemService(UiModeManager.class); in forceInvertOnDarkThemeOff_forceDarkModeEnabled() local 1399 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in forceInvertOnDarkThemeOff_forceDarkModeEnabled()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverPolicy.java | 300 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in systemReady() local 301 uiModeManager.addOnProjectionStateChangedListener(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE, in systemReady() 304 uiModeManager.getActiveProjectionTypes() != UiModeManager.PROJECTION_TYPE_NONE); in systemReady()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 415 UiModeManager uiModeManager, in ThemeOverlayController() argument 434 mUiModeManager = uiModeManager; in ThemeOverlayController()
|