OSDN Git Service

Camera2: Handle client processes dying by closing camera resources
authorIgor Murashkin <iam@google.com>
Tue, 2 Oct 2012 23:05:11 +0000 (16:05 -0700)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Wed, 3 Oct 2012 18:39:08 +0000 (11:39 -0700)
commitecf17e82505fdb60d59e00b6dd59036df93de655
tree4f03c5ed7a8596537815a5e46550abd1daed20b8
parent22d58d37db6b5f48a10b3a19f69ffda09943c125
Camera2: Handle client processes dying by closing camera resources

CameraService now subscribes to binder death notifications
for each client, and disconnects the client if the death happened
without cleanly shutting down the client first.

Bug: 7258314
Change-Id: I7803836b589fd8f0dfe00f6c28a707b82012e751
services/camera/libcameraservice/Camera2Client.cpp
services/camera/libcameraservice/Camera2Client.h
services/camera/libcameraservice/Camera2Device.cpp
services/camera/libcameraservice/CameraClient.cpp
services/camera/libcameraservice/CameraClient.h
services/camera/libcameraservice/CameraService.cpp
services/camera/libcameraservice/CameraService.h
services/camera/libcameraservice/camera2/CallbackProcessor.cpp
services/camera/libcameraservice/camera2/JpegProcessor.cpp
services/camera/libcameraservice/camera2/StreamingProcessor.cpp
services/camera/libcameraservice/camera2/ZslProcessor.cpp