Loading graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/IComposer.aidl +0 −1 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,6 @@ package android.hardware.graphics.composer3; @VintfStability @VintfStability interface IComposer { interface IComposer { android.hardware.graphics.composer3.IComposerClient createClient(); android.hardware.graphics.composer3.IComposerClient createClient(); String dumpDebugInfo(); android.hardware.graphics.composer3.Capability[] getCapabilities(); android.hardware.graphics.composer3.Capability[] getCapabilities(); const int EX_NO_RESOURCES = 6; const int EX_NO_RESOURCES = 6; } } graphics/composer/aidl/android/hardware/graphics/composer3/IComposer.aidl +0 −8 Original line number Original line Diff line number Diff line Loading @@ -35,14 +35,6 @@ interface IComposer { */ */ IComposerClient createClient(); IComposerClient createClient(); /** * Retrieves implementation-defined debug information, which will be * displayed during, for example, `dumpsys SurfaceFlinger`. * * @return is a string of debug information. */ String dumpDebugInfo(); /** /** * Provides a list of supported capabilities (as described in the * Provides a list of supported capabilities (as described in the * definition of Capability above). This list must not change after * definition of Capability above). This list must not change after Loading graphics/composer/aidl/android/hardware/graphics/composer3/vts/functional/composer-vts/VtsComposerClient.cpp +9 −2 Original line number Original line Diff line number Diff line Loading @@ -173,8 +173,15 @@ std::pair<ScopedAStatus, std::vector<DisplayCapability>> VtsComposerClient::getD } } ScopedAStatus VtsComposerClient::dumpDebugInfo() { ScopedAStatus VtsComposerClient::dumpDebugInfo() { std::string debugInfo; int pipefds[2]; return mComposer->dumpDebugInfo(&debugInfo); if (pipe(pipefds) < 0) { return ScopedAStatus::fromServiceSpecificError(IComposer::EX_NO_RESOURCES); } const auto status = mComposer->dump(pipefds[1], /*args*/ nullptr, /*numArgs*/ 0); close(pipefds[0]); close(pipefds[1]); return ScopedAStatus::fromStatus(status); } } std::pair<ScopedAStatus, DisplayIdentification> VtsComposerClient::getDisplayIdentificationData( std::pair<ScopedAStatus, DisplayIdentification> VtsComposerClient::getDisplayIdentificationData( Loading Loading
graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/current/android/hardware/graphics/composer3/IComposer.aidl +0 −1 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,6 @@ package android.hardware.graphics.composer3; @VintfStability @VintfStability interface IComposer { interface IComposer { android.hardware.graphics.composer3.IComposerClient createClient(); android.hardware.graphics.composer3.IComposerClient createClient(); String dumpDebugInfo(); android.hardware.graphics.composer3.Capability[] getCapabilities(); android.hardware.graphics.composer3.Capability[] getCapabilities(); const int EX_NO_RESOURCES = 6; const int EX_NO_RESOURCES = 6; } }
graphics/composer/aidl/android/hardware/graphics/composer3/IComposer.aidl +0 −8 Original line number Original line Diff line number Diff line Loading @@ -35,14 +35,6 @@ interface IComposer { */ */ IComposerClient createClient(); IComposerClient createClient(); /** * Retrieves implementation-defined debug information, which will be * displayed during, for example, `dumpsys SurfaceFlinger`. * * @return is a string of debug information. */ String dumpDebugInfo(); /** /** * Provides a list of supported capabilities (as described in the * Provides a list of supported capabilities (as described in the * definition of Capability above). This list must not change after * definition of Capability above). This list must not change after Loading
graphics/composer/aidl/android/hardware/graphics/composer3/vts/functional/composer-vts/VtsComposerClient.cpp +9 −2 Original line number Original line Diff line number Diff line Loading @@ -173,8 +173,15 @@ std::pair<ScopedAStatus, std::vector<DisplayCapability>> VtsComposerClient::getD } } ScopedAStatus VtsComposerClient::dumpDebugInfo() { ScopedAStatus VtsComposerClient::dumpDebugInfo() { std::string debugInfo; int pipefds[2]; return mComposer->dumpDebugInfo(&debugInfo); if (pipe(pipefds) < 0) { return ScopedAStatus::fromServiceSpecificError(IComposer::EX_NO_RESOURCES); } const auto status = mComposer->dump(pipefds[1], /*args*/ nullptr, /*numArgs*/ 0); close(pipefds[0]); close(pipefds[1]); return ScopedAStatus::fromStatus(status); } } std::pair<ScopedAStatus, DisplayIdentification> VtsComposerClient::getDisplayIdentificationData( std::pair<ScopedAStatus, DisplayIdentification> VtsComposerClient::getDisplayIdentificationData( Loading