OSDN Git Service

Refactor CameraManager hierarchy to support new implementations
authorSol Boucher <solb@google.com>
Mon, 9 Jun 2014 21:37:08 +0000 (14:37 -0700)
committerSol Boucher <solb@google.com>
Tue, 10 Jun 2014 03:55:50 +0000 (20:55 -0700)
commit514d6872acfcbf683f72bd9a4a67480b08e576c6
tree3152f6ba96bd88dc01ef879f3249e76fa380eb55
parent6b81277e6135961cdd4bc39f44cebf617dc019c6
Refactor CameraManager hierarchy to support new implementations

This relocates several components of the implementation class
AndroidCameraManagerImpl to higher levels in the inheritence hierarchy, where
they can be reused by other implementations of the CameraManager interface:
 - AndroidCameraManager.DispatchThread is moved into its own file
 - The core (history-tracking) pieces of CameraManager.CameraHandler are moved
   into their own HistoryHandler class, which the former is made to inherit
 - The constants defined in AndroidCameraManagerImpl for use in its nested
   CameraHandler class are moved into a separate class called CameraActions
 - AndroidCameraManagerImpl.CameraStateHolder is moved into its own file
 - Those CallbackForward classes that aren't tied to Android's Camera1 API are
   moved directly into the CameraManager interface

Change-Id: I5f3e1eb72039a0018ce2277e3ec6289bfa4ccec3
src/com/android/camera/cameradevice/AndroidCameraManagerImpl.java
src/com/android/camera/cameradevice/CameraActions.java [new file with mode: 0644]
src/com/android/camera/cameradevice/CameraManager.java
src/com/android/camera/cameradevice/CameraStateHolder.java [new file with mode: 0644]
src/com/android/camera/cameradevice/DispatchThread.java [new file with mode: 0644]
src/com/android/camera/cameradevice/HistoryHandler.java [new file with mode: 0644]