• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 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 
17 package com.android.camera.hardware;
18 
19 /**
20  * HardwareSpec is a interface for specifying whether
21  * high-level features are supported by the camera device
22  * hardware limitations.
23  */
24 public interface HardwareSpec {
25 
26     /**
27      * Returns whether a front facing camera is available
28      * on the current hardware.
29      */
isFrontCameraSupported()30     public boolean isFrontCameraSupported();
31 
32     /**
33      * Returns whether hdr scene mode is supported on the
34      * current hardware.
35      */
isHdrSupported()36     public boolean isHdrSupported();
37 
38     /**
39      * Returns whether hdr plus is supported on the current
40      * hardware.
41      */
isHdrPlusSupported()42     public boolean isHdrPlusSupported();
43 
44     /**
45      * Returns whether flash is supported and has more than
46      * one supported setting.  If flash is supported but is
47      * always off, this method should return false.
48      */
isFlashSupported()49     public boolean isFlashSupported();
50 }