Home
last modified time | relevance | path

Searched refs:uiModeManager (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt56 @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/com/android/internal/app/
DDisableCarModeActivity.java34 IUiModeManager uiModeManager = IUiModeManager.Stub.asInterface( in onCreate() local
36 uiModeManager.disableCarModeByCallingPackage(UiModeManager.DISABLE_CAR_MODE_GO_HOME in onCreate()
/frameworks/base/core/java/android/app/
DSearchManager.java631 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in startSearch() local
633 if (uiModeManager.getCurrentModeType() != Configuration.UI_MODE_TYPE_TELEVISION) { in startSearch()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java294 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in systemReady() local
295 uiModeManager.addOnProjectionStateChangedListener(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE, in systemReady()
298 uiModeManager.getActiveProjectionTypes() != UiModeManager.PROJECTION_TYPE_NONE); in systemReady()