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 CaptureResultKeys.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 CaptureResult |
| 37 | * @see CameraMetadata |
| 38 | * @hide |
| 39 | **/ |
| 40 | public final class CaptureResultKeys { |
| 41 | public static final class ColorCorrection { |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 42 | public static final Key<Rational[]> TRANSFORM = |
| 43 | new Key<Rational[]>("android.colorCorrection.transform", Rational[].class); |
| 44 | public static final Key<float[]> GAINS = |
| 45 | new Key<float[]>("android.colorCorrection.gains", float[].class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 46 | |
| 47 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 48 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 49 | public static final class Control { |
| 50 | /** |
| 51 | * @hide |
| 52 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 53 | public static final Key<Integer> AE_PRECAPTURE_ID = |
| 54 | new Key<Integer>("android.control.aePrecaptureId", int.class); |
| 55 | public static final Key<int[]> AE_REGIONS = |
| 56 | new Key<int[]>("android.control.aeRegions", int[].class); |
| 57 | |
| 58 | public static final class AeStateKey extends Key<Control.AeStateKey.Enum> { |
| 59 | public enum Enum { |
| 60 | INACTIVE, |
| 61 | SEARCHING, |
| 62 | CONVERGED, |
| 63 | LOCKED, |
| 64 | FLASH_REQUIRED, |
| 65 | PRECAPTURE; |
| 66 | } |
| 67 | |
| 68 | public static final Enum INACTIVE = Enum.INACTIVE; |
| 69 | public static final Enum SEARCHING = Enum.SEARCHING; |
| 70 | public static final Enum CONVERGED = Enum.CONVERGED; |
| 71 | public static final Enum LOCKED = Enum.LOCKED; |
| 72 | public static final Enum FLASH_REQUIRED = Enum.FLASH_REQUIRED; |
| 73 | public static final Enum PRECAPTURE = Enum.PRECAPTURE; |
| 74 | |
| 75 | // TODO: remove requirement for constructor by making Key an interface |
| 76 | private AeStateKey(String name) { |
| 77 | super(name, Control.AeStateKey.Enum.class); |
| 78 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 79 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | public static final Key<Control.AeStateKey.Enum> AE_STATE = |
| 83 | new AeStateKey("android.control.aeState"); |
| 84 | |
| 85 | public static final class AfModeKey extends Key<Control.AfModeKey.Enum> { |
| 86 | public enum Enum { |
| 87 | OFF, |
| 88 | AUTO, |
| 89 | MACRO, |
| 90 | CONTINUOUS_VIDEO, |
| 91 | CONTINUOUS_PICTURE, |
| 92 | EDOF; |
| 93 | } |
| 94 | |
| 95 | public static final Enum OFF = Enum.OFF; |
| 96 | public static final Enum AUTO = Enum.AUTO; |
| 97 | public static final Enum MACRO = Enum.MACRO; |
| 98 | public static final Enum CONTINUOUS_VIDEO = Enum.CONTINUOUS_VIDEO; |
| 99 | public static final Enum CONTINUOUS_PICTURE = Enum.CONTINUOUS_PICTURE; |
| 100 | public static final Enum EDOF = Enum.EDOF; |
| 101 | |
| 102 | // TODO: remove requirement for constructor by making Key an interface |
| 103 | private AfModeKey(String name) { |
| 104 | super(name, Control.AfModeKey.Enum.class); |
| 105 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 106 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 107 | } |
| 108 | |
| 109 | public static final Key<Control.AfModeKey.Enum> AF_MODE = |
| 110 | new AfModeKey("android.control.afMode"); |
| 111 | public static final Key<int[]> AF_REGIONS = |
| 112 | new Key<int[]>("android.control.afRegions", int[].class); |
| 113 | |
| 114 | public static final class AfStateKey extends Key<Control.AfStateKey.Enum> { |
| 115 | public enum Enum { |
| 116 | INACTIVE, |
| 117 | PASSIVE_SCAN, |
| 118 | PASSIVE_FOCUSED, |
| 119 | ACTIVE_SCAN, |
| 120 | FOCUSED_LOCKED, |
| 121 | NOT_FOCUSED_LOCKED; |
| 122 | } |
| 123 | |
| 124 | public static final Enum INACTIVE = Enum.INACTIVE; |
| 125 | public static final Enum PASSIVE_SCAN = Enum.PASSIVE_SCAN; |
| 126 | public static final Enum PASSIVE_FOCUSED = Enum.PASSIVE_FOCUSED; |
| 127 | public static final Enum ACTIVE_SCAN = Enum.ACTIVE_SCAN; |
| 128 | public static final Enum FOCUSED_LOCKED = Enum.FOCUSED_LOCKED; |
| 129 | public static final Enum NOT_FOCUSED_LOCKED = Enum.NOT_FOCUSED_LOCKED; |
| 130 | |
| 131 | // TODO: remove requirement for constructor by making Key an interface |
| 132 | private AfStateKey(String name) { |
| 133 | super(name, Control.AfStateKey.Enum.class); |
| 134 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 135 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 136 | } |
| 137 | |
| 138 | public static final Key<Control.AfStateKey.Enum> AF_STATE = |
| 139 | new AfStateKey("android.control.afState"); |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 140 | /** |
| 141 | * @hide |
| 142 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 143 | public static final Key<Integer> AF_TRIGGER_ID = |
| 144 | new Key<Integer>("android.control.afTriggerId", int.class); |
| 145 | |
| 146 | public static final class AwbModeKey extends Key<Control.AwbModeKey.Enum> { |
| 147 | public enum Enum { |
| 148 | OFF, |
| 149 | AUTO, |
| 150 | INCANDESCENT, |
| 151 | FLUORESCENT, |
| 152 | WARM_FLUORESCENT, |
| 153 | DAYLIGHT, |
| 154 | CLOUDY_DAYLIGHT, |
| 155 | TWILIGHT, |
| 156 | SHADE; |
| 157 | } |
| 158 | |
| 159 | public static final Enum OFF = Enum.OFF; |
| 160 | public static final Enum AUTO = Enum.AUTO; |
| 161 | public static final Enum INCANDESCENT = Enum.INCANDESCENT; |
| 162 | public static final Enum FLUORESCENT = Enum.FLUORESCENT; |
| 163 | public static final Enum WARM_FLUORESCENT = Enum.WARM_FLUORESCENT; |
| 164 | public static final Enum DAYLIGHT = Enum.DAYLIGHT; |
| 165 | public static final Enum CLOUDY_DAYLIGHT = Enum.CLOUDY_DAYLIGHT; |
| 166 | public static final Enum TWILIGHT = Enum.TWILIGHT; |
| 167 | public static final Enum SHADE = Enum.SHADE; |
| 168 | |
| 169 | // TODO: remove requirement for constructor by making Key an interface |
| 170 | private AwbModeKey(String name) { |
| 171 | super(name, Control.AwbModeKey.Enum.class); |
| 172 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 173 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 174 | } |
| 175 | |
| 176 | public static final Key<Control.AwbModeKey.Enum> AWB_MODE = |
| 177 | new AwbModeKey("android.control.awbMode"); |
| 178 | public static final Key<int[]> AWB_REGIONS = |
| 179 | new Key<int[]>("android.control.awbRegions", int[].class); |
| 180 | |
| 181 | public static final class AwbStateKey extends Key<Control.AwbStateKey.Enum> { |
| 182 | public enum Enum { |
| 183 | INACTIVE, |
| 184 | SEARCHING, |
| 185 | CONVERGED, |
| 186 | LOCKED; |
| 187 | } |
| 188 | |
| 189 | public static final Enum INACTIVE = Enum.INACTIVE; |
| 190 | public static final Enum SEARCHING = Enum.SEARCHING; |
| 191 | public static final Enum CONVERGED = Enum.CONVERGED; |
| 192 | public static final Enum LOCKED = Enum.LOCKED; |
| 193 | |
| 194 | // TODO: remove requirement for constructor by making Key an interface |
| 195 | private AwbStateKey(String name) { |
| 196 | super(name, Control.AwbStateKey.Enum.class); |
| 197 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 198 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 199 | } |
| 200 | |
| 201 | public static final Key<Control.AwbStateKey.Enum> AWB_STATE = |
| 202 | new AwbStateKey("android.control.awbState"); |
| 203 | |
| 204 | public static final class ModeKey extends Key<Control.ModeKey.Enum> { |
| 205 | public enum Enum { |
| 206 | OFF, |
| 207 | AUTO, |
| 208 | USE_SCENE_MODE; |
| 209 | } |
| 210 | |
| 211 | public static final Enum OFF = Enum.OFF; |
| 212 | public static final Enum AUTO = Enum.AUTO; |
| 213 | public static final Enum USE_SCENE_MODE = Enum.USE_SCENE_MODE; |
| 214 | |
| 215 | // TODO: remove requirement for constructor by making Key an interface |
| 216 | private ModeKey(String name) { |
| 217 | super(name, Control.ModeKey.Enum.class); |
| 218 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 219 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | public static final Key<Control.ModeKey.Enum> MODE = |
| 223 | new ModeKey("android.control.mode"); |
| 224 | |
| 225 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 226 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 227 | public static final class Edge { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 228 | |
| 229 | public static final class ModeKey extends Key<Edge.ModeKey.Enum> { |
| 230 | public enum Enum { |
| 231 | OFF, |
| 232 | FAST, |
| 233 | HIGH_QUALITY; |
| 234 | } |
| 235 | |
| 236 | public static final Enum OFF = Enum.OFF; |
| 237 | public static final Enum FAST = Enum.FAST; |
| 238 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 239 | |
| 240 | // TODO: remove requirement for constructor by making Key an interface |
| 241 | private ModeKey(String name) { |
| 242 | super(name, Edge.ModeKey.Enum.class); |
| 243 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 244 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | public static final Key<Edge.ModeKey.Enum> MODE = |
| 248 | new ModeKey("android.edge.mode"); |
| 249 | |
| 250 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 251 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 252 | public static final class Flash { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 253 | |
| 254 | public static final class ModeKey extends Key<Flash.ModeKey.Enum> { |
| 255 | public enum Enum { |
| 256 | OFF, |
| 257 | SINGLE, |
| 258 | TORCH; |
| 259 | } |
| 260 | |
| 261 | public static final Enum OFF = Enum.OFF; |
| 262 | public static final Enum SINGLE = Enum.SINGLE; |
| 263 | public static final Enum TORCH = Enum.TORCH; |
| 264 | |
| 265 | // TODO: remove requirement for constructor by making Key an interface |
| 266 | private ModeKey(String name) { |
| 267 | super(name, Flash.ModeKey.Enum.class); |
| 268 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 269 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 270 | } |
| 271 | |
| 272 | public static final Key<Flash.ModeKey.Enum> MODE = |
| 273 | new ModeKey("android.flash.mode"); |
| 274 | |
| 275 | public static final class StateKey extends Key<Flash.StateKey.Enum> { |
| 276 | public enum Enum { |
| 277 | UNAVAILABLE, |
| 278 | CHARGING, |
| 279 | READY, |
| 280 | FIRED; |
| 281 | } |
| 282 | |
| 283 | public static final Enum UNAVAILABLE = Enum.UNAVAILABLE; |
| 284 | public static final Enum CHARGING = Enum.CHARGING; |
| 285 | public static final Enum READY = Enum.READY; |
| 286 | public static final Enum FIRED = Enum.FIRED; |
| 287 | |
| 288 | // TODO: remove requirement for constructor by making Key an interface |
| 289 | private StateKey(String name) { |
| 290 | super(name, Flash.StateKey.Enum.class); |
| 291 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 292 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 293 | } |
| 294 | |
| 295 | public static final Key<Flash.StateKey.Enum> STATE = |
| 296 | new StateKey("android.flash.state"); |
| 297 | |
| 298 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 299 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 300 | public static final class Jpeg { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 301 | public static final Key<double[]> GPS_COORDINATES = |
| 302 | new Key<double[]>("android.jpeg.gpsCoordinates", double[].class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 303 | public static final Key<String> GPS_PROCESSING_METHOD = |
| 304 | new Key<String>("android.jpeg.gpsProcessingMethod", String.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 305 | public static final Key<Long> GPS_TIMESTAMP = |
| 306 | new Key<Long>("android.jpeg.gpsTimestamp", long.class); |
| 307 | public static final Key<Integer> ORIENTATION = |
| 308 | new Key<Integer>("android.jpeg.orientation", int.class); |
| 309 | public static final Key<Byte> QUALITY = |
| 310 | new Key<Byte>("android.jpeg.quality", byte.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 311 | public static final Key<Byte> THUMBNAIL_QUALITY = |
| 312 | new Key<Byte>("android.jpeg.thumbnailQuality", byte.class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 313 | public static final Key<android.hardware.photography.Size> THUMBNAIL_SIZE = |
| 314 | 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] | 315 | |
| 316 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 317 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 318 | public static final class Lens { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 319 | public static final Key<Float> APERTURE = |
| 320 | new Key<Float>("android.lens.aperture", float.class); |
| 321 | public static final Key<Float> FILTER_DENSITY = |
| 322 | new Key<Float>("android.lens.filterDensity", float.class); |
| 323 | public static final Key<Float> FOCAL_LENGTH = |
| 324 | new Key<Float>("android.lens.focalLength", float.class); |
| 325 | public static final Key<Float> FOCUS_DISTANCE = |
| 326 | new Key<Float>("android.lens.focusDistance", float.class); |
| 327 | public static final Key<Float> FOCUS_RANGE = |
| 328 | new Key<Float>("android.lens.focusRange", float.class); |
| 329 | |
| 330 | public static final class OpticalStabilizationModeKey extends Key<Lens.OpticalStabilizationModeKey.Enum> { |
| 331 | public enum Enum { |
| 332 | OFF, |
| 333 | ON; |
| 334 | } |
| 335 | |
| 336 | public static final Enum OFF = Enum.OFF; |
| 337 | public static final Enum ON = Enum.ON; |
| 338 | |
| 339 | // TODO: remove requirement for constructor by making Key an interface |
| 340 | private OpticalStabilizationModeKey(String name) { |
| 341 | super(name, Lens.OpticalStabilizationModeKey.Enum.class); |
| 342 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 343 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 344 | } |
| 345 | |
| 346 | public static final Key<Lens.OpticalStabilizationModeKey.Enum> OPTICAL_STABILIZATION_MODE = |
| 347 | new OpticalStabilizationModeKey("android.lens.opticalStabilizationMode"); |
| 348 | |
| 349 | public static final class StateKey extends Key<Lens.StateKey.Enum> { |
| 350 | public enum Enum { |
| 351 | STATIONARY; |
| 352 | } |
| 353 | |
| 354 | public static final Enum STATIONARY = Enum.STATIONARY; |
| 355 | |
| 356 | // TODO: remove requirement for constructor by making Key an interface |
| 357 | private StateKey(String name) { |
| 358 | super(name, Lens.StateKey.Enum.class); |
| 359 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 360 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 361 | } |
| 362 | |
| 363 | public static final Key<Lens.StateKey.Enum> STATE = |
| 364 | new StateKey("android.lens.state"); |
| 365 | |
| 366 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 367 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 368 | public static final class NoiseReduction { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 369 | |
| 370 | public static final class ModeKey extends Key<NoiseReduction.ModeKey.Enum> { |
| 371 | public enum Enum { |
| 372 | OFF, |
| 373 | FAST, |
| 374 | HIGH_QUALITY; |
| 375 | } |
| 376 | |
| 377 | public static final Enum OFF = Enum.OFF; |
| 378 | public static final Enum FAST = Enum.FAST; |
| 379 | public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY; |
| 380 | |
| 381 | // TODO: remove requirement for constructor by making Key an interface |
| 382 | private ModeKey(String name) { |
| 383 | super(name, NoiseReduction.ModeKey.Enum.class); |
| 384 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 385 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 386 | } |
| 387 | |
| 388 | public static final Key<NoiseReduction.ModeKey.Enum> MODE = |
| 389 | new ModeKey("android.noiseReduction.mode"); |
| 390 | |
| 391 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 392 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 393 | public static final class Request { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 394 | public static final Key<Integer> FRAME_COUNT = |
| 395 | new Key<Integer>("android.request.frameCount", int.class); |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 396 | /** |
| 397 | * @hide |
| 398 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 399 | public static final Key<Integer> ID = |
| 400 | new Key<Integer>("android.request.id", int.class); |
| 401 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 402 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 403 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 404 | public static final class Scaler { |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 405 | public static final Key<android.graphics.Rect> CROP_REGION = |
| 406 | new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 407 | |
| 408 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 409 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 410 | public static final class Sensor { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 411 | public static final Key<Long> EXPOSURE_TIME = |
| 412 | new Key<Long>("android.sensor.exposureTime", long.class); |
| 413 | public static final Key<Long> FRAME_DURATION = |
| 414 | new Key<Long>("android.sensor.frameDuration", long.class); |
| 415 | public static final Key<Integer> SENSITIVITY = |
| 416 | new Key<Integer>("android.sensor.sensitivity", int.class); |
| 417 | public static final Key<Long> TIMESTAMP = |
| 418 | new Key<Long>("android.sensor.timestamp", long.class); |
| 419 | |
| 420 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 421 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 422 | public static final class Statistics { |
| 423 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 424 | public static final class FaceDetectModeKey extends Key<Statistics.FaceDetectModeKey.Enum> { |
| 425 | public enum Enum { |
| 426 | OFF, |
| 427 | SIMPLE, |
| 428 | FULL; |
| 429 | } |
| 430 | |
| 431 | public static final Enum OFF = Enum.OFF; |
| 432 | public static final Enum SIMPLE = Enum.SIMPLE; |
| 433 | public static final Enum FULL = Enum.FULL; |
| 434 | |
| 435 | // TODO: remove requirement for constructor by making Key an interface |
| 436 | private FaceDetectModeKey(String name) { |
| 437 | super(name, Statistics.FaceDetectModeKey.Enum.class); |
| 438 | } |
Igor Murashkin | d7bf177 | 2013-07-12 18:01:31 -0700 | [diff] [blame] | 439 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 440 | } |
| 441 | |
| 442 | public static final Key<Statistics.FaceDetectModeKey.Enum> FACE_DETECT_MODE = |
| 443 | new FaceDetectModeKey("android.statistics.faceDetectMode"); |
| 444 | public static final Key<int[]> FACE_IDS = |
| 445 | new Key<int[]>("android.statistics.faceIds", int[].class); |
| 446 | public static final Key<int[]> FACE_LANDMARKS = |
| 447 | new Key<int[]>("android.statistics.faceLandmarks", int[].class); |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 448 | public static final Key<android.graphics.Rect[]> FACE_RECTANGLES = |
| 449 | new Key<android.graphics.Rect[]>("android.statistics.faceRectangles", android.graphics.Rect[].class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 450 | public static final Key<byte[]> FACE_SCORES = |
| 451 | new Key<byte[]>("android.statistics.faceScores", byte[].class); |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 452 | public static final Key<float[]> LENS_SHADING_MAP = |
| 453 | new Key<float[]>("android.statistics.lensShadingMap", float[].class); |
| 454 | public static final Key<float[]> PREDICTED_COLOR_GAINS = |
| 455 | new Key<float[]>("android.statistics.predictedColorGains", float[].class); |
| 456 | public static final Key<Rational[]> PREDICTED_COLOR_TRANSFORM = |
| 457 | new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class); |
| 458 | |
| 459 | public static final class SceneFlickerKey extends Key<Statistics.SceneFlickerKey.Enum> { |
| 460 | public enum Enum { |
| 461 | NONE, |
| 462 | _50HZ, |
| 463 | _60HZ; |
| 464 | } |
| 465 | |
| 466 | public static final Enum NONE = Enum.NONE; |
| 467 | public static final Enum _50HZ = Enum._50HZ; |
| 468 | public static final Enum _60HZ = Enum._60HZ; |
| 469 | |
| 470 | // TODO: remove requirement for constructor by making Key an interface |
| 471 | private SceneFlickerKey(String name) { |
| 472 | super(name, Statistics.SceneFlickerKey.Enum.class); |
| 473 | } |
| 474 | |
| 475 | } |
| 476 | |
| 477 | public static final Key<Statistics.SceneFlickerKey.Enum> SCENE_FLICKER = |
| 478 | new SceneFlickerKey("android.statistics.sceneFlicker"); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 479 | |
| 480 | } |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 481 | |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 482 | public static final class Tonemap { |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 483 | public static final Key<Float> CURVE_BLUE = |
| 484 | new Key<Float>("android.tonemap.curveBlue", float.class); |
| 485 | public static final Key<Float> CURVE_GREEN = |
| 486 | new Key<Float>("android.tonemap.curveGreen", float.class); |
| 487 | public static final Key<float[]> CURVE_RED = |
| 488 | new Key<float[]>("android.tonemap.curveRed", float[].class); |
| 489 | |
| 490 | public static final class ModeKey extends Key<Tonemap.ModeKey.Enum> { |
| 491 | public enum Enum { |
| 492 | CONTRAST_CURVE, |
| 493 | FAST, |
| 494 | HIGH_QUALITY; |
| 495 | } |
| 496 | |
| 497 | public static final Enum CONTRAST_CURVE = Enum.CONTRAST_CURVE; |
| 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, Tonemap.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<Tonemap.ModeKey.Enum> MODE = |
| 509 | new ModeKey("android.tonemap.mode"); |
| 510 | |
| 511 | } |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 512 | |
| 513 | /** |
| 514 | * @hide |
| 515 | */ |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 516 | public static final class Led { |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 517 | /** |
| 518 | * @hide |
| 519 | */ |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 520 | public static final Key<Boolean> TRANSMIT = |
| 521 | new Key<Boolean>("android.led.transmit", boolean.class); |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 522 | |
| 523 | } |
Eino-Ville Talvala | 855ccce | 2013-07-15 15:19:22 -0700 | [diff] [blame] | 524 | |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 525 | public static final class BlackLevel { |
Igor Murashkin | 27b62ae | 2013-07-17 19:15:57 -0700 | [diff] [blame] | 526 | public static final Key<Boolean> LOCK = |
| 527 | new Key<Boolean>("android.blackLevel.lock", boolean.class); |
Zhijun He | d84bd0a | 2013-07-17 12:08:24 -0700 | [diff] [blame] | 528 | |
| 529 | } |
| 530 | |
Igor Murashkin | b9dd637 | 2013-07-11 19:37:04 -0700 | [diff] [blame] | 531 | } |
| 532 | |
| 533 | |