Loading libs/gui/SurfaceComposerClient.cpp +0 −10 Original line number Diff line number Diff line Loading @@ -1085,16 +1085,6 @@ std::vector<PhysicalDisplayId> SurfaceComposerClient::getPhysicalDisplayIds() { return physicalDisplayIds; } status_t SurfaceComposerClient::getPrimaryPhysicalDisplayId(PhysicalDisplayId* id) { int64_t displayId; binder::Status status = ComposerServiceAIDL::getComposerService()->getPrimaryPhysicalDisplayId(&displayId); if (status.isOk()) { *id = *DisplayId::fromValue<PhysicalDisplayId>(static_cast<uint64_t>(displayId)); } return statusTFromBinderStatus(status); } std::optional<PhysicalDisplayId> SurfaceComposerClient::getInternalDisplayId() { ComposerServiceAIDL& instance = ComposerServiceAIDL::getInstance(); return instance.getInternalDisplayId(); Loading libs/gui/aidl/android/gui/ISurfaceComposer.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -94,8 +94,6 @@ interface ISurfaceComposer { */ long[] getPhysicalDisplayIds(); long getPrimaryPhysicalDisplayId(); /** * Get token for a physical display given its stable ID obtained via getPhysicalDisplayIds or * a DisplayEventReceiver hotplug event. Loading libs/gui/fuzzer/libgui_fuzzer_utils.h +0 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ public: (override)); MOCK_METHOD(binder::Status, destroyDisplay, (const sp<IBinder>&), (override)); MOCK_METHOD(binder::Status, getPhysicalDisplayIds, (std::vector<int64_t>*), (override)); MOCK_METHOD(binder::Status, getPrimaryPhysicalDisplayId, (int64_t*), (override)); MOCK_METHOD(binder::Status, getPhysicalDisplayToken, (int64_t, sp<IBinder>*), (override)); MOCK_METHOD(binder::Status, setPowerMode, (const sp<IBinder>&, int), (override)); MOCK_METHOD(binder::Status, getSupportedFrameTimestamps, (std::vector<FrameEvent>*), Loading libs/gui/include/gui/SurfaceComposerClient.h +0 −1 Original line number Diff line number Diff line Loading @@ -351,7 +351,6 @@ public: //! Get stable IDs for connected physical displays static std::vector<PhysicalDisplayId> getPhysicalDisplayIds(); static status_t getPrimaryPhysicalDisplayId(PhysicalDisplayId*); static std::optional<PhysicalDisplayId> getInternalDisplayId(); //! Get token for a physical display given its stable ID Loading libs/gui/tests/Surface_test.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -745,10 +745,6 @@ public: return binder::Status::ok(); } binder::Status getPrimaryPhysicalDisplayId(int64_t* /*outDisplayId*/) override { return binder::Status::ok(); } binder::Status getPhysicalDisplayToken(int64_t /*displayId*/, sp<IBinder>* /*outDisplay*/) override { return binder::Status::ok(); Loading Loading
libs/gui/SurfaceComposerClient.cpp +0 −10 Original line number Diff line number Diff line Loading @@ -1085,16 +1085,6 @@ std::vector<PhysicalDisplayId> SurfaceComposerClient::getPhysicalDisplayIds() { return physicalDisplayIds; } status_t SurfaceComposerClient::getPrimaryPhysicalDisplayId(PhysicalDisplayId* id) { int64_t displayId; binder::Status status = ComposerServiceAIDL::getComposerService()->getPrimaryPhysicalDisplayId(&displayId); if (status.isOk()) { *id = *DisplayId::fromValue<PhysicalDisplayId>(static_cast<uint64_t>(displayId)); } return statusTFromBinderStatus(status); } std::optional<PhysicalDisplayId> SurfaceComposerClient::getInternalDisplayId() { ComposerServiceAIDL& instance = ComposerServiceAIDL::getInstance(); return instance.getInternalDisplayId(); Loading
libs/gui/aidl/android/gui/ISurfaceComposer.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -94,8 +94,6 @@ interface ISurfaceComposer { */ long[] getPhysicalDisplayIds(); long getPrimaryPhysicalDisplayId(); /** * Get token for a physical display given its stable ID obtained via getPhysicalDisplayIds or * a DisplayEventReceiver hotplug event. Loading
libs/gui/fuzzer/libgui_fuzzer_utils.h +0 −1 Original line number Diff line number Diff line Loading @@ -71,7 +71,6 @@ public: (override)); MOCK_METHOD(binder::Status, destroyDisplay, (const sp<IBinder>&), (override)); MOCK_METHOD(binder::Status, getPhysicalDisplayIds, (std::vector<int64_t>*), (override)); MOCK_METHOD(binder::Status, getPrimaryPhysicalDisplayId, (int64_t*), (override)); MOCK_METHOD(binder::Status, getPhysicalDisplayToken, (int64_t, sp<IBinder>*), (override)); MOCK_METHOD(binder::Status, setPowerMode, (const sp<IBinder>&, int), (override)); MOCK_METHOD(binder::Status, getSupportedFrameTimestamps, (std::vector<FrameEvent>*), Loading
libs/gui/include/gui/SurfaceComposerClient.h +0 −1 Original line number Diff line number Diff line Loading @@ -351,7 +351,6 @@ public: //! Get stable IDs for connected physical displays static std::vector<PhysicalDisplayId> getPhysicalDisplayIds(); static status_t getPrimaryPhysicalDisplayId(PhysicalDisplayId*); static std::optional<PhysicalDisplayId> getInternalDisplayId(); //! Get token for a physical display given its stable ID Loading
libs/gui/tests/Surface_test.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -745,10 +745,6 @@ public: return binder::Status::ok(); } binder::Status getPrimaryPhysicalDisplayId(int64_t* /*outDisplayId*/) override { return binder::Status::ok(); } binder::Status getPhysicalDisplayToken(int64_t /*displayId*/, sp<IBinder>* /*outDisplay*/) override { return binder::Status::ok(); Loading