• 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.testingcamera2.v1;
18 
19 public class CameraManualControls {
20     private int mSensitivity;
21     private long mExposure;
22     private long mFrameDuration;
23     private boolean mManualControlEnabled;
24 
CameraManualControls()25     public CameraManualControls() {
26         mSensitivity = 100;
27         mExposure = 10000000L;
28         mFrameDuration = 50000000L;
29         mManualControlEnabled = false;
30     }
31 
getSensitivity()32     public int getSensitivity() {
33         return mSensitivity;
34     }
35 
setSensitivity(int sensitivity)36     public void setSensitivity(int sensitivity) {
37         this.mSensitivity = sensitivity;
38     }
39 
getExposure()40     public long getExposure() {
41         return mExposure;
42     }
43 
setExposure(long exposure)44     public void setExposure(long exposure) {
45         mExposure = exposure;
46     }
47 
getFrameDuration()48     public long getFrameDuration() {
49         return mFrameDuration;
50     }
51 
setFrameDuration(long frameDuration)52     public void setFrameDuration(long frameDuration) {
53         mFrameDuration = frameDuration;
54     }
55 
isManualControlEnabled()56     public boolean isManualControlEnabled() {
57         return mManualControlEnabled;
58     }
59 
setManualControlEnabled(boolean manualControlEnabled)60     public void setManualControlEnabled(boolean manualControlEnabled) {
61         mManualControlEnabled = manualControlEnabled;
62     }
63 }