Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 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 | |
| 17 | package android.hardware.photography; |
| 18 | |
| 19 | import static android.hardware.photography.CameraMetadata.Key; |
| 20 | |
| 21 | /** |
| 22 | * ! Do not edit this file directly ! |
| 23 | * |
| 24 | * Generated automatically from CaptureRequestKeys.mako |
| 25 | * |
| 26 | * TODO: Include a hash of the input files here that the build can check. |
| 27 | */ |
| 28 | |
| 29 | /** |
| 30 | * The base class for camera controls and information. |
| 31 | * |
| 32 | * This class defines the basic key/value map used for querying for camera |
| 33 | * characteristics or capture results, and for setting camera request |
| 34 | * parameters. |
| 35 | * |
| 36 | * @see CaptureRequest |
| 37 | * @see CameraMetadata |
| 38 | * @hide |
| 39 | **/ |
| 40 | public final class CaptureRequestKeys { |
| 41 | public static final class ColorCorrection { |
| 42 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 43 | public static final class ModeKey extends Key<ColorCorrection.ModeKey.Enum> { |
| 44 | public enum Enum { |
| 45 | TRANSFORM_MATRIX, |
| 46 | FAST, |
| 47 | HIGH_QUALITY; |
| 48 | } |
| 49 | |
| 50 | public static final Enum TRANSFORM_MATRIX = Enum.TRANSFORM_MATRIX; |
| 51 | public static final Enum FAST = Enum.FAST; |
| 52 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 53 | |
| 54 | // TODO: remove requirement for constructor by making Key an interface |
| 55 | private ModeKey(String name) { |
| 56 | super(name, ColorCorrection.ModeKey.Enum.class); |
| 57 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 58 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 59 | } |
| 60 | |
| 61 | public static final Key<ColorCorrection.ModeKey.Enum> MODE = |
| 62 | new ModeKey("android.colorCorrection.mode"); |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 63 | public static final Key<Rational[]> TRANSFORM = |
| 64 | new Key<Rational[]>("android.colorCorrection.transform", Rational[].class); |
| 65 | public static final Key<float[]> GAINS = |
| 66 | new Key<float[]>("android.colorCorrection.gains", float[].class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 67 | |
| 68 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 69 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 70 | public static final class Control { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 71 | |
| 72 | public static final class AeAntibandingModeKey extends Key<Control.AeAntibandingModeKey.Enum> { |
| 73 | public enum Enum { |
| 74 | OFF, |
| 75 | _50HZ, |
| 76 | _60HZ, |
| 77 | AUTO; |
| 78 | } |
| 79 | |
| 80 | public static final Enum OFF = Enum.OFF; |
| 81 | public static final Enum _50HZ = Enum._50HZ; |
| 82 | public static final Enum _60HZ = Enum._60HZ; |
| 83 | public static final Enum AUTO = Enum.AUTO; |
| 84 | |
| 85 | // TODO: remove requirement for constructor by making Key an interface |
| 86 | private AeAntibandingModeKey(String name) { |
| 87 | super(name, Control.AeAntibandingModeKey.Enum.class); |
| 88 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 89 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 90 | } |
| 91 | |
| 92 | public static final Key<Control.AeAntibandingModeKey.Enum> AE_ANTIBANDING_MODE = |
| 93 | new AeAntibandingModeKey("android.control.aeAntibandingMode"); |
| 94 | public static final Key<Integer> AE_EXPOSURE_COMPENSATION = |
| 95 | new Key<Integer>("android.control.aeExposureCompensation", int.class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 96 | public static final Key<Boolean> AE_LOCK = |
| 97 | new Key<Boolean>("android.control.aeLock", boolean.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 98 | |
| 99 | public static final class AeModeKey extends Key<Control.AeModeKey.Enum> { |
| 100 | public enum Enum { |
| 101 | OFF, |
| 102 | ON, |
| 103 | ON_AUTO_FLASH, |
| 104 | ON_ALWAYS_FLASH, |
| 105 | ON_AUTO_FLASH_REDEYE; |
| 106 | } |
| 107 | |
| 108 | public static final Enum OFF = Enum.OFF; |
| 109 | public static final Enum ON = Enum.ON; |
| 110 | public static final Enum ON_AUTO_FLASH = Enum.ON_AUTO_FLASH; |
| 111 | public static final Enum ON_ALWAYS_FLASH = Enum.ON_ALWAYS_FLASH; |
| 112 | public static final Enum ON_AUTO_FLASH_REDEYE = Enum.ON_AUTO_FLASH_REDEYE; |
| 113 | |
| 114 | // TODO: remove requirement for constructor by making Key an interface |
| 115 | private AeModeKey(String name) { |
| 116 | super(name, Control.AeModeKey.Enum.class); |
| 117 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 118 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | public static final Key<Control.AeModeKey.Enum> AE_MODE = |
| 122 | new AeModeKey("android.control.aeMode"); |
| 123 | public static final Key<int[]> AE_REGIONS = |
| 124 | new Key<int[]>("android.control.aeRegions", int[].class); |
| 125 | public static final Key<int[]> AE_TARGET_FPS_RANGE = |
| 126 | new Key<int[]>("android.control.aeTargetFpsRange", int[].class); |
| 127 | |
| 128 | public static final class AePrecaptureTriggerKey extends Key<Control.AePrecaptureTriggerKey.Enum> { |
| 129 | public enum Enum { |
| 130 | IDLE, |
| 131 | START; |
| 132 | } |
| 133 | |
| 134 | public static final Enum IDLE = Enum.IDLE; |
| 135 | public static final Enum START = Enum.START; |
| 136 | |
| 137 | // TODO: remove requirement for constructor by making Key an interface |
| 138 | private AePrecaptureTriggerKey(String name) { |
| 139 | super(name, Control.AePrecaptureTriggerKey.Enum.class); |
| 140 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 141 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | public static final Key<Control.AePrecaptureTriggerKey.Enum> AE_PRECAPTURE_TRIGGER = |
| 145 | new AePrecaptureTriggerKey("android.control.aePrecaptureTrigger"); |
| 146 | |
| 147 | public static final class AfModeKey extends Key<Control.AfModeKey.Enum> { |
| 148 | public enum Enum { |
| 149 | OFF, |
| 150 | AUTO, |
| 151 | MACRO, |
| 152 | CONTINUOUS_VIDEO, |
| 153 | CONTINUOUS_PICTURE, |
| 154 | EDOF; |
| 155 | } |
| 156 | |
| 157 | public static final Enum OFF = Enum.OFF; |
| 158 | public static final Enum AUTO = Enum.AUTO; |
| 159 | public static final Enum MACRO = Enum.MACRO; |
| 160 | public static final Enum CONTINUOUS_VIDEO = Enum.CONTINUOUS_VIDEO; |
| 161 | public static final Enum CONTINUOUS_PICTURE = Enum.CONTINUOUS_PICTURE; |
| 162 | public static final Enum EDOF = Enum.EDOF; |
| 163 | |
| 164 | // TODO: remove requirement for constructor by making Key an interface |
| 165 | private AfModeKey(String name) { |
| 166 | super(name, Control.AfModeKey.Enum.class); |
| 167 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 168 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | public static final Key<Control.AfModeKey.Enum> AF_MODE = |
| 172 | new AfModeKey("android.control.afMode"); |
| 173 | public static final Key<int[]> AF_REGIONS = |
| 174 | new Key<int[]>("android.control.afRegions", int[].class); |
| 175 | |
| 176 | public static final class AfTriggerKey extends Key<Control.AfTriggerKey.Enum> { |
| 177 | public enum Enum { |
| 178 | IDLE, |
| 179 | START, |
| 180 | CANCEL; |
| 181 | } |
| 182 | |
| 183 | public static final Enum IDLE = Enum.IDLE; |
| 184 | public static final Enum START = Enum.START; |
| 185 | public static final Enum CANCEL = Enum.CANCEL; |
| 186 | |
| 187 | // TODO: remove requirement for constructor by making Key an interface |
| 188 | private AfTriggerKey(String name) { |
| 189 | super(name, Control.AfTriggerKey.Enum.class); |
| 190 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 191 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 192 | } |
| 193 | |
| 194 | public static final Key<Control.AfTriggerKey.Enum> AF_TRIGGER = |
| 195 | new AfTriggerKey("android.control.afTrigger"); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 196 | public static final Key<Boolean> AWB_LOCK = |
| 197 | new Key<Boolean>("android.control.awbLock", boolean.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 198 | |
| 199 | public static final class AwbModeKey extends Key<Control.AwbModeKey.Enum> { |
| 200 | public enum Enum { |
| 201 | OFF, |
| 202 | AUTO, |
| 203 | INCANDESCENT, |
| 204 | FLUORESCENT, |
| 205 | WARM_FLUORESCENT, |
| 206 | DAYLIGHT, |
| 207 | CLOUDY_DAYLIGHT, |
| 208 | TWILIGHT, |
| 209 | SHADE; |
| 210 | } |
| 211 | |
| 212 | public static final Enum OFF = Enum.OFF; |
| 213 | public static final Enum AUTO = Enum.AUTO; |
| 214 | public static final Enum INCANDESCENT = Enum.INCANDESCENT; |
| 215 | public static final Enum FLUORESCENT = Enum.FLUORESCENT; |
| 216 | public static final Enum WARM_FLUORESCENT = Enum.WARM_FLUORESCENT; |
| 217 | public static final Enum DAYLIGHT = Enum.DAYLIGHT; |
| 218 | public static final Enum CLOUDY_DAYLIGHT = Enum.CLOUDY_DAYLIGHT; |
| 219 | public static final Enum TWILIGHT = Enum.TWILIGHT; |
| 220 | public static final Enum SHADE = Enum.SHADE; |
| 221 | |
| 222 | // TODO: remove requirement for constructor by making Key an interface |
| 223 | private AwbModeKey(String name) { |
| 224 | super(name, Control.AwbModeKey.Enum.class); |
| 225 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 226 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 227 | } |
| 228 | |
| 229 | public static final Key<Control.AwbModeKey.Enum> AWB_MODE = |
| 230 | new AwbModeKey("android.control.awbMode"); |
| 231 | public static final Key<int[]> AWB_REGIONS = |
| 232 | new Key<int[]>("android.control.awbRegions", int[].class); |
| 233 | |
| 234 | public static final class CaptureIntentKey extends Key<Control.CaptureIntentKey.Enum> { |
| 235 | public enum Enum { |
| 236 | CUSTOM, |
| 237 | PREVIEW, |
| 238 | STILL_CAPTURE, |
| 239 | VIDEO_RECORD, |
| 240 | VIDEO_SNAPSHOT, |
| 241 | ZERO_SHUTTER_LAG; |
| 242 | } |
| 243 | |
| 244 | public static final Enum CUSTOM = Enum.CUSTOM; |
| 245 | public static final Enum PREVIEW = Enum.PREVIEW; |
| 246 | public static final Enum STILL_CAPTURE = Enum.STILL_CAPTURE; |
| 247 | public static final Enum VIDEO_RECORD = Enum.VIDEO_RECORD; |
| 248 | public static final Enum VIDEO_SNAPSHOT = Enum.VIDEO_SNAPSHOT; |
| 249 | public static final Enum ZERO_SHUTTER_LAG = Enum.ZERO_SHUTTER_LAG; |
| 250 | |
| 251 | // TODO: remove requirement for constructor by making Key an interface |
| 252 | private CaptureIntentKey(String name) { |
| 253 | super(name, Control.CaptureIntentKey.Enum.class); |
| 254 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 255 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 256 | } |
| 257 | |
| 258 | public static final Key<Control.CaptureIntentKey.Enum> CAPTURE_INTENT = |
| 259 | new CaptureIntentKey("android.control.captureIntent"); |
| 260 | |
| 261 | public static final class EffectModeKey extends Key<Control.EffectModeKey.Enum> { |
| 262 | public enum Enum { |
| 263 | OFF, |
| 264 | MONO, |
| 265 | NEGATIVE, |
| 266 | SOLARIZE, |
| 267 | SEPIA, |
| 268 | POSTERIZE, |
| 269 | WHITEBOARD, |
| 270 | BLACKBOARD, |
| 271 | AQUA; |
| 272 | } |
| 273 | |
| 274 | public static final Enum OFF = Enum.OFF; |
| 275 | public static final Enum MONO = Enum.MONO; |
| 276 | public static final Enum NEGATIVE = Enum.NEGATIVE; |
| 277 | public static final Enum SOLARIZE = Enum.SOLARIZE; |
| 278 | public static final Enum SEPIA = Enum.SEPIA; |
| 279 | public static final Enum POSTERIZE = Enum.POSTERIZE; |
| 280 | public static final Enum WHITEBOARD = Enum.WHITEBOARD; |
| 281 | public static final Enum BLACKBOARD = Enum.BLACKBOARD; |
| 282 | public static final Enum AQUA = Enum.AQUA; |
| 283 | |
| 284 | // TODO: remove requirement for constructor by making Key an interface |
| 285 | private EffectModeKey(String name) { |
| 286 | super(name, Control.EffectModeKey.Enum.class); |
| 287 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 288 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 289 | } |
| 290 | |
| 291 | public static final Key<Control.EffectModeKey.Enum> EFFECT_MODE = |
| 292 | new EffectModeKey("android.control.effectMode"); |
| 293 | |
| 294 | public static final class ModeKey extends Key<Control.ModeKey.Enum> { |
| 295 | public enum Enum { |
| 296 | OFF, |
| 297 | AUTO, |
| 298 | USE_SCENE_MODE; |
| 299 | } |
| 300 | |
| 301 | public static final Enum OFF = Enum.OFF; |
| 302 | public static final Enum AUTO = Enum.AUTO; |
| 303 | public static final Enum USE_SCENE_MODE = Enum.USE_SCENE_MODE; |
| 304 | |
| 305 | // TODO: remove requirement for constructor by making Key an interface |
| 306 | private ModeKey(String name) { |
| 307 | super(name, Control.ModeKey.Enum.class); |
| 308 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 309 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 310 | } |
| 311 | |
| 312 | public static final Key<Control.ModeKey.Enum> MODE = |
| 313 | new ModeKey("android.control.mode"); |
| 314 | |
| 315 | public static final class SceneModeKey extends Key<Control.SceneModeKey.Enum> { |
| 316 | public enum Enum { |
| 317 | UNSUPPORTED, |
| 318 | FACE_PRIORITY, |
| 319 | ACTION, |
| 320 | PORTRAIT, |
| 321 | LANDSCAPE, |
| 322 | NIGHT, |
| 323 | NIGHT_PORTRAIT, |
| 324 | THEATRE, |
| 325 | BEACH, |
| 326 | SNOW, |
| 327 | SUNSET, |
| 328 | STEADYPHOTO, |
| 329 | FIREWORKS, |
| 330 | SPORTS, |
| 331 | PARTY, |
| 332 | CANDLELIGHT, |
| 333 | BARCODE; |
| 334 | } |
| 335 | |
| 336 | public static final Enum UNSUPPORTED = Enum.UNSUPPORTED; |
| 337 | public static final Enum FACE_PRIORITY = Enum.FACE_PRIORITY; |
| 338 | public static final Enum ACTION = Enum.ACTION; |
| 339 | public static final Enum PORTRAIT = Enum.PORTRAIT; |
| 340 | public static final Enum LANDSCAPE = Enum.LANDSCAPE; |
| 341 | public static final Enum NIGHT = Enum.NIGHT; |
| 342 | public static final Enum NIGHT_PORTRAIT = Enum.NIGHT_PORTRAIT; |
| 343 | public static final Enum THEATRE = Enum.THEATRE; |
| 344 | public static final Enum BEACH = Enum.BEACH; |
| 345 | public static final Enum SNOW = Enum.SNOW; |
| 346 | public static final Enum SUNSET = Enum.SUNSET; |
| 347 | public static final Enum STEADYPHOTO = Enum.STEADYPHOTO; |
| 348 | public static final Enum FIREWORKS = Enum.FIREWORKS; |
| 349 | public static final Enum SPORTS = Enum.SPORTS; |
| 350 | public static final Enum PARTY = Enum.PARTY; |
| 351 | public static final Enum CANDLELIGHT = Enum.CANDLELIGHT; |
| 352 | public static final Enum BARCODE = Enum.BARCODE; |
| 353 | |
| 354 | // TODO: remove requirement for constructor by making Key an interface |
| 355 | private SceneModeKey(String name) { |
| 356 | super(name, Control.SceneModeKey.Enum.class); |
| 357 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 358 | |
| 359 | static { |
| 360 | CameraMetadata.registerEnumValues(Control.SceneModeKey.Enum.class, new int[] { |
| 361 | 0, // UNSUPPORTED |
| 362 | 1, // FACE_PRIORITY |
| 363 | 2, // ACTION |
| 364 | 3, // PORTRAIT |
| 365 | 4, // LANDSCAPE |
| 366 | 5, // NIGHT |
| 367 | 6, // NIGHT_PORTRAIT |
| 368 | 7, // THEATRE |
| 369 | 8, // BEACH |
| 370 | 9, // SNOW |
| 371 | 10, // SUNSET |
| 372 | 11, // STEADYPHOTO |
| 373 | 12, // FIREWORKS |
| 374 | 13, // SPORTS |
| 375 | 14, // PARTY |
| 376 | 15, // CANDLELIGHT |
| 377 | 16 // BARCODE |
| 378 | }); |
| 379 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 380 | } |
| 381 | |
| 382 | public static final Key<Control.SceneModeKey.Enum> SCENE_MODE = |
| 383 | new SceneModeKey("android.control.sceneMode"); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 384 | public static final Key<Boolean> VIDEO_STABILIZATION_MODE = |
| 385 | new Key<Boolean>("android.control.videoStabilizationMode", boolean.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 386 | |
| 387 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 388 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 389 | public static final class Edge { |
| 390 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 391 | public static final class ModeKey extends Key<Edge.ModeKey.Enum> { |
| 392 | public enum Enum { |
| 393 | OFF, |
| 394 | FAST, |
| 395 | HIGH_QUALITY; |
| 396 | } |
| 397 | |
| 398 | public static final Enum OFF = Enum.OFF; |
| 399 | public static final Enum FAST = Enum.FAST; |
| 400 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 401 | |
| 402 | // TODO: remove requirement for constructor by making Key an interface |
| 403 | private ModeKey(String name) { |
| 404 | super(name, Edge.ModeKey.Enum.class); |
| 405 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 406 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 407 | } |
| 408 | |
| 409 | public static final Key<Edge.ModeKey.Enum> MODE = |
| 410 | new ModeKey("android.edge.mode"); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 411 | |
| 412 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 413 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 414 | public static final class Flash { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 415 | |
| 416 | public static final class ModeKey extends Key<Flash.ModeKey.Enum> { |
| 417 | public enum Enum { |
| 418 | OFF, |
| 419 | SINGLE, |
| 420 | TORCH; |
| 421 | } |
| 422 | |
| 423 | public static final Enum OFF = Enum.OFF; |
| 424 | public static final Enum SINGLE = Enum.SINGLE; |
| 425 | public static final Enum TORCH = Enum.TORCH; |
| 426 | |
| 427 | // TODO: remove requirement for constructor by making Key an interface |
| 428 | private ModeKey(String name) { |
| 429 | super(name, Flash.ModeKey.Enum.class); |
| 430 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 431 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 432 | } |
| 433 | |
| 434 | public static final Key<Flash.ModeKey.Enum> MODE = |
| 435 | new ModeKey("android.flash.mode"); |
| 436 | |
| 437 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 438 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 439 | public static final class Jpeg { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 440 | public static final Key<double[]> GPS_COORDINATES = |
| 441 | new Key<double[]>("android.jpeg.gpsCoordinates", double[].class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 442 | public static final Key<String> GPS_PROCESSING_METHOD = |
| 443 | new Key<String>("android.jpeg.gpsProcessingMethod", String.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 444 | public static final Key<Long> GPS_TIMESTAMP = |
| 445 | new Key<Long>("android.jpeg.gpsTimestamp", long.class); |
| 446 | public static final Key<Integer> ORIENTATION = |
| 447 | new Key<Integer>("android.jpeg.orientation", int.class); |
| 448 | public static final Key<Byte> QUALITY = |
| 449 | new Key<Byte>("android.jpeg.quality", byte.class); |
| 450 | public static final Key<Byte> THUMBNAIL_QUALITY = |
| 451 | new Key<Byte>("android.jpeg.thumbnailQuality", byte.class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 452 | public static final Key<android.hardware.photography.Size> THUMBNAIL_SIZE = |
| 453 | new Key<android.hardware.photography.Size>("android.jpeg.thumbnailSize", android.hardware.photography.Size.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 454 | |
| 455 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 456 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 457 | public static final class Lens { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 458 | public static final Key<Float> APERTURE = |
| 459 | new Key<Float>("android.lens.aperture", float.class); |
| 460 | public static final Key<Float> FILTER_DENSITY = |
| 461 | new Key<Float>("android.lens.filterDensity", float.class); |
| 462 | public static final Key<Float> FOCAL_LENGTH = |
| 463 | new Key<Float>("android.lens.focalLength", float.class); |
| 464 | public static final Key<Float> FOCUS_DISTANCE = |
| 465 | new Key<Float>("android.lens.focusDistance", float.class); |
| 466 | |
| 467 | public static final class OpticalStabilizationModeKey extends Key<Lens.OpticalStabilizationModeKey.Enum> { |
| 468 | public enum Enum { |
| 469 | OFF, |
| 470 | ON; |
| 471 | } |
| 472 | |
| 473 | public static final Enum OFF = Enum.OFF; |
| 474 | public static final Enum ON = Enum.ON; |
| 475 | |
| 476 | // TODO: remove requirement for constructor by making Key an interface |
| 477 | private OpticalStabilizationModeKey(String name) { |
| 478 | super(name, Lens.OpticalStabilizationModeKey.Enum.class); |
| 479 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 480 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 481 | } |
| 482 | |
| 483 | public static final Key<Lens.OpticalStabilizationModeKey.Enum> OPTICAL_STABILIZATION_MODE = |
| 484 | new OpticalStabilizationModeKey("android.lens.opticalStabilizationMode"); |
| 485 | |
| 486 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 487 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 488 | public static final class NoiseReduction { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 489 | |
| 490 | public static final class ModeKey extends Key<NoiseReduction.ModeKey.Enum> { |
| 491 | public enum Enum { |
| 492 | OFF, |
| 493 | FAST, |
| 494 | HIGH_QUALITY; |
| 495 | } |
| 496 | |
| 497 | public static final Enum OFF = Enum.OFF; |
| 498 | public static final Enum FAST = Enum.FAST; |
| 499 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 500 | |
| 501 | // TODO: remove requirement for constructor by making Key an interface |
| 502 | private ModeKey(String name) { |
| 503 | super(name, NoiseReduction.ModeKey.Enum.class); |
| 504 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 505 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 506 | } |
| 507 | |
| 508 | public static final Key<NoiseReduction.ModeKey.Enum> MODE = |
| 509 | new ModeKey("android.noiseReduction.mode"); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 510 | |
| 511 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 512 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 513 | /** |
| 514 | * @hide |
| 515 | */ |
| 516 | public static final class Request { |
| 517 | /** |
| 518 | * @hide |
| 519 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 520 | public static final Key<Integer> ID = |
| 521 | new Key<Integer>("android.request.id", int.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 522 | |
| 523 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 524 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 525 | public static final class Scaler { |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 526 | public static final Key<android.graphics.Rect> CROP_REGION = |
| 527 | new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 528 | |
| 529 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 530 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 531 | public static final class Sensor { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 532 | public static final Key<Long> EXPOSURE_TIME = |
| 533 | new Key<Long>("android.sensor.exposureTime", long.class); |
| 534 | public static final Key<Long> FRAME_DURATION = |
| 535 | new Key<Long>("android.sensor.frameDuration", long.class); |
| 536 | public static final Key<Integer> SENSITIVITY = |
| 537 | new Key<Integer>("android.sensor.sensitivity", int.class); |
| 538 | |
| 539 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 540 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 541 | public static final class Statistics { |
| 542 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 543 | public static final class FaceDetectModeKey extends Key<Statistics.FaceDetectModeKey.Enum> { |
| 544 | public enum Enum { |
| 545 | OFF, |
| 546 | SIMPLE, |
| 547 | FULL; |
| 548 | } |
| 549 | |
| 550 | public static final Enum OFF = Enum.OFF; |
| 551 | public static final Enum SIMPLE = Enum.SIMPLE; |
| 552 | public static final Enum FULL = Enum.FULL; |
| 553 | |
| 554 | // TODO: remove requirement for constructor by making Key an interface |
| 555 | private FaceDetectModeKey(String name) { |
| 556 | super(name, Statistics.FaceDetectModeKey.Enum.class); |
| 557 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 558 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 559 | } |
| 560 | |
| 561 | public static final Key<Statistics.FaceDetectModeKey.Enum> FACE_DETECT_MODE = |
| 562 | new FaceDetectModeKey("android.statistics.faceDetectMode"); |
| 563 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 564 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 565 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 566 | public static final class Tonemap { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 567 | public static final Key<Float> CURVE_BLUE = |
| 568 | new Key<Float>("android.tonemap.curveBlue", float.class); |
| 569 | public static final Key<Float> CURVE_GREEN = |
| 570 | new Key<Float>("android.tonemap.curveGreen", float.class); |
| 571 | public static final Key<float[]> CURVE_RED = |
| 572 | new Key<float[]>("android.tonemap.curveRed", float[].class); |
| 573 | |
| 574 | public static final class ModeKey extends Key<Tonemap.ModeKey.Enum> { |
| 575 | public enum Enum { |
| 576 | CONTRAST_CURVE, |
| 577 | FAST, |
| 578 | HIGH_QUALITY; |
| 579 | } |
| 580 | |
| 581 | public static final Enum CONTRAST_CURVE = Enum.CONTRAST_CURVE; |
| 582 | public static final Enum FAST = Enum.FAST; |
| 583 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 584 | |
| 585 | // TODO: remove requirement for constructor by making Key an interface |
| 586 | private ModeKey(String name) { |
| 587 | super(name, Tonemap.ModeKey.Enum.class); |
| 588 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 589 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 590 | } |
| 591 | |
| 592 | public static final Key<Tonemap.ModeKey.Enum> MODE = |
| 593 | new ModeKey("android.tonemap.mode"); |
| 594 | |
| 595 | } |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 596 | |
| 597 | /** |
| 598 | * @hide |
| 599 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 600 | public static final class Led { |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 601 | /** |
| 602 | * @hide |
| 603 | */ |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 604 | public static final Key<Boolean> TRANSMIT = |
| 605 | new Key<Boolean>("android.led.transmit", boolean.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 606 | |
| 607 | } |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 608 | |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 609 | public static final class BlackLevel { |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 610 | public static final Key<Boolean> LOCK = |
| 611 | new Key<Boolean>("android.blackLevel.lock", boolean.class); |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 612 | |
| 613 | } |
| 614 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 615 | } |
| 616 | |
| 617 | |