Home
last modified time | relevance | path

Searched refs:mUiModeManager (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DCarNightService.java48 private final UiModeManager mUiModeManager; field in CarNightService
73 if (mUiModeManager != null && (mForcedMode == FORCED_SENSOR_MODE)) { in handleSensorEvent()
74 mUiModeManager.setNightMode(mNightSetting); in handleSensorEvent()
80 if (mUiModeManager == null) { in forceDayNightMode()
101 mUiModeManager.setNightMode(resultMode); in forceDayNightMode()
102 return mUiModeManager.getNightMode(); in forceDayNightMode()
108 mUiModeManager = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in CarNightService()
109 if (mUiModeManager == null) { in CarNightService()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateProviderTest.java47 @Mock UiModeManager mUiModeManager; field in SystemStateProviderTest
74 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_True()
75 when(mUiModeManager.getCurrentModeType()).thenReturn(Configuration.UI_MODE_TYPE_CAR); in testQuerySystemForCarMode_True()
81 when(mContext.getSystemService(Context.UI_MODE_SERVICE)).thenReturn(mUiModeManager); in testQuerySystemForCarMode_False()
82 when(mUiModeManager.getCurrentModeType()).thenReturn(Configuration.UI_MODE_TYPE_NORMAL); in testQuerySystemForCarMode_False()