Searched refs:mBrightnessSetting (Results 1 – 2 of 2) sorted by relevance
77 private BrightnessSetting mBrightnessSetting; field in DisplayBrightnessControllerTest101 when(mBrightnessSetting.getBrightness()).thenReturn(Float.NaN); in before()102 when(mBrightnessSetting.getBrightnessNitsForDefaultDisplay()).thenReturn(-1f); in before()107 DISPLAY_ID, DEFAULT_BRIGHTNESS, mBrightnessSetting, mOnBrightnessChangeRunnable, in before()228 verify(mBrightnessSetting).registerListener(brightnessSettingListener); in registerBrightnessSettingChangeListener()238 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()244 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()251 when(mBrightnessSetting.getBrightness()).thenReturn(brightnessSetting); in getScreenBrightnessSetting()261 verify(mBrightnessSetting).setBrightness(brightnessValue); in setBrightnessSetsInBrightnessSetting()267 verify(mBrightnessSetting).getBrightness(); in updateScreenBrightnessSetting()[all …]
60 private final BrightnessSetting mBrightnessSetting; field in DisplayBrightnessController125 mBrightnessSetting = brightnessSetting; in DisplayBrightnessController()287 mBrightnessSetting.registerListener(mBrightnessSettingListener); in registerBrightnessSettingChangeListener()304 float brightness = mBrightnessSetting.getBrightness(); in getScreenBrightnessSetting()319 mBrightnessSetting.setBrightness(brightnessValue); in setBrightness()322 float currentlyStoredNits = mBrightnessSetting.getBrightnessNitsForDefaultDisplay(); in setBrightness()328 mBrightnessSetting.setBrightnessNitsForDefaultDisplay(nits); in setBrightness()337 mBrightnessSetting.setUserSerial(userSerial); in setBrightness()428 if (mBrightnessSetting != null) { in stop()429 mBrightnessSetting.unregisterListener(mBrightnessSettingListener); in stop()[all …]