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();
35     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setNightDisplayActivated(boolean activated)36     boolean setNightDisplayActivated(boolean activated);
getNightDisplayColorTemperature()37     int getNightDisplayColorTemperature();
38     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setNightDisplayColorTemperature(int temperature)39     boolean setNightDisplayColorTemperature(int temperature);
40     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
getNightDisplayAutoMode()41     int getNightDisplayAutoMode();
getNightDisplayAutoModeRaw()42     int getNightDisplayAutoModeRaw();
43     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setNightDisplayAutoMode(int autoMode)44     boolean setNightDisplayAutoMode(int autoMode);
getNightDisplayCustomStartTime()45     Time getNightDisplayCustomStartTime();
46     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setNightDisplayCustomStartTime(in Time time)47     boolean setNightDisplayCustomStartTime(in Time time);
getNightDisplayCustomEndTime()48     Time getNightDisplayCustomEndTime();
49     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setNightDisplayCustomEndTime(in Time time)50     boolean setNightDisplayCustomEndTime(in Time time);
51 
getColorMode()52     int getColorMode();
53     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setColorMode(int colorMode)54     void setColorMode(int colorMode);
55 
isDisplayWhiteBalanceEnabled()56     boolean isDisplayWhiteBalanceEnabled();
57     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setDisplayWhiteBalanceEnabled(boolean enabled)58     boolean setDisplayWhiteBalanceEnabled(boolean enabled);
59 
isReduceBrightColorsActivated()60     boolean isReduceBrightColorsActivated();
61     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setReduceBrightColorsActivated(boolean activated)62     boolean setReduceBrightColorsActivated(boolean activated);
getReduceBrightColorsStrength()63     int getReduceBrightColorsStrength();
64     @EnforcePermission("CONTROL_DISPLAY_COLOR_TRANSFORMS")
setReduceBrightColorsStrength(int strength)65     boolean setReduceBrightColorsStrength(int strength);
getReduceBrightColorsOffsetFactor()66     float getReduceBrightColorsOffsetFactor();
67 }