First Step: CameraCapabilities intead of Parameter
To get rid of Camera.Parameters, we need to provide our own interfaces.
Camera.Parameters actually consists of 2 parts: capabilities and settings. We'll
provide two interfaces and will just use Camera.Parameters inside of
CameraManager implementations.
Change-Id: I53922b6d740835412d74365374a6a0382129564e
diff --git a/src/com/android/camera/debug/DebugCameraProxy.java b/src/com/android/camera/debug/DebugCameraProxy.java
index 5f9ba0e..c40e3ad 100644
--- a/src/com/android/camera/debug/DebugCameraProxy.java
+++ b/src/com/android/camera/debug/DebugCameraProxy.java
@@ -21,6 +21,7 @@
import android.os.Handler;
import android.view.SurfaceHolder;
+import com.android.camera.cameradevice.CameraCapabilities;
import com.android.camera.cameradevice.CameraManager;
/**
@@ -55,6 +56,12 @@
}
@Override
+ public CameraCapabilities getCapabilities() {
+ log("getCapabilities");
+ return mProxy.getCapabilities();
+ }
+
+ @Override
public void reconnect(Handler handler, CameraManager.CameraOpenCallback cb) {
log("reconnect");
mProxy.reconnect(handler, cb);