diff options
Diffstat (limited to 'core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java')
-rw-r--r-- | core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java b/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java index 4cd9414..abe26ea 100644 --- a/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java +++ b/core/java/android/hardware/camera2/legacy/CameraDeviceUserShim.java @@ -252,6 +252,11 @@ public class CameraDeviceUserShim implements ICameraDeviceUser { } @Override + public void onPrepared(int streamId) { + // TODO + } + + @Override public IBinder asBinder() { // This is solely intended to be used for in-process binding. return null; @@ -617,6 +622,19 @@ public class CameraDeviceUserShim implements ICameraDeviceUser { return CameraBinderDecorator.NO_ERROR; } + public int prepare(int streamId) { + if (DEBUG) { + Log.d(TAG, "prepare called."); + } + if (mLegacyDevice.isClosed()) { + Log.e(TAG, "Cannot prepare stream, device has been closed."); + return CameraBinderDecorator.ENODEV; + } + + // TODO: Implement and fire callback + return CameraBinderDecorator.NO_ERROR; + } + @Override public IBinder asBinder() { // This is solely intended to be used for in-process binding. |