diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2013-10-07 13:24:52 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2013-10-11 19:26:08 +0000 |
commit | cd925885283396c0379ec2dcaa94e318993f40f8 (patch) | |
tree | 4f461ff3118c20640b4c921e07c86e48a423ab1e | |
parent | 6e19feb4f3da02916754636d3ade340dcd5412d5 (diff) | |
download | frameworks_base-cd925885283396c0379ec2dcaa94e318993f40f8.zip frameworks_base-cd925885283396c0379ec2dcaa94e318993f40f8.tar.gz frameworks_base-cd925885283396c0379ec2dcaa94e318993f40f8.tar.bz2 |
DO NOT MERGE: Hide new camera API.
Not yet ready.
Bug: 11141002
Change-Id: I4704bffb9ba36af47a66dc5b49cbba00be623aae
-rw-r--r-- | api/current.txt | 402 | ||||
-rw-r--r-- | core/java/android/content/Context.java | 1 | ||||
-rw-r--r-- | core/java/android/hardware/camera2/package.html | 2 | ||||
-rw-r--r-- | graphics/java/android/graphics/ImageFormat.java | 6 | ||||
-rw-r--r-- | media/java/android/media/Image.java | 12 | ||||
-rw-r--r-- | media/java/android/media/ImageReader.java | 3 |
6 files changed, 7 insertions, 419 deletions
diff --git a/api/current.txt b/api/current.txt index dc21e90..68a4f50 100644 --- a/api/current.txt +++ b/api/current.txt @@ -5974,7 +5974,6 @@ package android.content { field public static final int BIND_NOT_FOREGROUND = 4; // 0x4 field public static final int BIND_WAIVE_PRIORITY = 32; // 0x20 field public static final java.lang.String BLUETOOTH_SERVICE = "bluetooth"; - field public static final java.lang.String CAMERA_SERVICE = "camera"; field public static final java.lang.String CAPTIONING_SERVICE = "captioning"; field public static final java.lang.String CLIPBOARD_SERVICE = "clipboard"; field public static final java.lang.String CONNECTIVITY_SERVICE = "connectivity"; @@ -9248,7 +9247,6 @@ package android.graphics { field public static final int JPEG = 256; // 0x100 field public static final int NV16 = 16; // 0x10 field public static final int NV21 = 17; // 0x11 - field public static final int RAW_SENSOR = 32; // 0x20 field public static final int RGB_565 = 4; // 0x4 field public static final int UNKNOWN = 0; // 0x0 field public static final int YUV_420_888 = 35; // 0x23 @@ -10856,406 +10854,6 @@ package android.hardware { } -package android.hardware.camera2 { - - public class CameraAccessException extends android.util.AndroidException { - ctor public CameraAccessException(int); - ctor public CameraAccessException(int, java.lang.String); - ctor public CameraAccessException(int, java.lang.String, java.lang.Throwable); - ctor public CameraAccessException(int, java.lang.Throwable); - method public final int getReason(); - field public static final int CAMERA_DISABLED = 1; // 0x1 - field public static final int CAMERA_DISCONNECTED = 2; // 0x2 - field public static final int CAMERA_ERROR = 3; // 0x3 - } - - public final class CameraCharacteristics extends android.hardware.camera2.CameraMetadata { - method public T get(android.hardware.camera2.CameraMetadata.Key<T>); - method public java.util.List<android.hardware.camera2.CameraMetadata.Key<?>> getAvailableCaptureRequestKeys(); - method public java.util.List<android.hardware.camera2.CameraMetadata.Key<?>> getAvailableCaptureResultKeys(); - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_AVAILABLE_ANTIBANDING_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_COMPENSATION_RANGE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_COMPENSATION_STEP; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_AVAILABLE_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AVAILABLE_EFFECTS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AVAILABLE_SCENE_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_AVAILABLE_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_MAX_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key FLASH_INFO_AVAILABLE; - field public static final android.hardware.camera2.CameraMetadata.Key INFO_SUPPORTED_HARDWARE_LEVEL; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_AVAILABLE_THUMBNAIL_SIZES; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FACING; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_AVAILABLE_APERTURES; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_AVAILABLE_FILTER_DENSITIES; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_AVAILABLE_FOCAL_LENGTHS; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_HYPERFOCAL_DISTANCE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_MINIMUM_FOCUS_DISTANCE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_INFO_SHADING_MAP_SIZE; - field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_MAX_NUM_OUTPUT_STREAMS; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_FORMATS; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_JPEG_MIN_DURATIONS; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_JPEG_SIZES; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_MAX_DIGITAL_ZOOM; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_AVAILABLE_PROCESSED_SIZES; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_BASE_GAIN_FACTOR; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_INFO_ACTIVE_ARRAY_SIZE; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_INFO_EXPOSURE_TIME_RANGE; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_INFO_MAX_FRAME_DURATION; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_INFO_PHYSICAL_SIZE; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_INFO_SENSITIVITY_RANGE; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_MAX_ANALOG_SENSITIVITY; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_ORIENTATION; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_INFO_MAX_FACE_COUNT; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_MAX_CURVE_POINTS; - } - - public abstract interface CameraDevice implements java.lang.AutoCloseable { - method public abstract int capture(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraDevice.CaptureListener, android.os.Handler) throws android.hardware.camera2.CameraAccessException; - method public abstract int captureBurst(java.util.List<android.hardware.camera2.CaptureRequest>, android.hardware.camera2.CameraDevice.CaptureListener, android.os.Handler) throws android.hardware.camera2.CameraAccessException; - method public abstract void close(); - method public abstract void configureOutputs(java.util.List<android.view.Surface>) throws android.hardware.camera2.CameraAccessException; - method public abstract android.hardware.camera2.CaptureRequest.Builder createCaptureRequest(int) throws android.hardware.camera2.CameraAccessException; - method public abstract void flush() throws android.hardware.camera2.CameraAccessException; - method public abstract java.lang.String getId(); - method public abstract int setRepeatingBurst(java.util.List<android.hardware.camera2.CaptureRequest>, android.hardware.camera2.CameraDevice.CaptureListener, android.os.Handler) throws android.hardware.camera2.CameraAccessException; - method public abstract int setRepeatingRequest(android.hardware.camera2.CaptureRequest, android.hardware.camera2.CameraDevice.CaptureListener, android.os.Handler) throws android.hardware.camera2.CameraAccessException; - method public abstract void stopRepeating() throws android.hardware.camera2.CameraAccessException; - method public abstract void waitUntilIdle() throws android.hardware.camera2.CameraAccessException; - field public static final int TEMPLATE_PREVIEW = 1; // 0x1 - field public static final int TEMPLATE_RECORD = 3; // 0x3 - field public static final int TEMPLATE_STILL_CAPTURE = 2; // 0x2 - field public static final int TEMPLATE_VIDEO_SNAPSHOT = 4; // 0x4 - } - - public static abstract class CameraDevice.CaptureListener { - ctor public CameraDevice.CaptureListener(); - method public void onCaptureCompleted(android.hardware.camera2.CameraDevice, android.hardware.camera2.CaptureRequest, android.hardware.camera2.CaptureResult); - method public void onCaptureFailed(android.hardware.camera2.CameraDevice, android.hardware.camera2.CaptureRequest, android.hardware.camera2.CaptureFailure); - method public void onCaptureSequenceCompleted(android.hardware.camera2.CameraDevice, int, int); - method public void onCaptureStarted(android.hardware.camera2.CameraDevice, android.hardware.camera2.CaptureRequest, long); - } - - public static abstract class CameraDevice.StateListener { - ctor public CameraDevice.StateListener(); - method public void onActive(android.hardware.camera2.CameraDevice); - method public void onBusy(android.hardware.camera2.CameraDevice); - method public void onClosed(android.hardware.camera2.CameraDevice); - method public abstract void onDisconnected(android.hardware.camera2.CameraDevice); - method public abstract void onError(android.hardware.camera2.CameraDevice, int); - method public void onIdle(android.hardware.camera2.CameraDevice); - method public abstract void onOpened(android.hardware.camera2.CameraDevice); - method public void onUnconfigured(android.hardware.camera2.CameraDevice); - field public static final int ERROR_CAMERA_DEVICE = 4; // 0x4 - field public static final int ERROR_CAMERA_DISABLED = 3; // 0x3 - field public static final int ERROR_CAMERA_IN_USE = 1; // 0x1 - field public static final int ERROR_CAMERA_SERVICE = 5; // 0x5 - field public static final int ERROR_MAX_CAMERAS_IN_USE = 2; // 0x2 - } - - public final class CameraManager { - method public void addAvailabilityListener(android.hardware.camera2.CameraManager.AvailabilityListener, android.os.Handler); - method public android.hardware.camera2.CameraCharacteristics getCameraCharacteristics(java.lang.String) throws android.hardware.camera2.CameraAccessException; - method public java.lang.String[] getCameraIdList() throws android.hardware.camera2.CameraAccessException; - method public void openCamera(java.lang.String, android.hardware.camera2.CameraDevice.StateListener, android.os.Handler) throws android.hardware.camera2.CameraAccessException; - method public void removeAvailabilityListener(android.hardware.camera2.CameraManager.AvailabilityListener); - } - - public static abstract class CameraManager.AvailabilityListener { - ctor public CameraManager.AvailabilityListener(); - method public void onCameraAvailable(java.lang.String); - method public void onCameraUnavailable(java.lang.String); - } - - public abstract class CameraMetadata { - method public abstract T get(android.hardware.camera2.CameraMetadata.Key<T>); - method public java.util.List<android.hardware.camera2.CameraMetadata.Key<?>> getKeys(); - field public static final int COLOR_CORRECTION_MODE_FAST = 1; // 0x1 - field public static final int COLOR_CORRECTION_MODE_HIGH_QUALITY = 2; // 0x2 - field public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0; // 0x0 - field public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ = 1; // 0x1 - field public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ = 2; // 0x2 - field public static final int CONTROL_AE_ANTIBANDING_MODE_AUTO = 3; // 0x3 - field public static final int CONTROL_AE_ANTIBANDING_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_AE_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_AE_MODE_ON = 1; // 0x1 - field public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3; // 0x3 - field public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2; // 0x2 - field public static final int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4; // 0x4 - field public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0; // 0x0 - field public static final int CONTROL_AE_PRECAPTURE_TRIGGER_START = 1; // 0x1 - field public static final int CONTROL_AE_STATE_CONVERGED = 2; // 0x2 - field public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4; // 0x4 - field public static final int CONTROL_AE_STATE_INACTIVE = 0; // 0x0 - field public static final int CONTROL_AE_STATE_LOCKED = 3; // 0x3 - field public static final int CONTROL_AE_STATE_PRECAPTURE = 5; // 0x5 - field public static final int CONTROL_AE_STATE_SEARCHING = 1; // 0x1 - field public static final int CONTROL_AF_MODE_AUTO = 1; // 0x1 - field public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4; // 0x4 - field public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3; // 0x3 - field public static final int CONTROL_AF_MODE_EDOF = 5; // 0x5 - field public static final int CONTROL_AF_MODE_MACRO = 2; // 0x2 - field public static final int CONTROL_AF_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_AF_STATE_ACTIVE_SCAN = 3; // 0x3 - field public static final int CONTROL_AF_STATE_FOCUSED_LOCKED = 4; // 0x4 - field public static final int CONTROL_AF_STATE_INACTIVE = 0; // 0x0 - field public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5; // 0x5 - field public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED = 2; // 0x2 - field public static final int CONTROL_AF_STATE_PASSIVE_SCAN = 1; // 0x1 - field public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6; // 0x6 - field public static final int CONTROL_AF_TRIGGER_CANCEL = 2; // 0x2 - field public static final int CONTROL_AF_TRIGGER_IDLE = 0; // 0x0 - field public static final int CONTROL_AF_TRIGGER_START = 1; // 0x1 - field public static final int CONTROL_AWB_MODE_AUTO = 1; // 0x1 - field public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6; // 0x6 - field public static final int CONTROL_AWB_MODE_DAYLIGHT = 5; // 0x5 - field public static final int CONTROL_AWB_MODE_FLUORESCENT = 3; // 0x3 - field public static final int CONTROL_AWB_MODE_INCANDESCENT = 2; // 0x2 - field public static final int CONTROL_AWB_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_AWB_MODE_SHADE = 8; // 0x8 - field public static final int CONTROL_AWB_MODE_TWILIGHT = 7; // 0x7 - field public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT = 4; // 0x4 - field public static final int CONTROL_AWB_STATE_CONVERGED = 2; // 0x2 - field public static final int CONTROL_AWB_STATE_INACTIVE = 0; // 0x0 - field public static final int CONTROL_AWB_STATE_LOCKED = 3; // 0x3 - field public static final int CONTROL_AWB_STATE_SEARCHING = 1; // 0x1 - field public static final int CONTROL_CAPTURE_INTENT_CUSTOM = 0; // 0x0 - field public static final int CONTROL_CAPTURE_INTENT_PREVIEW = 1; // 0x1 - field public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2; // 0x2 - field public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3; // 0x3 - field public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4; // 0x4 - field public static final int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5; // 0x5 - field public static final int CONTROL_EFFECT_MODE_AQUA = 8; // 0x8 - field public static final int CONTROL_EFFECT_MODE_BLACKBOARD = 7; // 0x7 - field public static final int CONTROL_EFFECT_MODE_MONO = 1; // 0x1 - field public static final int CONTROL_EFFECT_MODE_NEGATIVE = 2; // 0x2 - field public static final int CONTROL_EFFECT_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_EFFECT_MODE_POSTERIZE = 5; // 0x5 - field public static final int CONTROL_EFFECT_MODE_SEPIA = 4; // 0x4 - field public static final int CONTROL_EFFECT_MODE_SOLARIZE = 3; // 0x3 - field public static final int CONTROL_EFFECT_MODE_WHITEBOARD = 6; // 0x6 - field public static final int CONTROL_MODE_AUTO = 1; // 0x1 - field public static final int CONTROL_MODE_OFF = 0; // 0x0 - field public static final int CONTROL_MODE_USE_SCENE_MODE = 2; // 0x2 - field public static final int CONTROL_SCENE_MODE_ACTION = 2; // 0x2 - field public static final int CONTROL_SCENE_MODE_BARCODE = 16; // 0x10 - field public static final int CONTROL_SCENE_MODE_BEACH = 8; // 0x8 - field public static final int CONTROL_SCENE_MODE_CANDLELIGHT = 15; // 0xf - field public static final int CONTROL_SCENE_MODE_FACE_PRIORITY = 1; // 0x1 - field public static final int CONTROL_SCENE_MODE_FIREWORKS = 12; // 0xc - field public static final int CONTROL_SCENE_MODE_LANDSCAPE = 4; // 0x4 - field public static final int CONTROL_SCENE_MODE_NIGHT = 5; // 0x5 - field public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6; // 0x6 - field public static final int CONTROL_SCENE_MODE_PARTY = 14; // 0xe - field public static final int CONTROL_SCENE_MODE_PORTRAIT = 3; // 0x3 - field public static final int CONTROL_SCENE_MODE_SNOW = 9; // 0x9 - field public static final int CONTROL_SCENE_MODE_SPORTS = 13; // 0xd - field public static final int CONTROL_SCENE_MODE_STEADYPHOTO = 11; // 0xb - field public static final int CONTROL_SCENE_MODE_SUNSET = 10; // 0xa - field public static final int CONTROL_SCENE_MODE_THEATRE = 7; // 0x7 - field public static final int CONTROL_SCENE_MODE_UNSUPPORTED = 0; // 0x0 - field public static final int EDGE_MODE_FAST = 1; // 0x1 - field public static final int EDGE_MODE_HIGH_QUALITY = 2; // 0x2 - field public static final int EDGE_MODE_OFF = 0; // 0x0 - field public static final int FLASH_MODE_OFF = 0; // 0x0 - field public static final int FLASH_MODE_SINGLE = 1; // 0x1 - field public static final int FLASH_MODE_TORCH = 2; // 0x2 - field public static final int FLASH_STATE_CHARGING = 1; // 0x1 - field public static final int FLASH_STATE_FIRED = 3; // 0x3 - field public static final int FLASH_STATE_READY = 2; // 0x2 - field public static final int FLASH_STATE_UNAVAILABLE = 0; // 0x0 - field public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1; // 0x1 - field public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0; // 0x0 - field public static final int LENS_FACING_BACK = 1; // 0x1 - field public static final int LENS_FACING_FRONT = 0; // 0x0 - field public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF = 0; // 0x0 - field public static final int LENS_OPTICAL_STABILIZATION_MODE_ON = 1; // 0x1 - field public static final int LENS_STATE_MOVING = 1; // 0x1 - field public static final int LENS_STATE_STATIONARY = 0; // 0x0 - field public static final int NOISE_REDUCTION_MODE_FAST = 1; // 0x1 - field public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY = 2; // 0x2 - field public static final int NOISE_REDUCTION_MODE_OFF = 0; // 0x0 - field public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2; // 0x2 - field public static final int STATISTICS_FACE_DETECT_MODE_OFF = 0; // 0x0 - field public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE = 1; // 0x1 - field public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0; // 0x0 - field public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON = 1; // 0x1 - field public static final int STATISTICS_SCENE_FLICKER_50HZ = 1; // 0x1 - field public static final int STATISTICS_SCENE_FLICKER_60HZ = 2; // 0x2 - field public static final int STATISTICS_SCENE_FLICKER_NONE = 0; // 0x0 - field public static final int TONEMAP_MODE_CONTRAST_CURVE = 0; // 0x0 - field public static final int TONEMAP_MODE_FAST = 1; // 0x1 - field public static final int TONEMAP_MODE_HIGH_QUALITY = 2; // 0x2 - } - - public static class CameraMetadata.Key { - method public final boolean equals(java.lang.Object); - method public final java.lang.String getName(); - method public final int hashCode(); - } - - public class CaptureFailure { - method public int getFrameNumber(); - method public int getReason(); - method public android.hardware.camera2.CaptureRequest getRequest(); - method public int getSequenceId(); - method public boolean wasImageCaptured(); - field public static final int REASON_ERROR = 0; // 0x0 - field public static final int REASON_FLUSHED = 1; // 0x1 - } - - public final class CaptureRequest extends android.hardware.camera2.CameraMetadata implements android.os.Parcelable { - method public int describeContents(); - method public T get(android.hardware.camera2.CameraMetadata.Key<T>); - method public java.lang.Object getTag(); - method public void writeToParcel(android.os.Parcel, int); - field public static final android.hardware.camera2.CameraMetadata.Key BLACK_LEVEL_LOCK; - field public static final android.hardware.camera2.CameraMetadata.Key COLOR_CORRECTION_GAINS; - field public static final android.hardware.camera2.CameraMetadata.Key COLOR_CORRECTION_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key COLOR_CORRECTION_TRANSFORM; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_ANTIBANDING_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_EXPOSURE_COMPENSATION; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_LOCK; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_PRECAPTURE_TRIGGER; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_TARGET_FPS_RANGE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_TRIGGER; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_LOCK; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_CAPTURE_INTENT; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_EFFECT_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_SCENE_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_VIDEO_STABILIZATION_MODE; - field public static final android.os.Parcelable.Creator CREATOR; - field public static final android.hardware.camera2.CameraMetadata.Key EDGE_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key FLASH_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_COORDINATES; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_PROCESSING_METHOD; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_TIMESTAMP; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_ORIENTATION; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_QUALITY; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_THUMBNAIL_QUALITY; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_THUMBNAIL_SIZE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_APERTURE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FILTER_DENSITY; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FOCAL_LENGTH; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FOCUS_DISTANCE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_OPTICAL_STABILIZATION_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key NOISE_REDUCTION_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_CROP_REGION; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_EXPOSURE_TIME; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_FRAME_DURATION; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_SENSITIVITY; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_DETECT_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_LENS_SHADING_MAP_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_BLUE; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_GREEN; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_RED; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_MODE; - } - - public static final class CaptureRequest.Builder { - method public void addTarget(android.view.Surface); - method public android.hardware.camera2.CaptureRequest build(); - method public T get(android.hardware.camera2.CameraMetadata.Key<T>); - method public void removeTarget(android.view.Surface); - method public void set(android.hardware.camera2.CameraMetadata.Key<T>, T); - method public void setTag(java.lang.Object); - } - - public final class CaptureResult extends android.hardware.camera2.CameraMetadata { - method public T get(android.hardware.camera2.CameraMetadata.Key<T>); - method public int getFrameNumber(); - method public android.hardware.camera2.CaptureRequest getRequest(); - method public int getSequenceId(); - field public static final android.hardware.camera2.CameraMetadata.Key BLACK_LEVEL_LOCK; - field public static final android.hardware.camera2.CameraMetadata.Key COLOR_CORRECTION_GAINS; - field public static final android.hardware.camera2.CameraMetadata.Key COLOR_CORRECTION_TRANSFORM; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AE_STATE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AF_STATE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_REGIONS; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_AWB_STATE; - field public static final android.hardware.camera2.CameraMetadata.Key CONTROL_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key EDGE_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key FLASH_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key FLASH_STATE; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_COORDINATES; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_PROCESSING_METHOD; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_GPS_TIMESTAMP; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_ORIENTATION; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_QUALITY; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_THUMBNAIL_QUALITY; - field public static final android.hardware.camera2.CameraMetadata.Key JPEG_THUMBNAIL_SIZE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_APERTURE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FILTER_DENSITY; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FOCAL_LENGTH; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FOCUS_DISTANCE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_FOCUS_RANGE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_OPTICAL_STABILIZATION_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key LENS_STATE; - field public static final android.hardware.camera2.CameraMetadata.Key NOISE_REDUCTION_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key REQUEST_FRAME_COUNT; - field public static final android.hardware.camera2.CameraMetadata.Key SCALER_CROP_REGION; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_EXPOSURE_TIME; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_FRAME_DURATION; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_SENSITIVITY; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_TEMPERATURE; - field public static final android.hardware.camera2.CameraMetadata.Key SENSOR_TIMESTAMP; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACES; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_DETECT_MODE; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_IDS; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_LANDMARKS; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_RECTANGLES; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_FACE_SCORES; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_LENS_SHADING_MAP; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_PREDICTED_COLOR_GAINS; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_PREDICTED_COLOR_TRANSFORM; - field public static final android.hardware.camera2.CameraMetadata.Key STATISTICS_SCENE_FLICKER; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_BLUE; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_GREEN; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_CURVE_RED; - field public static final android.hardware.camera2.CameraMetadata.Key TONEMAP_MODE; - } - - public final class Face { - method public android.graphics.Rect getBounds(); - method public int getId(); - method public android.graphics.Point getLeftEyePosition(); - method public android.graphics.Point getMouthPosition(); - method public android.graphics.Point getRightEyePosition(); - method public int getScore(); - field public static final int ID_UNSUPPORTED = -1; // 0xffffffff - field public static final int SCORE_MAX = 100; // 0x64 - field public static final int SCORE_MIN = 1; // 0x1 - } - - public final class Rational { - ctor public Rational(int, int); - method public int getDenominator(); - method public int getNumerator(); - } - - public final class Size { - ctor public Size(int, int); - method public final int getHeight(); - method public final int getWidth(); - } - -} - package android.hardware.display { public final class DisplayManager { diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 50401bd..fe079bc 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -2371,6 +2371,7 @@ public abstract class Context { * * @see #getSystemService * @see android.hardware.camera2.CameraManager + * @hide */ public static final String CAMERA_SERVICE = "camera"; diff --git a/core/java/android/hardware/camera2/package.html b/core/java/android/hardware/camera2/package.html index 9f6c2a9..c619984 100644 --- a/core/java/android/hardware/camera2/package.html +++ b/core/java/android/hardware/camera2/package.html @@ -80,5 +80,7 @@ output streams included in the request. These are produced asynchronously relative to the output CaptureResult, sometimes substantially later.</p> +{@hide} + </BODY> </HTML> diff --git a/graphics/java/android/graphics/ImageFormat.java b/graphics/java/android/graphics/ImageFormat.java index e08ed50..1bcfc18 100644 --- a/graphics/java/android/graphics/ImageFormat.java +++ b/graphics/java/android/graphics/ImageFormat.java @@ -187,10 +187,6 @@ public class ImageFormat { * == {@link android.media.Image.Plane#getPixelStride() vPlane.getPixelStride()}; * ).</p> * - * <p>For example, the {@link android.media.Image} object can provide data - * in this format from a {@link android.hardware.camera2.CameraDevice} - * through a {@link android.media.ImageReader} object.</p> - * * @see android.media.Image * @see android.media.ImageReader * @see android.hardware.camera2.CameraDevice @@ -207,6 +203,8 @@ public class ImageFormat { * needed information to interpret a raw sensor image must be queried from * the {@link android.hardware.camera2.CameraDevice} which produced the * image.</p> + * + * @hide */ public static final int RAW_SENSOR = 0x20; diff --git a/media/java/android/media/Image.java b/media/java/android/media/Image.java index a346e17..23abce7 100644 --- a/media/java/android/media/Image.java +++ b/media/java/android/media/Image.java @@ -21,8 +21,7 @@ import java.lang.AutoCloseable; /** * <p>A single complete image buffer to use with a media source such as a - * {@link MediaCodec} or a - * {@link android.hardware.camera2.CameraDevice CameraDevice}.</p> + * {@link MediaCodec}.</p> * * <p>This class allows for efficient direct application access to the pixel * data of the Image through one or more @@ -83,15 +82,6 @@ public abstract class Image implements AutoCloseable { * plane (4:2:0 subsampling). Each pixel sample in each plane has 8 bits. * Each plane has its own row stride and pixel stride.</td> * </tr> - * <tr> - * <td>{@link android.graphics.ImageFormat#RAW_SENSOR RAW_SENSOR}</td> - * <td>1</td> - * <td>A single plane of raw sensor image data, with 16 bits per color - * sample. The details of the layout need to be queried from the source of - * the raw sensor data, such as - * {@link android.hardware.camera2.CameraDevice CameraDevice}. - * </td> - * </tr> * </table> * * @see android.graphics.ImageFormat diff --git a/media/java/android/media/ImageReader.java b/media/java/android/media/ImageReader.java index 1bd32c4..d454c42 100644 --- a/media/java/android/media/ImageReader.java +++ b/media/java/android/media/ImageReader.java @@ -32,8 +32,7 @@ import java.nio.ByteOrder; * rendered into a {@link android.view.Surface}</p> * * <p>Several Android media API classes accept Surface objects as targets to - * render to, including {@link MediaPlayer}, {@link MediaCodec}, - * {@link android.hardware.camera2.CameraDevice}, and + * render to, including {@link MediaPlayer}, {@link MediaCodec}, and * {@link android.renderscript.Allocation RenderScript Allocations}. The image * sizes and formats that can be used with each source vary, and should be * checked in the documentation for the specific API.</p> |