Searched refs:mUiModeManager (Results 1 – 2 of 2) sorted by relevance
48 private final UiModeManager mUiModeManager; field in CarNightService73 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()
47 @Mock UiModeManager mUiModeManager; field in SystemStateProviderTest74 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()