Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27c94fca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "CameraService: don't skip device dump when there is no client"

parents f2b82782 2f140ed9
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -2793,11 +2793,7 @@ status_t CameraService::dump(int fd, const Vector<String16>& args) {
        }

        auto clientDescriptor = mActiveClientManager.get(cameraId);
        if (clientDescriptor == nullptr) {
            dprintf(fd, "  Device %s is closed, no client instance\n",
                    cameraId.string());
            continue;
        }
        if (clientDescriptor != nullptr) {
            dprintf(fd, "  Device %s is open. Client instance dump:\n",
                    cameraId.string());
            dprintf(fd, "    Client priority score: %d state: %d\n",
@@ -2810,6 +2806,10 @@ status_t CameraService::dump(int fd, const Vector<String16>& args) {
                    String8(client->getPackageName()).string());

            client->dumpClient(fd, args);
        } else {
            dprintf(fd, "  Device %s is closed, no client instance\n",
                    cameraId.string());
        }

        if (mModule != nullptr) {
            dprintf(fd, "== Camera HAL device %s static information: ==\n", cameraId.string());