| /** |
| * Copyright (c) 2021, The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| /////////////////////////////////////////////////////////////////////////////// |
| // THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE. // |
| /////////////////////////////////////////////////////////////////////////////// |
| |
| // This file is a snapshot of an AIDL file. Do not edit it manually. There are |
| // two cases: |
| // 1). this is a frozen version file - do not edit this in any case. |
| // 2). this is a 'current' file. If you make a backwards compatible change to |
| // the interface (from the latest frozen version), the build system will |
| // prompt you to update this file with `m <name>-update-api`. |
| // |
| // You must not make a backward incompatible change to any AIDL file built |
| // with the aidl_interface module type with versions property set. The module |
| // type is used to build AIDL files in a way that they can be used across |
| // independently updatable components of the system. If a device is shipped |
| // with such a backward incompatible change, it has a high risk of breaking |
| // later when a module using the interface is updated, e.g., Mainline modules. |
| |
| package android.hardware.graphics.composer3; |
| @VintfStability |
| interface IComposerClient { |
| long createLayer(long display, int bufferSlotCount); |
| android.hardware.graphics.composer3.VirtualDisplay createVirtualDisplay(int width, int height, android.hardware.graphics.common.PixelFormat formatHint, int outputBufferSlotCount); |
| void destroyLayer(long display, long layer); |
| void destroyVirtualDisplay(long display); |
| android.hardware.graphics.composer3.CommandResultPayload[] executeCommands(in android.hardware.graphics.composer3.DisplayCommand[] commands); |
| int getActiveConfig(long display); |
| android.hardware.graphics.composer3.ColorMode[] getColorModes(long display); |
| float[] getDataspaceSaturationMatrix(android.hardware.graphics.common.Dataspace dataspace); |
| int getDisplayAttribute(long display, int config, android.hardware.graphics.composer3.DisplayAttribute attribute); |
| boolean getDisplayBrightnessSupport(long display); |
| android.hardware.graphics.composer3.DisplayCapability[] getDisplayCapabilities(long display); |
| int[] getDisplayConfigs(long display); |
| android.hardware.graphics.composer3.DisplayConnectionType getDisplayConnectionType(long display); |
| android.hardware.graphics.composer3.DisplayIdentification getDisplayIdentificationData(long display); |
| String getDisplayName(long display); |
| int getDisplayVsyncPeriod(long display); |
| android.hardware.graphics.composer3.DisplayContentSample getDisplayedContentSample(long display, long maxFrames, long timestamp); |
| android.hardware.graphics.composer3.DisplayContentSamplingAttributes getDisplayedContentSamplingAttributes(long display); |
| boolean getDozeSupport(long display); |
| android.hardware.graphics.composer3.HdrCapabilities getHdrCapabilities(long display); |
| android.hardware.graphics.composer3.LayerGenericMetadataKey[] getLayerGenericMetadataKeys(); |
| int getMaxVirtualDisplayCount(); |
| android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display); |
| android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display); |
| ParcelFileDescriptor getReadbackBufferFence(long display); |
| android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode); |
| android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display); |
| void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback); |
| void setActiveConfig(long display, int config); |
| android.hardware.graphics.composer3.VsyncPeriodChangeTimeline setActiveConfigWithConstraints(long display, int config, in android.hardware.graphics.composer3.VsyncPeriodChangeConstraints vsyncPeriodChangeConstraints); |
| void setAutoLowLatencyMode(long display, boolean on); |
| void setClientTargetSlotCount(long display, int clientTargetSlotCount); |
| void setColorMode(long display, android.hardware.graphics.composer3.ColorMode mode, android.hardware.graphics.composer3.RenderIntent intent); |
| void setContentType(long display, android.hardware.graphics.composer3.ContentType type); |
| void setDisplayBrightness(long display, float brightness); |
| void setDisplayedContentSamplingEnabled(long display, boolean enable, android.hardware.graphics.composer3.FormatColorComponent componentMask, long maxFrames); |
| void setPowerMode(long display, android.hardware.graphics.composer3.PowerMode mode); |
| void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence); |
| void setVsyncEnabled(long display, boolean enabled); |
| const int EX_BAD_CONFIG = 1; |
| const int EX_BAD_DISPLAY = 2; |
| const int EX_BAD_LAYER = 3; |
| const int EX_BAD_PARAMETER = 4; |
| const int EX_RESERVED = 5; |
| const int EX_NO_RESOURCES = 6; |
| const int EX_NOT_VALIDATED = 7; |
| const int EX_UNSUPPORTED = 8; |
| const int EX_SEAMLESS_NOT_ALLOWED = 9; |
| const int EX_SEAMLESS_NOT_POSSIBLE = 10; |
| const int INVALID_CONFIGURATION = 2147483647; |
| } |