1 /* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.hardware.display; 18 19 import android.hardware.display.Time; 20 21 /** @hide */ 22 interface IColorDisplayManager { isDeviceColorManaged()23 boolean isDeviceColorManaged(); 24 setSaturationLevel(int saturationLevel)25 boolean setSaturationLevel(int saturationLevel); 26 @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS") setAppSaturationLevel(String packageName, int saturationLevel)27 boolean setAppSaturationLevel(String packageName, int saturationLevel); 28 @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS") isSaturationActivated()29 boolean isSaturationActivated(); 30 31 @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS") getTransformCapabilities()32 int getTransformCapabilities(); 33 isNightDisplayActivated()34 boolean isNightDisplayActivated(); setNightDisplayActivated(boolean activated)35 boolean setNightDisplayActivated(boolean activated); getNightDisplayColorTemperature()36 int getNightDisplayColorTemperature(); setNightDisplayColorTemperature(int temperature)37 boolean setNightDisplayColorTemperature(int temperature); getNightDisplayAutoMode()38 int getNightDisplayAutoMode(); getNightDisplayAutoModeRaw()39 int getNightDisplayAutoModeRaw(); setNightDisplayAutoMode(int autoMode)40 boolean setNightDisplayAutoMode(int autoMode); getNightDisplayCustomStartTime()41 Time getNightDisplayCustomStartTime(); setNightDisplayCustomStartTime(in Time time)42 boolean setNightDisplayCustomStartTime(in Time time); getNightDisplayCustomEndTime()43 Time getNightDisplayCustomEndTime(); setNightDisplayCustomEndTime(in Time time)44 boolean setNightDisplayCustomEndTime(in Time time); 45 getColorMode()46 int getColorMode(); setColorMode(int colorMode)47 void setColorMode(int colorMode); 48 isDisplayWhiteBalanceEnabled()49 boolean isDisplayWhiteBalanceEnabled(); setDisplayWhiteBalanceEnabled(boolean enabled)50 boolean setDisplayWhiteBalanceEnabled(boolean enabled); 51 isReduceBrightColorsActivated()52 boolean isReduceBrightColorsActivated(); setReduceBrightColorsActivated(boolean activated)53 boolean setReduceBrightColorsActivated(boolean activated); getReduceBrightColorsStrength()54 int getReduceBrightColorsStrength(); setReduceBrightColorsStrength(int strength)55 boolean setReduceBrightColorsStrength(int strength); getReduceBrightColorsOffsetFactor()56 float getReduceBrightColorsOffsetFactor(); 57 }