blob: ca0935cce54efbaba47e1022b36b081c3ac8d0f2 [file] [log] [blame]
Igor Murashkin70725502013-06-25 20:27:06 +00001/*
2 * Copyright (C) 2013 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Eino-Ville Talvala2f1a2e42013-07-25 17:12:05 -070017package android.hardware.camera2;
Igor Murashkin70725502013-06-25 20:27:06 +000018
Eino-Ville Talvala70c22072013-08-27 12:09:04 -070019import android.hardware.camera2.impl.CameraMetadataNative;
Igor Murashkin72f9f0a2014-05-14 15:46:10 -070020import android.hardware.camera2.impl.CaptureResultExtras;
Igor Murashkin70725502013-06-25 20:27:06 +000021
22/** @hide */
23interface ICameraDeviceCallbacks
24{
25 /**
Eino-Ville Talvala2f1a2e42013-07-25 17:12:05 -070026 * Keep up-to-date with frameworks/av/include/camera/camera2/ICameraDeviceCallbacks.h
Igor Murashkin70725502013-06-25 20:27:06 +000027 */
28
Eino-Ville Talvalaacc00952014-08-06 14:31:08 -070029 oneway void onDeviceError(int errorCode, in CaptureResultExtras resultExtras);
30 oneway void onDeviceIdle();
Jianing Weid2c3a822014-03-27 18:27:43 -070031 oneway void onCaptureStarted(in CaptureResultExtras resultExtras, long timestamp);
32 oneway void onResultReceived(in CameraMetadataNative result,
33 in CaptureResultExtras resultExtras);
Igor Murashkin70725502013-06-25 20:27:06 +000034}