Loading graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/IComposerClient.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -56,7 +56,7 @@ interface IComposerClient { int getMaxVirtualDisplayCount(); int getMaxVirtualDisplayCount(); android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display); android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display); android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display); android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display); ParcelFileDescriptor getReadbackBufferFence(long display); @nullable ParcelFileDescriptor getReadbackBufferFence(long display); android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode); android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode); android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display); android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display); void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback); void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback); Loading @@ -69,7 +69,7 @@ interface IComposerClient { void setDisplayBrightness(long display, float brightness); void setDisplayBrightness(long display, float brightness); void setDisplayedContentSamplingEnabled(long display, boolean enable, android.hardware.graphics.composer3.FormatColorComponent componentMask, long maxFrames); 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 setPowerMode(long display, android.hardware.graphics.composer3.PowerMode mode); void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence); void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in @nullable ParcelFileDescriptor releaseFence); void setVsyncEnabled(long display, boolean enabled); void setVsyncEnabled(long display, boolean enabled); const int EX_BAD_CONFIG = 1; const int EX_BAD_CONFIG = 1; const int EX_BAD_DISPLAY = 2; const int EX_BAD_DISPLAY = 2; Loading graphics/composer/aidl/android/hardware/graphics/composer3/IComposerClient.aidl +8 −5 Original line number Original line Diff line number Diff line Loading @@ -479,7 +479,7 @@ interface IComposerClient { * getReadbackBufferAttributes * getReadbackBufferAttributes * setReadbackBuffer * setReadbackBuffer */ */ ParcelFileDescriptor getReadbackBufferFence(long display); @nullable ParcelFileDescriptor getReadbackBufferFence(long display); /** /** * Returns the render intents supported by the specified display and color * Returns the render intents supported by the specified display and color Loading Loading @@ -702,13 +702,15 @@ interface IComposerClient { * This buffer must have been allocated as described in * This buffer must have been allocated as described in * getReadbackBufferAttributes and is in the dataspace provided by the same. * getReadbackBufferAttributes and is in the dataspace provided by the same. * * * Also provides a file descriptor referring to a release sync fence * object, which must be signaled when it is safe to write to the readback * buffer. If it is already safe to write to the readback buffer, null may be passed instead. * * If there is hardware protected content on the display at the time of the next * If there is hardware protected content on the display at the time of the next * composition, the area of the readback buffer covered by such content must be * composition, the area of the readback buffer covered by such content must be * completely black. Any areas of the buffer not covered by such content may * completely black. Any areas of the buffer not covered by such content may * optionally be black as well. * optionally be black as well. * * * The release fence file descriptor provided works identically to the one * described for setOutputBuffer. * * * This function must not be called between any call to validateDisplay and a * This function must not be called between any call to validateDisplay and a * subsequent call to presentDisplay. * subsequent call to presentDisplay. Loading @@ -716,7 +718,8 @@ interface IComposerClient { * Parameters: * Parameters: * @param display - the display on which to create the layer. * @param display - the display on which to create the layer. * @param buffer - the new readback buffer * @param buffer - the new readback buffer * @param releaseFence - a sync fence file descriptor as described in setOutputBuffer * @param releaseFence - a sync fence file descriptor as described above or null if it is * already safe to write to the readback buffer. * * * @exception EX_BAD_DISPLAY - an invalid display handle was passed in * @exception EX_BAD_DISPLAY - an invalid display handle was passed in * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid Loading @@ -726,7 +729,7 @@ interface IComposerClient { * getReadbackBufferFence * getReadbackBufferFence */ */ void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence); in @nullable ParcelFileDescriptor releaseFence); /** /** * Enables or disables the vsync signal for the given display. Virtual * Enables or disables the vsync signal for the given display. Virtual Loading Loading
graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/IComposerClient.aidl +2 −2 Original line number Original line Diff line number Diff line Loading @@ -56,7 +56,7 @@ interface IComposerClient { int getMaxVirtualDisplayCount(); int getMaxVirtualDisplayCount(); android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display); android.hardware.graphics.composer3.PerFrameMetadataKey[] getPerFrameMetadataKeys(long display); android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display); android.hardware.graphics.composer3.ReadbackBufferAttributes getReadbackBufferAttributes(long display); ParcelFileDescriptor getReadbackBufferFence(long display); @nullable ParcelFileDescriptor getReadbackBufferFence(long display); android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode); android.hardware.graphics.composer3.RenderIntent[] getRenderIntents(long display, android.hardware.graphics.composer3.ColorMode mode); android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display); android.hardware.graphics.composer3.ContentType[] getSupportedContentTypes(long display); void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback); void registerCallback(in android.hardware.graphics.composer3.IComposerCallback callback); Loading @@ -69,7 +69,7 @@ interface IComposerClient { void setDisplayBrightness(long display, float brightness); void setDisplayBrightness(long display, float brightness); void setDisplayedContentSamplingEnabled(long display, boolean enable, android.hardware.graphics.composer3.FormatColorComponent componentMask, long maxFrames); 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 setPowerMode(long display, android.hardware.graphics.composer3.PowerMode mode); void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence); void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in @nullable ParcelFileDescriptor releaseFence); void setVsyncEnabled(long display, boolean enabled); void setVsyncEnabled(long display, boolean enabled); const int EX_BAD_CONFIG = 1; const int EX_BAD_CONFIG = 1; const int EX_BAD_DISPLAY = 2; const int EX_BAD_DISPLAY = 2; Loading
graphics/composer/aidl/android/hardware/graphics/composer3/IComposerClient.aidl +8 −5 Original line number Original line Diff line number Diff line Loading @@ -479,7 +479,7 @@ interface IComposerClient { * getReadbackBufferAttributes * getReadbackBufferAttributes * setReadbackBuffer * setReadbackBuffer */ */ ParcelFileDescriptor getReadbackBufferFence(long display); @nullable ParcelFileDescriptor getReadbackBufferFence(long display); /** /** * Returns the render intents supported by the specified display and color * Returns the render intents supported by the specified display and color Loading Loading @@ -702,13 +702,15 @@ interface IComposerClient { * This buffer must have been allocated as described in * This buffer must have been allocated as described in * getReadbackBufferAttributes and is in the dataspace provided by the same. * getReadbackBufferAttributes and is in the dataspace provided by the same. * * * Also provides a file descriptor referring to a release sync fence * object, which must be signaled when it is safe to write to the readback * buffer. If it is already safe to write to the readback buffer, null may be passed instead. * * If there is hardware protected content on the display at the time of the next * If there is hardware protected content on the display at the time of the next * composition, the area of the readback buffer covered by such content must be * composition, the area of the readback buffer covered by such content must be * completely black. Any areas of the buffer not covered by such content may * completely black. Any areas of the buffer not covered by such content may * optionally be black as well. * optionally be black as well. * * * The release fence file descriptor provided works identically to the one * described for setOutputBuffer. * * * This function must not be called between any call to validateDisplay and a * This function must not be called between any call to validateDisplay and a * subsequent call to presentDisplay. * subsequent call to presentDisplay. Loading @@ -716,7 +718,8 @@ interface IComposerClient { * Parameters: * Parameters: * @param display - the display on which to create the layer. * @param display - the display on which to create the layer. * @param buffer - the new readback buffer * @param buffer - the new readback buffer * @param releaseFence - a sync fence file descriptor as described in setOutputBuffer * @param releaseFence - a sync fence file descriptor as described above or null if it is * already safe to write to the readback buffer. * * * @exception EX_BAD_DISPLAY - an invalid display handle was passed in * @exception EX_BAD_DISPLAY - an invalid display handle was passed in * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid * @exception EX_BAD_PARAMETER - the new readback buffer handle was invalid Loading @@ -726,7 +729,7 @@ interface IComposerClient { * getReadbackBufferFence * getReadbackBufferFence */ */ void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, void setReadbackBuffer(long display, in android.hardware.common.NativeHandle buffer, in ParcelFileDescriptor releaseFence); in @nullable ParcelFileDescriptor releaseFence); /** /** * Enables or disables the vsync signal for the given display. Virtual * Enables or disables the vsync signal for the given display. Virtual Loading