ICameraDeviceUser.aidl revision 9c595174ccaaf3d36315c4a100e47ee4369073f6
1/*
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
17package android.hardware.camera2;
18
19import android.view.Surface;
20import android.hardware.camera2.impl.CameraMetadataNative;
21import android.hardware.camera2.CaptureRequest;
22
23import android.hardware.camera2.utils.LongParcelable;
24
25/** @hide */
26interface ICameraDeviceUser
27{
28    /**
29     * Keep up-to-date with frameworks/av/include/camera/camera2/ICameraDeviceUser.h
30     */
31    void disconnect();
32
33    // ints here are status_t
34
35    // non-negative value is the requestId. negative value is status_t
36    int submitRequest(in CaptureRequest request, boolean streaming,
37                      out LongParcelable lastFrameNumber);
38
39    int submitRequestList(in List<CaptureRequest> requestList, boolean streaming,
40                          out LongParcelable lastFrameNumber);
41
42    int cancelRequest(int requestId, out LongParcelable lastFrameNumber);
43
44    int deleteStream(int streamId);
45
46    // non-negative value is the stream ID. negative value is status_t
47    int createStream(int width, int height, int format, in Surface surface);
48
49    int createDefaultRequest(int templateId, out CameraMetadataNative request);
50
51    int getCameraInfo(out CameraMetadataNative info);
52
53    int waitUntilIdle();
54
55    int flush(out LongParcelable lastFrameNumber);
56}
57