summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware/photography/CaptureResultKeys.java
blob: 493156491fa6381ba32b37847f11b9dd7797a960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
/*
 * Copyright (C) 2013 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.photography;

import static android.hardware.photography.CameraMetadata.Key;

/**
 * ! Do not edit this file directly !
 *
 * Generated automatically from CaptureResultKeys.mako
 *
 * TODO: Include a hash of the input files here that the build can check.
 */

/**
 * The base class for camera controls and information.
 *
 * This class defines the basic key/value map used for querying for camera
 * characteristics or capture results, and for setting camera request
 * parameters.
 *
 * @see CaptureResult
 * @see CameraMetadata
 * @hide
 **/
public final class CaptureResultKeys {
    public static final class ColorCorrection {
        public static final Key<Rational[]> TRANSFORM =
                new Key<Rational[]>("android.colorCorrection.transform", Rational[].class);
        public static final Key<float[]> GAINS =
                new Key<float[]>("android.colorCorrection.gains", float[].class);

    }

    public static final class Control {
        /**
         * @hide
         */
        public static final Key<Integer> AE_PRECAPTURE_ID =
                new Key<Integer>("android.control.aePrecaptureId", int.class);
        public static final Key<int[]> AE_REGIONS =
                new Key<int[]>("android.control.aeRegions", int[].class);

            public static final class AeStateKey extends Key<Control.AeStateKey.Enum> {
                public enum Enum {
                    INACTIVE,
                    SEARCHING,
                    CONVERGED,
                    LOCKED,
                    FLASH_REQUIRED,
                    PRECAPTURE;
                }

                public static final Enum INACTIVE = Enum.INACTIVE;
                public static final Enum SEARCHING = Enum.SEARCHING;
                public static final Enum CONVERGED = Enum.CONVERGED;
                public static final Enum LOCKED = Enum.LOCKED;
                public static final Enum FLASH_REQUIRED = Enum.FLASH_REQUIRED;
                public static final Enum PRECAPTURE = Enum.PRECAPTURE;

                // TODO: remove requirement for constructor by making Key an interface
                private AeStateKey(String name) {
                    super(name, Control.AeStateKey.Enum.class);
                }

            }

        public static final Key<Control.AeStateKey.Enum> AE_STATE =
                new AeStateKey("android.control.aeState");

            public static final class AfModeKey extends Key<Control.AfModeKey.Enum> {
                public enum Enum {
                    OFF,
                    AUTO,
                    MACRO,
                    CONTINUOUS_VIDEO,
                    CONTINUOUS_PICTURE,
                    EDOF;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum AUTO = Enum.AUTO;
                public static final Enum MACRO = Enum.MACRO;
                public static final Enum CONTINUOUS_VIDEO = Enum.CONTINUOUS_VIDEO;
                public static final Enum CONTINUOUS_PICTURE = Enum.CONTINUOUS_PICTURE;
                public static final Enum EDOF = Enum.EDOF;

                // TODO: remove requirement for constructor by making Key an interface
                private AfModeKey(String name) {
                    super(name, Control.AfModeKey.Enum.class);
                }

            }

        public static final Key<Control.AfModeKey.Enum> AF_MODE =
                new AfModeKey("android.control.afMode");
        public static final Key<int[]> AF_REGIONS =
                new Key<int[]>("android.control.afRegions", int[].class);

            public static final class AfStateKey extends Key<Control.AfStateKey.Enum> {
                public enum Enum {
                    INACTIVE,
                    PASSIVE_SCAN,
                    PASSIVE_FOCUSED,
                    ACTIVE_SCAN,
                    FOCUSED_LOCKED,
                    NOT_FOCUSED_LOCKED;
                }

                public static final Enum INACTIVE = Enum.INACTIVE;
                public static final Enum PASSIVE_SCAN = Enum.PASSIVE_SCAN;
                public static final Enum PASSIVE_FOCUSED = Enum.PASSIVE_FOCUSED;
                public static final Enum ACTIVE_SCAN = Enum.ACTIVE_SCAN;
                public static final Enum FOCUSED_LOCKED = Enum.FOCUSED_LOCKED;
                public static final Enum NOT_FOCUSED_LOCKED = Enum.NOT_FOCUSED_LOCKED;

                // TODO: remove requirement for constructor by making Key an interface
                private AfStateKey(String name) {
                    super(name, Control.AfStateKey.Enum.class);
                }

            }

        public static final Key<Control.AfStateKey.Enum> AF_STATE =
                new AfStateKey("android.control.afState");
        /**
         * @hide
         */
        public static final Key<Integer> AF_TRIGGER_ID =
                new Key<Integer>("android.control.afTriggerId", int.class);

            public static final class AwbModeKey extends Key<Control.AwbModeKey.Enum> {
                public enum Enum {
                    OFF,
                    AUTO,
                    INCANDESCENT,
                    FLUORESCENT,
                    WARM_FLUORESCENT,
                    DAYLIGHT,
                    CLOUDY_DAYLIGHT,
                    TWILIGHT,
                    SHADE;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum AUTO = Enum.AUTO;
                public static final Enum INCANDESCENT = Enum.INCANDESCENT;
                public static final Enum FLUORESCENT = Enum.FLUORESCENT;
                public static final Enum WARM_FLUORESCENT = Enum.WARM_FLUORESCENT;
                public static final Enum DAYLIGHT = Enum.DAYLIGHT;
                public static final Enum CLOUDY_DAYLIGHT = Enum.CLOUDY_DAYLIGHT;
                public static final Enum TWILIGHT = Enum.TWILIGHT;
                public static final Enum SHADE = Enum.SHADE;

                // TODO: remove requirement for constructor by making Key an interface
                private AwbModeKey(String name) {
                    super(name, Control.AwbModeKey.Enum.class);
                }

            }

        public static final Key<Control.AwbModeKey.Enum> AWB_MODE =
                new AwbModeKey("android.control.awbMode");
        public static final Key<int[]> AWB_REGIONS =
                new Key<int[]>("android.control.awbRegions", int[].class);

            public static final class AwbStateKey extends Key<Control.AwbStateKey.Enum> {
                public enum Enum {
                    INACTIVE,
                    SEARCHING,
                    CONVERGED,
                    LOCKED;
                }

                public static final Enum INACTIVE = Enum.INACTIVE;
                public static final Enum SEARCHING = Enum.SEARCHING;
                public static final Enum CONVERGED = Enum.CONVERGED;
                public static final Enum LOCKED = Enum.LOCKED;

                // TODO: remove requirement for constructor by making Key an interface
                private AwbStateKey(String name) {
                    super(name, Control.AwbStateKey.Enum.class);
                }

            }

        public static final Key<Control.AwbStateKey.Enum> AWB_STATE =
                new AwbStateKey("android.control.awbState");

            public static final class ModeKey extends Key<Control.ModeKey.Enum> {
                public enum Enum {
                    OFF,
                    AUTO,
                    USE_SCENE_MODE;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum AUTO = Enum.AUTO;
                public static final Enum USE_SCENE_MODE = Enum.USE_SCENE_MODE;

                // TODO: remove requirement for constructor by making Key an interface
                private ModeKey(String name) {
                    super(name, Control.ModeKey.Enum.class);
                }

            }

        public static final Key<Control.ModeKey.Enum> MODE =
                new ModeKey("android.control.mode");

    }

    public static final class Edge {

            public static final class ModeKey extends Key<Edge.ModeKey.Enum> {
                public enum Enum {
                    OFF,
                    FAST,
                    HIGH_QUALITY;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum FAST = Enum.FAST;
                public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY;

                // TODO: remove requirement for constructor by making Key an interface
                private ModeKey(String name) {
                    super(name, Edge.ModeKey.Enum.class);
                }

            }

        public static final Key<Edge.ModeKey.Enum> MODE =
                new ModeKey("android.edge.mode");

    }

    public static final class Flash {

            public static final class ModeKey extends Key<Flash.ModeKey.Enum> {
                public enum Enum {
                    OFF,
                    SINGLE,
                    TORCH;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum SINGLE = Enum.SINGLE;
                public static final Enum TORCH = Enum.TORCH;

                // TODO: remove requirement for constructor by making Key an interface
                private ModeKey(String name) {
                    super(name, Flash.ModeKey.Enum.class);
                }

            }

        public static final Key<Flash.ModeKey.Enum> MODE =
                new ModeKey("android.flash.mode");

            public static final class StateKey extends Key<Flash.StateKey.Enum> {
                public enum Enum {
                    UNAVAILABLE,
                    CHARGING,
                    READY,
                    FIRED;
                }

                public static final Enum UNAVAILABLE = Enum.UNAVAILABLE;
                public static final Enum CHARGING = Enum.CHARGING;
                public static final Enum READY = Enum.READY;
                public static final Enum FIRED = Enum.FIRED;

                // TODO: remove requirement for constructor by making Key an interface
                private StateKey(String name) {
                    super(name, Flash.StateKey.Enum.class);
                }

            }

        public static final Key<Flash.StateKey.Enum> STATE =
                new StateKey("android.flash.state");

    }

    public static final class Jpeg {
        public static final Key<double[]> GPS_COORDINATES =
                new Key<double[]>("android.jpeg.gpsCoordinates", double[].class);
        public static final Key<String> GPS_PROCESSING_METHOD =
                new Key<String>("android.jpeg.gpsProcessingMethod", String.class);
        public static final Key<Long> GPS_TIMESTAMP =
                new Key<Long>("android.jpeg.gpsTimestamp", long.class);
        public static final Key<Integer> ORIENTATION =
                new Key<Integer>("android.jpeg.orientation", int.class);
        public static final Key<Byte> QUALITY =
                new Key<Byte>("android.jpeg.quality", byte.class);
        public static final Key<Byte> THUMBNAIL_QUALITY =
                new Key<Byte>("android.jpeg.thumbnailQuality", byte.class);
        public static final Key<android.hardware.photography.Size> THUMBNAIL_SIZE =
                new Key<android.hardware.photography.Size>("android.jpeg.thumbnailSize", android.hardware.photography.Size.class);

    }

    public static final class Lens {
        public static final Key<Float> APERTURE =
                new Key<Float>("android.lens.aperture", float.class);
        public static final Key<Float> FILTER_DENSITY =
                new Key<Float>("android.lens.filterDensity", float.class);
        public static final Key<Float> FOCAL_LENGTH =
                new Key<Float>("android.lens.focalLength", float.class);
        public static final Key<Float> FOCUS_DISTANCE =
                new Key<Float>("android.lens.focusDistance", float.class);
        public static final Key<Float> FOCUS_RANGE =
                new Key<Float>("android.lens.focusRange", float.class);

            public static final class OpticalStabilizationModeKey extends Key<Lens.OpticalStabilizationModeKey.Enum> {
                public enum Enum {
                    OFF,
                    ON;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum ON = Enum.ON;

                // TODO: remove requirement for constructor by making Key an interface
                private OpticalStabilizationModeKey(String name) {
                    super(name, Lens.OpticalStabilizationModeKey.Enum.class);
                }

            }

        public static final Key<Lens.OpticalStabilizationModeKey.Enum> OPTICAL_STABILIZATION_MODE =
                new OpticalStabilizationModeKey("android.lens.opticalStabilizationMode");

            public static final class StateKey extends Key<Lens.StateKey.Enum> {
                public enum Enum {
                    STATIONARY;
                }

                public static final Enum STATIONARY = Enum.STATIONARY;

                // TODO: remove requirement for constructor by making Key an interface
                private StateKey(String name) {
                    super(name, Lens.StateKey.Enum.class);
                }

            }

        public static final Key<Lens.StateKey.Enum> STATE =
                new StateKey("android.lens.state");

    }

    public static final class NoiseReduction {

            public static final class ModeKey extends Key<NoiseReduction.ModeKey.Enum> {
                public enum Enum {
                    OFF,
                    FAST,
                    HIGH_QUALITY;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum FAST = Enum.FAST;
                public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY;

                // TODO: remove requirement for constructor by making Key an interface
                private ModeKey(String name) {
                    super(name, NoiseReduction.ModeKey.Enum.class);
                }

            }

        public static final Key<NoiseReduction.ModeKey.Enum> MODE =
                new ModeKey("android.noiseReduction.mode");

    }

    public static final class Request {
        public static final Key<Integer> FRAME_COUNT =
                new Key<Integer>("android.request.frameCount", int.class);
        /**
         * @hide
         */
        public static final Key<Integer> ID =
                new Key<Integer>("android.request.id", int.class);

    }

    public static final class Scaler {
        public static final Key<android.graphics.Rect> CROP_REGION =
                new Key<android.graphics.Rect>("android.scaler.cropRegion", android.graphics.Rect.class);

    }

    public static final class Sensor {
        public static final Key<Long> EXPOSURE_TIME =
                new Key<Long>("android.sensor.exposureTime", long.class);
        public static final Key<Long> FRAME_DURATION =
                new Key<Long>("android.sensor.frameDuration", long.class);
        public static final Key<Integer> SENSITIVITY =
                new Key<Integer>("android.sensor.sensitivity", int.class);
        public static final Key<Long> TIMESTAMP =
                new Key<Long>("android.sensor.timestamp", long.class);

    }

    public static final class Statistics {

            public static final class FaceDetectModeKey extends Key<Statistics.FaceDetectModeKey.Enum> {
                public enum Enum {
                    OFF,
                    SIMPLE,
                    FULL;
                }

                public static final Enum OFF = Enum.OFF;
                public static final Enum SIMPLE = Enum.SIMPLE;
                public static final Enum FULL = Enum.FULL;

                // TODO: remove requirement for constructor by making Key an interface
                private FaceDetectModeKey(String name) {
                    super(name, Statistics.FaceDetectModeKey.Enum.class);
                }

            }

        public static final Key<Statistics.FaceDetectModeKey.Enum> FACE_DETECT_MODE =
                new FaceDetectModeKey("android.statistics.faceDetectMode");
        public static final Key<int[]> FACE_IDS =
                new Key<int[]>("android.statistics.faceIds", int[].class);
        public static final Key<int[]> FACE_LANDMARKS =
                new Key<int[]>("android.statistics.faceLandmarks", int[].class);
        public static final Key<android.graphics.Rect[]> FACE_RECTANGLES =
                new Key<android.graphics.Rect[]>("android.statistics.faceRectangles", android.graphics.Rect[].class);
        public static final Key<byte[]> FACE_SCORES =
                new Key<byte[]>("android.statistics.faceScores", byte[].class);
        public static final Key<float[]> LENS_SHADING_MAP =
                new Key<float[]>("android.statistics.lensShadingMap", float[].class);
        public static final Key<float[]> PREDICTED_COLOR_GAINS =
                new Key<float[]>("android.statistics.predictedColorGains", float[].class);
        public static final Key<Rational[]> PREDICTED_COLOR_TRANSFORM =
                new Key<Rational[]>("android.statistics.predictedColorTransform", Rational[].class);

            public static final class SceneFlickerKey extends Key<Statistics.SceneFlickerKey.Enum> {
                public enum Enum {
                    NONE,
                    _50HZ,
                    _60HZ;
                }

                public static final Enum NONE = Enum.NONE;
                public static final Enum _50HZ = Enum._50HZ;
                public static final Enum _60HZ = Enum._60HZ;

                // TODO: remove requirement for constructor by making Key an interface
                private SceneFlickerKey(String name) {
                    super(name, Statistics.SceneFlickerKey.Enum.class);
                }

            }

        public static final Key<Statistics.SceneFlickerKey.Enum> SCENE_FLICKER =
                new SceneFlickerKey("android.statistics.sceneFlicker");

    }

    public static final class Tonemap {
        public static final Key<Float> CURVE_BLUE =
                new Key<Float>("android.tonemap.curveBlue", float.class);
        public static final Key<Float> CURVE_GREEN =
                new Key<Float>("android.tonemap.curveGreen", float.class);
        public static final Key<float[]> CURVE_RED =
                new Key<float[]>("android.tonemap.curveRed", float[].class);

            public static final class ModeKey extends Key<Tonemap.ModeKey.Enum> {
                public enum Enum {
                    CONTRAST_CURVE,
                    FAST,
                    HIGH_QUALITY;
                }

                public static final Enum CONTRAST_CURVE = Enum.CONTRAST_CURVE;
                public static final Enum FAST = Enum.FAST;
                public static final Enum HIGH_QUALITY = Enum.HIGH_QUALITY;

                // TODO: remove requirement for constructor by making Key an interface
                private ModeKey(String name) {
                    super(name, Tonemap.ModeKey.Enum.class);
                }

            }

        public static final Key<Tonemap.ModeKey.Enum> MODE =
                new ModeKey("android.tonemap.mode");

    }

    /**
     * @hide
     */
    public static final class Led {
        /**
         * @hide
         */
        public static final Key<Boolean> TRANSMIT =
                new Key<Boolean>("android.led.transmit", boolean.class);

    }

    public static final class BlackLevel {
        public static final Key<Boolean> LOCK =
                new Key<Boolean>("android.blackLevel.lock", boolean.class);

    }

}