• Home
  • History
  • Annotate
  • only in /frameworks/base/core/java/android/hardware/
History log of /frameworks/base/core/java/android/hardware/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
259f3d90b8784e150e4b903f9810f089f2d9bd42 12-Feb-2015 Ruben Brunk <rubenbrunk@google.com> camera2: Fix legacy scaling factor application.

Bug: 19359916
Change-Id: I22204c50ac918b9be97b5d43efa73c7e87444cea
amera2/legacy/SurfaceTextureRenderer.java
dd72be5971039f6f61af47c956287dc28b33f34c 06-Feb-2015 Zhijun He <zhijunhe@google.com> camera-metadata: clarify the AE precapture trigger spec

Doc only change.

Bug: 19301706
Change-Id: I8f94ee5ace6dd3040ee2f350d589e24e53694f1b
amera2/CaptureRequest.java
amera2/CaptureResult.java
cd0d7cdefef0dbf395e5b159dccb6e884a2077b7 05-Feb-2015 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Make legacy error handling more robust." into lmp-mr1-dev
e3c0434d9741c78ef0405de3e9f4d16b6a8ef360 05-Feb-2015 Ruben Brunk <rubenbrunk@google.com> camera2: Make legacy error handling more robust.

- Relax internal timeout for JPEG captures in LEGACY mode.
- Make RequestThreadManager.quit() idempotent to avoid queuing
messages on a dead thread's handler.
- Catch RuntimeExceptions from other Camera1 API methods to
allow proper cleanup + release of Camera1 API client.

Bug: 19255187
Change-Id: I6cb08bb6b832b0d0df6ee6e8983c35de2df4a408
amera2/legacy/RequestThreadManager.java
81c80180311803d9faabc0bbd6c0813f44edcf7d 05-Feb-2015 Zhijun He <zhijunhe@google.com> Merge "Camera2: relax the EV compensation requirements" into lmp-mr1-dev
f1745ce8a86f79ec8401a40560a8e045f1875006 04-Feb-2015 Zhijun He <zhijunhe@google.com> Camera2: relax the EV compensation requirements

FULL and LIMITED is allowed to advertise [0,0], which indicates that the
exposure compensation is not supported.

Bug: 19219128
Change-Id: I6020a771201d754351f76617f68c06363fac78e8
amera2/CameraCharacteristics.java
fdb2112bbc140aab869aac047454cd2f67809df1 03-Feb-2015 Lajos Molnar <lajos@google.com> camera2: limit flexYUV array size in DngCreator

corrected overread

Bug: 19211135
Change-Id: I373b84dd9e2dc6219a305bf2d0308119668fab2a
amera2/DngCreator.java
dbdaea0c6d44ead142f42ac060af2f5cd7f942ac 29-Jan-2015 Jinsuk Kim <jinsukkim@google.com> Merge "CEC: Do null/empty check against the parameter for checkRecordSource()" into lmp-mr1-dev
c8aaaef20f5d773037cf337d6f1419ba7ebf7832 29-Jan-2015 Jinsuk Kim <jinsukkim@google.com> CEC: Do null/empty check against the parameter for checkRecordSource()

This prevents out-of-bound exception from occurring.

Bug: 19188370
Change-Id: I051dccf7760cb542ea3dc9b0adc9625fa2ad8b1f
dmi/HdmiRecordSources.java
ccf6e88eec6081f83b21e97d930205fa5419583e 28-Jan-2015 Eino-Ville Talvala <etalvala@google.com> Camera2 legacy: Do not advertise NV21 support.

Also reduce logging somewhat for common scenarios.

Bug: 19161738
Change-Id: If96ed7d2bac0229159564072d7969d7bea3fae27
amera2/legacy/LegacyMetadataMapper.java
amera2/utils/ArrayUtils.java
76cf035513d843c66d2fafe85b6a37c4c19b9223 23-Jan-2015 Jinsuk Kim <jinsukkim@google.com> Merge "CEC: Add logic to return to internal source" into lmp-mr1-dev
7fde5e5ba3d306bc694e2b97edf5892755fcb6d0 23-Jan-2015 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: StreamConfigurationMap#isOutputSupportedFor(Surface)" into lmp-mr1-dev
cb8661c08f4a7b00eaa2ede06a30c32dd3cbc53b 18-Jan-2015 Jinsuk Kim <jinsukkim@google.com> CEC: Add logic to return to internal source

This CL introduces a logic that, upon receiving <Inactive Source>
from the active source or a corresponding MHL subcommand, lets
the service return to one of internal inputs.

Introduced to handle it is a new type for HdmiDevice (INACTIVE)
that will be passed to input change listeners. The callback
is expected to transform to other mechanism such as intent,
to let TV app to decide which input to switch to, which will
be one of non-HDMI input that was viewed previously.

Bug: 19008579

Change-Id: I1922f4cd20e9220411061bb9d9fbe5fbc5676d48
dmi/HdmiDeviceInfo.java
fa0b9a00b48394bd9b7e5d54b2b4a5a33d7bd186 20-Jan-2015 Eino-Ville Talvala <etalvala@google.com> Camera2: StreamConfigurationMap#isOutputSupportedFor(Surface)

Add missing implementation.
Also improve docs for flexible Surface sources.

Bug: 19076351
Change-Id: I1f1126a291480dcb68d3dd90825b5994e54dcc99
amera2/CameraDevice.java
amera2/legacy/LegacyCameraDevice.java
amera2/params/StreamConfigurationMap.java
28d2a693efaa10e9b71d679919566cab640f73e0 20-Jan-2015 Jinsuk Kim <jinsukkim@google.com> Mark TimeUnit as @SystemApi

Bug: 18960664
Change-Id: If2c1259b312138bad9416b10f14a8af0f1a222f4
dmi/HdmiTimerRecordSources.java
941aac0c0753d41cf70437272538f51db2d50199 06-Jan-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: doc update for color aberration modes

Code-gened document update for camera2 spec.

Bug: 18915494
Change-Id: I4b6236415f93739da4562eac81f53d2fd4c10f69
amera2/CameraCharacteristics.java
e416d0f67bfed9c8a65573091016d49777c56e8f 05-Jan-2015 Jinsuk Kim <jinsukkim@google.com> CEC: Let MHL device be of type 'source'

MHL devices should be of type source that can stream AV contents
to the connected TV. This should be supported by the API
HdmiDeviceInfo.isSourceType().

Bug: 18897172
Change-Id: I7dcbd7773127bf26797c204504a12c3e2ebbd83b
dmi/HdmiDeviceInfo.java
433e715cc0040ce22a31964c71bff71b1fe1a14f 11-Dec-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix LEGACY YUV production and orientation.

Bug: 18486140
Change-Id: I119e57315b67d1f485bea7f1682bfc261ae0f934
amera2/legacy/SurfaceTextureRenderer.java
3ef5033cdacbc44702d0b6ba687e81383348e2fd 10-Dec-2014 Ruben Brunk <rubenbrunk@google.com> Merge "Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode." into lmp-mr1-dev
f4a637d0be2e028d1e78c8bf90ad17ec3f84b5f3 21-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Camera2: Allow rendering to arbitrary surface sizes in LEGACY mode.

Bug: 16030677
Change-Id: Ida04e04f41983b9126609522dd12064a7bf9645f
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
f4eac129545fd583d33d9e7ab05cc87f61079bb9 05-Dec-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Add HDR scene mode for backwards compatibility.

To maximize backwards compatibility, support the HDR scene mode fully,
as it was supported on Camera HAL1 / Camera API1.

Bug: 18639933
Change-Id: I35c164563379f7f820b42c674bd91f706061170c
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
8485098fa22a61f845cb2abbc5bc856b15835a9e 04-Dec-2014 Zhentao Sun <robinvane@google.com> Merge "Fixed a leak in GeofenceHardwareImpl.java." into lmp-mr1-dev
4cc80a758c3e4f044c2e53b6210df0e515536a1b 03-Dec-2014 Zhentao Sun <robinvane@google.com> Fixed a leak in GeofenceHardwareImpl.java.

Bug: 18542685.
This CL includes two changes:
* Fixed a leak of DeathRecipient when geofences are removed from the
hardware.
* Avoid creating more DeathRecipient than needed. Use the underlying
binder object instead of the callback object to tell if they are the
same. So if the client passes the same callback instance to
GeofenceHardwareImpl, only one DeathRecipient is created.

Change-Id: I7809e4bc04df4f9e3590de98a03178b276c821ea
ocation/GeofenceHardwareImpl.java
381343088f964b6428c483f741424a50ef41cb49 03-Dec-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera: update antibanding spec" into lmp-mr1-dev
f17024873b10dabed069e502030dd85d6257c0c4 27-Nov-2014 Yuncheol Heo <ycheo@google.com> CEC: make it sure to send vendor commands when changing a setting.

- Remove 'oneway' from IHdmiVendorCommandListener.
- Add flush() method to HdmiCecController.
- Use IoThread for HdmiCecController.

Bug: 18495592
Change-Id: I497f7b49e94dd4402058ecc89cb5b7a3d58bf1e1
dmi/IHdmiVendorCommandListener.aidl
4c9c7a58837d0ea9622b2e7b8397eb2f795675b6 22-Oct-2014 Eino-Ville Talvala <etalvala@google.com> CameraManager: Separate service listener into a singleton

Currently, every CameraManager instance adds itself as a camera service
listener, which has the unfortunate side effect of keeping them all alive
indefinitely.

This is doubly unfortunate since every CameraManager keeps the Context it
was constructed with, and therefore may be leaking whole Activities along
with the CameraManager itself.

Break out a global per-process CameraManager which handles service
connection keepalive and availability listeners, so that local camera
manager instances can go out of scope as expected.

Bug: 18077200

Change-Id: I1be5fb8d3492131e98bb4a84121400d4abb2b9e1
amera2/CameraManager.java
7b2cae6ceca680f6034a9fe43df2446cbae2f090 25-Nov-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera: update antibanding spec

Codegened doc change.

Bug: 18503791
Change-Id: I0e8c6ec5d4949923c0091222affdef8bbba59d58
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
8791a1e81a5a07b10b2be05fc6f3d94a71139c96 25-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Merge "Camera2: Ignore unsupported face detection results in LEGACY." into lmp-mr1-dev
5d3d53aa1361c094f05aa70129e49a04875ab5a6 21-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Merge "Camera2: Doc updates for aeExposureCompensation." into lmp-mr1-dev
000973a163d7400a8f37b7b472acfa6144b0621b 21-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Camera2: Ignore unsupported face detection results in LEGACY.

Bug: 18261420
Change-Id: Ia50744326d7ade9c42292952c406c78d7f274769
amera2/legacy/ParameterUtils.java
f721ba0463a99364bd24d9ad29461007c803c412 20-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Camera2: Doc updates for aeExposureCompensation.

Bug: 18467471

Change-Id: I3c270c535fa5e7f3eb40bd699898a759c07d986b
amera2/CameraCharacteristics.java
8d709f3d5381795cdad942f64b9441d54e48d774 17-Nov-2014 Eino-Ville Talvala <etalvala@google.com> Camera: Add one more requirement to BURST_CAPTURE

To enable full-AUTO bursts, also need to ensure a fast enough
AE target FPS range is available.

Bug: 18281970
Change-Id: I73f7747dfe16380a2cd277a56a002ecc1279154e
amera2/CameraMetadata.java
126a7468c2b86f27779443f5f2578a03f3ad78e8 05-Nov-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Add BURST_CAPTURE capability flag

This capability (a subset of FULL) indicates that a camera device
can capture high-rate (>= 20fps) bursts of images at full device
resolution, in at least the YUV_420_888 format.

It also guarantees that the synchronization latency for a device is
relatively small, so that fixed-setting bursts can be captured quickly.

Bug: 18281970
Change-Id: Ifc8fc43252a77097d804429d1c9f6fa71a95aa4f
amera2/CameraCharacteristics.java
amera2/CameraDevice.java
amera2/CameraMetadata.java
4d2d97763f0963d7011d04290dc87b2940aefb33 15-Nov-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Add READ_SETTINGS capability." into lmp-mr1-dev
8977c1dab572cb61ebff1f844a549f7fb2e4e590 14-Nov-2014 Yuncheol Heo <ycheo@google.com> Merge "CEC: Fix a bug in HdmiPortInfo.createFromParcel()." into lmp-mr1-dev
cb6eae0e2eda2a9383ba2682b739b3616a9eaefc 14-Nov-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera: doc update for independent 3A" into lmp-mr1-dev
0c22e6919ab56e85f02b3255493d0009d711a807 11-Nov-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add READ_SETTINGS capability.

Bug: 18281970
Change-Id: I28be92a85f0a843c690f9ff49263440cd871e40d
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
417a95685eaad8790d4639ef6fa1bf6d61ce5ac6 13-Nov-2014 Yuncheol Heo <ycheo@google.com> CEC: Fix a bug in HdmiPortInfo.createFromParcel().

- Added equals() for the testing.

Bug: 18376178
Change-Id: Icc7d5fe78b3132bf51754fc3bb0d5a40e0d3b20a
dmi/HdmiPortInfo.java
7144b5d2cf445ed245cfd9b09c7897966d01b5ff 12-Nov-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera: doc update for independent 3A

Bug: 18281970
Change-Id: I12f8b4fcbabe473b076464eaf9b7617a5ec586d3
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
45c00b5877e908f44853783b42deb437cfd30d94 17-Oct-2014 Sandeep Siddhartha <sansid@google.com> Don't unload the sound model on stopRecognition

This helps us in majority of the scenarios where the sound model doesn't
change across start/stop calls.

Bug: 17954633
Change-Id: Ibff817bb69bc69d2bb3a2603460fed596688b892
oundtrigger/SoundTrigger.java
326aef0c9402742e29c4503c857f93e75cf9a6ec 04-Nov-2014 Jungshik Jang <jayjang@google.com> Add recorder address to all recording listerner apis.

It enables to recognize which recorder reports record status.

Bug: 18248734
Change-Id: I248ad77212ce584dc16863cbe00639e7ac3c184a
dmi/HdmiRecordListener.java
dmi/HdmiTvClient.java
dmi/IHdmiRecordListener.aidl
0ed053ef537daa11659e70c91974cded7c9bddc6 01-Nov-2014 Jeff Brown <jeffbrown@google.com> am e333e674: Add a function to boost screen brightness temporarily.

* commit 'e333e674a758c39885d4d9779a1aad387fb0e6aa':
Add a function to boost screen brightness temporarily.
e333e674a758c39885d4d9779a1aad387fb0e6aa 28-Oct-2014 Jeff Brown <jeffbrown@google.com> Add a function to boost screen brightness temporarily.

When PowerManager.boostScreenBrightness() is called, the screen
brightness is set to maximum for 5 seconds. This action is
also considered to be user activity.

Bug: 17934954
Change-Id: I1cb4a03a60705c6c1c5cc9ff84b1c5dbd2932fcd
isplay/DisplayManagerInternal.java
2b0da5c4c84305f1d391dc78b85e244c9fd92456 22-Oct-2014 Yuncheol Heo <ycheo@google.com> CEC: Fix apilint errors.

- Change 'protected' to 'package private'.
- Change '@hide' to '{@hide}' for methods which should be still hidden
for linting.
- Rename addVendorCommandListener to setVendorCommandListener and make sure to be called once.
- Fix the implementation of removeHotplugEventListener().

Bug: 18063669
Change-Id: I5c032736f17bab9518f21596f7adeac2f88ba4c1
dmi/HdmiClient.java
dmi/HdmiControlManager.java
dmi/HdmiDeviceInfo.java
dmi/HdmiHotplugEvent.java
dmi/HdmiPlaybackClient.java
dmi/HdmiPortInfo.java
dmi/HdmiRecordListener.java
dmi/HdmiRecordSources.java
dmi/HdmiTimerRecordSources.java
dmi/HdmiTvClient.java
5487ab07c77558efa524cfc9b40cbe6fe90fc50e 22-Oct-2014 Yuncheol Heo <ycheo@google.com> CEC: Fix JavaDoc errors.

- Removed the link tag to the non-public objects.

Bug: 18063758
Change-Id: I17c79510c184df8a62cde9a6a1d18109c299c15d
dmi/HdmiClient.java
0608b9328b1c2f804ffb2d4165c34383d34bde2a 13-Oct-2014 Yuncheol Heo <ycheo@google.com> CEC: Add a callback for vendor when HDMI control setting is changed.

- removed unregisterContentObserver() to reactivate the service later.
- added the parameter destAddress to onReceived() callback to
distinguish whether the message is broadcast or not.

Bug: 17962624
Change-Id: I552d14661583f63bb66b07866092f972b259b15a
dmi/HdmiClient.java
dmi/HdmiControlManager.java
dmi/IHdmiVendorCommandListener.aidl
bdf27fbf746bee11430c4db2ea6dfd026bae77fe 20-Oct-2014 Jinsuk Kim <jinsukkim@google.com> CEC: add getDeviceList()

Returns the list of all the connected CEC device information. This is
different from getInputDevices() which returns devices of source type only.

For this, turned the local device address list to unmodifiable so that it can
be used by any threads.

Now respects the device type info passed through <Report Physical Address>
rather than always defaulting to the one from HdmiUtil.getTypeFromAddress().
This ensures future compatibility when a device of reserved logical address
comes with a specific type.

Bug: 18046603
Change-Id: I5f7d5e31706efba1ad5dcf4bcfd4ffc918d1d940
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
1f9b32f006f7c506d9df5bf73294710665746397 17-Sep-2014 Aravind Akella <aakella@google.com> Sensor documentation fixes.

Change-Id: I664e5e2d5103b87ed02f082551e46513f64b95a1
ensor.java
ensorEventListener2.java
ensorManager.java
7e7a14c541aba0824e37f51920e988dc38e9a34f 09-Oct-2014 Eino-Ville Talvala <etalvala@google.com> am eeec4b9e: am ef773e35: Merge changes Id09663d8,Ie88f3750 into lmp-dev

* commit 'eeec4b9ebc15545e59985eab29385157cbbd8e9f':
Camera2: Docs cleanup, especially units and range
camera2: Update docs only for legacy devices
d83e9e42805e340384f30199777fbc472c5c6f20 09-Oct-2014 Dianne Hackborn <hackbod@google.com> am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '0761b1b5ebb453a411e3289c1c972dbfddcee880':
Put in real "code" (aka marketing) name.
ef773e3569969592fb220b7ccc49dafcabfdd67a 08-Oct-2014 Eino-Ville Talvala <etalvala@google.com> Merge changes Id09663d8,Ie88f3750 into lmp-dev

* changes:
Camera2: Docs cleanup, especially units and range
camera2: Update docs only for legacy devices
fd3e2892f29ded5a25a0a064275b282ce93ed258 06-Oct-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Docs cleanup, especially units and range

- Add entries for units and range into javadoc
- Fix up existing units entries and add new ones
- Fix up range entries to be consistent for enums
- Add range entries where it makes sense
- Minor fix to javadoc gen to allow for code indentation
- Lots of edits for consistency, especially to
available* entries.

Bug: 16525650

Change-Id: Id09663d897ec98122073e6e13719731ec0de4dad
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
955d8d69ea6caabce1461dc25b339b9bf9dc61a6 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Put in real "code" (aka marketing) name.

Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
ocation/GeofenceHardware.java
4b8cd6b44cf800cf5dd88e5afbcff4968398779d 03-Oct-2014 Igor Murashkin <iam@google.com> camera2: Update docs only for legacy devices

Bug: 17788234
Change-Id: Ie88f3750cc06d889c6750f2099598d53ccb601b7
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
0c5c24f23468aa71ccf10c2b6b31f6922222f15a 02-Oct-2014 Jungshik Jang <jayjang@google.com> Change visibility of RecordSource into public.

RecordSource should be accessible outside of
android.hardware.hdmi.

Bug: 17775014
Change-Id: I4c8879dc1504aad9672555c17d5b7f6643ed5188
dmi/HdmiRecordSources.java
0a62ab707977d4d6666d1c452ba702442655b6e6 01-Oct-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2 Legacy: Set a default thumbnail size" into lmp-dev
0c79884076405bc36c0fb4f1bce27f883b97d64c 30-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Use valid dimensions for RGBA8888 gralloc buffers.

Bug: 17675571

- All of the mistakes were made. Unmake them.

Change-Id: I23ff7a553347d4d9588c728219f4bf0604ba2e38
amera2/legacy/RequestThreadManager.java
3adf18dc33c1a57983461a3f23976ca9103492c4 30-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2 Legacy: Set a default thumbnail size

Generally, JPEGs are better with thumbnails, and the default parameters
typically set a basic thumbnail size. In legacy, include a default size in the
templates.

This also works around issues with some devices not producing valid images with no
thumbnail.

Bug: 17724701
Change-Id: I2ad1449fc8c6d1fdec609af55f53db7491abbb92
amera2/legacy/LegacyMetadataMapper.java
7b28c66a6cc10b48231f8a5d8d45f5e22322e798 27-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Fix native ImageReader test segfaults." into lmp-dev
31798f33184fd59dd3d3cc55e6373d9f91d220b6 26-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix native ImageReader test segfaults.

Bug: 17675571

- Check for JPEG footer in correct location from ImageReader
when using the RGBA override.
- Add additional error checks in produceFrame method.
- Avoid allocating extra space for jpeg buffers due to
incorrect width calculations.

Change-Id: I926f37e8b3e5c4bad24c16dcee48d52adb1706dd
amera2/legacy/RequestThreadManager.java
56fbbeab7931386af7ad9701fad9b62c170abd77 24-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix parallel session and device close() exception

It's possible for the device to have close() called on it
during the session close sequence such that the session still
tries to do a stream reconfiguration on the closed device.

Handle the exception thrown by this attempt.

Bug: 17661765

Change-Id: Iee63c5c559405abe5c044ae251ad56edd1fb3e79
amera2/impl/CameraCaptureSessionImpl.java
381d22f706f347c681885c0114917d8fe2373be8 27-Sep-2014 Igor Murashkin <iam@google.com> Merge "camera2: Fix race conditions and deadlocks around configuration" into lmp-dev
51dcfd65a6742884e07182dd7d13b916fd4e0305 26-Sep-2014 Igor Murashkin <iam@google.com> camera2: Fix race conditions and deadlocks around configuration

Fixes an illegal state exception that sometimes occurs during
configuration. Fixes a deadlock during unconfiguration. Fixes
the idle handler never being run during configuration.

Bug: 17628736
Change-Id: Id2c5e416f96fcbac9c718fca3cc2cf21734bc6a4
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/legacy/CameraDeviceState.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestHandlerThread.java
amera2/legacy/RequestThreadManager.java
52571b9032fedb90ca1fabbda90d0313d44adfb9 25-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2 Legacy: Clear JPEG ids when reconfiguring.

Otherwise, stale IDs for old streams will be left around, causing
JPEGs to be sent to the wrong consumers.

Bug: 17659125
Change-Id: I98e1a1d389147631bc80eaeb10d57f74a6256f32
amera2/legacy/RequestThreadManager.java
eecc904f13e7a105f5548c953e4caa306fe06f0d 24-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2 legacy: Improve robustness to camera service crashes

When the camera service dies, the getParameters call is often the first
to fail, and on legacy mode, this frequently happens in a background thread.
Catch the runtime exceptions and convert to device errors, instead of killing
the process.

Bug: 17587496

Change-Id: I6757961e7c0387defd368a13cb7c343950602400
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/RequestThreadManager.java
820a08a55581d2f9c8d39c4e197250fb8ded5ab5 25-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Fix null check in PictureCallback." into lmp-dev
2c3d7c5f68993531a4f5f91c1335cac8ca448e17 25-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix null check in PictureCallback.

Bug: 17636586
Change-Id: Ieddc106e14c97dc78405821e83e346d626127e2c
amera2/legacy/RequestThreadManager.java
81ba98619b3b7d5856fe3787167333b05fe16f83 25-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Hide JPEGs in RGBA gralloc buffers." into lmp-dev
1dbf7248eaafd8a44b972b2b6d77c5a6c34fd112 24-Sep-2014 Igor Murashkin <iam@google.com> Merge "camera2: Increase preview frame timeout" into lmp-dev
3e2c14f3d64b66e155e623c6cda22848eb3f5314 24-Sep-2014 Igor Murashkin <iam@google.com> camera2: Increase preview frame timeout

Some devices, especially those with HAL2/HAL3 frames will have a large
delay between the first preview frame and and the camera open. This is
because the streams are configured lazily so it adds extra latency.

Increase the timeout to make it significantly less likely to get frame drops.

Bug: 17628866
Change-Id: I48dcda8507fb7eb31c3f426f833418126171c204
amera2/legacy/RequestThreadManager.java
0fd198ad89ec9c600bb1761b10d938146c28bb98 24-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Hide JPEGs in RGBA gralloc buffers.

Bug: 17379185

- WAR for SW Write usage flags being unavailable on
certain devices for JPEG (blob) format buffers.

Change-Id: Ic7299785b743f35dd47264b9d1cea01a88b71d91
amera2/legacy/BurstHolder.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestHolder.java
amera2/legacy/RequestQueue.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
4f17981fdc04a3246a34031df2488028ffa78e4c 24-Sep-2014 Igor Murashkin <iam@google.com> Merge "camera2-legacy: Workaround max jpeg/preview size AR mismatch" into lmp-dev
a0496d34ffc5153bf933cacbd4be71a4a1bd4041 24-Sep-2014 Igor Murashkin <iam@google.com> camera2-legacy: Workaround max jpeg/preview size AR mismatch

Filter out the largest preview sizes (from the stream configuration map)
until we find one whose aspect ratio matches the max jpeg aspect ratio.
Keep all other (smaller) preview sizes.

Bug: 17589233
Change-Id: I8ebcaef6439691eff3312da2c37b9abe08a067ad
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/SizeAreaComparator.java
b0ddd2e0d6f5431dd03e31dcc9d3064d6c905a3b 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Update EACCES to throw correct exception in LEGACY." into lmp-dev
3084c2f5191e560c10a0011f2f77e6d0e3396f92 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update EACCES to throw correct exception in LEGACY.

Bug: 17595068
Change-Id: I1a88568822237d3609c3342a21e2ca81ca935408
amera2/legacy/CameraDeviceUserShim.java
fcb086c8e76bf2fb3c885a633174dee58f512850 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Docs update for available AF modes." into lmp-dev
6f387098c2c9006a1fecfe18c7052b2cc40a1941 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Docs update for available AF modes.

Bug: 17588783
Change-Id: If4010517e79b3a51bd6231424a10be672ff5a252
amera2/CameraCharacteristics.java
72a23d7b50afe2c2eba999da718864dce79f44bd 23-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add missing whitebalance mapping.

Bug: 17588192
Change-Id: I5d161dd22f2057a33a461157d678d4217a5f88f8
amera2/legacy/LegacyRequestMapper.java
4aed87a9ed31a1ea7fd1ac8fd9ae538d9ecbef7e 22-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Avoid spurious IDLE transitions.

Bug: 17594247

- Avoid spurious IDLE transitions when waiting for
prior requests to complete.
- Clean up error reporting for GL thread and CameraDeviceState.
- Add error handling for Camera1 ErrorCallback calls.

Change-Id: I72850251d8965139b6db2193e91483a3d3409b7c
amera2/legacy/CameraDeviceState.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
97b5301b093000e74f70f1db0453eec3610b4215 22-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Avoid setting null metering regions in LEGACY.

Bug: 17587491

- If a single region with zero weight is set, revert to default
metering region rather than attempting to set a null to
avoid setParameters failure.

Change-Id: Iccd4d53d5a2134a9d744eafb731f464b653a154d
amera2/legacy/LegacyRequestMapper.java
09a6bed6c6e613edfda6cb45499c4277e4446513 21-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix JPEG orientation set by LEGACY request.

Bug: 17589231
Change-Id: Id449bc7a39a6550413e6c441b6dc204e11eacda9
amera2/legacy/LegacyRequestMapper.java
2610a1ba5d2657932d46b818472c2713bec7293e 21-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: refactor LEGACY mode error handling." into lmp-dev
e663cb77281c4c76241b820f6126543f1c2d859f 16-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: refactor LEGACY mode error handling.

Bug: 17431462
Bug: 17407537

- Add Surface format/size validation during configure.
- Update exception error codes used in binder calls.
- Report dropped requests, frames, captures, and device
errors in binder callback properly.
- Fixes CameraDeviceTest errors for incorrect metering
rectangle weight in template tests.
- Fixes CameraDeviceTest errors for missing
noiseReductionMode field in template tests.
- Implement flush call.

Change-Id: I0da803bccf2bfb9b4c0cf61208e160a86c577497
amera2/impl/CameraDeviceImpl.java
amera2/legacy/CameraDeviceState.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/CaptureCollector.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/RequestHolder.java
amera2/legacy/RequestQueue.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
amera2/utils/ArrayUtils.java
8ebac231966e27364e5d463b63540a0527d40c4b 19-Sep-2014 Michael Wright <michaelwr@google.com> Respect intent-filter priority for system keyboard layouts.

Bug: 17573945
Change-Id: Id357e199b37ef771c4362c2a5c4ae762071f0042
nput/KeyboardLayout.java
4e5eddff5eeea38e540465162609f9d9618da09c 16-Sep-2014 Igor Murashkin <iam@google.com> Merge "camera2-legacy: Fix jpeg thumbnail quality not being set" into lmp-dev
89bb63f395ec069aca597fad62128efb0b7684e3 16-Sep-2014 Igor Murashkin <iam@google.com> camera2-legacy: Fix jpeg thumbnail quality not being set

Bug: 17472049
Change-Id: I6ce9f2bb07def86bc58b4b2495c58ee6762a65e1
amera2/legacy/LegacyRequestMapper.java
848fe733f3fb6601229bdaef7c3a876032d46883 16-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Check for sequence complete sooner.

It's possible, especially with legacy mode, for a last frame for a
sequence to have already arrived when a repeating sequence is stopped.

In that case, need to check for sequence complete as soon as the
requestId, framenumber pair is added to the pending queue of completions.

Bug: 17428716
Change-Id: Ie5c6ea5a43639c812b8441da326c6303e150fce0
amera2/impl/CameraDeviceImpl.java
5fa15be4e9bc60150d530cd33e799d1bd779a559 15-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Clean up corner case error handling" into lmp-dev
9503785393ba8999473b7a924ede2baf520e367c 14-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Clean up corner case error handling

- If a session is closed, and a new session is created immediately
afterwards, but then fails to be configured, the first session sees an
onUnconfigured call which it wasn't expecting, and throws an
exception on an internal thread, leading to app death.
Add a guard against this case.

- If the lower levels skip a frame (illegal per design), be slightly more
robust to that by accepting any successful result as the latest completed
frame, instead of just incrementing the completed frame count. This will
lead to missing results, but should allow shutdown, etc, to complete
cleanly.

- Convert TIMED_OUT error codes to CAMERA_ERROR CameraAccessExceptions.
This is a common error code returned by waitUntilIdle.

Also, improve debug logging to log a session ID with verbose logging,
and add a few verbose logs.

Bug: 16899526
Change-Id: I7a31f0a12effc2611e1f9c2408224ee82c37c912
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/utils/CameraBinderDecorator.java
76466c7be315e4e8f473e63b7403ba2c508983c1 13-Sep-2014 Eric Laurent <elaurent@google.com> Merge "SoundTrigger: fix KeyphraseRecognitionEvent parceling" into lmp-dev
75b433f737c3f45ac111a13876c0fd450b0b94ec 13-Sep-2014 Eric Laurent <elaurent@google.com> SoundTrigger: fix KeyphraseRecognitionEvent parceling

Always include the Audioformat in the parcel if not
null.

Bug: 17489186.
Change-Id: I8bea031942b55078e5637959d5bf70961d134733
oundtrigger/SoundTrigger.java
b086421b41f1fbe0dfcd14cb38eed0acbddd81d0 12-Sep-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: add toString for TonemapCurve

Bug: 16899576
Change-Id: Id7c08afed8606efc880cc75201287cd70a0e301c
amera2/params/TonemapCurve.java
d4a94db1cd44a536d535de890a0a14919a39a0dc 12-Sep-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Bug fixes for vendor-specific command handling

- Add sendStandby()
- Respond with <Feature Abort>[INCORRECT_MODE] when the listener
is not ready

Bug: 17379243
Bug: 17358887
Change-Id: I26a4157a70f11206978763fbbe69e4190e3e1d5c
dmi/IHdmiControlService.aidl
68ab6cf0ea4dce600728a433323ab73a956ec900 12-Sep-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Replace the MHL register name 'scratchpad' with 'vendor'" into lmp-dev
b3fbf9dbe8d41d91efbac2118b676af74592257b 12-Sep-2014 Jinsuk Kim <jinsukkim@google.com> Replace the MHL register name 'scratchpad' with 'vendor'

Bug: 17479050
Change-Id: If6fe2949d17ad2d407df5b797c1915eb0e9bf421
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiMhlScratchpadCommandListener.aidl
dmi/IHdmiMhlVendorCommandListener.aidl
6894f60c9c29eef65c3965a3797e09fe2b4ce544 11-Sep-2014 Igor Murashkin <iam@google.com> Merge "camera2.legacy: Add aberration, noisereduction, timestamp source keys" into lmp-dev
442395751d46aa0f569ad479202a84713a260be0 11-Sep-2014 Igor Murashkin <iam@google.com> camera2.legacy: Add aberration, noisereduction, timestamp source keys

Bug: 17328591
Change-Id: I037908e0db505ace1ef62d5aa0622596d8fa2713
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
657d30e7f407d427b89b3f7f0b960cfd5fc3f01d 10-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Allow captures right after abort" into lmp-dev
a3256cd3e7efa9d16bb0c9bfae3583c03a414afa 10-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Fix preview stretching in LEGACY mode." into lmp-dev
059d766e1450eede014076957cda6300e75f84b5 10-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix preview stretching in LEGACY mode.

Bug: 17447262
Change-Id: Idf4ba8d3702cf03c5b01045e2e3efe380b503002
amera2/legacy/RequestThreadManager.java
8544c7da8640d4c0b6c94f46d0519c1006aa6452 10-Sep-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "camera2: make 3A regions null when not available" into lmp-dev
ee7ea8534067fd83ce4e446da5fd8b538cc2c444 09-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Allow captures right after abort

Since implementation is still largely synchronous, this is safe.
For the future full-asynchronous implementation, this is the behavior
we want in any case.

Bug: 17345630
Change-Id: Ib54a3441b21fa8cb42bcc6548e5639d9db7ec193
amera2/impl/CameraCaptureSessionImpl.java
e8df3093f53fa992f89e019b2fc87ff4fac0f335 08-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Add frameNumber to CaptureCallback#onCaptureStarted

Otherwise, cannot reliably match up capture progressed and failure callbacks
with the start callback.

Bug: 17421092
Change-Id: I91d92be70a15536b215bac330370ce37e426ec26
amera2/CameraCaptureSession.java
amera2/dispatch/MethodNameInvoker.java
amera2/impl/CallbackProxies.java
amera2/impl/CameraDeviceImpl.java
808150f066b53da1573e8b1fbd6b377d0fc229f8 09-Sep-2014 Yin-Chia Yeh <yinchiayeh@google.com> camera2: make 3A regions null when not available

Bug: 17346456
Change-Id: If8e1611614622e7eef6f77e03ef55375650f1c51
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyResultMapper.java
39fcca0a503658f91a14b4b1d35dfc4ac9fce9d9 06-Sep-2014 Eric Laurent <elaurent@google.com> SoundTrigger: fix capture format in recognition event

Also include capture format in recognition event
if capture is available for streaming. It was only
included if trigger was contained in event.

Bug: 17409062
Bug: 16731718
Change-Id: I5bf566e6bda57f23c870b4a1293e9b6d15d51e5a
oundtrigger/SoundTrigger.java
b67d7e2345fba8db86ec9a0528f3f820ca980c3a 05-Sep-2014 Aravind Akella <aakella@google.com> Merge "Documentation fix for Sensor.getMaxDelay()" into lmp-dev
71aa8ab5d78de8292be4af49e5930fe37b7525ef 05-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Final API revisions" into lmp-dev
fd887436bd111e4d2c7307578a51b5070025b7f2 04-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Final API revisions

- Rename listeners to callbacks. Listeners are single-method and are interfaces,
while callbacks are abstract may get more methods in the future.
- Use register/unregister for registering callbacks, not add/remove.

Bug: 17389922
Change-Id: Ic6b46ad79cb43a43a85e2a4b63f059d3af99798b
amera2/CameraAccessException.java
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CaptureFailure.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/TotalCaptureResult.java
amera2/impl/CallbackProxies.java
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/impl/ListenerProxies.java
8eca9e0f0b7bee0d11dc410ba7be3b4c0eb8ffa8 05-Sep-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Undo mirror for front camera in legacy mode." into lmp-dev
48980da14d76648b9ff70fa4effce85935c6c32b 05-Sep-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Document supported target combinations for a session." into lmp-dev
b68dd5c8b92d376540ac4ae6ed59671db641685e 05-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Undo mirror for front camera in legacy mode.

Bug: 16637957

- In Camera1 API, front facing camera preview is always mirrored across
the vertical axis. Undo this flip in the legacy mode Camera2 API
sampling operation when copying from the texture drawn to with the
Camera1 API preview buffers.

Change-Id: Ib8ae4fa97f4ad62a3e55ae7da7d474a8655e747d
amera2/legacy/GLThreadManager.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
2e8f1b6399089626b4f0249427626ba6e63a62ef 03-Sep-2014 Jungshik Jang <jayjang@google.com> CEC: Revamp volume control action.

Here is a list of changes
1. Change volume control into event base not level base
2. Hide volume ui if volume change is triggered by CEC
3. Report volume change triggered by CEC in OSD message
4. Revamp HdmiLogger so that normal class uses static method only.
5. Apply format message to HdmiLogger's helper methods.

Bug: 17367215

Change-Id: I9f3cd41f7c66f76919059b463df956ed5176b054
dmi/HdmiControlManager.java
e57676baaa374ce2cc4d83a0c61115d096bd9ac5 05-Sep-2014 Aravind Akella <aakella@google.com> Documentation fix for Sensor.getMaxDelay()

Change-Id: Ibec32f098b2036ec1f9795ec8155dac47b5df4fd
ensor.java
3968a3109962c8bb7bde0820af661cefd34bdb42 04-Sep-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix Nakasi crash-on-start when using Camera2 API.

Bug: 17252693

- WAR to ensure setMeteringAreas and setFocusAreas is never called
if the max areas is 0.
- Fix AF handling for when there are no AF modes that support
Camera#autoFocus being called.

Change-Id: Id2517b76e1be51f8adeeee30dc2032e03debed01
amera2/legacy/LegacyFocusStateMapper.java
amera2/legacy/LegacyRequestMapper.java
f3621f3a5c5fd16ebedd3ce1ae1b0100d0f64152 26-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Document supported target combinations for a session.

Since most camera devices cannot support all combinations of target
sizes given the maximum stream counts, enumerate a set of guaranteed
configurations that can be used to create a session.

Also fix minor docs formatting in StreamConfigurationMap

Bug: 16899526
Change-Id: Ic7c94051dd47964f2be98343163ebd242b19bd24
amera2/CameraDevice.java
amera2/params/StreamConfigurationMap.java
02aa75a08303796801ffd74b9c0bd2f8079248af 02-Sep-2014 Michael Wright <michaelwr@google.com> Merge "VirtualDisplay.Callbacks -> Callback" into lmp-dev
75ee9fcde4d9e1be3883eba6c8d193db4375b052 02-Sep-2014 Michael Wright <michaelwr@google.com> VirtualDisplay.Callbacks -> Callback

Also, rename methods to be onPaused instead of onDisplayPaused, etc.

Bug: 17008630
Change-Id: Id9ead22a42d36ac338309f0f021ba341ed991144
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/IVirtualDisplayCallback.aidl
isplay/IVirtualDisplayCallbacks.aidl
isplay/VirtualDisplay.java
6293217929466892a70bd5bb4b8cd9af17e05bf2 30-Aug-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Add HDR vendor tag for legacy mode." into lmp-dev
3e294e9921db619f5ef0adaf6124a78fd73911b2 29-Aug-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: Remove spurious warnings" into lmp-dev
0d1227d8b9578b642abcfe1767c7d01bda6ddfed 29-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: Implement TotalCaptureResult#getPartialResults" into lmp-dev
d47699a47a77781c8883f31c48ffae88ba878cf8 28-Aug-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Remove spurious warnings

It is valid if all compenents of a synthetic key are null.
Don't warn in that case.

Bug: 17300101

Change-Id: Ifacf2fb56d1272b33a2b1ae377a85c9011e22b24
amera2/impl/CameraMetadataNative.java
97bf45464c056abecfef50a7cc52617344b22de1 29-Aug-2014 Terry Heo <terryheo@google.com> Merge "CEC: Implement dump() of HdmiControlService" into lmp-dev
ff99a0add9700b423a0da3e332840e3907ae96a5 29-Aug-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add HDR vendor tag for legacy mode.

Bug: 17072609

Change-Id: Iebb97d12fc62986ad389460c253cfc504a68ad7f
amera2/CameraMetadata.java
amera2/legacy/LegacyMetadataMapper.java
1e854c5fc817d31eef18e671b9b519bbb4b400d2 29-Aug-2014 Igor Murashkin <iam@google.com> camera2: Implement TotalCaptureResult#getPartialResults

No longer throws NPE. Returns a list of all partial results that were
observed by a listener's #onCaptureProgressed

Bug: 16876347
Change-Id: I80335a8533ab082ac4d5dcd2597e4181ef49f19c
amera2/TotalCaptureResult.java
amera2/impl/CameraDeviceImpl.java
959d2db12c7c6a06465af1251bc4cece580a72a3 28-Aug-2014 Terry Heo <terryheo@google.com> CEC: Implement dump() of HdmiControlService

In addition, use hexadecimal address representation in HdmiPortInfo.toString()

Bug: 17310007
Change-Id: Iaba8f718f86a18a23b50f983053c7589dcdcfaf8
dmi/HdmiPortInfo.java
c346bbf748b27a207f1653dd05132469a0f4d962 28-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Make sure aborting captures on an idle device works.

Check if device is already idle, and if so, don't actually flush,
just fire the busy/idle callbacks to the session.

Bug: 17306157
Change-Id: I7ba416c6014c7bc1edcad07910aa0aff232af8b0
amera2/impl/CameraDeviceImpl.java
acc0095bc84914d3ce41ad8298f698c37935b8a8 06-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Correct error handling

- Report capture failures from service to application
- Only go to error state for device-level errors
- Adjust binder interface method names to match the service side names
- Reduce failed session creation logging
- Don't fire CaptureSession.onActive for CameraDevice.onBusy
- Check with session to determine capture failure reason

Bug: 17160301
Bug: 15524101
Bug: 14448494
Bug: 11272459

Change-Id: I9dd606004fd7845910dc865738fbe17f1640f07d
amera2/ICameraDeviceCallbacks.aidl
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/LegacyCameraDevice.java
339227da7cf025ce4ae0c85ddc52643d63972321 25-Aug-2014 Jungshik Jang <jayjang@google.com> Fix several bugs in HdmiControlService.

1. Fix HdmniLogger null pointer exception
2. Should check arc enabled port for arc requests
3. Disallow ARC action coming from indirect AVR device.
4. Check original opcode of feature action
5. Add bitmasking to all parameters of cec message.

Bug: 17243701, Bug: 17238394, Bug: 17241401
Change-Id: Iff0da78b0de9a29fb00e683c261528e0baea66af
dmi/HdmiControlManager.java
a54cd533663b9836ec78735078ff11a6ca6a6db0 23-Aug-2014 Sandeep Siddhartha <sansid@google.com> Fix an issue with locale for managing intent

Bug: 17187528
Change-Id: I254d838b6b37934ce81dd1fcd5a047b50d593887
oundtrigger/KeyphraseEnrollmentInfo.java
dcf3068fcb55f101680e70a8a6f84f3b2c9cb1e3 23-Aug-2014 Sandeep Siddhartha <sansid@google.com> Fix the Locale story in the hotword API

Tighten the API by taking in a locale rather than a string tag.
Tighten the checks when reading the enrollment metadata, bail out if any
attribute is missing or invalid.
Add missing recycle call for a TypedArray

Stop recognition when sound model(s) change. This is needed during
un-enrollment/re-enrollment.

Bug: 17187528
Bug: 17205230
Change-Id: Idb00b51ef8c4ea0a8f8993decea582223181fa3d
oundtrigger/KeyphraseEnrollmentInfo.java
oundtrigger/KeyphraseMetadata.java
f424932cfb1b16b01a37500d09e295912700a51d 21-Aug-2014 Jungshik Jang <jayjang@google.com> Implement interfaces for MHL scratchpad command

1. Add sendScratchpadCommand to IHdmiControlService interface,
which is used to send scratchpad command.

2. Add IHdmiMhlScratchpadCommandListener to handle incoming
MHL scratchpad command.

Bug: 17146522

Change-Id: I8e8e743dc08a18c80867be470997ce79d3292c15
dmi/HdmiClient.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiMhlScratchpadCommandListener.aidl
2d9a18e02ed56c9448299cf98eb12ddc11e1a8b5 22-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Fix return type of CaptureFailure#getFrameNumber" into lmp-dev
6fc6748ffb9b161f60d296d882aed5f8f85d5220 22-Aug-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: add toString for two params classes" into lmp-dev
b68654ce84cb80cb89bda69a170c8f69dfb3bd77 22-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: Enable configuration failure to call #onConfigureFailed" into lmp-dev
edecaee1f23b2e9f3698b76d8b7e86b697588f83 21-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix return type of CaptureFailure#getFrameNumber

Should be long, not int.

Bug: 17188354
Change-Id: If90749f21cdf9dd493aa561769655211a70acf29
amera2/CaptureFailure.java
97376d90d660254a934fab7708198d53f03fe2e4 20-Aug-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: add toString for two params classes

Add toString for RggbChannelVector and ColorSpaceTransform.
Also change ColorSpaceTransform equals implementation to actually
compare the underlying rationals.

bug 16963063

Change-Id: I858153b405bc3541959be79962db750d429413a3
amera2/params/ColorSpaceTransform.java
amera2/params/RggbChannelVector.java
9e4e439a688f1859cd895f2ff7ecad75cddb116b 18-Aug-2014 Zhijun He <zhijunhe@google.com> Camera2: update aberration correction related tag name

This is for API review update.

Bug: 17008587
Change-Id: I67c2cffed8fcc106008b0fde6f01cd81f4ce6db0
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
10fbbbb6babc2700c731ac85fc0137d481e4d256 20-Aug-2014 Igor Murashkin <iam@google.com> camera2: Enable configuration failure to call #onConfigureFailed

Bug: 16629195
Change-Id: I0c365bc8f760466916dcc089217a43c43f9f4c9d
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
3a6eba01c48363f675090bd8e0f853a7fbf2165d 19-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: Fix StreamConfigurationMap#getOutputSizes for ImageReader" into lmp-dev
517b74533afe53c740400bff3b85806884286344 19-Aug-2014 Igor Murashkin <iam@google.com> camera2: Fix StreamConfigurationMap#getOutputSizes for ImageReader

Return empty array since no implementation-defined sizes are supported

Bug: 17007153
Change-Id: I178e89ef6b2640896f8657765beb458022d66ae5
amera2/params/StreamConfigurationMap.java
ae0da7a81ca40366393a551170672a5e5c32115e 19-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: (Legacy) Add control.sceneMode = DISABLED to templates" into lmp-dev
981952d07aa38d3779a5e88ffeb223fc364cd89f 19-Aug-2014 Igor Murashkin <iam@google.com> camera2: (Legacy) Add control.sceneMode = DISABLED to templates

Bug: 17024375
Change-Id: Ie4e2a7f22caa842b4f3850f3739f22c5f6a9b88f
amera2/legacy/LegacyMetadataMapper.java
be2ecae5fe44fef128e0be899a79775da7751a56 20-Aug-2014 Aravind Akella <aakella@google.com> Merge "Step Counter documentation fix." into lmp-dev
0c44d69dc58cb36ffa4cd7aa76f16b34f6e3a5bd 20-Aug-2014 Aravind Akella <aakella@google.com> Step Counter documentation fix.

Change-Id: I04921ca2bdfd10581f5582a025de617a506035b7
ensor.java
98f4c16a7beba90abffa89d0b32b8ee56a31073d 18-Aug-2014 Jinsuk Kim <jinsukkim@google.com> Merge "CEC: Replace the usage of logical address with id for HdmiDeviceInfo" into lmp-dev
87f22a2870ac363a5849a7252c1bd44ce2b809c2 20-Aug-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Hook up device select API to MHL device RAP

This lets the input selection on UI perform MHL RAP signalling, and
CEC routing control.

Bug: 17141884
Change-Id: Ic1605175c5779a9a3c43df954baf9fdb6f154d36
dmi/HdmiDeviceInfo.java
7064dd65d866fddf72816358ff15d8453c1c38e9 20-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: legacy: disable shutter sounds unconditionally via camera2 api" into lmp-dev
6653362f6b5c5854bd88244bcecad72d11bf9404 19-Aug-2014 Igor Murashkin <iam@google.com> camera2: legacy: disable shutter sounds unconditionally via camera2 api

Bug: 17109582
Change-Id: Ieb3fc61ff111d792cc657c018e278349c25472cf
amera.java
amera2/legacy/CameraDeviceUserShim.java
8809f1e5473db09bc47315a2e423e58ba14fd670 19-Aug-2014 Jinsuk Kim <jinsukkim@google.com> Merge "CEC: Invoke events listener upon MHL device state change" into lmp-dev
ed0864557b3340ab7db00e2dc95b29c4b8bb485d 18-Aug-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Invoke events listener upon MHL device state change

With this change, mobile devices state changes are propagated through
TIF to UI, hence the input pickers shows the mobile devices as
expected.

Bug: 16986744
Change-Id: Id633207acf4f814f57d43cc1de5f8cb88ac23ad6
dmi/HdmiDeviceInfo.java
c4e1e59561884afc2c71b4b52697f62bd6b38f99 15-Aug-2014 destradaa <destradaa@google.com> Add @SystemApi annotation to Geofence Hardware types.

b/17008446

Change-Id: Id3f92dd03309324d3343c87da8c3e30733d06a64
ocation/GeofenceHardware.java
ocation/GeofenceHardwareCallback.java
ocation/GeofenceHardwareMonitorCallback.java
ocation/GeofenceHardwareMonitorEvent.java
ocation/GeofenceHardwareRequest.java
e364aecf17124e0ae443bf9fe0e1b7c588a0d25a 16-Aug-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Add jpeg metadata for LEGACY shim." into lmp-dev
1dc1326eaedd11ffd8f85927b8f0195f4f7598d3 31-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add jpeg metadata for LEGACY shim.

Bug: 15116722
Change-Id: I8abef3ca9a47b2f93978a758aa59c3b915a7e000
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/ParameterUtils.java
amera2/legacy/RequestThreadManager.java
a9bc3559109836efe7479a3279713bd58810b153 15-Aug-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix shim aspect ratio scaling.

Bug: 16494207
Change-Id: I4bd40dee1caaf8c83a0853d48d44cc97151f9b41
amera2/legacy/SurfaceTextureRenderer.java
8960d1b1552729e3dfd33deee951ac75933ad8e5 13-Aug-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Replace the usage of logical address with id for HdmiDeviceInfo

Introduced 'id' of HdmiDeviceInfo to replace the direct use of logical address
as id. This accomodates the identification of MHL device with ease. Also updated
TIF to use id instead of logical address.

Bug: 16986744
Change-Id: Ifa827fb5e5fcf1d2f612f0845accbfe5c03734aa
dmi/HdmiDeviceInfo.java
dmi/IHdmiControlService.aidl
d38bf476f6a31602e92a3207a4ceb29bf965f9aa 11-Aug-2014 Jinsuk Kim <jinsukkim@google.com> Move input change event handling out of TVInputManager

HDMI input change event should be handled best in TIS implementation
of HDMI input since the input change request from TV/other device
needs to be properly coordinated. This requires the listener be
moved the input service.

Provided an interface in HdmiTvClient for the input service to access
the API through getSystemService(Context.HDMI_CONTROL_SERVICE).

Conflicts:
services/core/java/com/android/server/tv/TvInputHardwareManager.java

Bug: 15570939
Change-Id: Ie2ad10d77907de3d4501f9c892ca553b75365467
dmi/HdmiTvClient.java
d42a5fd3e7fff38dbc8a82484dac53bfbcb61ac4 09-Aug-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Fix the comparison for fixed-focus cameras

* Use #equals instead of == for string comparison
* Also make sure lens.info.minimumFocusDistance shows up in
CameraCharacteristics#getKeys() for fixed-focus cameras

Bug: 16900875
Change-Id: I3b9248c5cb62ddcfb13587c6349525e145e353ac
amera2/legacy/LegacyMetadataMapper.java
7336f470e3486dbbbc787a2c3ac68a567bc392e8 09-Aug-2014 Igor Murashkin <iam@google.com> camera: (LEGACY) - Add captureIntent and physicalSize metadata

Bug: 16900182
Change-Id: I159f2416da71c2d7ea803d61b63476da90e03b1c
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
8c4486c14134e81999c8e732fcee3bd7e89ffb69 08-Aug-2014 Igor Murashkin <iam@google.com> camera: (Legacy) Add support for SCENE_MODE == FACE_PRIORITY

Bug: 16898478
Change-Id: I4306f6380ea06e8bd95af8738e5dde1a42a8098c
amera2/legacy/LegacyFaceDetectMapper.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/RequestThreadManager.java
6df952ec2208714d3206c54987eb388aee799be6 09-Aug-2014 Sandeep Siddhartha <sansid@google.com> Add debugging info to VIS via dump()

Change-Id: I9e8f4536de309256db835b30d94765bfc27d4e80
oundtrigger/KeyphraseEnrollmentInfo.java
61daf6b38e7a7ada2a6ca5a60539a54b9c6810bd 08-Aug-2014 Jungshik Jang <jayjang@google.com> Hook up device power status change to TIF

Instead of introducing new api update existing
IDeviceEventListener

Bug: 16445063
Change-Id: I93bfc736a06a78e83c95877a53f4f241b51ed9c0
dmi/HdmiControlManager.java
dmi/IHdmiDeviceEventListener.aidl
696bbee963eb67875371fb9063308f60b28d679d 08-Aug-2014 Igor Murashkin <iam@google.com> camera2: Fix TotalCaptureResult#getKeys not to return empty list

Bug: 16680352
Change-Id: Ie6b8a8bff6f9b87d058a21b07eb3447371a62b6b
amera2/CameraMetadata.java
5008486b09c588bf3409b70d9ee29225e8593c64 07-Aug-2014 Jinsuk Kim <jinsukkim@google.com> CEC: Content observer to handle TV Setting update

Replaced the API setOption with content observer to read/get informed of
the CEC settings.

Bug: 16855247

Change-Id: Ieff2399bbfe83f05af4448e7337f91ef40d1e24d
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
6d8a97e139f1daa14af6563391b69c73a1acfea6 07-Aug-2014 Igor Murashkin <iam@google.com> camera2: (LEGACY) Don't stop preview when there are no requests left

* This allows flash mode=TORCH to keep working if only a single
request is submitted and the device goes to the idle state.

Bug: 16305644
Change-Id: Id2e3451f85dbf9b545d3a70977b8fcfb0922a0eb
amera2/legacy/RequestThreadManager.java
cd3a994e5067db8dd0edd45ac4ff8a64387ff7fc 07-Aug-2014 Igor Murashkin <iam@google.com> Merge "camera2: (LEGACY) Add face detection support and vstab modes" into lmp-dev
0a1ef4dbf39aa3dfae1a91daf972ae3457ce27fe 01-Aug-2014 Igor Murashkin <iam@google.com> camera2: (LEGACY) Add face detection support and vstab modes

Also work-around CTS freezing forever in Camera#setPreviewTexture

* Set preview texture to null after unconfiguring (Camera#stopPreview)
* Remove all uses of recording hint

(Some devices disable face detection unconditionally when recording is not
using HDR mode; recording hints will be introduced after we add
capture intent support)

Change-Id: I2f0a80f1d580af214cb0f53abcbf33c7391790f1
amera2/impl/CameraMetadataNative.java
amera2/legacy/LegacyFaceDetectMapper.java
amera2/legacy/LegacyFocusStateMapper.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/ParameterUtils.java
amera2/legacy/RequestThreadManager.java
d3b85f69a811113826933c8abf591f20e9b3c8ff 06-Aug-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix session shutdown race, frequent warning log

- Make sure that session.close followed by device.createCaptureSession cannot race on
configureOutputs calls
- Silence warning about RAW_OPAQUE format

Change-Id: I02e4a048e8b26ea61aadcf115b029e9fbb58ad4e
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/params/StreamConfigurationMap.java
a6b5ba56036f19bdd816ef03ad37beccf0150050 03-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove hidden parts of public CameraDevice

- Remove everything @hide in CameraDevice
- Move bits that are still needed into CameraDeviceImpl

Change-Id: Ie22059a0eb5c4238142a8a1e8dbcf1a422e845aa
amera2/CameraDevice.java
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/impl/ListenerProxies.java
7875a886b8397684c5fac3dd022d19de9874b436 31-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix null-listener capture for CameraCaptureSession

Correctly allow null listener/handler when invoked on a thread with no
looper; otherwise all capture/repeating requests will fail even if listener
is null.

Change-Id: I4c64c81ad7f14b5cb309b4f92822cb50dbd74ba6
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
6720be4e8c65e90d4453ddad5cef192bc3820038 30-Jul-2014 Michael Wright <michaelwr@google.com> Allow media projections to create public presentations.

Change-Id: I3b6e0b54d658352942a38be6a24486bdfc179efd
isplay/DisplayManager.java
cb4e81c7fe1ec843d80f7604a688c71086c23685 06-Aug-2014 Sandeep Siddhartha <sansid@google.com> Handle microphone contention/Phone calls while recognition is active

Internally we pause the recognition when:
- a phone call is active/off-hook/ringing
- or some other application grabs the microphone

we auto-resume when the condition that caused us to pause reverses.

Both these events are notified to the client via callbacks so that they can choose to display on their UI,
that the recognition is paused for some reason.

Bug: 16515468
Bug: 16740806
Bug: 16514535
Change-Id: Ib274d68522c8cf37d42402c875b16159957657f0
oundtrigger/IRecognitionStatusCallback.aidl
733341bf0db89c93ee1341ddfca9b0c49731c836 30-Jul-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Support awb mode, test mode metadata keys

Change-Id: Ic013aa820bbea02a662d546eb9f70baa20c0136e
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
61f4fbd2e8436a1ecd478c2a1f516d064a24d43b 06-Aug-2014 Jungshik Jang <jayjang@google.com> Rename HdmiCecDeviceInfo into HdmiDeviceInfo.

In order to include mhl device info to device info,
rename HdmiCecDeviceInfo into HdmiDeviceInfo.

BUG: 16215362

Change-Id: I30fb0216061fbbdd6fdc1b82c63af83f1b678597
dmi/HdmiCecDeviceInfo.aidl
dmi/HdmiCecDeviceInfo.java
dmi/HdmiClient.java
dmi/HdmiControlManager.java
dmi/HdmiDeviceInfo.aidl
dmi/HdmiDeviceInfo.java
dmi/HdmiPlaybackClient.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiDeviceEventListener.aidl
dmi/IHdmiInputChangeListener.aidl
8e93c84739902f5adaa499b474f39e3c4807bc1c 06-Aug-2014 Jungshik Jang <jayjang@google.com> Prevent hot plug detection action from multiple device polling

Along with this removed unused code and wrong references in
java doc.

Change-Id: I8b2fd8065f582f60cde5ada0e1669515b6a60f3f
dmi/HdmiPlaybackClient.java
d57ba99a5a50346f6d16208780bb87e1f09a9a35 06-Aug-2014 Jungshik Jang <jayjang@google.com> Merge "More tweaks for recording" into lmp-dev
e9e0f070e34a612fb3bab5d97bdec1e266da4a20 05-Aug-2014 Jungshik Jang <jayjang@google.com> More tweaks for recording

1. Mask TimerClearedStatus message result.
2. Use proper mask for media info.

Change-Id: I7ed6f6839c333460a7bef5e5a84af2a9a34c6d97
dmi/HdmiRecordListener.java
3f145a2f958320766ae9240c7a57debc20d578aa 23-Jul-2014 Michael Wright <michaelwr@google.com> Add supported refresh rate to displays

Change-Id: I51231dd6dd231d57dd1ac499349d6335121f07d5
isplay/DisplayManagerInternal.java
2afd97698d775824c17f932495da81dca1e0f67a 05-Aug-2014 Jungshik Jang <jayjang@google.com> Refine recode apis.

1. add return type, int, to toByteArray method so
that caller can know how many of bytes it consumes.

2. put final keyword

Change-Id: Ia942016fa35ecb04b49be51170739101644c3e31
dmi/HdmiRecordSources.java
dmi/HdmiTimerRecordSources.java
363c4efa51d76eedaf7c8dd4c76c1fc6f303224e 05-Aug-2014 Jungshik Jang <jayjang@google.com> Merge "Fix invalid annotation, @throw" into lmp-dev
f406cc3442b100e516298318a09af4a42f6bb33a 05-Aug-2014 Jungshik Jang <jayjang@google.com> Fix invalid annotation, @throw

Change-Id: Id22635414567a8b525032df792f2309102d7ae62
dmi/HdmiRecordListener.java
6ffb03816f7410c001072a25c3e4161a2da4f501 01-Aug-2014 Jinsuk Kim <jinsukkim@google.com> Plumbing for HdmiTvClient and HdmiControlService

Added a few more methods in HdmiTvClient to use the API provided
by HdmiControlService

Change-Id: Ib506699b9661b99cefc837b96ac64347a4e9420c
dmi/HdmiClient.java
dmi/HdmiControlManager.java
dmi/HdmiTvClient.java
e5a9337ebe738633cf7b66141cdf76efcdc5754c 25-Jul-2014 Jungshik Jang <jayjang@google.com> Implement clear timer.

This change implements clear timer, which sends
<Clear xxx Timer> to recorder, and reponse of it,
<Timer Cleared Status>.
Along with it, add result parser for [Timer Status Data].

Bug: 16160962

Change-Id: I1f48ec055aa93dc836156525de8b7ef921aad8b5
dmi/HdmiControlManager.java
dmi/HdmiRecordListener.java
dmi/HdmiTvClient.java
dmi/IHdmiRecordListener.aidl
01e840ff9441e005153d799e71d65b38bcb21902 27-Jun-2014 Michael Wright <michaelwr@google.com> Add resize method for virtual displays

Change-Id: I2632fc56c2d2cba356379e42f5c1a3e283b11d1e
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/VirtualDisplay.java
40b8ef99a5132a970903e33d3c8ee087d0502a93 05-Aug-2014 Eric Laurent <elaurent@google.com> Merge "SoundTrigger API update." into lmp-dev
d3b8223377b8046280e4c09e728edc600171f941 30-Jul-2014 Eric Laurent <elaurent@google.com> SoundTrigger API update.

Add sound model update callback.
Add native service state change callback.
Add vendor UUID in sound model description.
Add coarse confidence level in recognition event.
Add capture format in recognition event.

Bug: 12378680.

Change-Id: Id63437819ec7b9a4a69e1ff6185b747e20cad95e
oundtrigger/SoundTrigger.java
oundtrigger/SoundTriggerModule.java
b634ca8f5f01e7e85f6006bfd9eaa15f8eca0aea 04-Aug-2014 Jungshik Jang <jayjang@google.com> Fix several bugs on timer recoder code.

Change-Id: I331d5c61fa11513584c926fdeea55a5d7adbbad9
dmi/HdmiTimerRecordSources.java
2c0273e50a3162595e9a54030166f2369b039a5a 01-Aug-2014 Sandeep Siddhartha <sansid@google.com> Add a flag for multiple triggers with same recognition session

Also annotate the flags with @IntDef to make things clearer and safer

Add more debug logging

Revert to start/stop being synchronous since telephony and microphone will
need to be handled internally.

Bug: 16731586
Bug: 16514535
Bug: 16549061
Change-Id: I83695d52e9547269c95d443e4d921c9238b7401e
oundtrigger/SoundTrigger.java
7e74206693f4ee93afb902d5b3446e2384f2a13d 30-Jul-2014 Jinsuk Kim <jinsukkim@google.com> System API HdmiControlService.getActiveSource

Added getActiveSource to provide Tv Input Service with the information
on HDMI active source/routing path. TIS side will be handled separately.

Change-Id: I3d7c12a6c9da9f96a7f22ba1f66ac2559928858d
dmi/HdmiCecDeviceInfo.java
dmi/IHdmiControlService.aidl
c2b74b73a11b0a9aa4f29b28554292cc0947464b 31-Jul-2014 Wonsik Kim <wonsik@google.com> Fix NPE when fused geofence hardware is not available.

b/16690237

Change-Id: I3ac50c8fd50fc799afcfc76126a5fd0c9ba0a5f4
ocation/GeofenceHardwareImpl.java
f9a274c9b8578dda6afeda422bff18b1577028b9 26-Jul-2014 destradaa <destradaa@google.com> Add support for sources in Geofencing APIs.

Support setting the source when adding geofences.
b/14117199

Surface the source when FLP geofence changes state.
b/14119200

Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
ocation/GeofenceHardware.java
ocation/GeofenceHardwareImpl.java
ocation/GeofenceHardwareMonitorCallback.java
ocation/GeofenceHardwareMonitorEvent.aidl
ocation/GeofenceHardwareMonitorEvent.java
ocation/GeofenceHardwareRequest.java
ocation/GeofenceHardwareRequestParcelable.java
ocation/GeofenceHardwareService.java
ocation/IGeofenceHardware.aidl
ocation/IGeofenceHardwareMonitorCallback.aidl
6a7d8c42890451e01ca7b4baba03d430808265bc 30-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Implement request templates for LEGACY.

Bug: 15116722
Change-Id: Ic32e2f597997489642e98bfd8c7582a300f6f29b
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/utils/ArrayUtils.java
3fe9eba9044c0b20ed349a4b9094bf1fa7942cdf 24-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add scene and effect mode for LEGACY.

Bug: 15116722

Change-Id: I0797fccb5fdd8b959622c100f25b2950cfe4e115
amera2/legacy/CaptureCollector.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/SurfaceTextureRenderer.java
amera2/utils/ArrayUtils.java
1ed12ddb8c46193cc4d790b9c7d6a5d61afb3311 29-Jul-2014 Sandeep Siddhartha <sansid@google.com> Make startRecognition async

- This is needed for telephony and audio integration which should happen via async callbacks
that'll end up starting/stopping recognition.

e.g. if a startRecognition happens when in a phone call - the onDetectionStarted will get called once the phone
call ends.

For now the transient stoppages due to internal reasons will not be propagated back to the client.

Bug: 16514535
Bug: 16515468
Change-Id: I1b2b8edd28f5c5e67c453f66c23e1a67a626114e
oundtrigger/IRecognitionStatusCallback.aidl
6fc1901b1a8d5e7622eebd7170087671d102520f 30-Jul-2014 Aravind Akella <aakella@google.com> Merge "SensorManager API changes." into lmp-dev
0288ca63e3f0aee05ad2ede23564e04e53aca950 28-Jul-2014 Aravind Akella <aakella@google.com> SensorManager API changes.

i) Remove WAKE_UP_* sensor constants and corresponding string constants.
ii) Add getDefaultSensor(int, boolean) API.

Bug: 16399898
Change-Id: I53cb7dec02568503ebd35983e6b0c64e9c5070d7
ensor.java
ensorEventListener2.java
ensorManager.java
abd9d3c5c7100c45812ee80975ac59f5b1902a71 28-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: API review updates

- Rename CameraCharacteristics#SENSOR_INFO_TIMESTAMP_CALIBRATION
to TIMESTAMP_SOURCE
- Remove StreamConfigurationMap#NO_MIN_FRAME_DURATION

Bug: 16402755
Change-Id: I6c30a1e931c9f064c22092d362bcc61bd88e2f8a
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureResult.java
amera2/params/StreamConfigurationMap.java
b2b3151a42bd563669b222b82efb64e294dc9049 21-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Send TV app the intent for the new active source

When signalled by an external CEC device about to become a new active
source, TIF(TvInputHardwareManager) sends an intent for TV app to tune to
the input mapped to the device. For non-CEC devices or MHL device
the device info comes with port ID only, which should be used to find
the right input.

Change-Id: I71c8454fead037d880ee440b0a8d64dd361ed558
dmi/HdmiCecDeviceInfo.java
ffdfcd7f270da8992e689bf539842684725d50fc 30-Jul-2014 Igor Murashkin <iam@google.com> Merge "camera2: legacy: Don't set the @hide frame number metadata" into lmp-dev
56678d87782ddeca7956d5f48cf214a396166f0e 28-Jul-2014 Igor Murashkin <iam@google.com> camera2: legacy: Don't set the @hide frame number metadata

Change-Id: Id1c8292444a45a97228d5c95f23f6d1f8171d3b5
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/RequestThreadManager.java
bdf366cc70639b0e16b8f84eebe612a48a8b8b06 26-Jul-2014 Igor Murashkin <iam@google.com> camera2: Api change (#getFrameNumber -> long; @hide REQUEST_FRAME_COUNT)

Change-Id: I164011c97a57fb9fb9c504ae4c5f394dcb36a4bc
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureResult.java
amera2/TotalCaptureResult.java
amera2/impl/CameraDeviceImpl.java
36761644623c7af73cadfe14041f2c9c68a4b8ad 30-Jul-2014 Igor Murashkin <iam@google.com> Merge "camera2: Api change (#getFrameNumber -> long; @hide REQUEST_FRAME_COUNT)" into lmp-dev
3a3eb157417fb5618518b29d889c23e8831b081c 25-Jul-2014 Igor Murashkin <iam@google.com> camera2: legacy: fix cached results bug and fix focus modes

- Also add request.frameCounter and request.pipelineDepth results

Change-Id: I104c8243fa525622cb4ab7b5535cbca8588862f3
amera2/legacy/LegacyFocusStateMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/RequestThreadManager.java
83d8639e901a24e59c9886dd6910faf3ba7adae1 18-Jul-2014 Igor Murashkin <iam@google.com> camera2: legacy: Add focus support

* Characteristics will list control.availableAfModes
* Request/result for control.afMode and control.afState

(Does not yet support control.afRegions)

Change-Id: I828111425fa587114d5159f7fb2b1e53a2c74e61
amera2/legacy/CaptureCollector.java
amera2/legacy/LegacyFocusStateMapper.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/RequestThreadManager.java
amera2/utils/ArrayUtils.java
amera2/utils/ParamsUtils.java
3f2757a3054fbbe11d69a68a67eb5f68fe3fb1b0 29-Jul-2014 Igor Murashkin <iam@google.com> Merge changes I104c8243,I82811142 into lmp-dev

* changes:
camera2: legacy: fix cached results bug and fix focus modes
camera2: legacy: Add focus support
9469cdde2ce55051b18fdbd6bf80bc710517c358 29-Jul-2014 Michael Wright <michaelwr@google.com> Add paragraph tags to MediaProjection docs

Change-Id: Ia881f9bcf3b93bd699f9ddf80d51ec7d0e74d2ed
isplay/DisplayManager.java
6817337118655d5792e36e954b123e6daa4174a6 28-Jul-2014 Sandeep Siddhartha <sansid@google.com> Read the keyphrase ID from the recognition event

Bug: 16516658
Change-Id: Ibeee81c9543aa1091bb075066cfc2269107f13c0
oundtrigger/IRecognitionStatusCallback.aidl
oundtrigger/SoundTrigger.aidl
oundtrigger/SoundTrigger.java
cfcdf1270127d9a333cda2b91646713d1f41c6ac 29-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Add MHL getPortInfo" into lmp-dev
f4eb72d53b4c5bc2286841006ad473ad4448bcf8 25-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Add MHL getPortInfo

Allows MHL support flag to be put into port information

Bug: 16215362
Change-Id: I1873c8e60b02f47a97509576fc40d57efb056817
dmi/HdmiPortInfo.java
5438e4e173c756a24061da38bfe9142765c56f9d 25-Jul-2014 Michael Wright <michaelwr@google.com> Add missing documentation for createVirtualDisplay

Fix incorrect access modifier in Activity documentation.

Change-Id: Id41da6ccbdfa8b53c89360c899f3a43aec899982
isplay/DisplayManager.java
971251f362410caebe8eeb5b6c13d8912f72d50e 26-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update preview counter after request completed.

Bug: 15116722

- This was causing the preview counter to double decrement
for requests where the jpeg callback was executed first.

Change-Id: I6bfdaa7da7f68e86e05dc7ac60ceb3c8d5a0104a
amera2/legacy/CaptureCollector.java
53bbf11f414dfc74d545ae1539ef5028dcb25eb4 29-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: Fix wrong usage of toArray" into lmp-dev
b0056642cab30647d1f72190d864622bf4728ea0 28-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Fix wrong usage of toArray

Change to use "<T> T[]" version of toArray.

Change-Id: I021ed5a4e446b34028810e8acea3395c1c3387e7
amera2/params/StreamConfigurationMap.java
bd9b106806f9792be210cc2d9848d8b1f4b9664d 22-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: CameraManager refurbishing and error management

- Invoke availability listeners when first added
- Handle camera service crashes
- Listen to service death
- Attempt to rebind on every call if service died
- If service is still dead, act as if no cameras are connected
- Fix bug in DeviceImpl that prevented proper handling of errors on open
- For clarity, don't UncheckedThrow for exceptions that are already unchecked

Bug: 16514157
Bug: 16483815
Bug: 16483222
Bug: 16561237

Change-Id: I3d54de1204f5a863882cf675fcee6280d53c4039
amera2/CameraManager.java
amera2/impl/CameraDeviceImpl.java
amera2/utils/CameraBinderDecorator.java
amera2/utils/CameraServiceBinderDecorator.java
39c12fab49075b715c253c68c84b5c10c3150197 26-Jul-2014 Sandeep Siddhartha <sansid@google.com> Use blob (shared memory) for large data in sound model/recognition event/config

Also add a missing null check in writeBlob

Bug: 16516353
Change-Id: Ie702f8daae541cab7c2cee6e13d49e7fc84c84e1
oundtrigger/IRecognitionStatusCallback.aidl
oundtrigger/SoundTrigger.aidl
oundtrigger/SoundTrigger.java
68bed6c5d7a000ccea469dc67fa9b4b9bfff7ac4 25-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Add portID information in HdmiCecDeviceInfo" into lmp-dev
2b152015ff94f20b9ec3ef284fb83105f8b3c831 25-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Add portID information in HdmiCecDeviceInfo

This change makes it convenient to get the HDMI port ID from the device
info without having to look it up through a separate HdmiPortInfo, which
happens in many places.

Also removed port information lookup loop by introducing two maps variable
in Control Service: port path ->port ID, and port ID -> port info.

Bug: 16547583
Change-Id: Ibfff722a16b626230766058efcc819e9c8ca0663
dmi/HdmiCecDeviceInfo.java
16606119117b6fc738ff60d98dad765fab3068ae 25-Jul-2014 Jungshik Jang <jayjang@google.com> Merge "Replace osd message for record status with IHdmiRecordCallback." into lmp-dev
12e5dcefe136b58562f39604e6a8460ac92cb895 24-Jul-2014 Jungshik Jang <jayjang@google.com> Replace osd message for record status with IHdmiRecordCallback.

Add new interface, IHdmiRecordCallback, in order to handle
result of all recording features, One Touch Record and
Timer Recording.
HdmiRecordCallback is clientside interface which uses
RecordSource as return of getOneTouchRecordSource,
instead of raw byte array.

Along with it, add TimerRecordingAction.

Bug: 16160962

Change-Id: If0ed7abc5f45b020b39555cac585becbe8ee7da4
dmi/HdmiControlManager.java
dmi/HdmiRecordListener.java
dmi/HdmiRecordSources.java
dmi/HdmiTimerRecordSources.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiRecordListener.aidl
dmi/IHdmiRecordRequestListener.aidl
96eb62c3b9dcf0a7b4e5bc802f7d807d97887e31 17-Jul-2014 Aravind Akella <aakella@google.com> Define TYPE_PICK_UP_GESTURE.

Change-Id: Ic2c7963352ff954884ce05a0a3a71516ed417140
ensor.java
91838ded36131525312739c0929913b215519c2a 17-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix LEGACY mode timestamps.

Bug: 15116722

- Add CaptureCollector class to accumulate buffer timestamps
and manage lifecycle callbacks for each request.
- Set correct timestamps for buffers, results, and callbacks.

Change-Id: I75fa1049cf100d9d14c5ba8992be93ba1048df19
amera2/legacy/CameraDeviceState.java
amera2/legacy/CaptureCollector.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
1b1f1b611c8e648b9737e7930e6982cf117134ce 24-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Move noise model to dynamic metadata.

Bug: 16369384

Change-Id: I7a540705176c7be68431a977e2b7218ffa1bddd0
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
b6591b8e5399099dc6b7693e0fc719b613aba89c 23-Jul-2014 Jungshik Jang <jayjang@google.com> Implement OneTouchRecordAction and stop one touch record.

In addition to it, add api for clearTimerRecording as well.
Separately, I will replace logic for notifying message with callback
interface.

Bug: 16160962

Change-Id: I2368f7c697eb44ed4542c0ec4412c63a6ae41a5c
dmi/HdmiControlManager.java
dmi/HdmiRecordSources.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
f3fa471d9692eaf81c7cbca7515ff0fb8503b560 24-Jul-2014 Jungshik Jang <jayjang@google.com> Add @hide and @SystemApi to HdmiTimerRecordSources

Change-Id: I3938b26af4ca2fe8d70224bd7bac30ba627d6d44
dmi/HdmiTimerRecordSources.java
80bc75a71ea9f428462ce2810a6f22b1c09c2701 23-Jul-2014 Jae Seo <jaeseo@google.com> Fix build

Change-Id: Icc1bf76ef748b10cc7ea745bc37c4e7bc0d7ff43
dmi/HdmiRecordSources.java
2f75e7d7ef2ef29ac4b1287dc44cf62cfbaf50b3 15-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix callback operation

- Remove CloseableLock use; looks to be incompatible with invocations during callbacks
- Replace with basic interface lock to be thread-safe
- Add intermediate callback thread to legacy mode to match cross-process one-way Binder
semantics

Change-Id: Iecd4ff6cf260c5a13bd11b850177ccea93e25933
amera2/impl/CameraDeviceImpl.java
amera2/legacy/CameraDeviceUserShim.java
a00161675f6b75c4e0e798d5fc9d8a6268c99047 23-Jul-2014 Jungshik Jang <jayjang@google.com> Fix unknown tag @throw

Change-Id: I8c017a83175c447d02d8eb28f571e31921ae77c6
dmi/HdmiTimerRecordSources.java
bffb0635aaaaf9140d9120e3f3d95a4f7391a0ac 22-Jul-2014 Jungshik Jang <jayjang@google.com> Add startTimerRecording api to IHdmiControlService.

In order to support timer recording we need separate API,
startTimerRecording. Also added HdmiTimerRecordingSources
which is used to help creating timer recording information
such as timing information and program information.

Besides, in order to distinguish one touch record
and timer recording, rename startRecord with startOneTouchRecording.

Bug: 16160962
Change-Id: I8c3d4034665a2f84ddf07135aee73e17ac17cd82
dmi/HdmiTimerRecordSources.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
0986121807b114ce1fff4c30304eb0ba09cb9d8f 22-Jul-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add legacy available Request/Result/Characteristics keys" into lmp-dev
6c76f58f31635c19c14ae161f96dad2082537860 16-Jul-2014 Igor Murashkin <iam@google.com> camera2: Add legacy available Request/Result/Characteristics keys

* Also changes the CameraMetadata#get*Keys to not return @hide keys

Change-Id: Ifc89153136a9be502b7b88addbd16a5de68a7bfc
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/ListenerProxies.java
amera2/impl/PublicKey.java
amera2/impl/SyntheticKey.java
amera2/legacy/LegacyMetadataMapper.java
f8f37002c0436ca52b23821aff5f8bd04b64cecd 22-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> camera2: minor doc update

Doc update reflecting the minor spec change.

Change-Id: I7a1cf766fe6bee4dd08fd19f03778ce8a6ce2dde
amera2/CameraMetadata.java
29a5d2620711342d4ac5cc7ed0b6aa008cffaa2c 21-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Define a constant for HDMI-CEC logical address used for internal source

Change-Id: Ic7d6a5378361d7ed8ae4b635312b956b063fc95a
dmi/HdmiCecDeviceInfo.java
970d4132ea28e748c1010be39450a98bbf7466f3 19-Jul-2014 Jeff Brown <jeffbrown@google.com> Allow dreams to control screen state and brightness.

Added setDozeScreenState() and setDozeScreenBrightness() methods to
DreamService. The values specified here only take effect once
startDozing is called and can be changed while dozing.

This required some significant rework of the display power controller
but the result seems quite nice and better represents the policy
we want to apply.

Changed the test dream a little bit to make it flash the screen
every minute using the new functions.

Bug: 15903322
Change-Id: I83bcc34503f1b87727d2b2b3c0ef08507f9f0808
isplay/DisplayManagerInternal.java
3d0c57a1d3b8eb6bb54045c02c2e93a9313d3cf7 21-Jul-2014 Craig Mautner <cmautner@google.com> Don't create a delegate for null callbacks.

ActivityView does not create callbacks for the VirtualDisplay. This
leads to setting Looper.myLooper() from a Binder thread which
leads to NPE when trying to dereference its message queue.

Fixes bug 16386002.

Change-Id: I12760a22075ed4770f3fe960763e0135fe095cfe
isplay/DisplayManagerGlobal.java
a6b2a7a59ab79b2d91412c1095d1c49b8dc9d507 16-Jul-2014 Jungshik Jang <jayjang@google.com> Add two apis for one touch record.

This change introduces new two apis for one touch record.
1. setRecordRequestListener
It's used to get notified when a recorder device initiates
"one touch record". As return of callback, client should
generate "record source" and return it.
2. startRecord
It's used to initiate "one touch record" from Tv.

Along with this, add HdmiRecordSources which is a helper
class assisting buidling byte array form from the given
record source information.

Bug: 16160962

Change-Id: I403d37b752c9b7f799c6d8188a071ef420fe8ac2
dmi/HdmiRecordSources.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiRecordRequestListener.aidl
110f569b47bc21fb38ec25b6110ee302ce137e06 20-Jul-2014 Sandeep Siddhartha <sansid@google.com> Fix synchronization issues in AlwaysOnHotwordDetector

- Remove unnecessary recognition status from AlwaysOnHotwordDetector

- Remove unnecessary recognition started callback from IRecognitionStatusCallback

- Fix a bug around the fact that we weren't picking up enrollment at runtime because
we were storing the availability at instantiation time.

- Handle 0-length arrays in SoundTrigger classes while parceling/unparceling

- Fix issue in SoundTrigger helper where we were not comparing binders for start/stop calls

- Unload the previous model when starting a new recognition

- Add more debug logging

Change-Id: Icc56d7f3dd1ffa49a8cfeea49080e3ab4d342c32
oundtrigger/IRecognitionStatusCallback.aidl
oundtrigger/SoundTrigger.java
055897208d659e9734a82def88be4a806ff55448 18-Jul-2014 Sandeep Siddhartha <sansid@google.com> Move sound trigger calls to VoiceInteractionManagerService

- This ensures that any data being loaded on the DSP comes from the framework

Change-Id: Ie15f0994850ba8f298ca07c49fe0b89e066d9e2b
oundtrigger/DspInfo.java
oundtrigger/IRecognitionStatusCallback.aidl
oundtrigger/Keyphrase.aidl
oundtrigger/Keyphrase.java
oundtrigger/KeyphraseSoundModel.aidl
oundtrigger/KeyphraseSoundModel.java
oundtrigger/SoundTrigger.aidl
oundtrigger/SoundTrigger.java
oundtrigger/SoundTriggerHelper.java
7b41467704f941b11af6aace3e40993afc7f6c6f 18-Jul-2014 John Spurlock <jspurlock@google.com> Zen mode filtering should use new usage constants.

Refactor stream-based calls to usage-based calls.

Bug:15279516
Change-Id: I3f7757d8123c14670e2ad5f8e6aa4e9803efe7ec
nput/InputManager.java
8f8141e24f4d890b4281b8c558ecc60efe5831c4 19-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: add highSpeedVideoConfig wrapper and APIs" into lmp-dev
12da140082323d9aa048b3e928505a0a2adfdda7 15-Jul-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: add highSpeedVideoConfig wrapper and APIs

- Add wrapper class for highSpeedVideoConfiguration.
- Add APIs to query high speed video recording configurations in
StreamConfigurationMap
- Fix ColorSpaceTransform unit test in CameraMetadataTest
- Fix a bug in HashCodeHelper

Change-Id: I192e57f6ab5dfbba6d958571352f067a9eaec7b2
amera2/CameraCharacteristics.java
amera2/impl/CameraMetadataNative.java
amera2/marshal/impl/MarshalQueryableHighSpeedVideoConfiguration.java
amera2/params/HighSpeedVideoConfiguration.java
amera2/params/StreamConfigurationMap.java
amera2/utils/HashCodeHelpers.java
fac77c46fe03466cb4bd728da3dc49b40652964b 18-Jul-2014 Zhijun He <zhijunhe@google.com> Camera2: send the partial result with onCaptureProgressed

When partial results are receieved, call onCaptureProgressed instead of
onCapturePartial.

Change-Id: If97233d7b980f490821bca0a722d527f19034cd9
amera2/impl/CameraDeviceImpl.java
241e70d60733cdbb6206f6c26baac85f3a747105 18-Jul-2014 Jeff Brown <jeffbrown@google.com> Add glance sensor for doze mode.

Change-Id: I66d11a1f032017b16d3f57fa60699a02d67ad5f1
ensor.java
d1d2d43fc0e5d691a704bfcafb0eefde91c4c0bd 18-Jul-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: partialResultCount should be optional" into lmp-dev
1420de4162c5314318d1c87db4782d0ae0d7354c 18-Jul-2014 Zhijun He <zhijunhe@google.com> Camera2: partialResultCount should be optional

Change-Id: Iacd2b5e8f388c18cbff0f1cefdb5c10812ae751e
amera2/CameraCharacteristics.java
83159151f618c79040a2e800de8cc78f22bf760b 16-Jul-2014 Zhijun He <zhijunhe@google.com> Camera2: replace partial quirks with normal partial result

Change-Id: I56550748478bf0aa1a7bf9a350b4fdc7bbd6af86
amera2/impl/CameraDeviceImpl.java
amera2/impl/CaptureResultExtras.java
amera2/legacy/LegacyCameraDevice.java
c39d47a8e7c74bd539104b0efab898ef6fc43ddf 09-Jul-2014 Michael Wright <michaelwr@google.com> Add MediaProjection APIs.

The new MediaProjection infrastructure allows the system to hand out
tokens granting the ability to capture the screen's contents, audio,
etc. at a granular level. It's intended to be used both for screen
casting, via the cast APIs, as well as screen sharing via third party
applications.

The screen sharing case is implemented, but all of audio capturing
is still forthcoming.

Change-Id: I4b24669bed7083e11413c10ed8d6b025f5375316
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/IVirtualDisplayCallbacks.aidl
isplay/VirtualDisplay.java
6ccb5f894e11a0ee59c0632643f265427731536e 17-Jul-2014 destradaa <destradaa@google.com> Merge "Fix exceptions in ActivityRecognition platform stack." into lmp-dev
3b0224dc3c2e7ffb93dc56970395003d0e387545 16-Jul-2014 destradaa <destradaa@google.com> Fix exceptions in ActivityRecognition platform stack.

b/16348349

Change-Id: I1f85283c86130b86389a1be7da49904658b0558c
ocation/ActivityChangedEvent.java
ocation/ActivityRecognitionEvent.java
ocation/ActivityRecognitionHardware.java
7040e9f7fe3e5c9fbd0084eff01b4ce8ae1a16b1 17-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Add PackageManager features for differentiating camera2 devices" into lmp-dev
611fecec08eb9efeb4393b986d590369df5c812f 11-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Add PackageManager features for differentiating camera2 devices

Also rename DNG capability to RAW.

Bug: 15415688
Change-Id: I1ea9f65b03c4fa06a5004f9d1d485935742001c8
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
40001f5dac10c8b71af5ef051dc1a95d58bea743 17-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix swapped Face detection commands.

Bug: 16343647
Change-Id: I06186b1d6a2ef5d73d2e22759e947156d43cab3f
amera2/impl/CameraMetadataNative.java
e6cd2476aa9d07df0de0a0081ab66d8401a7e228 11-Jul-2014 Sandeep Siddhartha <sansid@google.com> Add recognition modes to the enrollment metadata

This will be used by the Voice interaction service to determine what type of recognition may be run
on the DSP. e.g. If the DSP supports voice trigger only for the given keyphrase,
the voice interaction service may want to perform user identification at its end.

Also support keyphrase metadata for all keyphrases and locales.
In case the enrollment app supports open-ended keyphrases, it can leave the keyphrase text
to be empty
similarly, if the enrollment app supports all locales, it can leave the supported locales
attribute to be empty,

Change-Id: I782a17a877fc79ed569fa7c3a81697641182590b
oundtrigger/KeyphraseEnrollmentInfo.java
oundtrigger/KeyphraseMetadata.java
oundtrigger/SoundTriggerHelper.java
a433af6b739e6d1b57a06913401086cdd8eccffb 17-Jul-2014 Sandeep Siddhartha <sansid@google.com> Add code for isKeyphraseActive and some logging to help debug issues

Change-Id: I89f2090be5a5fe5f7c0da1648a0d46a093893fe2
oundtrigger/SoundTriggerHelper.java
8ecaf5f5cfd18e0436db1a27ccf46a063e9aacd7 11-Jul-2014 Sandeep Siddhartha <sansid@google.com> Hook in startRecogniton call

Add required info to the sound model database: users & recognition modes

Change-Id: I6e12cbc6342a2767c0e3d8328c0a3be899ac9952
oundtrigger/Keyphrase.java
oundtrigger/KeyphraseEnrollmentInfo.java
oundtrigger/KeyphraseSoundModel.java
oundtrigger/SoundTriggerHelper.java
d1f113d0f0ce5099f8efba40a88398f7945bb5e0 11-Jul-2014 Ruben Brunk <rubenbrunk@google.com> DO NOT MERGE: camera2: Performance potpourri.

Bug: 16208403
Bug: 15116722

Fixes many of the performance issues in the Camera2 API and
LEGACY mode CPU path, including:
- Only call getParameters/setParameters when the request has changed.
- Cache Request/Result objects.
- Cache object hashes for long-lived CameraMetadata, TypeReference,
and Key objects with frequently used hash methods.
- Switch to Command pattern instead of repeated if/equals calls.
in frequently hit CameraMetadata get/set methods.
- Move string construction for logging behind flags to avoid extra
StringBuilder calls in frequently acquired lock methods.
- Cache results from frequently used JNI calls in object Builders.

Change-Id: I77bc4a023d4fe8bc46efcf771ff18ee268dcb9a9
amera.java
amera2/impl/CameraMetadataNative.java
amera2/impl/GetCommand.java
amera2/impl/SetCommand.java
amera2/legacy/BurstHolder.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/RequestHolder.java
amera2/legacy/RequestThreadManager.java
amera2/marshal/MarshalRegistry.java
amera2/utils/CloseableLock.java
amera2/utils/TypeReference.java
cc542a4e7441202aef8c54af6675fcb5d5c6f63f 25-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix available keys to filter to only supported keys

The following functions are affected:
* CameraCharacteristics#getKeys
* CameraCharacteristics#getAvailableResultKeys
* CameraCharacteristics#getAvailableRequestKeys

The above keys will now only return keys whose tags are set in
android.request.available{Characteristics,Result,Request}Keys

This change makes it possible to detect if a key is guaranteed to be
available at a granular basis (without querying hardwareLevel or
capabilities).

Change-Id: Iaa34e8c24100339c215604ff49035527fae467cd
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
28c49c9d202a9f4675c1c1e5d4562492d2107b79 17-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update shader scaling matrix for legacy mode.

Bug: 15116722
Change-Id: Idaa4311dfd027b2d2b8ea5e2c6cba2da5779d753
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
b942b05093d2b1cee59ac73196a4b99962f10add 11-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Deprecate android.hardware.Camera

__
||
||
||
||---____-----+
|| \_/ |
|| /. .\ |
|| ||---|| |
|| |___| |
|| | | |
||---____-----+
||
||
||
_____________||_________________

Replaced by android.hardware.camera2

- Also deprecate MediaRecorder#setCamera
- Also deprecate all Camera inner classes
- Update reference documentation in various classes to point to camera2
- Add note to camera API guide that it uses the old API
(until a new guide is available)
- Remove old hidden raw sensor format; superceded by RAW_SENSOR.

Change-Id: I3d839765fc9b9aae906751ee32d6956ef40451ce
amera.java
amera2/package.html
5d2fa0e0b5db09323a706f914bd268a764070425 13-Jul-2014 Lajos Molnar <lajos@google.com> Fix build

Change-Id: Ic06f633e5d57b28260fa94914e2a0daccdaa1a14
amera2/legacy/LegacyRequestMapper.java
a4fa3b5aa53cf677b623fe346c585cb8a0c1ce26 09-Jul-2014 destradaa <destradaa@google.com> Add support in the platform for Activity Recognition Hardware.

Change-Id: I7c4fff3526583475a5edf1f4ba8fede4e9419ead
ocation/ActivityChangedEvent.aidl
ocation/ActivityChangedEvent.java
ocation/ActivityRecognitionEvent.java
ocation/ActivityRecognitionHardware.java
ocation/IActivityRecognitionHardware.aidl
ocation/IActivityRecognitionHardwareSink.aidl
ocation/IActivityRecognitionHardwareWatcher.aidl
396532ffb80f70c336b3564e5bac4c09d3be07ff 11-Jul-2014 Igor Murashkin <iam@google.com> camera2: (LEGACY) Update flash modes to fix #testFlashControl CTS

Change-Id: I9b66a2b4393f4bc2272ecc94cd9a5c6273f3de59
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
49a1d7b7de171246bb5a644c688ad944ead73062 11-Jul-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Fixes for CaptureRequestTest#testAeModeAndLock

Change-Id: I5c1008cf34a9d98f67c36966e7cbf1c312979f97
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
3e280b4bb23be4e5e66ea6381fd63c74fdbd927e 10-Jul-2014 Igor Murashkin <iam@google.com> camera2: (Legacy) Implement ae compensation step ranges and ae/awb locks

Characteristics:
* control.aeCompensationRange
* control.aeCompensationStep

Request/Result:
* control.aeExposureCompensation
* control.aeLock
* control.awbLock

Change-Id: I911616c9cf3e0e9a03a0cb383bcf232cab8ca772
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/utils/ParamsUtils.java
7ee78d1ee3ee068897b9313af2ed6446675c1be0 09-Jul-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Implement AF/AE regions for request and result

* Also stop lying about max AE regions (now reports the truth)

Change-Id: I567a1e6c58ed0bfb77cc09787393ea18eba5d613
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/ParameterUtils.java
amera2/params/MeteringRectangle.java
amera2/utils/ParamsUtils.java
d7018200312e4e4dc3f67cf33dc90bf7ce585844 11-Jul-2014 Sandeep <sansid@google.com> Always on hotword changes

Add model management API skeleton to VoiceInteractionManagerService
Add an "interactor" for all always-on APIs

- The VoiceInteractionService will get an interactor for the given
keyphrase and locale.
- It can then check the availability and call methods to start and
stop recognition on this interactor.

- Add a common class to deal with SoundTrigger APIs

- Cleanup the keyphrase representation:
We now have separate representations for the keyphrase metadata and
a keyphrase being used for recognition.
This'll also help us to handle custom keyphrases in the
future easily.
This also ensures that for use within the framework,
we rely on the ID of the KeyphraseInfo rather than comparing the
text everytime.

Add a callback for the AlwaysOnHotwordDetector

This callback should be passed in by the VoiceInteractionService and is used to notify it
of recognition events.

Change-Id: I26252298773024f53a10cdd2af4404a4e6d74aae
oundtrigger/DspInfo.java
oundtrigger/Keyphrase.aidl
oundtrigger/Keyphrase.java
oundtrigger/KeyphraseEnrollmentInfo.java
oundtrigger/KeyphraseMetadata.java
oundtrigger/KeyphraseSoundModel.aidl
oundtrigger/KeyphraseSoundModel.java
oundtrigger/SoundTrigger.java
oundtrigger/SoundTriggerHelper.java
e1f57d6f44909a66c7ab0af33dbc5289287e823a 30-May-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Add CPU/GPU overhead measurement to legacy mode

Dumps GL and CPU processing duration and frame timestamps to a file,
whenever the device is closed or the stream configuration is changed.

- Add PerfMeasurement class to legacy mode
- Wire up minimal usage to SurfaceTextureRenderer

Change-Id: Ic9d74ca26f706780b746175aa615c7aae4ae52e7
amera2/legacy/PerfMeasurement.java
amera2/legacy/SurfaceTextureRenderer.java
47e91f20952e5eb2290146ba6e33a694dd2e45e8 29-May-2014 Ruben Brunk <rubenbrunk@google.com> DNG: Implement remaining interface methods.

Bug: 15112503
Bug: 16206973
Bug: 15748139

- Adds remaining write methods.
- Adds GPS and description convenience methods.
- Unhides convenience methods.

Change-Id: I9535b21261027f6c06a041c1621de8f865a0ad32
amera2/DngCreator.java
c068bb5a0468bf605b0398e6f0ea5721917de4ee 07-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Support HdmiControlService.sendKeyEvent for both TV/playback device

Added another parameter deviceType for HdmiControlService to
run the specified local device for sendKeyEvent.

Bug: 15844076
Change-Id: I598ef320ae94bba0ace38701ae0ca12fd0625559
dmi/HdmiClient.java
dmi/IHdmiControlService.aidl
1c52d02679af9e4322d7182824443b006579b1ed 10-Jul-2014 destradaa <destradaa@google.com> Merge "Mark FLP constants as public, so they can be consumed by geofencing."
17ff2b2b3a28da2f34e82ce1a623865fc249e87c 10-Jul-2014 destradaa <destradaa@google.com> Mark FLP constants as public, so they can be consumed by geofencing.

Change-Id: I6e73692064a9f58eeac6ba1118c37ac500df0d9f
ocation/GeofenceHardware.java
52842e7a6f0e922185db04ae8b91c776a234acf1 05-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add BlackLevelPattern class.

Bug: 15448889

- Adds BlackLevelPattern class and marshaller.
- Updates BlackLevelPattern tag to use this class.

Change-Id: I5d3393f4a1695664bc5315eb592fb0a4e154d22e
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/impl/CameraMetadataNative.java
amera2/marshal/impl/MarshalQueryableBlackLevelPattern.java
amera2/params/BlackLevelPattern.java
amera2/params/RggbChannelVector.java
08bc3b0f0299a02d00004f4b2886469c1ed75569 09-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Update capabilities metadata

Change-Id: Ic2dc18f535cbc34a1504a6a746e7f7303fa6e839
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/params/StreamConfigurationMap.java
5228dcdc8221623c0158ad2063e3182bd2ff6923 10-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Merge "camera2: Document CameraCaptureSession behavior given 0 Surfaces"
edeab40338a047655f6af60e9e950dbad262279b 10-Jul-2014 Sol Boucher <solb@google.com> camera2: Document CameraCaptureSession behavior given 0 Surfaces

Clarify that this will cause an IllegalArgumentException to be thrown

Change-Id: Ifabfed6d8d46492c4ca45bbbed599ded5260b099
amera2/CameraCaptureSession.java
amera2/CaptureRequest.java
75a77e7d6cbfc287c6126efd28b338b48b7ea70c 09-Jul-2014 Yuncheol Heo <ycheo@google.com> Add HdmiCecMessageValidator to verify the incoming messages.

- Remove all param's length-check-logics in the package.

Bug: 16051295, Bug: 16117332, Bug: 15841545
Change-Id: If48ad9731f4f4613fd22aa3d9ada7ba3142bc999
dmi/HdmiCecDeviceInfo.java
7f3c084c9570636ef92acc38bd9ab76c36276014 09-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add NoiseProfile HAL tag.

Change-Id: Iac1b5b7708222b00a9eb1fb1adc85f0d0a7912cb
amera2/CameraCharacteristics.java
fa68c30bbd91c63cf1cf29822b9d0ea9b0bb5b86 09-Jul-2014 Ying Wang <wangying@google.com> Fix System API build.

Change-Id: Iece27eb0be2a83a468fbf6584a1170ec9e20f803
dmi/HdmiClient.java
a05e59d12b410638e97bc2d88c64442c47907fe3 09-Jul-2014 Zhijun He <zhijunhe@google.com> Camera2: Add aberration correction control

Change-Id: I0a3530ee8d5550f0f2a58c4d7af284821d87cb4d
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
a8c5badec4083e58e7fd9277a21f5c54f9843483 09-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Hide all the deprecated methods and interfaces"
0a160acf297b583e12a9710c929c4ba9a38f7353 02-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Hide all the deprecated methods and interfaces

Leave them in for now until bundled clients complete updating

Change-Id: Ibd0fc971258ce6b649000c48dd7a6716f1ab91d4
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/CaptureFailure.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/TotalCaptureResult.java
amera2/impl/CameraDeviceImpl.java
a242d220f1a4395be4714142c84c6e942cb4e232 09-Jul-2014 Igor Murashkin <iam@google.com> Merge "camera2: Legacy, lie about AE/AF regions (reported as 0)"
d25388c1556ea22821cfb05ab783efaad6652840 08-Jul-2014 Igor Murashkin <iam@google.com> camera2: Legacy, lie about AE/AF regions (reported as 0)

* Temporary work-around for passing CTS tests

Change-Id: Icbfe5309b3c500bb089553fbc57272936be6100f
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyResultMapper.java
df6242e374b81e802a38cb891477f05d3e4b3cbc 02-Jul-2014 Igor Murashkin <iam@google.com> camera2: Add crop region support and some other AE tags to legacy

Change-Id: If7a87b210a57ea13d6329bb363b1c7ecdadc52e8
amera.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequest.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/LegacyResultMapper.java
amera2/legacy/ParameterUtils.java
amera2/legacy/RequestThreadManager.java
amera2/utils/ArrayUtils.java
amera2/utils/ListUtils.java
amera2/utils/ParamsUtils.java
amera2/utils/SizeAreaComparator.java
013f66b92db609fceeff9c8171daca13d057cc95 07-Jul-2014 Eric Laurent <elaurent@google.com> SoundTrigger: update API

class Keyphrase: replaced number of users by list of user IDs.
class RecognitionEvent: added capture preamble duration.
class KeyphraseRecognitionEvent: add keyphrase ID and explicit list of
user ID/confidence level pairs.
startRecognition(): takes a RecognitionConfig specifying the list of
keyphrases to listen to as well as for each keyphrase the recognition mode,
users and min confidence levels for each user.

Bug: 12378680.
Change-Id: I57036cc83b5d9e90512b8bb3f951af3a4a74c0ce
oundtrigger/SoundTrigger.java
oundtrigger/SoundTriggerModule.java
d4233c68fc17f0909e9e36494db85a634f8e2665 13-Jun-2014 Sandeep Siddhartha <sansid@google.com> Initial code for listing/storing sound models

- We use a DB to store and persist the sound models.
- This'll be used by SoundTriggerModelManager, a service that lists,
deletes and registers new models. This'll be used by the enrollment
client to enroll and unenroll users.

- This needs the unique identifiers for sound model & keyphrases to be
present in the respective data structures

This is very early stage so please point out any concerns.

Change-Id: I82962895bf326167458f20e6ba995295551de025
oundtrigger/SoundTrigger.java
c7eba0f1db8928ca779933a564a06989e22a8532 07-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Intent definition for HdmiControlService for OSD display

Intent action/extra for TV app to show a message on screen about events
HdmiControlService need to report for user's attention. The app
needs system permission HDMI_CEC to receive the intent.

Change-Id: I4fbe4621efa20a17ca64a3ca8f2df64bee03c51b
dmi/HdmiControlManager.java
119160a68195bcb2f5bdf4a269807e01228eca97 07-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Add vendor-specific command API for HdmiControl

Vendor-specific commands are not handled by the service. This CL
opens an API for vendors to implement customized handling of
CEC commands specific to their needs.

Change-Id: I8bfa3b891bd7994a903b3b41d7c2b27464167afa
dmi/HdmiClient.java
dmi/HdmiControlManager.java
dmi/HdmiPlaybackClient.java
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
dmi/IHdmiVendorCommandListener.aidl
7f2372bd85445967ac6cb8c9519ebd1405aaa233 02-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update LEGACY mode video handling.

Bug: 15116722

- Change FPS preview setting handling for video modes.

Change-Id: Idba2162979db93a0483480ea256cbab85c1bd182
amera2/impl/CameraDeviceImpl.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/LegacyRequestMapper.java
amera2/legacy/RequestThreadManager.java
fca826de374bae6bff3d46d8020453a9ec1cbdbe 07-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Update HdmiControlService.deviceSelect()"
b38cd68b240d99e8c8ae6ff1802a574696b420cd 07-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Update HdmiControlService.deviceSelect()

The device selection action should have stopped if
TV's own power goes to standby in the middle. This CL
implements the right behavior.

Some TODO's about OSD banner were removed as they
can be handled in caller (TV app) when invoking the API
or upon receiving the callback based on the result. One
more callback result constant was added accordingly.

Bug: 15843137
Bug: 15844312
Bug: 15845651

Change-Id: Ib118fd6e80e9abdfb531e3f321d8db1c9cec45bd
dmi/HdmiControlManager.java
4ab7606f325dd5150a635b536b78028b77b2c2da 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Removed class HdmiCec"
c0c20d0522d7756d80f011e7a54bf3b51c78df41 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Removed class HdmiCec

Most of the constants in HdmiCec are internal use only. Moved them
to service, and dispersed the rest to other relevant classes.

Also moved HdmiCecMessage class to service as it doesn't need to be
open ouside the service.

Change-Id: I7b2ce3bf465330aa4d7fcd05f9aefa1e6c8b056a
dmi/HdmiCec.java
dmi/HdmiCecDeviceInfo.java
dmi/HdmiCecMessage.aidl
dmi/HdmiCecMessage.java
dmi/HdmiControlManager.java
dmi/HdmiPlaybackClient.java
dmi/HdmiTvClient.java
0f94217e9043e9dee329fa7167ee5be75eef0c23 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Add API setProhibitMode in HdmiControlService"
4d43d93743222311c6377d4904c19ccb93699d3b 03-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Add API setProhibitMode in HdmiControlService

setProhibitMode sets a flag inside the service that indicates if
input switch request will be processed or not. Sets to true when
TV is doing something for which TV display should be fixed, like
channel scan, software update - collectively called 'prohibit mode'.

Change-Id: I8ac623023210b58b684b9af3ac475a5fe0d09435
dmi/IHdmiControlService.aidl
09b36e2347f08897143022a078680ab7f156921b 04-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Fix broken build

Added the missing file

Change-Id: I96a918b6e8a368b44eb3d51cd8bfd567dbc8de94
dmi/IHdmiInputChangeListener.aidl
9c37e1f53ea4734bfe5ae156dc5399ce5f2c7ccc 02-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Implement some apis for TV Input Framework and HdmiControlService

- setInputChangeListener()
- getInputDevices()

Change-Id: I6f7d6d9c7094018e2b6b5ba37f63c8ee5df00e37
dmi/HdmiCecDeviceInfo.java
dmi/IHdmiControlService.aidl
9810f39717f3625222af9d710f7d8f5acca28449 04-Jul-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: update spec for RAW10"
ea1727c9e1760bebbe894b950f94cad91da416cc 04-Jul-2014 Zhijun He <zhijunhe@google.com> Camera2: update spec for RAW10

Bug: 15989722
Change-Id: Ia94e7b3080eb0d4ac088e0d4fc297f513ab2cf3a
amera2/CameraCharacteristics.java
194f7d7a070458546d32c9bcfbf44edd83f7fb49 05-Jul-2014 Nick Kralevich <nnk@google.com> am 3d24150d: am 23219098: am b70888d4: Merge "Fix a typo in a javadoc comment"

* commit '3d24150dbb58231a7dd6aef7e541cd21870f2ebf':
Fix a typo in a javadoc comment
3d24150dbb58231a7dd6aef7e541cd21870f2ebf 05-Jul-2014 Nick Kralevich <nnk@google.com> am 23219098: am b70888d4: Merge "Fix a typo in a javadoc comment"

* commit '23219098a6d623cf1825d8fd9a8d200cdc06aab9':
Fix a typo in a javadoc comment
b70888d45573c015fbb9d584df575bf78f5e9684 05-Jul-2014 Nick Kralevich <nnk@google.com> Merge "Fix a typo in a javadoc comment"
41d974631c5f525da49c88d34cecedd5a4cfeda8 30-Jun-2014 Jungshik Jang <jayjang@google.com> Add volume callback for Hdmi-Cec system audio mode.

Hdmi-Cec's system audio mode delegates audio control to
audio receiver from tv. It requires to delegate
volume change including mute to audio receiver
instead of consuming by tv.
In order to do this this change introduces three apis.
One is added to IAudioService, the others are added
to IHdmiControlService as hidden apis.

1. IAudioService#setHdmiSystemAudioSupported;
This is to notify system audio mode change to audio
service so that it determines to notify volume or mute
change to HdmiControlService.

2. IHdmiControlService#setSystemAudioVolume;
This is to notify volume change to HdmiControlService.
It's called only where system audio mode is on.

3. IHdmiControlService#setSystemAudioMute;
This is to notify volume change to HdmiControlService .
It's called only where system audio mode is on.

Change-Id: I3d8534b37ddf1a812e32012059a8778772044bf0
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
160a6e5b99de15ce755e2e5521dce32d81ab180a 01-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Add setOption for HdmiControlService

Bug: 15845304
Change-Id: I96b285ae3938aeecdd44b2c08a178def33bd2bf2
dmi/HdmiCec.java
dmi/IHdmiControlService.aidl
4a61a86b366db4e8cbc6f699e0b4331b1f07f7c8 02-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update camera metadata with legacy mode enum.

Bug: 15116722

- Adds enum for a device running in compatibility mode. When running
in compatibility mode, the Camera2 API is emulated using the
deprecated Camera API, and many capabilities will not be supported.

Change-Id: I94f31775699447a82d53b7f2a6f9fbdc0a5afb3f
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
3c8fa3b356fa8f24b55d3dc42d4313297542e9f2 01-Jul-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix configured surface check in Legacy shim.

Bug: 15116722

- Switch to checking IBinder pointer when making sure
requested output surface has been configured (same as
the camera service).
- Needed to use TextureView in TestingCamera2.

Change-Id: If8831a9b2f9ec3e81cc8348e067a57cca2d46440
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/SurfaceTextureRenderer.java
a13da0d5913757e2456020c69481f98d0e44c090 30-Jun-2014 Jungshik Jang <jayjang@google.com> Add api, setArcMode, used to turn on/off ARC.

Usual TV can switch on and off of ARC feature in its settings page.
Along with it, removed locking block from the code,
because arc flags are accessed by actions and internal services.

Change-Id: I737ac0c2671b537551eaac202d2065cc99c6d0a0
dmi/IHdmiControlService.aidl
92b77cf9cbf512e7141cad6fef5a38d0682dde43 27-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Refactor handling sequences in HdmiControlService

- Rewrote some methods to match more closely to the handling
sequences in guideline
- Added setControlEnabled() API in the aidl
- Handled <Routing Control> command
- Handled some scenarios invoking RoutingControlAction

Change-Id: I5db0c6fc775cef709c2e0f338b85937deebf2a54
dmi/IHdmiControlService.aidl
a09489c39e2e9d28b519ed850b4c0bf5ca4b2e63 27-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Handle incoming active source-related commands for HdmiControlService"
8333571bd5e0a08773a1679964f8d96227af3356 24-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Handle incoming active source-related commands for HdmiControlService

Handles incoming commands <Active Source>, <Inactive Source>, <Request
Active Source> that concern the active source update/report.

Defined mPrevPortId which is used to allow switching back to the input
set previously by <Active Source> or deviceSelect() when receiving
<Inactive Source>.

Also fixed a bug sending <Active Source> with wrong parameters.

Change-Id: I47fd804755c5c6beca38ddb21bb388a455d74f63
dmi/HdmiCec.java
e040418f4779c37aa9df69a3916d376af9d2e868 26-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: Add high speed video support

Below tags are added/updated:
- Add HIGH_SPEED_VIDEO in android.control.sceneMode
- android.control.availableHighSpeedVideoConfigurations

Change-Id: Ice2497c81d9feead7519f5d11f2bd5598093b4bc
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
0cd62d65dc08fb0b47d834fe295de36868a7def5 26-Jun-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Add 3A maxRegions tag to legacy device

Change-Id: I8ab4164a7f4c6f210b000cb623cbc686e0e79a35
amera2/legacy/LegacyMetadataMapper.java
ed2fdb56564189a568e11611f726bde5d0916d0a 26-Jun-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: update supportedHardwareLevel"
28288ca72c9b69df642514ab23c10e72c6b88c8c 26-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: update supportedHardwareLevel

Make the full hardware supportedHardwareLevel more accurately reflect the
spec requirement. Also fixed some other minor spec issues.

Change-Id: I7b55be03dcdeface15e73eff098f690f4f99a23f
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
dcad4f8a6ac7f984ed6d4296fa6bcc7c284c4821 25-Jun-2014 Igor Murashkin <iam@google.com> Merge "camera2: Fix maxNumOutputs CTS test on Legacy devices"
e1968f6f9d80013ffa9a64b0d1fb5579db18e721 25-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix maxNumOutputs CTS test on Legacy devices

Change-Id: Ice2ee8490438b84d9a99d6179dca248491557694
amera2/legacy/LegacyMetadataMapper.java
ef14da32804b06bac872c9e0e14ce0e52120a0bd 25-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix handling for abandoned bufferqueues.

Bug: 15116722

- Adds exception handling utility for legacy device.
- Skip/ignore abandoned surfaces in legacy camera.

Change-Id: Id4de587779d3bc2415e22b10bcc841cc46ac5f1d
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyExceptionUtils.java
amera2/legacy/RequestHolder.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
5096defdaa4716ce81047a855d6e5ce3f8263600 24-Jun-2014 Igor Murashkin <iam@google.com> camera2: (legacy) Write the JPEG size as part of the blob transport

This fixes StillCaptureTest#testStillPreviewCombination

Change-Id: Ifbaae7828b2efcc1a768c77ce50718abd7f691d0
amera2/legacy/RequestThreadManager.java
a296fece2b974a11bc624fd67b275863f17df867 23-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix cts test StillCaptureTest#testTakePicture

* Introduce 'fake' metadata for 3A+flash (hardcoded to support nothing)
(will be removed in a later release)

* Open the camera1 device in its own thread, so that the looper it
captures is also our own (and not the main looper)

* Set the picture size based on the size of the JPEG surface outputs

Change-Id: Iaeb5031c6b352115b73d2261a39d65347d75fdc8
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/RequestThreadManager.java
ed81ebc3c55e344ff511d283eaa8af31db9503c3 23-Jun-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Fix frame ID returned by legacy mode shim."
53284d5816f065b2de20dcb019fa1096b148eee4 23-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Fix frame ID returned by legacy mode shim.

Bug: 15116722
Change-Id: I59e9ac43b192c41f83fe350a93aa860b2619dfe5
amera2/legacy/RequestQueue.java
91b9aabc9fa0c058ecc4a8b3f486540c28fe1cc0 20-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Switch to using YV12 for ImageReader.

Bug: 15116722

- Also fixes incorrect frame number for single captures.

Change-Id: I8552124d18ad176e6724f089a1e3a3f49a5eeec4
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/RequestQueue.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
5776aafc7e70c0b79c4bee2bc50f44121b37c962 19-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add AE antibanding + fps range metadata.

Bug: 15116722
Change-Id: I627748e162f26c42f6bbcfc21ee4b1081e1f25ad
amera2/CaptureRequest.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/RequestThreadManager.java
49b2b135105e5ca5dc9547f4c6de473bebad647d 19-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix deadlocks in shim #close and make #testInvalidCapture pass

* Also fixes configureOutputs to allow it to unconfigure
* Adds IAE checks in a few spots to validate surfaces aren't null

Bug: 15116722
Change-Id: I9ec88bccb3600eb12747d84436ead27952e87646
amera2/impl/CameraDeviceImpl.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
amera2/utils/CloseableLock.java
ea67c183fe5511ad99aeaae1a32b5245bd020e36 19-Jun-2014 Jungshik Jang <jayjang@google.com> Add for System Audio Mode

Note that this is skeleton change and do not merge
till get full review from outside of CEC team.

This change introduce four apis for System Audio Mode

1. boolean canChangeSystemAudioMode()
- Whether to change system audio mode or not.

2. setSystemAudioMode(boolean enabled, IHdmiControlCallback callback);
- Change system audio mode.

3. add/removeSystemAudioModeChangeLister.
- Register/deregister listner for AudioModeChange.

4. getSystemAudioMode()
- Whether to system audio is enabled or not.

Change-Id: I1e82365155a9f7f6c3ac5d9db4871cf6bad46865
dmi/IHdmiControlService.aidl
dmi/IHdmiSystemAudioModeChangeListener.aidl
5e6421bd8f0ac6efd617b1bcdb976b10f001654e 21-Jun-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Switch to using YV12 for ImageReader."
60679f6b7d45c45be5bd0a44026711890f6ff291 20-Jun-2014 Igor Murashkin <iam@google.com> Merge "camera: Get detailed error reporting from api1 Camera if open fails"
a1d662716b3da384dfe3a758f079e0cbd089784a 20-Jun-2014 Igor Murashkin <iam@google.com> camera: Get detailed error reporting from api1 Camera if open fails

* Also maps camera2 open errors the same for shim/nonshim paths

Change-Id: I08d9d1e30e72025c41bd54b702d7ae95b32257be
amera.java
amera2/CameraManager.java
amera2/legacy/CameraDeviceUserShim.java
15d0f974732583c8276aa38031917c98277c7622 20-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Call onCaptureSequenceAborted when appropriate"
1788b0466b029dafd728ce8b097d419c132c1b9e 20-Jun-2014 Igor Murashkin <iam@google.com> camera2: Shim fix hwLevel and minimumFocusDistance

Change-Id: Ie4ab330a738ac4c8e465eacade1bbc39bdb776fe
amera2/CameraCharacteristics.java
amera2/legacy/LegacyMetadataMapper.java
ee37e30c222ec60e51b6bf41309b396f0f23b47a 11-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Call onCaptureSequenceAborted when appropriate

Bug: 15524101
Change-Id: I4615d0b4ae3cae80609586f7dfa8373691a9e384
amera2/impl/CameraDeviceImpl.java
6e335c44c62c3f735efd333bcf0d459a843f90b8 20-Jun-2014 Zhijun He <zhijunhe@google.com> Merge "Camera: Implement HAL1 and higher HAL API coexistence"
4c913801141163362dd5bb7c9784c83f69c11054 17-Jun-2014 Zhijun He <zhijunhe@google.com> Camera: Implement HAL1 and higher HAL API coexistence

A higher hal version device like HAL3.2 can be opened as HAL1.0 device
if HAL supports it. This only applies to camera API1.

Change-Id: I4ae9f59f4317158cc1bd7ed7726e4032cdd1fa07
amera.java
CameraService.aidl
3e4fed203fe7c945c53c6d6bb9f160932a1d15b3 19-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add shim frame duration and stall characteristics.

Bug: 15116722
Change-Id: Ief8b05d46fa12f63cf6a5d41e312c94d5a033553
amera2/CameraMetadata.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/LegacyMetadataMapper.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
amera2/params/StreamConfigurationMap.java
a062a9339add79a84862a34e363e3e454a6ec435 18-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Implement portSelect/sendKeyEvent for HdmiControlService

TIF (TV Input Framework) uses these API to switch inputs, send
keys for selected device on CEC bus. Also renamed getActiveInput
to getActivePortId to use a unified term for port/input.

Change-Id: I8196825c0d960988cc1c0bb58a628ccd8ab1957e
dmi/HdmiCec.java
d85e1a6ced452c9bd0d805f6ce19f50c9ea9b0a6 11-Jun-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Adding legacy mode support for teeing to Video.

Bug: 15116722

- Select intermediate GL texture size based on available
preview dimensions.
- Fixes for configure deadlock.
- Fixes for jpeg capture.

Change-Id: I3f665230defdad718de40494dd67fda5ea432bfb
amera2/legacy/CameraDeviceState.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
4961bc88d7bab869a5296789d26fcfa31ad5f644 17-Jun-2014 Igor Murashkin <iam@google.com> camera2: Map camera characteristics in the managed layer

Change-Id: Ic86c8df3d703e7cf89caa856387e2c0a1b977401
CameraService.aidl
amera2/CameraManager.java
amera2/legacy/LegacyMetadataMapper.java
amera2/utils/CameraBinderDecorator.java
0d3985a977886a0d6d6bb7ba6d048c1e21b05a24 16-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Added an argument isPressed to HdmiControlService#sendKeyEvent

sendKeyEvent requires additional argument isPressed to handled
both up/down key event.

Change-Id: I0080adc72920dd7ae4e4dae041781f76a6658f9b
dmi/IHdmiControlService.aidl
6d97f5b91c6c82f28a2a3a5d3b922f0e5844e733 16-Jun-2014 Jinsuk Kim <jinsukkim@google.com> A few more APIs for HdmiControlService

Added following APIs in HdmiControlService:

- portSelect
- sendKeyEvent
- getPortInfo
- addDeviceEventListener

Some are not fleshed out yet. Will work on it in a follow up CL.

Change-Id: Ia8c635176c0378f6e8db589bf714d82bf21ce85d
dmi/HdmiCecDeviceInfo.aidl
dmi/IHdmiControlService.aidl
dmi/IHdmiDeviceEventListener.aidl
5eaf6d21611684ffc826bc8abb74c495403aac4b 14-Jun-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Add timestampCalibration tag"
45fa43a1815e2d0a25ed3a126e4e732a03b7ed7f 14-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: Add timestampCalibration tag

Also update the video/optical stabilization docs.

Change-Id: I444cc8d46c0a460bc4311e58bf6166b5c6dbfd14
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
5ae1ca5b6932b27f8d3d5a3b4a124fe2b5b84e27 13-Jun-2014 Eino-Ville Talvala <etalvala@google.com> camera2 docs: Fix instructions for using SurfaceView.

Bug: 15597178
Change-Id: I802369e61725451ddd8df855c384608c80e12693
amera2/CameraDevice.java
b8cee5175d7cbc4901bd2d56aa6a380b1464a074 12-Jun-2014 Sol Boucher <solb@google.com> camera2: Remove stray </p> in CameraDevice#createCaptureSession

This was causing strange indentation.
The change also clarifies how to get the supported output sizes in the
ImageReader flow: Although the doc (correctly) instructed the developer to use
StreamConfigurationMap#getOutputSizes(int) with an ImageReader, this instruction
appeared after the bulleted list of output types. Since all other items in that
list specify that getOutputSizes(Class<?>) should be used, the reader shouldn't
be expected to read beyond the list only in this specific case.

Bug: 15574400
Change-Id: Id952b46ae52322d75abbcaffea678d5ba50b22a5
amera2/CameraDevice.java
0cb41fd5ad37a1a9aaedb737491fa71310ef2ddc 13-Jun-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Add rollingShutterSkew tag"
0bda31afe06a05144a31ce47adbc54694ec24228 13-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: Add rollingShutterSkew tag

Change-Id: Icbedaeda9fc64a9dda509493ad9d14569c56cd18
amera2/CaptureResult.java
c5c363f0ffd9b554ebab9aa6e02c4d55a3398648 13-Jun-2014 Eino-Ville Talvala <etalvala@google.com> am 14b5f131: Merge "camera2 docs: Fix instructions for using SurfaceView." into lmp-preview-dev

* commit '14b5f131c7118d58a6215e1f6d877d5cd31de54c':
camera2 docs: Fix instructions for using SurfaceView.
221748039c74215192e9e538a5d05f601b441242 13-Jun-2014 Aravind Akella <aakella@google.com> Merge "Add java APIs for Sensor reportingMode."
0340bbc89f8162f9c2a298c98b03bfcdd1bc6e87 05-Jun-2014 Jinsuk Kim <jinsukkim@google.com> RoutingControlAction for HdmiControlService

Routing control action is initiated in various cases, such as manual
TV input port switching, routing change of a different CEC switch,
and so on. The action determines the device to be a new active source.

Change-Id: I1efcd6ff1919dd94d6fa0e0ffa6e430c48d4e9c6
dmi/HdmiPortInfo.aidl
dmi/HdmiPortInfo.java
a6ce7708d6124224399241503fadcafe0c4684d4 10-May-2014 Jinsuk Kim <jinsukkim@google.com> DeviceSelectAction for HdmiControlService

DeviceSelectAction is the main handler for the API deviceSelect() which is
used to choose a new active source among logical devices on the bus.

Change-Id: I77582a1f873423fc316d89f67a89a867461a76b2
dmi/HdmiTvClient.java
dmi/IHdmiControlService.aidl
a13697f68dc01db9c54481b4a6dbcf42711fa052 13-Jun-2014 Sol Boucher <solb@google.com> am 85d82c70: camera2: Remove stray </p> in CameraDevice#createCaptureSession

* commit '85d82c70e1766c5a38c65fdfda8304aefcaa6576':
camera2: Remove stray </p> in CameraDevice#createCaptureSession
bb373e601fd3281526700037d41bcebf3fe76d71 12-Jun-2014 Eino-Ville Talvala <etalvala@google.com> am e941070b: Merge "Camera2: Misc + enum value documentation updates" into lmp-preview-dev

* commit 'e941070bd7ab910b558bbace38e2ff813fa0327c':
Camera2: Misc + enum value documentation updates
486ed0889999071ee09bf600d8e6511fa0d4571a 11-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Misc + enum value documentation updates" into lmp-preview-dev
e600d6ad60373821472e6338792109fa3103f7e2 09-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Misc + enum value documentation updates

- Update enum values for many entries
- Reword various sections of documentation for clarity.

Bug: 15475465
Change-Id: I2b03cac8d478e945c7d93717845a9ae44b97639b
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/params/StreamConfiguration.java
ac4dcf6d90459abc8f73c21575ee706493593ac5 11-Jun-2014 Eino-Ville Talvala <etalvala@google.com> am bc4b6859: Merge "Camera2: Many docs updates" into lmp-preview-dev

* commit 'bc4b6859cb12564d7dfe37abffd77465b4be75d0':
Camera2: Many docs updates
73b1d94baf9dcd75bd61beed07a3984c70fdc3f1 11-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Many docs updates" into lmp-preview-dev
937c4dbb1fdc1afcdc3c4b57d6799d1f49acf9f0 11-Jun-2014 Ruben Brunk <rubenbrunk@google.com> Merge "DO NOT MERGE: camera2: Disallow shim usage for preview." into lmp-preview-dev
d8c21e8bd09658f5843712f0176db3517ba44c51 10-Jun-2014 Ruben Brunk <rubenbrunk@google.com> DO NOT MERGE: camera2: Disallow shim usage for preview.

Bug: 15515564
Change-Id: I14ab73b130ee5355d9cc8b3602738022a5a18710
amera2/CameraManager.java
f1d758867aa878fb956af7c66bd2d3122adf72a0 10-Jun-2014 Igor Murashkin <iam@google.com> am 69729adf: Merge "camera2: Fix session-related CTS test failures" into lmp-preview-dev

* commit '69729adf04bddb2e5b67d625412151b4bcbc1ca4':
camera2: Fix session-related CTS test failures
1a2f7a1e29e59e0c9140ac5d3f465dc110c70b48 10-Jun-2014 John Reck <jreck@google.com> resolved conflicts for merge of 2d2aa0cc to master

Change-Id: Ib7bb0e40569a8f6a7f856eef54980d70d9769cdc
3721cbaf016275246e854e76381991570abd7148 10-Jun-2014 Igor Murashkin <iam@google.com> Merge "camera2: Fix session-related CTS test failures" into lmp-preview-dev
e1442204c1a2e8c6697d0640df06dc6314ed7113 10-Jun-2014 Igor Murashkin <iam@google.com> camera2: Fix session-related CTS test failures

Bug: 15474402
Change-Id: I4ae86166b5ce99a854c754c8ac6d6c23c683b14a
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
amera2/utils/TaskDrainer.java
27900358f2f5b89e8b01516b28a916d16c99ba9b 04-Jun-2014 Aravind Akella <aakella@google.com> Add java APIs for Sensor reportingMode.

Change-Id: Iba6bb11f990d9966b86bf02d70ced7312f3e64a8
ensor.java
ystemSensorManager.java
66d1eb285b129836d1b3c392ed609283c0dbf830 06-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Tag HdmiControlService API classes with @hide/@SystemApi

Bug: 15516329, Bug: 15516710
Change-Id: Ie814513a642660b6c5fdc9e891ad1eec1b2d689b
dmi/HdmiCec.java
dmi/HdmiCecDeviceInfo.java
dmi/HdmiCecMessage.java
dmi/HdmiControlManager.java
dmi/HdmiHotplugEvent.java
dmi/HdmiPlaybackClient.java
dmi/HdmiTvClient.java
b67a3b36fd569e63c1b8ca6b2701c34c7a3927c1 06-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Many docs updates

- Improve CameraManager.AvailabilityListener docs
- Fix references to createCaptureSession immediately returning a session
- Remove most docs from deprecated methods, to minimize confusion.
- Remove references to deprecated methods from non-deprecated methods.
- Improve acronym use in metadata keys, and other minor metadata doc fixes.
- Improve package-level docs.

Bug: 15394187
Bug: 15394241
Bug: 15394242
Bug: 15394526

Change-Id: I48de626a33ef9b834578f7bb890de9b98d3122d2
amera2/CameraCaptureSession.java
amera2/CameraCharacteristics.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/package.html
amera2/params/StreamConfiguration.java
amera2/params/StreamConfigurationMap.java
5adb67d4ce228a3afa6512e87d61c4d581dfd1e3 09-Jun-2014 Ed Heyl <edheyl@google.com> merge 4ce22057, regen api/current.txt

Change-Id: I39186b5c4d41753c729c5d1ee7ee96b03a45c514
3f48068d782b81dc1c8a0190b91fbb2862007244 06-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Remove HdmiCecService

The service is replaced with HdmiControlService. Removing all the related
classes and the initialization of the service.

Change-Id: Ic7baaddffb9873613ddd1096e874f226da983939
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
dmi/IHdmiCecListener.aidl
dmi/IHdmiCecService.aidl
acbf10ce5c2f4da95ea1b3ca131fb4509f275d98 06-Jun-2014 Aravind Akella <aakella@google.com> Merge "Hide Sensor.getRequiredPermission API." into lmp-preview-dev
fca5f5234734d0ac452a6da19918c368481fa246 06-Jun-2014 Sol Boucher <solb@google.com> am af9a77d6: camera2: Fix ordering issue between #onOpened and createCaptureSession

* commit 'af9a77d64912985a3fa9f91cd0e372316e790b9f':
camera2: Fix ordering issue between #onOpened and createCaptureSession
4b3f8004382192e066bb0c38bf39421f312daaf2 05-Jun-2014 Sol Boucher <solb@google.com> camera2: Fix ordering issue between #onOpened and createCaptureSession

This resolves an issue where the CameraDevice.StateListener callbacks were
erroneously called before the CameraCaptureSession.StateListener ones,
preventing e.g. creating a capture session from the
CameraDevice.StateListener#onOpened() callback.
It also explicitly ignores CameraDevice.StateListener#onUnconfigured() calls
occurring before the first call to #close .

Bug: 15449190
Change-Id: Ic0094d53a65e42108201d7bb50734d17290fa9bf
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDeviceImpl.java
abfaf964a59a90f666d913ca7b5db1da31649246 06-Jun-2014 Yin-Chia Yeh <yinchiayeh@google.com> am 6d892689: Merge "Camera2: Do not hide TonemapCurve construtor" into lmp-preview-dev

* commit '6d892689f569871e2e711669c0262a7d25b3e091':
Camera2: Do not hide TonemapCurve construtor
ffff217134fd0de8625cf39da56fa59a32a8c643 06-Jun-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: Do not hide TonemapCurve construtor" into lmp-preview-dev
169a149d5505fcf67bd221f9592963c01f02d1af 06-Jun-2014 Zhijun He <zhijunhe@google.com> am b67beb8e: Merge "Camera2: Hide input stream related key and enum" into lmp-preview-dev

* commit 'b67beb8e8b9115c1ba796a57f1bb59822e6a1ce1':
Camera2: Hide input stream related key and enum
5271e0b89012b32626913e22bd266137c0b4159f 21-May-2014 Aravind Akella <aakella@google.com> Hide Sensor.getRequiredPermission API.

Bug: 15089664
Change-Id: Ia0f4e64a563ca409849cf53721b4836abbb0be68
(cherry picked from commit e7213150abbe33c71dbdc3295a1fa1feaafb069d)
ensor.java
7de8c849d7241b0e9faa34f576f7beb296f57d5c 05-Jun-2014 Eric Laurent <elaurent@google.com> Merge "Add SoundTrigger native service interface"
6593acd95da00450023bcff66bf1e00b42930065 05-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: Hide input stream related key and enum

Bug: 14622091
Change-Id: Id8fc20b752da876f00a94d0262cd9468951bb36d
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
83a9e4d86407d627f3f6fbf8757d2a389097ab6f 05-Jun-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Do not hide TonemapCurve construtor

Do not @hide TonemapCurve constructor since it's also a
control key.

bug: 14628001
Change-Id: I17384f42f5c2db2371d1c09030d04a1b9637045e
amera2/params/TonemapCurve.java
85e5f85f2e963f5093023050084ef6fbbe20a7ce 05-Jun-2014 Eino-Ville Talvala <etalvala@google.com> am 4b1b33ef: Merge "Camera2: Invoke onError callbacks for failure to open" into lmp-preview-dev

* commit '4b1b33eff0eabd17f1078d55188b40e9a27d047a':
Camera2: Invoke onError callbacks for failure to open
e48188ce35f613f64b513e5d8ce24fada1212d8e 19-Apr-2014 Eric Laurent <elaurent@google.com> Add SoundTrigger native service interface

Add JAVA framework interface for native sound trigger service.
The interface allows for:
- enumeration of sound trigger hardware modules and their properties
- load/unload sound models
- start, stop and receive recognition events on sound models.

Change-Id: I51542f38f5359ffbbf79d2cbd7c9ea1ee10c9c18
oundtrigger/SoundTrigger.java
oundtrigger/SoundTriggerModule.java
7fcb357811d4dc1f44624e30ad924e9e580d4cbf 04-Jun-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Invoke onError callbacks for failure to open

When the initial attempt to connect to the remote camera device fails,
fire the onError callback as documented, instead of throwing an
exception from open().

Also ensure the correct exception is sent when methods are called
while in the error state, and make sure onClosed() is called correctly
if closing the device after an initial startup error.

Bug: 14413756
Bug: 14413363
Change-Id: I0822261dad52bcd428a0c4556202f00032499990
amera2/CameraManager.java
amera2/impl/CameraDeviceImpl.java
2ac6c4331204d5a0ae669ae760da243d11d39963 05-Jun-2014 Igor Murashkin <iam@google.com> am 97b2bc9a: Merge "camera2: Change CaptureListener callbacks to include the session (api)" into lmp-preview-dev

* commit '97b2bc9a05a56dad609360f8fec1e5a51059e656':
camera2: Change CaptureListener callbacks to include the session (api)
21547d66a9ce591ff30a3ad4102f7f30a4764d80 05-Jun-2014 Igor Murashkin <iam@google.com> camera2: Change CaptureListener callbacks to include the session (api)

* Also makes CameraDevice an abstract class (API)

Bug: 15428219
Bug: 14964443
Change-Id: I0e8c8309186aad59570aac7e0f998bb615405f0a
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/dispatch/ArgumentReplacingDispatcher.java
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDevice.java
amera2/impl/CameraDeviceImpl.java
fcab516cd42f5b2455502853cdb24e0beae485eb 05-Jun-2014 Ruben Brunk <rubenbrunk@google.com> am 37532379: Merge "DNG: Hide unimplemented methods." into lmp-preview-dev

* commit '37532379e7c770555b140332112a34fe716fed22':
DNG: Hide unimplemented methods.
35677d176202d8d8d676c4df65dbeeee9281bace 05-Jun-2014 Ruben Brunk <rubenbrunk@google.com> Merge "DNG: Hide unimplemented methods." into lmp-preview-dev
dcb65c3125f55152117f304bb6f909525be828a9 05-Jun-2014 Zhijun He <zhijunhe@google.com> am b4f18bf1: Merge "Camera2: Update availableStreamConfigurations for JPEG sizes" into lmp-preview-dev

* commit 'b4f18bf11d7f0ca574ed9477486fd50e7c923023':
Camera2: Update availableStreamConfigurations for JPEG sizes
df9b74781ae0c4554eb51744f10d53117d057982 04-Jun-2014 Zhijun He <zhijunhe@google.com> Camera2: Update availableStreamConfigurations for JPEG sizes

Also Fix some doc issue in availableCapabilities

Bug: 12035686
Change-Id: Ie517a587f4a9e6cd9731fcca042e24adf832d9e3
amera2/CameraCharacteristics.java
8e783f7a5213b23b0a3c96773ff120b3dbf38f50 04-Jun-2014 Ruben Brunk <rubenbrunk@google.com> DNG: Hide unimplemented methods.

Bug: 15112503
Change-Id: I31187a92b610af68fb854a27a564abf7d0635478
amera2/DngCreator.java
da525e542b12041a06bf7f58e662d452b6c1a752 04-Jun-2014 Igor Murashkin <iam@google.com> am 1a68eb96: Merge "camera2: Implement most of CameraCaptureSession" into lmp-preview-dev

* commit '1a68eb968f77af341a60708b85072ae805e6dc10':
camera2: Implement most of CameraCaptureSession
ccee3b158a83afb3df7cf9ea33690f5c56cf6244 04-Jun-2014 Ruben Brunk <rubenbrunk@google.com> am c354b069: Merge "DNG: Write out additional fields." into lmp-preview-dev

* commit 'c354b06955508816af29daefdac5ef9ea9b89fbb':
DNG: Write out additional fields.
c6b4d9b8d159c3ac2ecf23d60430dc92525e9cfe 04-Jun-2014 Igor Murashkin <iam@google.com> Merge "camera2: Implement most of CameraCaptureSession" into lmp-preview-dev
3f6680ad4880de4a94296733fdd4533ea55862d5 04-Jun-2014 Ruben Brunk <rubenbrunk@google.com> Merge "DNG: Write out additional fields." into lmp-preview-dev
b8df8e07d6fc530c82d21ca3199411e2e60975b1 03-Jun-2014 Ruben Brunk <rubenbrunk@google.com> DNG: Write out additional fields.

Bug: 15112503

Change-Id: Ib06d9a5e70e6e3d5063a95a7109538ef64f03334
amera2/DngCreator.java
0b27d3453d5e257594792e9177c5fedb1bc6f9e9 30-May-2014 Igor Murashkin <iam@google.com> camera2: Implement most of CameraCaptureSession

Bug: 14964443
Change-Id: I8203842c77a94a3a6e5f89494fce658b00a4160d
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/dispatch/BroadcastDispatcher.java
amera2/dispatch/Dispatchable.java
amera2/dispatch/DuckTypingDispatcher.java
amera2/dispatch/HandlerDispatcher.java
amera2/dispatch/InvokeDispatcher.java
amera2/dispatch/MethodNameInvoker.java
amera2/dispatch/NullDispatcher.java
amera2/dispatch/package.html
amera2/impl/CameraCaptureSessionImpl.java
amera2/impl/CameraDevice.java
amera2/impl/ListenerProxies.java
amera2/utils/TaskDrainer.java
amera2/utils/TaskSingleDrainer.java
amera2/utils/UncheckedThrow.java
b9e60f35ef836e77388b571469972ff1a43c8695 02-Jun-2014 Jinsuk Kim <jinsukkim@google.com> DO NOT MERGE: Added missing entries in the cec device array

Change-Id: Ibb775f47cb9fb53df0a1baf67d09d76c4cb42392
dmi/HdmiCec.java
cf6527ca985ffcf904d63507bfe2780a35005262 02-Jun-2014 Jinsuk Kim <jinsukkim@google.com> Added missing entries in the cec device array

Change-Id: Ibb775f47cb9fb53df0a1baf67d09d76c4cb42392
dmi/HdmiCec.java
e74282b70b4a8ad1186fdc32204e1ecee16cd901 29-May-2014 Jinsuk Kim <jinsukkim@google.com> DO NOT MERGE: Stop publishing HdmiCecService, start publishing HdmiControlService

HdmiCecService will soon be deprecated and replaced with HdmiControlService.
Stopped publishing the service, and turned the corresponding manager to
stub so that it will do nothing but print out a warning msg instead.

Will help the app transition to the new service in the meantime. Once
the migration is finished, will gut out all the HdmiCecService/
HdmiCecManager stuff.

Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
a8fd44b74b8822426cdc0e45351899c95bf30e16 28-May-2014 Jinsuk Kim <jinsukkim@google.com> DO NOT MERGE: Fix a couple of bugs in CEC services

- Correct conversion for byte to int for cec opcode
- Use the right Handler.obtainMessage() to pass an integer variable

Change-Id: Ie3e86225f1702decce454aeb197911a371f51c17
dmi/HdmiCecMessage.java
304b4a7281ffe4153d21eb50ebed070f1cf685bc 29-May-2014 Jinsuk Kim <jinsukkim@google.com> DO NOT MERGE: Fix a bug calling a wrong HDMI-CEC Binder API

Change-Id: I75e5de3ab820288f0fe6bebdc63d6dd680e18f8a
dmi/HdmiPlaybackClient.java
61ced38d61926bc28638d805436086db22b642c3 23-May-2014 Yuncheol Heo <ycheo@google.com> DO NOT MERGE: Add the constants for the callback result of SendCecCommand().

- Move the send failure warning messages into HdmiCecController.sendCommand()
from each Actions.
- Stringfy with more detail messages for some opcodes.

Change-Id: Ib7ce24dd2a1f290e6c3a0b26738772ef1d4a9630
dmi/HdmiCecMessage.java
ee36492fac16169f622c8f554385b602593b7e71 30-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> am 7ebaa1ef: Merge "Camera2: update the range of metering weight" into lmp-preview-dev

* commit '7ebaa1ef18fd20500efb87f75e933b9e35fb5470':
Camera2: update the range of metering weight
f41799e7f7d29ce479372f31d5570b99859692c3 30-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: update the range of metering weight" into lmp-preview-dev
dbce83bf20fb40898a91907135608b329dd99d67 30-May-2014 Igor Murashkin <iam@google.com> am 511b84d2: Merge "camera2: Change android.lens.focusRange to Pair<Float,Float>" into lmp-preview-dev

* commit '511b84d26b3e4acfcee9ca2864588538b9801708':
camera2: Change android.lens.focusRange to Pair<Float,Float>
97f1c854993a65b2c700426a1e3a83b23ea65337 29-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: update the range of metering weight

Limit the range of metering weight to 0-1000.

Bug: 15315352
Change-Id: Iceb13b72508cb3c9f758bdcb1b69b6b11ec5aaf8
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/params/MeteringRectangle.java
5743868e15c88d2886915163652a1571a218bf39 30-May-2014 Igor Murashkin <iam@google.com> camera2: Change android.lens.focusRange to Pair<Float,Float>

Since the focus range is defined in diopters (1/distance), it just so
happens that in a range [near, far] near >= far which is against the
android.util.Range contract.

Change it to pair instead.

Also adds a marshaler for Pairs since they didn't have one before
(and aren't parcelable).

Bug: 15335269
Change-Id: If2f3259aeec072438a1c18c1b9728a4c81e92a40
amera2/CaptureResult.java
amera2/impl/CameraMetadataNative.java
amera2/marshal/impl/MarshalQueryablePair.java
d1cc293a5ba630270cc70a4645b58ecea826075d 30-May-2014 Zhijun He <zhijunhe@google.com> am 504d5486: Merge "Camera2: Fix availableCapabilities incorrect type" into lmp-preview-dev

* commit '504d5486de89ef425d0acd04363e8131f3686991':
Camera2: Fix availableCapabilities incorrect type
8692fc68a413c7aca75f094bb02bcbabcc277c73 29-May-2014 Jinsuk Kim <jinsukkim@google.com> Stop publishing HdmiCecService, start publishing HdmiControlService

HdmiCecService will soon be deprecated and replaced with HdmiControlService.
Stopped publishing the service, and turned the corresponding manager to
stub so that it will do nothing but print out a warning msg instead.

Will help the app transition to the new service in the meantime. Once
the migration is finished, will gut out all the HdmiCecService/
HdmiCecManager stuff.

Change-Id: Ic34a69c4fb99f4e5a2c8323538195204ab16a545
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
421ddbe6709e391603215beb0e01465f42cc0334 29-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Fix availableCapabilities incorrect type

Bug: 15168075
Change-Id: I50553d740101b7db1b7695344bf4cdf9c5cd1cf9
amera2/CameraCharacteristics.java
d5a8d65b439d2e378c5912c150d7aa79ad0e6644 29-May-2014 Zhijun He <zhijunhe@google.com> am 239ac054: Merge "Camera2: Update spec for thumbnail cropping behavior" into lmp-preview-dev

* commit '239ac0541bf7e0fc8b301d077b40e3e52cf32161':
Camera2: Update spec for thumbnail cropping behavior
d618555e45e5653031e214df9fc443d9f0d10965 29-May-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Fix a bug calling a wrong HDMI-CEC Binder API"
56c8711bc0e25dfcf26691865594f0c4c7171062 29-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> am b17e5f3d: Merge "Camera2: Fix wrong index in ColorSpaceTransform" into lmp-preview-dev

* commit 'b17e5f3d9deeb3c80f4b45657897c138ff060bab':
Camera2: Fix wrong index in ColorSpaceTransform
f5fe63c35cb804e4dba87037c7af29e536963be0 29-May-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update spec for thumbnail cropping behavior" into lmp-preview-dev
5ac6225ea371782a6c4556708bf85f1494f6ec59 29-May-2014 Jinsuk Kim <jinsukkim@google.com> Fix a bug calling a wrong HDMI-CEC Binder API

Change-Id: I75e5de3ab820288f0fe6bebdc63d6dd680e18f8a
dmi/HdmiPlaybackClient.java
50f7243ca068c793c8b5aca37a9e983b630c477f 28-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Update spec for thumbnail cropping behavior

Also update FULL capability spec (remove ZSL from the requirement list).

Bug: 15168075
Change-Id: I864baf35ffab9047b52facb29011682e724bbc9b
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
884cddcdf46235c1fd205b65623ca7850b607b1c 28-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Fix wrong index in ColorSpaceTransform

Bug: 15309870
Change-Id: I89a043a005435695ac8649e20d4e0e58d0f62bc7
amera2/params/ColorSpaceTransform.java
5b02e9f65f52bbdd6fbb05b1ad73b71b72ef077c 28-May-2014 Eino-Ville Talvala <etalvala@google.com> am a4aad3d0: Merge changes Ia0f54124,I1e085f5e,Ic0a3ff0a,I141847df,I8ae4efa2 into lmp-preview-dev

* commit 'a4aad3d0e5c258d6bbf6254ec5ab80a470b1b529':
camera2: Update native/managed key mappings.
Camera2: switch API interface to java classses
Camera2: Use ColorSpaceTransform and RggbChannelVector, replace enum byte[]
camera2: Add new metadata keys, change types for existing range keys
Camera2: Replace int[] by MeteringRectangle
574936894d3044445a272b39f2d925af40ece5d8 28-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update native/managed key mappings.

Switches to using managed value classes for the following keys:
- android.sensor.info.sensitivityRange
- android.sensor.info.exposureTimeRange
- android.jpeg.gpsCoordinates
- android.jpeg.gpsTimestamp
- android.jpeg.gpsProcessingMethod
- android.statistics.lensShadingMap
- android.lens.info.shadingMapSize
Also fixes a minor bug in LensShadingMap

Bug: 14628001
Change-Id: Ia0f541242f529ab9ba3111db799306b198f2b40b
amera2/CameraCharacteristics.java
amera2/CameraManager.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
amera2/params/LensShadingMap.java
b0674f0f7c04b707ca7b11f5700bdb9e51b61872 28-May-2014 Jinsuk Kim <jinsukkim@google.com> Fix a couple of bugs in CEC services

- Correct conversion for byte to int for cec opcode
- Use the right Handler.obtainMessage() to pass an integer variable

Change-Id: Ie3e86225f1702decce454aeb197911a371f51c17
dmi/HdmiCecMessage.java
8490ace76fd350e53de9554c11fca715c5a37aaf 27-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: switch API interface to java classses

android.sensor.info.physicalSize: float[] -> SizeF
android.statistics.hotPixelMap: int[] -> Point[]
android.tonemap.curve[Red|Green|Blue]: float[] -> TonemapCurve

Bug: 14628001
Change-Id: I1e085f5e640a059852fcb504b6dd5f884039e653
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/CameraMetadataNative.java
2bb91a7a68e32530adf730deeef2fe95bad20a96 28-May-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Use ColorSpaceTransform and RggbChannelVector, replace enum byte[]

Also fix a minor bug in ColorSpaceTransform copying validation.

Affected keys:
android.colorCorrection.transform
android.colorCorrection.gain
android.control.aeAvailableAntibandingModes
android.control.aeAvailableModes
android.control.afAvailableModes
android.control.availableEffects
android.control.availableSceneModes
android.control.availableVideoStabilizationModes
android.control.awbAvailableModes
android.edge.availableEdgeModes
android.hotpixel.availableHotPixelModes
android.lens.info.availableOpticalStabilization
android.noiseReduction.availableNoiseReductionModes
android.sensor.calibrationTransform1
android.sensor.calibrationTransform2
android.sensor.colorTransform1
android.sensor.colorTransform2
android.sensor.forwardTransform1
android.sensor.forwardTransform2
android.statistics.info.availableFaceDetectModes
android.tonemap.availableToneMapModes

Bug: 14628001
Change-Id: Ic0a3ff0aaa6bfe872cf8fb740870618c3eee3008
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/params/ColorSpaceTransform.java
78712a8bd7275542013ba099f33536eead0167fb 28-May-2014 Igor Murashkin <iam@google.com> camera2: Add new metadata keys, change types for existing range keys

Also adds the following keys:
* android.control.maxRegionsAe
* android.control.maxRegionsAwb
* android.control.maxRegionsAf
* android.request.maxNumOutputRaw
* android.request.maxNumOutputProc
* android.request.maxNumOutputProcStalling

Changes the following keys' type
generations:
* android.control.aeTargetFpsRange
* (Range<Integer>)
* android.control.aeAvailableTargetFpsRanges
* (Range<Integer>[])
* android.control.aeCompensationRange
* (Range<Integer>)
* android.lens.focusRange
* (Range<Float>)

Bug: 14628001
Change-Id: I141847dffc4b0d89cea37c19a54d6d5faf24a9bb
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/CameraMetadataNative.java
817f8933ee1c11130ad2ca45b5ac8ce8b729f125 19-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Replace int[] by MeteringRectangle

Bug: 14628001
Change-Id: I8ae4efa24d41043046a84b04e5209259a8a21063
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/params/MeteringRectangle.java
5fe5bcaeaa3578f0ac05e672703da8356a09f054 28-May-2014 Igor Murashkin <iam@google.com> am dc0230fc: Merge "camera2: Add partial results to the capture listener (API change)" into lmp-preview-dev

* commit 'dc0230fc450e8880fb640cd476f2248bf0a401e4':
camera2: Add partial results to the capture listener (API change)
1a68f24ab724957a249047f1e62365b8ef525649 27-May-2014 Aravind Akella <aakella@google.com> Merge "Adding wakeup sensors, maxDelay to java SDK."
db075afc85b6b50a5d3a988a17ed0d4e09ef0823 21-May-2014 Igor Murashkin <iam@google.com> camera2: Add partial results to the capture listener (API change)

* Also adds capture sequence aborted callback

Bug: 12492876
Change-Id: I56ec8edbcda8b64c2262ff7472961ac78042c7f4
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/CaptureResult.java
amera2/TotalCaptureResult.java
amera2/impl/CameraDevice.java
ef0b88181e30252d07901976a81524fc8bb03066 27-May-2014 Etienne Le Grand <etn@google.com> am 7326defe: am d7439d8c: Merge "Add confidence to the heart rate monitor definition and clarify onAccuracyChange" into klp-modular-dev

* commit '7326defe2de7ace86236bf0c5353fe0687c3f99c':
Add confidence to the heart rate monitor definition and clarify onAccuracyChange
7326defe2de7ace86236bf0c5353fe0687c3f99c 27-May-2014 Etienne Le Grand <etn@google.com> am d7439d8c: Merge "Add confidence to the heart rate monitor definition and clarify onAccuracyChange" into klp-modular-dev

* commit 'd7439d8c59e4c5a82ad94a5080436cc94f72e0be':
Add confidence to the heart rate monitor definition and clarify onAccuracyChange
1178cd29b2a9268a915f5ba60def9142d5d1da78 26-May-2014 Yuncheol Heo <ycheo@google.com> Merge "Add the constants for the callback result of SendCecCommand()."
ece603b7955938d6001c376f351ca0a2219330ac 23-May-2014 Yuncheol Heo <ycheo@google.com> Add the constants for the callback result of SendCecCommand().

- Move the send failure warning messages into HdmiCecController.sendCommand()
from each Actions.
- Stringfy with more detail messages for some opcodes.

Change-Id: Ib7ce24dd2a1f290e6c3a0b26738772ef1d4a9630
dmi/HdmiCecMessage.java
af80510e85b301c8d8ba1e28e7edc7a0c9156a1a 16-May-2014 Etienne Le Grand <etn@google.com> Add confidence to the heart rate monitor definition and clarify onAccuracyChange

Change-Id: I686d07dcd603bf3c3be3c1471de8be3b4e240855
ensor.java
ensorEventListener.java
ensorManager.java
ystemSensorManager.java
c371be303bd65dd7c92658b69d73a229dbaf06ca 24-May-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Remove CameraAccessException throw for vendor tag setup."
2f8b91449efafa5fb0057cd0150233681c65c9e3 12-May-2014 Aravind Akella <aakella@google.com> Adding wakeup sensors, maxDelay to java SDK.

Change-Id: I6da09b146e2b1c90efea7faf40a0503a89542cb0
ensor.java
b6a781066e6b0f2578cafefdc61c9ba18c0efc2e 22-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Remove CameraAccessException throw for vendor tag setup.

Bug: 15108304
Change-Id: Ieeb3f4b7b8bda9fc0ea1a3fc13be21668a0bbafd
amera2/CameraAccessException.java
amera2/CameraManager.java
94ecb5506a8834b5e13ad9834762c972126102d0 24-May-2014 Ruben Brunk <rubenbrunk@google.com> am a7c97c55: Merge "camera2: Move DngCreator to hardware/camera2." into lmp-preview-dev

* commit 'a7c97c552a280ed3a2ff3535a5085f8601f45820':
camera2: Move DngCreator to hardware/camera2.
0bfa56e76630647b7b277141d717ab434295ac5c 24-May-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Move DngCreator to hardware/camera2." into lmp-preview-dev
2f6da3e739ef4d9c37dd7e7d2874bb1ef0ce3d15 24-May-2014 Zhijun He <zhijunhe@google.com> am 0eb2fa3c: Merge "Camera2: Mark the under-specified tags for FUTURE" into lmp-preview-dev

* commit '0eb2fa3cf88d037f645555e3a1c4644cdf0a67c9':
Camera2: Mark the under-specified tags for FUTURE
8949225294479d6152b3bd0f56f9520e700f84b7 23-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Mark the under-specified tags for FUTURE

Also clean up the tag ids.

Bug: 15168075
Change-Id: I57fb6fb37e512c224370c72d806a4b702360f29f
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureResult.java
e48fb064ac78279cdd0c048759c54ccb8e3ad9bd 23-May-2014 Igor Murashkin <iam@google.com> am 31771fd6: Merge "camera2: Refactor CameraMetadata.Key out into 3 key classes" into lmp-preview-dev

* commit '31771fd63b8d08207012c4877a08679fa9b9d539':
camera2: Refactor CameraMetadata.Key out into 3 key classes
db67ffd62bc0dda9a064a6ae83c40dc9dafd9956 23-May-2014 Ruben Brunk <rubenbrunk@google.com> Merge "DO NOT MERGE: Javadoc fix." into lmp-preview-dev
5e3c3aa44d695b15e31a9c6efb8d2edf2a6181cf 22-May-2014 Ruben Brunk <rubenbrunk@google.com> DO NOT MERGE: Javadoc fix.

Bug: 15189630

Change-Id: I4644ec782e636104fc06a27716f2fd224003e8d2
(cherry picked from commit 0a03a2ab50b665d382f92a1219177c3bd6fc568b)
amera2/legacy/CameraDeviceState.java
d6d65154e55612b489aae95b60f3145f3b81f3b4 20-May-2014 Igor Murashkin <iam@google.com> camera2: Refactor CameraMetadata.Key out into 3 key classes

Before:
* CameraMetadata.Key<T>

After:
* CameraCharacteristics.Key<T>
* CaptureResult.Key<T>
* CaptureRequest.Key<T>

CameraMetadata#get has been removed (each metadata subclass has
its own #get now) due to java generic limitations (in particular
a type bound <T1<T2> extends Key<T2>> is an illegal bound).

CameraMetadataNative gets a new #dumpToLog function to dump the native
metadata to logcat.

Bug: 15091017
Change-Id: Ic56c54c0d184e209e20de374dc8a6d79527c209f
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/CameraMetadataNative.java
500c2341d34801f831b181144641f6adefb8b03b 23-May-2014 Zhijun He <zhijunhe@google.com> am 02d13364: Camera2: Add croppingType tag

* commit '02d133644511dbc14deb833c05713a531100e5d4':
Camera2: Add croppingType tag
1498615d56851664c96e51d530e445ed73be7a22 23-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Add croppingType tag

This is to indicate if the camera supports arbitrary cropping.

Bug: 15168075
Change-Id: Ib75f7af629be816229cc686c89980fec101301c0
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
db0f573386102535fc4695b931f48913a5712e60 23-May-2014 Zhijun He <zhijunhe@google.com> am 76be7fc6: Merge "Camera2: Raw is not croppable" into lmp-preview-dev

* commit '76be7fc69daea6b9118ad5b4eccdd5e940ca401b':
Camera2: Raw is not croppable
83e214ecd6ce8f46fa0e4d0fea2d718fddf1c68d 23-May-2014 Zhijun He <zhijunhe@google.com> am 920e79b6: Merge "Camera2: Clarify shading map spec" into lmp-preview-dev

* commit '920e79b680e7329dbbd107da8c9118a763d43f87':
Camera2: Clarify shading map spec
0324a95052a5696ef4bb1176fcbda2b9cabbed78 23-May-2014 Eino-Ville Talvala <etalvala@google.com> am 7e01420b: Merge "Camera2: New capture session interface" into lmp-preview-dev

* commit '7e01420b8e532694369fc885f83838fc527708dd':
Camera2: New capture session interface
9e6d1880c288d7d0ddcb651dda88d069f058eced 23-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Raw is not croppable

Update spec doc to clarify that raw stream is not croppable.

Bug: 15168075
Change-Id: I4ffa8e2a06acd17913426ba37744bb9df1bc7330
amera2/CaptureRequest.java
amera2/CaptureResult.java
fa7c755a920dc0209efa15a65bfdd2881cb42141 23-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Clarify shading map spec

The existing spec is unclear about shading map calculation for both application
developer and hal implementers, need more clarification.

Also fix a typo in tonemap.mode.

Bug: 15168075
Change-Id: I7f38ccf6aa6938fdac9f64e95deddc0188025d08
amera2/CaptureRequest.java
amera2/CaptureResult.java
b6079005ed0631c3972ff427f56e12523ec214a7 22-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Move DngCreator to hardware/camera2.

Bug: 15091253
Change-Id: Ibe2ee376436e5c796e33c0b782ea68278589f2e6
amera2/DngCreator.java
cca00c614c24a71dc234c79ad6241efa9f6c7676 14-May-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: New capture session interface

- Add CameraCaptureSession for all operations that require a
valid camera configuration
- Deprecate methods in CameraDevice that are moving to CameraCaptureSession
- Document new semantics

Bug: 14964443
Change-Id: I53b2b71ed2b746cfcf76a01483f499765eb5047b
amera2/CameraCaptureSession.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/impl/CameraDevice.java
94e4d29effa23ff75be4ea2b14a1a756071f4e1a 22-May-2014 Aravind Akella <aakella@google.com> Merge "Hide Sensor.getRequiredPermission API."
3e7fe434d08514dc3959c585eb8459a26472badd 22-May-2014 Ruben Brunk <rubenbrunk@google.com> Javadoc fix.

Change-Id: I4644ec782e636104fc06a27716f2fd224003e8d2
amera2/legacy/CameraDeviceState.java
94520c74608bfcd61ff987410a8018d87b75d734 22-May-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Add HAL1 compatibility shim skeleton."
9302a733b01c3ab4abd7911a286baf4833847d56 22-May-2014 Jinsuk Kim <jinsukkim@google.com> Fix broken build

Change-Id: Icff98663842482149d8c5c5371327121a1adff3d
dmi/HdmiControlManager.java
78d695d8ba532214b02e7f18e0ccf89cf099163d 13-May-2014 Jinsuk Kim <jinsukkim@google.com> Add feature actions for HDMI-CEC playback device

- OneTouchPlayAction
- DevicePowerStatusAction
- addHotplugEventListener
- removeHotplugEventListener

Change-Id: Ia7f31507ca62127efbacbbfe07ab43ba1f9bd4cf
dmi/HdmiControlManager.java
dmi/HdmiHotplugEvent.aidl
dmi/HdmiHotplugEvent.java
dmi/IHdmiControlService.aidl
dmi/IHdmiHotplugEventListener.aidl
feb50af361e4305a25758966b6b5df2738c00259 10-May-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Add HAL1 compatibility shim skeleton.

This adds basic support for running the Camera2 API on a device running
a camera HAL version lower than CAMERA_MODULE_API_VERSION_2_0.

This CL includes support for:
- N-way preview output streams
- N-way jpeg output streams
- CameraDevice emulation at the binder interface
- Basic camera metadata querying in the CameraManager

Bug: 15117269
Bug: 15116722

Change-Id: I8322955034c91f34bb348d4b28c2b774dbef38f6
amera.java
amera2/CameraManager.java
amera2/CaptureRequest.java
amera2/ICameraDeviceUser.aidl
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
amera2/impl/CaptureResultExtras.java
amera2/legacy/BurstHolder.java
amera2/legacy/CameraDeviceState.java
amera2/legacy/CameraDeviceUserShim.java
amera2/legacy/GLThreadManager.java
amera2/legacy/LegacyCameraDevice.java
amera2/legacy/RequestHandlerThread.java
amera2/legacy/RequestHolder.java
amera2/legacy/RequestQueue.java
amera2/legacy/RequestThreadManager.java
amera2/legacy/SurfaceTextureRenderer.java
amera2/legacy/package.html
amera2/utils/CameraBinderDecorator.java
b613dba17306f95e003e276ccbc9aabd569879c5 21-May-2014 Aravind Akella <aakella@google.com> Hide Sensor.getRequiredPermission API.

Change-Id: Ia0f4e64a563ca409849cf53721b4836abbb0be68
ensor.java
5633e37ec10e0d873acec9c64a091ab0a97caf75 20-May-2014 Mike Lockwood <lockwood@google.com> Merge "USB: Minor cleanup from API council review"
fa2b3fc6cd15a3b6bbfef87288b97354edb42307 20-May-2014 Mike Lockwood <lockwood@google.com> USB: Minor cleanup from API council review

Bug: 15089961
Change-Id: I8a22fad94d2a52d2270c89240b2a47bd1cef17b5
sb/UsbConfiguration.java
sb/UsbDeviceConnection.java
91120c541ac0c8c5e256b75759c884b4d6d664fc 08-May-2014 Jinsuk Kim <jinsukkim@google.com> HdmiControlManager with HdmiPlaybackClient API definition

This is a rewrite of HdmiCecManager that exposes API for CEC Playback
device control. HdmiCecManager will be removed together with
HdmiCecService once the migration is completed.

Replaced direct access to CEC commands with the following 2 API:
- oneTouchPlay
- queryDisplayStatus

Each method requires communication with other device on CEC bus,
hence might take some time to finish. The result at the end of
protocol exchange is reported through a callback provided as a
parameter to the method.

The callback is based on interface not abstract class since
it has only one method 'onComplete'.

Change-Id: I41e9d4571f890303282a79a803c86530d0b46974
dmi/HdmiCec.java
dmi/HdmiControlManager.java
dmi/HdmiPlaybackClient.java
dmi/HdmiTvClient.java
dmi/IHdmiControlCallback.aidl
dmi/IHdmiControlService.aidl
f967a5486a78db244624fde4c105aa5e6fa914b9 29-Apr-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Plumb DngCreator to native library.

Change-Id: Ic58bf6cf5086808b503460ef8e451fc0d6f1f850
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
9d08a93b2dd378cdb66c35a1230d19f894481eab 16-May-2014 Igor Murashkin <iam@google.com> Merge "camera2: Move parameters around to different packages"
b0650e8ff3113f9b9dbb6d249339dbd7921b4517 16-May-2014 Jungshik Jang <jayjang@google.com> Merge "Add ARC commands"
be9cd8eb3fe64a572f9c7dfc41f04defd46a752d 15-May-2014 Jungshik Jang <jayjang@google.com> Add ARC commands

ARC, Audio Return Channel is newly introduced in HDMI CEC 1.4.
Here is a list of new command
<Initiate ARC>
<Report ARC Initiated>
<Report ARC Terminated>
<Request ARC Initiation>
<Request ARC Termination>
<Terminate ARC>

Along with it replaced <Get OSD Name> with <Give OSD Name>
which is renamed in CEC 1.4.

Change-Id: If4a7aedef839c8413a8e3b5f66f3df0c7234104b
dmi/HdmiCec.java
72f9f0a96e4476ef231d5001cb30521ad4ce5b1e 15-May-2014 Igor Murashkin <iam@google.com> camera2: Move parameters around to different packages

* Camera-specific params to android.hardware.camera2.params
* Remove android.hardware.camera2.Size
* Move Rational to android.util

Bug: 14628001
Change-Id: Ie7a82bf9f4a0d8c18e0dc3a1581123c0d95da3f0
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/CaptureResultExtras.aidl
amera2/CaptureResultExtras.java
amera2/ColorSpaceTransform.java
amera2/Face.java
amera2/ICameraDeviceCallbacks.aidl
amera2/LensShadingMap.java
amera2/MeteringRectangle.java
amera2/Rational.java
amera2/RggbChannelVector.java
amera2/Size.java
amera2/TonemapCurve.java
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
amera2/impl/CaptureResultExtras.aidl
amera2/impl/CaptureResultExtras.java
amera2/marshal/MarshalHelpers.java
amera2/marshal/impl/MarshalQueryableColorSpaceTransform.java
amera2/marshal/impl/MarshalQueryableMeteringRectangle.java
amera2/marshal/impl/MarshalQueryablePrimitive.java
amera2/marshal/impl/MarshalQueryableRggbChannelVector.java
amera2/marshal/impl/MarshalQueryableSize.java
amera2/params/ColorSpaceTransform.java
amera2/params/Face.java
amera2/params/LensShadingMap.java
amera2/params/MeteringRectangle.java
amera2/params/RggbChannelVector.java
amera2/params/TonemapCurve.java
9c595174ccaaf3d36315c4a100e47ee4369073f6 12-May-2014 Igor Murashkin <iam@google.com> camera2: Use StreamConfigurationMap for format/size/duration lookup

* Also @hide/@deprecate a bunch of other keys
* Move some classes into android.hardware.camera2.params

Bug: 14628001
Change-Id: I2db490a0849680a133a901403477a147b004fb28
amera2/CameraCharacteristics.java
amera2/CameraDevice.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/ICameraDeviceUser.aidl
amera2/LongParcelable.aidl
amera2/LongParcelable.java
amera2/ReprocessFormatsMap.java
amera2/StreamConfiguration.java
amera2/StreamConfigurationDuration.java
amera2/StreamConfigurationMap.java
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
amera2/marshal/impl/MarshalQueryableReprocessFormatsMap.java
amera2/marshal/impl/MarshalQueryableStreamConfiguration.java
amera2/marshal/impl/MarshalQueryableStreamConfigurationDuration.java
amera2/params/ReprocessFormatsMap.java
amera2/params/StreamConfiguration.java
amera2/params/StreamConfigurationDuration.java
amera2/params/StreamConfigurationMap.java
amera2/utils/LongParcelable.aidl
amera2/utils/LongParcelable.java
3c40a046cf0ea7b6af01ec93e5276eccb3234bfe 23-Apr-2014 Igor Murashkin <iam@google.com> camera2: Update native<->managed camera metadata marshalers

* Improve existing marshalers:
- each managed/native type combination can be queried marshal support
- marshalers can recursively call other marshalers for nested types
- support marshaling/unmarshaling generic classes by using super type tokens

* Add new marshalers for:
- ColorSpaceTransform
- MeteringRectangle
- Parcelable
- Range<T>
- ReprocessFormatsMap
- RggbChannelVector
- SizeF
- StreamConfiguration
- StreamConfigurationDuration

Batteries included; so are unit tests.

Bug: 14628001
Change-Id: I38d3e646ccfb3953898cd6f750c33e4097328482
amera2/CameraMetadata.java
amera2/ColorSpaceTransform.java
amera2/LensShadingMap.java
amera2/MeteringRectangle.java
amera2/Rational.java
amera2/ReprocessFormatsMap.java
amera2/StreamConfiguration.java
amera2/StreamConfigurationDuration.java
amera2/StreamConfigurationMap.java
amera2/TonemapCurve.java
amera2/impl/CameraMetadataNative.java
amera2/impl/HashCodeHelpers.java
amera2/impl/MetadataMarshalClass.java
amera2/impl/MetadataMarshalRect.java
amera2/impl/MetadataMarshalSize.java
amera2/impl/MetadataMarshalString.java
amera2/marshal/MarshalHelpers.java
amera2/marshal/MarshalQueryable.java
amera2/marshal/MarshalRegistry.java
amera2/marshal/Marshaler.java
amera2/marshal/impl/MarshalQueryableArray.java
amera2/marshal/impl/MarshalQueryableBoolean.java
amera2/marshal/impl/MarshalQueryableColorSpaceTransform.java
amera2/marshal/impl/MarshalQueryableEnum.java
amera2/marshal/impl/MarshalQueryableMeteringRectangle.java
amera2/marshal/impl/MarshalQueryableNativeByteToInteger.java
amera2/marshal/impl/MarshalQueryableParcelable.java
amera2/marshal/impl/MarshalQueryablePrimitive.java
amera2/marshal/impl/MarshalQueryableRange.java
amera2/marshal/impl/MarshalQueryableRect.java
amera2/marshal/impl/MarshalQueryableReprocessFormatsMap.java
amera2/marshal/impl/MarshalQueryableRggbChannelVector.java
amera2/marshal/impl/MarshalQueryableSize.java
amera2/marshal/impl/MarshalQueryableSizeF.java
amera2/marshal/impl/MarshalQueryableStreamConfiguration.java
amera2/marshal/impl/MarshalQueryableStreamConfigurationDuration.java
amera2/marshal/impl/MarshalQueryableString.java
amera2/marshal/impl/package.html
amera2/marshal/package.html
amera2/utils/HashCodeHelpers.java
amera2/utils/TypeReference.java
1796635f7f0821a2165bec98e1f8bd93b8302d56 13-May-2014 Etienne Le Grand <etn@google.com> Merge "Add wake gesture as a hidden sensor in Sensor.java"
f974cc870635227ae13201480fb2f019d153af22 01-May-2014 Ruchi Kandoi <kandoiruchi@google.com> Display: Brightness: Low power mode scales the brightness to 50 percent.

When the device is in low power mode all changes to brightness will be
scaled to half of the brightness that would be normally set when not in
low power mode.

Change-Id: I03be820ef64c1d5631ded35f7dfc2799e807226b
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
isplay/DisplayManagerInternal.java
e2e5527ef394ed5216f209b7cf0f9694eb799860 09-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Camera2: Minor update for exposureCompensation spec"
a4227dfe48dcfb49709e05f7db413e0d883997f0 05-May-2014 Yin-Chia Yeh <yinchiayeh@google.com> Camera2: Minor update for exposureCompensation spec

doc change only

Change-Id: I4bcc461cd9d592d5b15beda45f2b6176d7efde37
amera2/CaptureRequest.java
amera2/CaptureResult.java
28071e3f40425a6e8c93335aa00f93639b640744 08-May-2014 Etienne Le Grand <etn@google.com> Add wake gesture as a hidden sensor in Sensor.java

Change-Id: Ic9792b5262d1efc9bec2ef9ba980e6a2f34fece6
ensor.java
bc01db42d5768539d349935f58890f71dd56f521 07-May-2014 Zhijun He <zhijunhe@google.com> Camera: remove some DNG tags

Change-Id: I878e26414dcf5cedbcfd8c505b0c507f4548c035
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
379af01292ecf4a46a465c48a7da55a68c0a9f49 06-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Add missing capture result tags

All capture request tags should be available in capture result.

Bug: 14059883
Change-Id: I0aa8d7341b14fbbd627b17eb316bb016ff1fc316
amera2/CaptureResult.java
e126be2c5ba022b45c4f7103bed7bfc73576c500 06-May-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: make videostabilization type consistent"
fcd2aff48d06ff695a14359621c6dba4ae5366de 06-May-2014 Justin Koh <justinkoh@google.com> am 1e822a8f: Merge "Hide HDMI CEC from KKWT DO NOT MERGE" into klp-modular-dev

* commit '1e822a8fe1f3063aa0d3eb47a7afdda9702c1734':
Hide HDMI CEC from KKWT DO NOT MERGE
8e4cbcce6616aee96754393aaddb23df91bfc02c 06-May-2014 Justin Koh <justinkoh@google.com> am f8a10d77: Merge "Hide getRequiredPermission in android.hardware.Sensor DO NOT MERGE" into klp-modular-dev

* commit 'f8a10d775efcc1c7255c1e504bf59f7cd38967ef':
Hide getRequiredPermission in android.hardware.Sensor DO NOT MERGE
5aa34455d7d921f33b67463cd58b879d5cfcf1ca 06-May-2014 Justin Koh <justinkoh@google.com> am 9cb3b162: Merge "Hide UsbDevice changes in KKWT DO NOT MERGE" into klp-modular-dev

* commit '9cb3b162ebf2c85b2b34d399623ff68427b2cdca':
Hide UsbDevice changes in KKWT DO NOT MERGE
1e822a8fe1f3063aa0d3eb47a7afdda9702c1734 06-May-2014 Justin Koh <justinkoh@google.com> Merge "Hide HDMI CEC from KKWT DO NOT MERGE" into klp-modular-dev
f8a10d775efcc1c7255c1e504bf59f7cd38967ef 06-May-2014 Justin Koh <justinkoh@google.com> Merge "Hide getRequiredPermission in android.hardware.Sensor DO NOT MERGE" into klp-modular-dev
e5238f53f0fa478753384e545b3d655fc773f84f 05-May-2014 Justin Koh <justinkoh@google.com> Hide HDMI CEC from KKWT DO NOT MERGE

Hide HDMI CEC from KKWT.
Bug: 14116162

Change-Id: I086a5e51bd848a5097ccb0c47900fde30db2e7aa
dmi/HdmiCec.java
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
dmi/HdmiCecMessage.java
e647dd354e3bc3cca6767d8b3b30498d52c922ce 05-May-2014 Justin Koh <justinkoh@google.com> Hide UsbDevice changes in KKWT DO NOT MERGE

Hide UsbDevice changes in KKWT.
Bug: 14116162

Change-Id: I1582b9d536b243fa18beca6fdd8f379f9e32e137
sb/UsbDevice.java
618f30db3e59c7dda7bb22b0a400ecb0f6b2d0bc 05-May-2014 Justin Koh <justinkoh@google.com> Hide getRequiredPermission in android.hardware.Sensor DO NOT MERGE

Hide getRequiredPermission in android.hardware.Sensor.
Bug: 14116162

Change-Id: I1e5c8361f6d0710c5da78d9506f70fa40a814b92
ensor.java
4793af5e3577c51858719a8977d300c3aafdf881 05-May-2014 Zhijun He <zhijunhe@google.com> Camera2: make videostabilization type consistent

Make it consistent with availableVideoStabilizationModes and its optical
stabilization relatives.

Change-Id: I6e3834af8a62d4f84fca2d305ac9574052b69db0
amera2/CameraMetadata.java
amera2/CaptureRequest.java
dab404938368fc5bb0a3d9b91135890ab31d0b0c 05-May-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Minor update for hyperfocalDistance spec"
b41fcc25068187d562b7ff036ed6ad8079a8a5c8 05-May-2014 Zhijun He <zhijunhe@google.com> Camera2: Minor update for hyperfocalDistance spec

Doc only change.

Change-Id: I1b425ab739f10d5e2ba9403baf918f3ee6150d71
amera2/CameraCharacteristics.java
043aa252cf67ebe5ef9abe34e8922098a995272c 04-May-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Define Feature action for obtaining info on a new CEC device"
94814218d2313a989a5a8969f633e3fc33e43071 18-Apr-2014 Igor Murashkin <iam@google.com> camera2: Add camera-specific data types used for metadata key/value

Adds new public API classes:
* InputOutputFormatsMap
* LensShadingMap
* RggbChannelVector
* StreamConfigurationMap
* TonemapCurve

Adds new @hide classes:
* StreamConfiguration
* StreamConfigurationDuration

Minor changes:
* CameraDevice (doc only)
* Preconditions (new @hide function)

Change-Id: I2f3757e2fe9d63e710f51469c650377165fd6631
amera2/CameraDevice.java
amera2/LensShadingMap.java
amera2/ReprocessFormatsMap.java
amera2/RggbChannelVector.java
amera2/StreamConfiguration.java
amera2/StreamConfigurationDuration.java
amera2/StreamConfigurationMap.java
amera2/TonemapCurve.java
b3a78b2ca9655396e2d73950221d187b7e5bb3ba 17-Apr-2014 Igor Murashkin <iam@google.com> camera2: Add re-usable data types for camera metadata key/values

Adds new types to public API:
* ColorSpaceTransform
* Range<T>
* SizeF (android.util)
* MeteringRectangle

Minor changes to:
* Size (docs and move to android.util)
* Preconditions (@hide)

Adds helper class:
* HashCodeHelpers

Change-Id: Ied6749a19234f3af9da838f365f8d68d90251aaf
amera2/ColorSpaceTransform.java
amera2/MeteringRectangle.java
amera2/Size.java
amera2/impl/HashCodeHelpers.java
25bb60e844e7981682b762c0bff0bf6325f14c54 02-May-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: replace AssertionError with error log"
3f74ab0ee0ec27a6be31cdb5a4258f4f25909ba8 30-Apr-2014 Jungshik Jang <jayjang@google.com> Implement logical address allocation logic for HDMI CEC.

Logical address in CEC is to distinguish each logical device from others.
In order to allocate logical address for new device, CEC sends
<Polling Message> to CEC bus. <Polling Message> is a CEC message
which has the same address for both source and destination without
body frame. (10bits).
CEC allows one and more logical address for a device type.
For example, there are 3 logical address defined for recorder device(1, 2, 9).
Among logical address candidates for the given device type, CEC scans
first the previous logical address (preferred logical address) of device.
If a device has not been allocated any logical address, preferred address
will be 15 (Unregistered), which means scan address from the minimum address
number of type. For example for recorder device, it starts from 1.
If no devices acks to the <Polling Message> during scan, it will be the
logical address of the device.
Since logical address is determined by a series of sending <Polling Message>
it happens in IO thread with separate allocate logical address message
instead of individual sendCommand message.

Along with this, updated ADDR_FREE_USE(14) to ADDR_SPECIFIC_USE(14)
which is revised name on HDMI 1.4.

Change-Id: Ic96dcdbe4aaa3789cfed0352a88ca75369335a98
dmi/HdmiCec.java
7d9a843af83dbc75b1d170c743603198ede5a10f 29-Apr-2014 Jungshik Jang <jayjang@google.com> Implement add/remove device info api for Hdmi Cec device.

In order to manage info of all cec devices connected hdmi bus,
HdmiCecController should have data structure for them.
This change includes two major pieces.

1. HdmiCecDeviceInfo
It's data structure containing basic device information such as
logical address, physicall address, device type and vendor id.
It will not be available to thirdparty but some system component
like TIF needs this to update device information connected to
its hdmi ports.

2. Managing device list in HdmiCecController.
HdmiCecController is a host to manage all CEC device.
and we need to have logic add or remove as well as get it.
All cec devices are managed as sparsearray which uses logical address as key.

This change introduces internal api and the later change will have logic
to call these apis.

Change-Id: Idc2f189ac0bffe904e011ced0ac991f16da07db1
dmi/HdmiCecDeviceInfo.java
c70d2295dd3fb87ce8c81c704688d1ad05043b4d 30-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Define Feature action for obtaining info on a new CEC device

Feature action (or action) is a unit of CEC command flow that accomplish
a certain feature. This CL introduces an abstract class FeatureAction,
and a concrete one NewDeviceAction that is used to obtain detailed
information on a new logical device on the CEC bus.

Change-Id: I94a7e75fbb76fe547f07f9588a93c7ea5a85d856
dmi/HdmiCec.java
dmi/HdmiCecMessage.java
22589b47cda296c728a1a32e5a7c1b73f3eb39de 01-May-2014 Zhijun He <zhijunhe@google.com> Camera2: replace AssertionError with error log

Bug: 14448494
Change-Id: I8962cea14324c5c2faa580d009c58db2d35219ae
amera2/impl/CameraDevice.java
896c33044500f0515058c2bfb45204e134ca8c7e 29-Apr-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update availableFormats related key docs"
a4d0a8fb206ebb5950f06068557bb05f166c0855 29-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Update availableFormats related key docs

Change-Id: I1cd2a39ee6a4d3ec391fa827accaa8ad1b3dfc6e
amera2/CameraCharacteristics.java
967c4354bee9022b3ebc0c85249672d76469258c 29-Apr-2014 Eino-Ville Talvala <etalvala@google.com> Merge "CameraDevice: Make sure log tags are within length bounds."
b72d1efdefb9df324f615e14a9a2532cf7214a31 28-Apr-2014 Eino-Ville Talvala <etalvala@google.com> CameraDevice: Make sure log tags are within length bounds.

Change-Id: I93c4670c1ee0b0be5956b0ed8cd0f53873257f7c
amera2/impl/CameraDevice.java
cc972725af35284c0b571aaa0dc6873e69b15119 25-Apr-2014 destradaa <destradaa@google.com> Make sure FLP HAL statuses currently used are translated (if needed) correctly into the framework.
b/14118906

Change-Id: I4723a3b9cad99aacc70bd3b7b5b5e034aa6c033d
ocation/GeofenceHardware.java
baf0c650b3747a6510af81cf92c4a584d7bfd3a1 19-Apr-2014 Jianing Wei <jianingwei@google.com> Camera2 API: fix bug in Camera2 CTS test failure.

* The bug is caused by the fact that we did not update the frame
tracker when the listener is null or camera is closed.
* This change fixes the bug 14151933.

Bug: 14151933
Change-Id: I00e3024e403503a056834be805c44604cb1a8a6d
amera2/impl/CameraDevice.java
abb7a886970448bbaeb8abe7cd877eab48809a60 18-Apr-2014 Jianing Wei <jianingwei@google.com> Merge "Camera2 API: fix wrong logic in handling last frame number."
aaea4d3a4822a380831084a779f52a8e767ce402 18-Apr-2014 Jeff Brown <jeffbrown@google.com> am 18a69b93: am 8e1e4006: Merge "Add support for dynamically setting the virtual display surface." into klp-modular-dev

* commit '18a69b936afa6bdb8c65b6b582989c4dcdac45ee':
Add support for dynamically setting the virtual display surface.
5a4b02be3303b65a4d6b868f2d74afe815283e9b 11-Apr-2014 Jianing Wei <jianingwei@google.com> Camera2 API: fix wrong logic in handling last frame number.

Change-Id: I23bdceada2460238c1e7fc45524ae491268b4243
amera2/CameraDevice.java
amera2/impl/CameraDevice.java
18a69b936afa6bdb8c65b6b582989c4dcdac45ee 17-Apr-2014 Jeff Brown <jeffbrown@google.com> am 8e1e4006: Merge "Add support for dynamically setting the virtual display surface." into klp-modular-dev

* commit '8e1e40066bae030d6a6e8f3f3f8f69ccd6ec1848':
Add support for dynamically setting the virtual display surface.
4f91e2a45990b9bfb9e05fb3e7600c44450d4be5 17-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Update sync.frameNumber tag

This is from the type mismapping bug fix in metadata generation.

Change-Id: Icaa9916e00e76b30cdc5688c3d3b7e9cadf84794
amera2/CaptureResult.java
92207df753c27b094e9e0ca80d41bc0d54dc6bd5 16-Apr-2014 Jeff Brown <jeffbrown@google.com> Add support for dynamically setting the virtual display surface.

Previously, the surface that backs a virtual display had to be set
at the time when the display was created. This change now makes
it possible to set or remove the surface later. The virtual display
is treated as if it were "off" while no surface is attached to it.

Change-Id: Ib4fdbbb8b4ee79f0fb9ceb648f9bda4a8fa6a2ca
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/VirtualDisplay.java
a2e86e427d454d4cc6d4020ed2771a988d4be6b4 17-Apr-2014 Ruben Brunk <rubenbrunk@google.com> Merge "Update DNG tags."
7c062369d55ad6f6f0c9c3bd8439c50cbfb88f42 16-Apr-2014 Ruben Brunk <rubenbrunk@google.com> Update DNG tags.

Change-Id: I497b0fac5d52005c126eaf52c67d30bd224a80b5
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureResult.java
8fd7f1ed7c11d35b3f2a97878e68ee38a551dd15 11-Apr-2014 Christoph Studer <chstuder@google.com> Rename basePkg to opPkg

...and actually populate the field correctly.

Change-Id: I3ce52efedb919d6af75dc9c3532e47764c467cac
nput/InputManager.java
d951ab230d80631731ef12b5d76c678c30165d6a 11-Apr-2014 Aravind Akella <aakella@google.com> am 8ebd66c2: am cd4c1c71: Merge "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor" into klp-modular-dev

* commit '8ebd66c259602f6b0be26fdfd3fe2f55538f6424':
Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
8ebd66c259602f6b0be26fdfd3fe2f55538f6424 11-Apr-2014 Aravind Akella <aakella@google.com> am cd4c1c71: Merge "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor" into klp-modular-dev

* commit 'cd4c1c714c37a1bc7ba35ebd2509eca4f0f6a314':
Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
cd4c1c714c37a1bc7ba35ebd2509eca4f0f6a314 11-Apr-2014 Aravind Akella <aakella@google.com> Merge "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor" into klp-modular-dev
4bdcd299da48f9abe5f9c67abed0dbe79080445d 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 55dab4dd: am b11f250e: Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev

* commit '55dab4dd3b5b56ade91c012d688b581b6cbdebdf':
Delegate HdmiCecService method impl to HdmiCecDevice subclass
55dab4dd3b5b56ade91c012d688b581b6cbdebdf 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am b11f250e: Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev

* commit 'b11f250e09195d1ab250c93bfed0b31ed3a40f3d':
Delegate HdmiCecService method impl to HdmiCecDevice subclass
b11f250e09195d1ab250c93bfed0b31ed3a40f3d 11-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Delegate HdmiCecService method impl to HdmiCecDevice subclass" into klp-modular-dev
61791075f4422cfef00fda325d6ae07293dd262f 07-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Delegate HdmiCecService method impl to HdmiCecDevice subclass

Most of the methods in the interface IHdmiCecService should be implemented
based on the device type. This CL makes a change such that the HdmiCecDevice
just has stub methods that should be overriden by subclasses.

Other changes:
- Fixed a bug of <Inactive Source> not sending its physical address
in its message body. Also the command should have been sent to TV
only rather than broadcast.

- Put back sendGiveDevicePowerStatus interface method. It allows the client
to keep track of the other device(like TV) power status more closely.
Devices goes through the status from standby -> transient to on -> on
but the CEC spec doesn't require that they broacast it actively.

The restored method can be used to let the playback device to get
up-to-date power status of TV/display when it is booting up.

This method should work the same across all the device types. So it was
implemented in the service, not delegated to HdmiCecDevice.

- Send <Report Physical Address> when a new logical device is registered,
which is required by CEC spec: "it should report the association between
its logical and physical address by broadcasting <Report Physical
Address>

Change-Id: Iac1d2cf5783d947f2dcd6965a54670fbdb8e6a63
dmi/HdmiCecClient.java
dmi/IHdmiCecService.aidl
4e5c089ef3e62e7f658e71c0be262d09bd3e399b 11-Apr-2014 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of 337e764d to master

Change-Id: I8168dbf42b68c2f7b5ccb300e0080dddc627af26
337e764debde56b1462fb5f2794b3e917d8a42e2 11-Apr-2014 Jeff Brown <jeffbrown@google.com> am f24687e2: Merge "Plumb display power state through display manager." into klp-modular-dev

* commit 'f24687e2731811fd0e3803b691fd47a659f89329':
Plumb display power state through display manager.
037c33eae74bee2774897d969d48947f9abe254f 09-Apr-2014 Jeff Brown <jeffbrown@google.com> Plumb display power state through display manager.

Declare a new method, Display.getState() to retrieve the actual
power state of a display.

Improved documentation for Intent.ACTION_SCREEN_ON and
Intent.ACTION_SCREEN_OFF to clarify what they really mean in
terms of the interactive state of the device.

Deprecated PowerManager.isScreenOn() and replaced it with
PowerManager.isInteractive() with a more suggestive name and
better documentation.

Redirect display power state changes to go through the display
manager first and only then head over to the power manager for
legacy compatibility.

Eliminated the bright here and woke here policy flags since they
were unused. Simplified the input dispatch policy somewhat.

Ensure that screen wake locks are respected up until the point
when dozing really begins.

Fixed a regression in DreamService where onDreamingStarted
might be called before onWindowAttached.

Bug: 13133142
Bug: 13472578
Bug: 13929355
Bug: 13760290
Change-Id: Iabef96921dd554ce3768fb18619cefc3230b5fb0
isplay/DisplayManagerInternal.java
nput/InputManagerInternal.java
cd9a7bb3ba742606f93dcbd549d6d6eeb1cb5247 08-Apr-2014 Aravind Akella <aakella@google.com> Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor

This reverts commit 819239e5bec90ee3c861ac45fffac4a832a183a1.

Change-Id: I4bbb222e5c9dc65aed03aa28fd9e0f00fe335819
ensor.java
dcb495ff86b1322256585dbd5eda92949a1e8a4f 10-Apr-2014 Jianing Wei <jianingwei@google.com> Merge "Camera2 API: enable burst capture and repeating burst."
d2c3a825cd15aca870af3532f4dadce94e4a6b6e 28-Mar-2014 Jianing Wei <jianingwei@google.com> Camera2 API: enable burst capture and repeating burst.

* Enable sending out burst requests, canceling, and flushing.
* Enable onCaptureStarted, onResultReceived for bursts.
* Enable onCaptureSequenceCompleted by tracking frame number.

Change-Id: Ica2b031cac7ad90f9c4b74a78e6185e627195340
Bug-ID: 10749500
amera2/CaptureResultExtras.aidl
amera2/CaptureResultExtras.java
amera2/ICameraDeviceCallbacks.aidl
amera2/ICameraDeviceUser.aidl
amera2/LongParcelable.aidl
amera2/LongParcelable.java
amera2/impl/CameraDevice.java
e30adb762ad17fc49fd3f7c1aa9ba6bd24bc43a0 10-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Add MANUAL capture intent

Change-Id: I6a3ba818cc7d13e0fcf0d90a16c53884b6cc20ab
amera2/CameraMetadata.java
amera2/CaptureRequest.java
8d637b819b23d0fcca87a39d26d0350e062852f4 09-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Fix the JPEG format issues

Also add unit test.

Bug: 13836016

Change-Id: I0af4bfe299f99c99e70faf5d3159eb0cbcc147eb
amera2/impl/CameraMetadataNative.java
7f9599d63c892934c7f8a2e46d1e518ddb0d43df 09-Apr-2014 Jeff Brown <jeffbrown@google.com> am ea72cdf2: Merge "Move display power controller to display manager service. (DO NOT MERGE)" into klp-modular-dev

* commit 'ea72cdf22f8efde4d3b872a60587e4b26bc93e43':
Move display power controller to display manager service. (DO NOT MERGE)
1b03d160114b1ea553f322e99ca168965daffea8 09-Apr-2014 Jeff Brown <jeffbrown@google.com> Merge "Move display power controller to display manager service."
131206b8a9d07400d7c98aea50cc45c38769448f 09-Apr-2014 Jeff Brown <jeffbrown@google.com> Move display power controller to display manager service.

This refactoring is in preparation for enabling the display manager
to have more control over the blanking state of individual displays.
There are no functional changes. Some bits will be cleaned up in
a subsequent patch.

Bug: 13133142
Change-Id: I159a060088344d8e6fcdf9208a1f242960f7ab90
isplay/DisplayManagerInternal.java
ad9ef191f50767d8d5b6f0fbd4b59bb1400dcd25 09-Apr-2014 Jeff Brown <jeffbrown@google.com> Move display power controller to display manager service. (DO NOT MERGE)

This refactoring is in preparation for enabling the display manager
to have more control over the blanking state of individual displays.
There are no functional changes. Some bits will be cleaned up in
a subsequent patch.

Bug: 13133142
Change-Id: Ib811835e8757449c7899ac61807029baaf998161
isplay/DisplayManagerInternal.java
d178496b7e823efdc9c9780ab1d980207a36a19a 09-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Make colorFilterArrangement public

It will be used by DNG

Also fix a typo in spec.

Change-Id: I8427df6b28149c0f8ced27b110efe96dd38357f4
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
acf395fd9441bce9fbe68c1b7efbf824570284bc 05-Apr-2014 Etienne Le Grand <etn@google.com> am 819239e5: Revert "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor"

* commit '819239e5bec90ee3c861ac45fffac4a832a183a1':
Revert "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor"
fa1d2417d296e28a48a8c4a5cfb932172edbdd65 05-Apr-2014 Etienne Le Grand <etn@google.com> Revert "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor"

This reverts commit fd53d8352a4617941b0a0449390aa562a01ea1d3.

Change-Id: I1c6322d1d992147bb5ef201238374966128c1a61
(cherry picked from commit 819239e5bec90ee3c861ac45fffac4a832a183a1)
ensor.java
819239e5bec90ee3c861ac45fffac4a832a183a1 05-Apr-2014 Etienne Le Grand <etn@google.com> Revert "Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor"

This reverts commit fd53d8352a4617941b0a0449390aa562a01ea1d3.

Change-Id: I1c6322d1d992147bb5ef201238374966128c1a61
ensor.java
ded264733036bb566c54da5b771d63f57213c84e 05-Apr-2014 Etienne Le Grand <etn@google.com> am bdfe3841: am fd53d835: Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor

* commit 'bdfe384106de364ea2effac6ab80108556d11649':
Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
bdfe384106de364ea2effac6ab80108556d11649 05-Apr-2014 Etienne Le Grand <etn@google.com> am fd53d835: Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor

* commit 'fd53d8352a4617941b0a0449390aa562a01ea1d3':
Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor
fd53d8352a4617941b0a0449390aa562a01ea1d3 25-Mar-2014 Etienne Le Grand <etn@google.com> Add stringType and requiredPermissions to SensorManager.java, as well as a permission for the heart rate sensor

Change-Id: I16e5da68f860494e24cca64075be76fad02617bc
ensor.java
f60283598751cbbdb65b2a59d2294e23bb4dfb99 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am f2fe3505: am 31518f74: Merge "Use build property for CEC device OSD name" into klp-modular-dev

* commit 'f2fe3505dac16dfa990fbab56713abab6ba0bc54':
Use build property for CEC device OSD name
c9cb91388b268608c8b7f588dca8417f2661f0ed 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 4c963841: am b1dca162: Merge "Maintain display power status for playback device" into klp-modular-dev

* commit '4c963841db60ed59fd59a6fba79f8e3e6ec7f349':
Maintain display power status for playback device
f2fe3505dac16dfa990fbab56713abab6ba0bc54 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am 31518f74: Merge "Use build property for CEC device OSD name" into klp-modular-dev

* commit '31518f745ffa5e832274c332ac957a065948fdaf':
Use build property for CEC device OSD name
60b17cc0944a855d6a867d7674c9c33b1251a3f7 28-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Use build property for CEC device OSD name

Previously OSD name was based on device type. This CL makes it
independent of device type. CEC spec says "A device that implements
more than one type of CEC functionality should respond with the same
OSD name for each logical address. It is recommended that the name
refers to the complete physical product rather than the individual
CEC functionality".

Now the default name comes from system build property. I removed
setOsdName() from aidl for now since it won't be in use.

Change-Id: I3c9fb877fad4bc5efef56268d155a3f37a865fc2
dmi/IHdmiCecService.aidl
4c963841db60ed59fd59a6fba79f8e3e6ec7f349 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> am b1dca162: Merge "Maintain display power status for playback device" into klp-modular-dev

* commit 'b1dca1624dc8d853a52d1918c7672173e9b79836':
Maintain display power status for playback device
b1dca1624dc8d853a52d1918c7672173e9b79836 03-Apr-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Maintain display power status for playback device" into klp-modular-dev
4e90fcd1907e0c1f1fa1dc991fbd7fda5e49a482 24-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Maintain display power status for playback device

With this CL, the power status of TV/display is keep tracked of
by hdmi cec server part, specfically HdmiCecDevicePlayback.
Turned the HdmiCecDevice to abstract class from which classes of
concrete device type(HdmiCecDevicePlayback, HdmiCecDeviceTV) are
inherited. The display power status code is put in HdmiCecDevicePlayback
only. HdmiCecDeviceTv will have its own logic that manages power status of
devices connected to it. For now it only has a bare minimum code.
Will be worked on in follow up CLs.

Other changes:

- Replaced sendGiveDevicePowerStatus() with isTvOn() so that the status
can be queried by clients.

- Defensively check the availability of HdmiCecService so that
HdmiCecManager.getClient() returns null in case the service couldn't
be initialized. This ensures clients of the service gets the nulled-out
HdmiCecClient when called in the state/configuration where the service
is not available, thus proceed accordingly.

Change-Id: Idaf69e73cfbd639c0b40b1bd4b6146f011246180
dmi/HdmiCec.java
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
dmi/IHdmiCecService.aidl
1a9b646c6b83aa091164dc94f9d1348bfca38227 01-Apr-2014 Zhijun He <zhijunhe@google.com> Camera2: Fix missing capture result callback issue

When configuring output right after submitting some capture request, the
waitUntilIdle clears the capture mCaptureListenerMap and
mRepeatingRequestIdDeletedList. This caused the listener is cleared before
the capture result is delivered to application side. Since the listener is
already removed properly, it is really not needed to clear them right after
idling the device.

It also doesn't make sense to add the repeating request id that has no
listener hooked up to the mRepeatingRequestIdDeletedList, this caused
out of sync between id deleted list and the mCaptureListenerMap for
repeating request.

Bug: 13730119
Change-Id: I94ab7a5515f841ffd97b103c2c1b71d92afd955a
amera2/impl/CameraDevice.java
a486624a6d9631fd434468fec7e3b57431f0b785 28-Mar-2014 Zhijun He <zhijunhe@google.com> Camera2: Fix availableTestPatternModes type

Also fixed the typo in android.control.mode related
with scene mode.

Change-Id: I5e311bac4694e1ccfc8d3210fbf8b40e1b31ecef
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
8dda7273dbb4ff6eeffe7d4c3831e9b31b8e5ac1 25-Mar-2014 Zhijun He <zhijunhe@google.com> Camera2: Add partial flash state

Bug 13637334

Change-Id: Ife5d943851f3f47d33b05d7450765dd273eb1036
amera2/CameraMetadata.java
amera2/CaptureResult.java
63d61640d41b85b32ca7287235ca638731555b63 25-Mar-2014 Eino-Ville Talvala <etalvala@google.com> am 55a1e78f: am 1555cec2: am ecad0541: Merge "DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values" into klp-dev

* commit '55a1e78fbd38955a5f5d0f09a517b392cc8199cb':
DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values
55a1e78fbd38955a5f5d0f09a517b392cc8199cb 25-Mar-2014 Eino-Ville Talvala <etalvala@google.com> am 1555cec2: am ecad0541: Merge "DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values" into klp-dev

* commit '1555cec2e5452c6d4583dfd3deffbb28ebd886fe':
DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values
bdaafaf2b59af08d75d86b2e124a866f09683c5b 25-Mar-2014 Eino-Ville Talvala <etalvala@google.com> am 1555cec2: am ecad0541: Merge "DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values" into klp-dev

* commit '1555cec2e5452c6d4583dfd3deffbb28ebd886fe':
DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values
1555cec2e5452c6d4583dfd3deffbb28ebd886fe 25-Mar-2014 Eino-Ville Talvala <etalvala@google.com> am ecad0541: Merge "DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values" into klp-dev

* commit 'ecad0541a6e90b98ad96456c4e6992121ee8a789':
DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values
0dfdcb10195c8b0f4e5ffbc662067363a4f7f3d9 25-Mar-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update whiteLevel/greenSplit docs."
e89b120eae1206dfff9abbb43d0075c23a5672cc 25-Mar-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update whiteLevel/greenSplit docs.

Bug: 13191430
Change-Id: I61cab65da546bdf1a748f46c28b6fce218b27bc4
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
1c855178e497f7ba788dadb87167f1e6735d10cb 24-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am 775a097f: am 3c34e5db: am c01e1aeb: Merge "Add HdmiCecManager" into klp-modular-dev

* commit '775a097f01a349548d2124ae9d7dd562c72eaa27':
Add HdmiCecManager
3c34e5dbbb99d3d66f71eea5db6e001cc5495263 24-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am c01e1aeb: Merge "Add HdmiCecManager" into klp-modular-dev

* commit 'c01e1aeb0d86bd626684c97d709d4a8e995fddfb':
Add HdmiCecManager
fbcd503645d9527fd7c700b3e4e8f170c46a7eba 21-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Add HdmiCecManager

Introduces HdmiCecManager/HdmiCecClient to provide apps/system components
with the way to access HdmiCecService via Context.getSystemService(HDMI_CEC_SERVICE).

Change-Id: I39da071a328074a4b7b049947943688bd7779c26
dmi/HdmiCec.java
dmi/HdmiCecClient.java
dmi/HdmiCecManager.java
965bed1c2cfc8577eb77803f3e8169c17a5fbbd2 19-Mar-2014 Igor Murashkin <iam@google.com> DO NOT MERGE: camera: Fix setParameters for Preview FPS single/range values

Bug: 12609188
Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4da
amera.java
a42cb8b0e2b8fdfbac1a6590d6b60814caa01088 21-Mar-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of a67e34c8 to master

Change-Id: I597525886260884c9b2dfc7945e01eb8138a58c2
f2fecf48f740a079cf9015ea8c2695039ca11d81 21-Mar-2014 Jinsuk Kim <jinsukkim@google.com> am c61f4dd7: Merge "Add HDMI-CEC service" into klp-modular-dev

* commit 'c61f4dd744b1b0396703aa58eb22fc31d2b7050e':
Add HDMI-CEC service
c61f4dd744b1b0396703aa58eb22fc31d2b7050e 21-Mar-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Add HDMI-CEC service" into klp-modular-dev
4f512fb451c8ddcea852645c5c24314c20c0974b 28-Feb-2014 Jinsuk Kim <jinsukkim@google.com> Add HDMI-CEC service

This CL adds a system service handling HDMI-CEC protocol. The service
is equipped with the capability sending/receiving HDMI-CEC messages

Not all the messages are in place. Currently it has messages to support
a few features only, as follows:

- One touch play
- System information
- Routing control (partially - active source status maintenance only)
- Device OSD transfer
- Power status

It will be extended to cover the wider usages in the follow up CLs.

The CEC standard version referenced in the implementation is 1.3a.

Change-Id: Ifed0b02f52ebf098eddb3bd0987efbf353b7e8fe
dmi/HdmiCec.java
dmi/HdmiCecMessage.aidl
dmi/HdmiCecMessage.java
dmi/IHdmiCecListener.aidl
dmi/IHdmiCecService.aidl
7d9a8ffd08fa950eb14f8224f6090fe46ab4aa9f 19-Mar-2014 Igor Murashkin <iam@google.com> camera: Fix setParameters for Preview FPS single/range values

Bug: 12609188
Change-Id: I82ea6f5de2183dd046d4bf5683600c97f37ab4db
amera.java
1af30c7ac480e5d335f267a3ac3b2e6c748ce240 10-Mar-2014 John Spurlock <jspurlock@google.com> Add stream-level suppression to vibrate/audio services.

- Add new audio restriction layer to app-ops. Restrictions add
additional constraints to audio operations at a stream-level.
Restrictions do not affect the persistable state, and are purely
additive: that is, they can only impose additional contstraints, not
enable something that has already been disabled. Restrictions
also support a whitelisted set of exempt package names.

- Add new audio stream-level checks to app-ops.

- Implement a provisional OP_PLAY_AUDIO suppression to three
java entry points MediaPlayer, AudioTrack, & SoundPool.

- Enhance vibrator api to take stream information as an optional
hint - the constants correspond to AudioManager stream types.
OP_VIBRATE now supports the stream-level restriction check.

- Simplify Vibrator subclasses by adding default implementations
for two .vibrate calls.

- Migrate NoMan's zen-mode control to use the new app-ops
stream-level restriction mechanism.

Change-Id: Ifae8952647202f728cf1c73e881452660c704678
nput/InputManager.java
555084b3a55719e1bf33974f0a8334ee345fc3dd 19-Mar-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update exposureTimeRange related docs"
ca2926f83b9fa2f5744493ba2dbc6570b751399d 19-Mar-2014 Zhijun He <zhijunhe@google.com> Camera2: Update exposureTimeRange related docs

Bug: 13250951
Change-Id: I8a77feb1b9877c75fd5a41a324fe17605ed338e0
amera2/CaptureRequest.java
amera2/CaptureResult.java
6dc379c7bd34d9707ee2ef819a5a07afc2aa9314 05-Mar-2014 Ruben Brunk <rubenbrunk@google.com> hal3: Add missing available mode tags.

Change-Id: I588aacade5c5638967970e2e7eb04924c0ea9cc7
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
5614cbe64493308dc5330eac5d5ba17202013dc4 17-Mar-2014 Igor Murashkin <iam@google.com> camera2: Don't log vendor tag errors when camera HAL too old

Change-Id: Id7fe9464d7599a566cea976cddc62ad101cf4a10
amera2/CameraManager.java
9d454fd6096dad310a476d50b5e7175e38cdc4ea 04-Mar-2014 Ruben Brunk <rubenbrunk@google.com> hal3: Add availableHotPixelModes, update modes.

Bug: 12957573
Change-Id: I2fd6ef60bf98c53288c2bc343d82a06602474916
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
dba764426b1657b84a2fb88690be7be34498bd09 13-Mar-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Pass vendor tags through binder."
85c4388de1fea3d45783f07895c2b113c4cc1ba5 22-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Pass vendor tags through binder.

Bug: 12134423

Change-Id: Icef3fe9e67160767bdb8244ac49c85b68b497123
CameraService.aidl
amera2/CameraManager.java
amera2/impl/CameraMetadataNative.java
amera2/utils/CameraBinderDecorator.java
c91aae2f7142b2e24bab4f3de504851cd4c9f309 13-Mar-2014 Jeff Brown <jeffbrown@android.com> am e7f7af96: am 35c8ebab: Merge "take account of RotationVector\'s new extra parameter"

* commit 'e7f7af964baa3c5d36abd163e33ad139310049d2':
take account of RotationVector's new extra parameter
306c46884eb3121a981a0d1ed0c5461908c227fc 12-Mar-2014 RoboErik <epastern@google.com> am ca9eef62: b/12068020 Make kb layouts only unique to vendor/product. Do not merge

* commit 'ca9eef6203b7cfb0084f8305d4dcc5d70a7a25cd':
b/12068020 Make kb layouts only unique to vendor/product. Do not merge
ca9eef6203b7cfb0084f8305d4dcc5d70a7a25cd 16-Dec-2013 RoboErik <epastern@google.com> b/12068020 Make kb layouts only unique to vendor/product. Do not merge

This is a cherry-pick of https://googleplex-android-review.git.corp.google.com/#/c/399886/

Instead of storing a kb layout per device descriptor (which is expected
to be unique), store it for each vendor/product. This way we can keep
a consistent layout between identical but physically different keyboards.

There are some corner cases this is expected to fail on, namely devices
that incorrectly have the same vendor/product id. Devices that don't
define a vendor/product id will continue to use the descriptor to store
layout files.

Change-Id: I1f2508561992080459310d5a644dad65a9c24f1a
nput/IInputManager.aidl
nput/InputDeviceIdentifier.aidl
nput/InputDeviceIdentifier.java
nput/InputManager.java
22c38e67d4e49f5f660f50fa4e1bd6359024cb91 11-Mar-2014 Jeff Brown <jeffbrown@android.com> am 3c6bb4d4: am f2e837e5: am e7f7af96: am 35c8ebab: Merge "take account of RotationVector\'s new extra parameter"

* commit '3c6bb4d4ec58d03f023280c8be8d95d984c8d1f1':
take account of RotationVector's new extra parameter
f2e837e57900514a554f174a29730157160c1fa1 11-Mar-2014 Jeff Brown <jeffbrown@android.com> am e7f7af96: am 35c8ebab: Merge "take account of RotationVector\'s new extra parameter"

* commit 'e7f7af964baa3c5d36abd163e33ad139310049d2':
take account of RotationVector's new extra parameter
35c8ebab0ac66bf2c12b6986f90a07be402e0076 11-Mar-2014 Jeff Brown <jeffbrown@android.com> Merge "take account of RotationVector's new extra parameter"
d52207423225bcd99e94276e9d0fc2cb5f905602 10-Mar-2014 Jason Gerecke <killertofu@gmail.com> Support unique calibration per orientation

Updates the format of the calibration XML to store the Surface rotation
that a specific calibration applies to. Also updates the API to require
a rotation value for get/set, and has the native framework supply this
according to the current rotation whenever it changes.

Change-Id: I72b6703f646dd18db537365c5c9843f720a5f41e
nput/IInputManager.aidl
nput/InputManager.java
d6396d67201fb2b64d13070324bb115c9c23b08a 28-Jan-2014 Jason Gerecke <killertofu@gmail.com> Allow persistence of input device calibration

This patch extends the PersistentDataStore store to read and write
input device calibration data. A new SET_INPUT_CALIBRATION permission
grants apps the ability to update this information, and a new
TouchCalibration class is used to wrap the raw calibration data.

Change-Id: I4daac2b15ef03616ea5b068c1e77bebd0ce7b8c1
nput/IInputManager.aidl
nput/InputManager.java
nput/TouchCalibration.aidl
nput/TouchCalibration.java
add749f664660ea2d5acdfae5d66c5dcf511a76e 04-Mar-2014 Zhijun He <zhijunhe@google.com> Camera2: make shading.mode key public

Change-Id: I94f506be19940b1881e65a8de9fe8198194932a3
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
7531aa22355cf03f51def61ba67f1636bf85f408 13-Jan-2014 Mike Lockwood <lockwood@google.com> Add support for USB devices with multiple configurations and alternate interfaces

Added UsbConfiguration class, as well as accessors to UsbDevice to get configuration list
Added methods to UsbDeviceConnection to select configurations and alternate interfaces.

Also added accessors for USB descriptor name strings and fixed some memory leaks in the JNI code.

Bug: 12425052
Change-Id: Idb990f4d5c054a8cb997eb3f440f6da9f83bce05
sb/UsbConfiguration.java
sb/UsbDevice.java
sb/UsbDeviceConnection.java
sb/UsbInterface.java
a77cf8735432daddb233164f41103a0ff38408bb 25-Feb-2014 John Spurlock <jspurlock@google.com> Merge "Tabs -> spaces in frameworks/base."
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
eomagneticField.java
cc28a41b48bc687002a9e1fc436d00ca6f0c3692 25-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Correct some minor errors in awb region spec

Also correct some other typos.

Change-Id: Ib7ac65cd82d06a20aa47cce10a9976a3ac405142
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
60b19dc2df1afef1caf151b9df4cc60af3c395e8 24-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: update 3A state related metadata key docs

Bug: 12840262
Change-Id: I2092e1d24b262a0568b880094b8ad6a87510b346
amera2/CameraMetadata.java
amera2/CaptureResult.java
9b30512e59c96efe9d77f52b35cac0fa1f1edb96 21-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Fix raw/DNG tag visibilility.

Change-Id: Ie3beed773b27bf56689a750e695ac7cb82580639
amera2/CameraMetadata.java
amera2/CaptureResult.java
8eb91e9f281f876322a25c78f776ea74791eaf1c 21-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Add green split property."
844aa619607894124ab05c93780dba091394b2a5 19-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update whiteLevel tag."
e60e29554ba1d59aea663aaed21ff0d1601dbcd0 18-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update whiteLevel tag.

Change-Id: If5b5191b1c494bc6f86d36e1dc47dd38beb10f2b
amera2/CameraCharacteristics.java
987d9f7a6b077f1f548897a6d658f61bac6860e4 12-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Add green split property.

Change-Id: I3d3fa48a0cd6e3a08bed5eb529e7c35676c25607
amera2/CaptureResult.java
870922be2399766078d0a4e42a0158ecb9eb1f86 16-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Update java doc for tone.map.curveRed key

Change-Id: I39df3a14470a1f051ee3eb11866e7205ea7b16b6
amera2/CaptureRequest.java
amera2/CaptureResult.java
fa8cc5f68093a4f465aa9efa5507acf25602643f 14-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Unhide some capture request templates

Change-Id: I13a45b51c129ba562cce0374ae3c63e853144c10
amera2/CameraDevice.java
ca9bc702df5c14a89c9b8b0109a05894bf74962e 11-Feb-2014 Jeff Brown <jeffbrown@google.com> Add support for injecting events into ActivityContainers.

Modified ActivityView to inject touch events it receives back into
its activity container. The container then injects the event into
the input system along with the display id of the underlying virtual
display.

Change-Id: I23d018a2f7dd30f1f833f522eb7f143b43d8e637
nput/InputManagerInternal.java
38f96e5020b3e82b98fe97b0be363a5ad185860f 11-Feb-2014 Jeff Brown <jeffbrown@google.com> Add support for injecting events into ActivityContainers. (DO NOT MERGE)

Modified ActivityView to inject touch events it receives back into
its activity container. The container then injects the event into
the input system along with the display id of the underlying virtual
display.

Enhanced the input system to support concurrent dispatch of touch
events on multiple displays which is required for this to work.

Change-Id: I9cf1870db3be6f99a52ed9a1e3ceafe42c940093
nput/InputManagerInternal.java
d8fd67931e17c66e530de5482b63863e6c4301aa 10-Feb-2014 Eino-Ville Talvala <etalvala@google.com> camera2: Clean up cross-references

Change-Id: I7410293a13f65768a2aeed1490662735f73987cb
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
a0ab96d1a757b737fd816ae2b4d24bf6127a09b5 08-Feb-2014 Igor Murashkin <iam@google.com> Merge "camera2: Simplify min frame durations and add available stream configs"
a23ffb5f50d5bf72bde9b8fdbcbd0cea037135b3 08-Feb-2014 Igor Murashkin <iam@google.com> camera2: Simplify min frame durations and add available stream configs

Change-Id: I41951c9a50a333e8e47d0ba616c316c065b604e8
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
ad0aa8383cd0f951ff546cbd4ff8cd84396df74c 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera2: Update hotpixel tags."
eba1b3a843278a92611edf153faa41a01d793b25 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera2: Update hotpixel tags.

Change-Id: I6e2931d54a92f3852e8abe8c480f1762c92655ad
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
d531f88fddf48b370bc1fe67e161cc1a290f04eb 08-Feb-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add tags for querying capabilities of a camera device"
e46c0dad3787ebb05438cb161128aab71c97cb24 08-Feb-2014 Igor Murashkin <iam@google.com> camera2: Add tags for querying capabilities of a camera device

Change-Id: I955b514f9fe66205d241cd4072aa6ddf71efb53c
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
672ad888d2e05a85d3127f79932ca37dd9ec172e 08-Feb-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add android.scaler.availableInputOutputFormatsMap"
418f6df836c34350118b521f75788ac6ae2fb0ec 08-Feb-2014 Igor Murashkin <iam@google.com> camera2: Add android.scaler.availableInputOutputFormatsMap

Change-Id: I2f0000614063f4004aa90ad1846936bf85db0389
amera2/CameraCharacteristics.java
d5fdd1c112b475fbe1f927406c17babead8cb061 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update raw color calibration transform tags.

Change-Id: Ic7a8c68e83b3eb257bd15380baad6370c5eb0dbc
amera2/CaptureResult.java
a9bfdbbb35cb6c93e943b8ab809d95d68d3da46e 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Add camera profile properties.

Change-Id: I39f6067bb1c05b8b00b0205bb367312112407299
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
8954f6f0b2187f1d8269718df022fc618b581720 08-Feb-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Add OFF_KEEP_STATE mode"
2d5e89778e955b4ff209a93e738761356349d48c 08-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Add OFF_KEEP_STATE mode

Change-Id: I8802339a6b6d8a009f3ba790ffad23c0fcbbfa94
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
aa1567f9ba3611647968ab7786fd3a51abeffb32 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Make blackLevelPattern optional."
1ef676f23c48c9144edd436933e863e07d6c309b 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Make blackLevelPattern optional.

Change-Id: Ic7b115e9f6361e158e7af13442bb781bbf351cbf
amera2/CameraCharacteristics.java
12b805bb5a0bb186e1756b28cece9eb64ff6d598 08-Feb-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update focus distance related tags"
ff41393d06b43223aacf3cde6c5139b9b0d1d161 08-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Update focus distance related tags

Change-Id: Ib94311c3168802aea2193a282185e0cd70a547cb
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
3759ec9b2e8aea4301dd0398e5da203bdbc6f833 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Add camera neutral tag."
20c76f67585172684729d701586a4a294d67f0a1 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Add camera neutral tag.

Change-Id: Ia7e8c444256ce2a587ce708c2e6e951dec9bbdc8
amera2/CaptureResult.java
67b47024282467978173afd596e2929d95d73d39 08-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update blackLevelPattern tag.

Change-Id: Iee29d475c92bec1688de96e7cae54dfaf1eec69d
amera2/CameraCharacteristics.java
49a3ca9330d213fe35280c0af78a4d21acb98234 05-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: update aeLock and transform matrix tag specs

Change-Id: I436f41ff2bf811a654de15b51739c07def354648
amera2/CaptureRequest.java
amera2/CaptureResult.java
a5a0cace7d1b3c720c41749b2dc4d84c45f826c1 05-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Update stream num tag specs

Change-Id: Iba6f1f8c779e5c3a622a7f07029f4373a887bffe
amera2/CameraCharacteristics.java
8b1c5704cb14c7adbb127b9bdf1dd8726df92981 05-Feb-2014 Narayan Kamath <narayan@google.com> Revert "Camera2: Update stream num tag specs"

This reverts commit 67c23833f81cb27671ee9f62a87ba810d0d49989.

Change-Id: I3aa2d0b245c998c57f3312e2d6f68aa72d80c338
amera2/CameraCharacteristics.java
67c23833f81cb27671ee9f62a87ba810d0d49989 05-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Update stream num tag specs

Change-Id: I69ae1a34828230408a27bf7c016eb514485097b1
amera2/CameraCharacteristics.java
90bc34e5bfc7bab7d6acc0dbf4d3fa3312bcf805 04-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update maxRegions tag.

Change-Id: I22501cbf7f941d9626b88182e2dda8a13a620d01
amera2/CameraCharacteristics.java
8cff1a370e8d89c0a977b82cd8730ab791866808 04-Feb-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update awbRegions tag."
f59521d3b182de217b12e6d4ea31bd32e2418564 04-Feb-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update awbRegions tag.

Change-Id: I85053b61fae4e360eff9143afc021ad60971f3b6
amera2/CaptureRequest.java
amera2/CaptureResult.java
6b7ddc47a2740f21fafcc0266ac87dc72e3a6184 03-Feb-2014 Igor Murashkin <iam@google.com> camera2: Revise android.sensor.maxFrameDuration definition

Change-Id: If0bb6c07f4dff85120c31f7163a41f2af255fd65
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
ca1b73a5f4e8ae4a7cef2cb2127024d0ddb9e0e0 03-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: update lens state tag specs

Change-Id: I630d45945f2806bde748f440c8203e08a70f59c9
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
153ac102d36df66853b523ab01763dc457972517 03-Feb-2014 Zhijun He <zhijunhe@google.com> Camera2: Update pixelArraySize and analog sensitivity tags

Change-Id: I07424afb44c70b5bcd600f1265efa969fdeac7e5
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
991c1005f3060fbf76f7f718317b367189ec51db 24-Jan-2014 Martin Storsjo <martin@martin.st> Fix a typo in a javadoc comment

Change-Id: I7f3b5d3bf6ee2f966636a588c14908ee632a531a
onsumerIrManager.java
b121ea542a051181e32e8734caf7d4a55127c0ec 18-Jan-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add android.request.partialResultCount"
2086b58880e960cdaa1b0b95fb668a433d4ede6c 18-Jan-2014 Igor Murashkin <iam@google.com> camera2: Add android.request.partialResultCount

Change-Id: Ie21010767ad1e58b3a46e977e7f9ee7f1951bad2
amera2/CameraCharacteristics.java
d928b8c9a0edc7bbfe53b3efabeb9aaa0de205a8 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update optical stabilization tags."
00849b3a430ce164af2db94eeacfd46131de4be8 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update optical stabilization tags.

Change-Id: Ic2bdec216c1685f2ea3036f9d027ea24679a8bfe
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
ae7d2f19e4cd6f9b0515c757a4032e118163310d 18-Jan-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add synchronization definitions to enable LIMITED HAL3 devices"
3865a84255a4e65a5d9790083a1e519b05f40d50 18-Jan-2014 Igor Murashkin <iam@google.com> camera2: Add synchronization definitions to enable LIMITED HAL3 devices

Change-Id: Ic5fda4bdc3dda0d21f4738c81b5742f86e4ef02c
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureResult.java
1e2d27a97f2f9c2621db953e8342c5e9a938011a 18-Jan-2014 Igor Murashkin <iam@google.com> Merge "camera2: Add test patterns and pipeline depth information"
c127f05292919ef1646b08b16dca1fe7c324afd4 18-Jan-2014 Igor Murashkin <iam@google.com> camera2: Add test patterns and pipeline depth information

Bug: 9625427
Change-Id: I11ff3a74f3a115ac9b699ce516400ed323c274f9
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
509cc13b705f8c488774e7097ab17471c3dacd2e 18-Jan-2014 Jeff Brown <jeffbrown@google.com> am e2c9cd58: Merge "Refactor display manager service to new pattern." into klp-modular-dev

* commit 'e2c9cd583f4f706b48270b8cbe84df627c69af24':
Refactor display manager service to new pattern.
ce29f4384546d45722b0b7fb0e5a9bcdc2bfce4d 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update sceneMode tag spec."
e6679366938fd3ed197ba1ff1b2ad0bf2ff4246b 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update sceneMode tag spec.

Change-Id: I495435397086a295280c556d94fe8efd442a12c3
amera2/CameraMetadata.java
amera2/CaptureRequest.java
e0060930cbff1af0486466e03605e6e8ee525302 18-Jan-2014 Igor Murashkin <iam@google.com> camera_metadata: Update android.tonemap.* definitions

Change-Id: Icdabd02d892018b104955146a4d94b5042ea59d8
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
b8fb80dd0c0aa00955591bfbe2652f755187b49b 18-Jan-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update shading mode spec"
c759efb9f3368c5863f62f8a3b7881effda65271 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update availableEffects, effectMode tags in frameworks/base."
ba93fe6468ef14865ec341bc14fc4a1dc7e88704 18-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: Update shading mode spec

Change-Id: Id4dc8de6e66aa130677ecab700a982943fcd8e09
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
5f1dcfe49dfe7b9a4a40482152638af6ca925a6d 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update availableEffects, effectMode tags in frameworks/base.

Change-Id: I1edc89f7af9ef15894cfd398116730afa6b0053c
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
aca1c6850d38c4e4bce192d2d8212e6e834d19ff 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> Merge "camera3: Update availableSceneModes tag spec in frameworks/base."
8237d34398a507783e6d7b889ea3bf5586a43df4 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update availableSceneModes tag spec in frameworks/base.

Change-Id: Ic12f131e438d1370c9db0027a4c54a540a5cb78f
amera2/CameraCharacteristics.java
a20f4c2648d7c597e3178978d17eb5894ef2b2b9 18-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: focalLength tag frameworks/base changes.

Change-Id: I59614223ae65e602f3461029cb4b8848fb22950e
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
7d2a5c5e7350658d0da4eaf75f9380593083e969 18-Jan-2014 Igor Murashkin <iam@google.com> camera2: Update spec for android.colorCorrection.* in metadata

Change-Id: I02ba758f3da9e7c9e304591c410ca5385ebf4b4b
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
143aa0b891b2f8bf8ffabf8c53966c3cf97e9eb0 18-Jan-2014 Igor Murashkin <iam@google.com> camera3: Specify frame durations and minimum frame durations in metadata

Change-Id: Ic52c54c3c26e3547a1064fc5afc8ebbac5b392ad
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
f3b16df380eda08a9eb8f8e95cdc40441df5b3ec 17-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: update metadata java doc

Change-Id: Iafa14eeb7151cd7aada1fd09c1f02b5b36abfa54
amera2/CameraCharacteristics.java
855bae407d61b5cc6629248e7692927b4dacd92f 17-Jan-2014 Ruben Brunk <rubenbrunk@google.com> camera3: Update filterdensity tags.

Change-Id: I4e73dcbcfb5a9230e8e2d187e47bc0f829ffc7f6
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
4ccb823a9f62e57f9d221f83a97e82967e79a9e5 17-Jan-2014 Jeff Brown <jeffbrown@google.com> Refactor display manager service to new pattern.

Transform DisplayManagerService into a SystemService and start cleaning
up other local services that it uses from window manager and input manager.

Clean up service thread initialization.

Remove unnecessary static variables from ActivityManagerService.

It's starting to become clear that we really need a better way to manage
service dependencies. Boot phases don't quite cut it.

Change-Id: If319dbd7cbfbd4812fe55ece969e818d4b20755b
isplay/DisplayManagerInternal.java
isplay/DisplayViewport.java
nput/InputManagerInternal.java
66d065a6d48cafe390c697c77b44ba5196ee0870 17-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: update captureIntent and flash mode tag spec

Change-Id: Icf32f8643f7dbe4da98bed2d5a22298af7b58d26
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
228f4f92e70d9326d473e02bcdcc8faf9e706a4d 17-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: Update 3A state doc

Change-Id: Id484bdff38af34ad2c8b64863d036ff81124401e
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
265b34ce331cbe296f82ca357645312718c8d4c7 17-Jan-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Sort metadata @see to make it stable over time

Bug: 12591820
Change-Id: Idcfd7acd6f9426162ccf0e51fcfdba9f646d4cc0
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
5f2a47f3dedfc7859457067d8cdcdbfc28ee08ac 17-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: update metadata specs

Change-Id: I0f2db931f923af6de281f1404142301d9cfe18ea
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
aef3b7ed9f2a27aed9aecef030432d1100a60406 15-Jan-2014 Igor Murashkin <iam@google.com> camera2: @hide android.statistics.predictedColor*

Change-Id: I8c1b7596c1e0c311a4f9fabdd5de72b4b7b372b5
amera2/CaptureRequest.java
amera2/CaptureResult.java
3242f4fb19b77bcd2435cbe710188d012d08b005 15-Jan-2014 Igor Murashkin <iam@google.com> camera2: Fix @see being emitted into middle of javadoc (+more)

Other minor fixes:
- javadoc optional/FULL correctly emitted for properties lacking details
- javadoc details being incorrectly dedented before being rendered by
markdown, causing spurious <code> blocks to be emitted

Bug: 12552669
Change-Id: I4c6615ec47810757b8348995db2b199222a3a77e
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
399f05d1e7182ef6c88d30d3b98a467b845ca7c4 15-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: Update awbMode related javadoc spec

Change-Id: I999d2bc94834c6f6d4483493707f05c92d7c5d67
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
78146ecb24871302a4c4dc0a7341044a06d29ee8 15-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: Update AF mode related javadoc specs

Change-Id: If7a0de76f660ade25d9fdb92458fbe7e9752d0dd
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
fb46c644ceffdd476268c35c7992c4e445bde0a5 15-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: metadata tag javadoc update

Change-Id: I66700340780f3185796f25c054487f439f24a6fb
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
0da8bf5dbc8912cf70df14bfa655189a04c75476 09-Jan-2014 Eino-Ville Talvala <etalvala@google.com> Camera2: Docs: Update cross-refs, aeMode, aeAntibandingMode

Unhide android.control.aeMode and android.control.availableAeModes,
which were supposed to be public all along.

This matches up to system/media commit #9fa0d90ff

Change-Id: Ibba2756dd5889344b5d0531dc6f066566776cdc1
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
7fa44e90ed11cd35764f7f9efa587203c241fb27 09-Jan-2014 Jeff Brown <jeffbrown@google.com> am b6d9eb87: Merge "Add flag to force public virtual display to show own content." into klp-modular-dev

* commit 'b6d9eb875a0bf1bb655a90c88457689342eb0991':
Add flag to force public virtual display to show own content.
b6d9eb875a0bf1bb655a90c88457689342eb0991 09-Jan-2014 Jeff Brown <jeffbrown@google.com> Merge "Add flag to force public virtual display to show own content." into klp-modular-dev
2dfae9bea104c0594fd5641f9704f34b204abd87 08-Jan-2014 RoboErik <epastern@google.com> Merge "b/12068020 Make kb layouts only unique to vendor/product"
7b925fbb87d7bfac17bf04e62ea786e96ee7e6d9 08-Jan-2014 Mike Lockwood <lockwood@google.com> am 43bc1c07: am d9e708e3: am 12ec2e6d: am 99206593: am 9607d78f: Merge "Added missing USB device descriptor fields needed for intent filters"

* commit '43bc1c07d25b7f278a860bbb9118f46ac732593a':
Added missing USB device descriptor fields needed for intent filters
12ec2e6d71bc69ca11946f7f051931863c934273 08-Jan-2014 Mike Lockwood <lockwood@google.com> am 99206593: am 9607d78f: Merge "Added missing USB device descriptor fields needed for intent filters"

* commit '992065938a95e5273b22dea009b8581bcc693e61':
Added missing USB device descriptor fields needed for intent filters
9607d78f5144792993bd254a4b5983b2a9d5bf83 08-Jan-2014 Mike Lockwood <lockwood@google.com> Merge "Added missing USB device descriptor fields needed for intent filters"
6bbda22e1c5604b0866068913c7466fa23d47818 08-Jan-2014 Narayan Kamath <narayan@google.com> am 29eadb32: am 9a743575: am 71cdc73d: am 53acc7ae: am f5598210: Merge "AArch64: Use long for pointers in hardware classes"

* commit '29eadb328a71f912b0d479860286cd606ed3dc87':
AArch64: Use long for pointers in hardware classes
71cdc73d2808944fca0a9e200696253d1f4a5bf4 08-Jan-2014 Narayan Kamath <narayan@google.com> am 53acc7ae: am f5598210: Merge "AArch64: Use long for pointers in hardware classes"

* commit '53acc7ae00ba921e8c7afb9415dbf473785a3be6':
AArch64: Use long for pointers in hardware classes
4838e338129e09a37b8c8ad5e44f85ec5cd3aea1 03-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in hardware classes

For storing pointers, long is used in hardware classes,
as native pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

Change-Id: Icdeb67f9273fb2d8f6d88ca68d7f7d0950796fc1
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
amera.java
ystemSensorManager.java
sb/UsbDeviceConnection.java
sb/UsbRequest.java
d14c8c9039c0056e1f30ad5d410c8fde20d63df5 08-Jan-2014 Jeff Brown <jeffbrown@google.com> Add flag to force public virtual display to show own content.

Change-Id: I1039f2ef3154169ec90411a4c7ba2c94629f72c4
isplay/DisplayManager.java
fb290df3c9a6f37ec050163029e25844de2f8590 16-Dec-2013 RoboErik <epastern@google.com> b/12068020 Make kb layouts only unique to vendor/product

Instead of storing a kb layout per device descriptor (which is expected
to be unique), store it for each vendor/product. This way we can keep
a consistent layout between identical but physically different keyboards.

There are some corner cases this is expected to fail on, namely devices
that incorrectly have the same vendor/product id. Devices that don't
define a vendor/product id will continue to use the descriptor to store
layout files.

Change-Id: Id0890d13e1c859eaf993d4831b7b1acbaf5df80f
nput/IInputManager.aidl
nput/InputDeviceIdentifier.aidl
nput/InputDeviceIdentifier.java
nput/InputManager.java
9e4b8e41fbd4acd43d72e7700debdfd3b6596a48 03-Jan-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: fix onClosed callback issue"
b437428b3f2190951deeb580094054f6a4f09388 03-Jan-2014 Zhijun He <zhijunhe@google.com> Merge "Camera2: remove waitUntilIdle from Camera2 API"
2db56026bf6d535895e85b423edf8050829932fc 03-Jan-2014 Zhijun He <zhijunhe@google.com> Camera2: fix onClosed callback issue

The camera isClosed status shouldn't be checked to fire onClosed callback,
otherwise, onClosed callback is almost never fired when camera close is called
because the camera device is already closed.

Change-Id: I987242d53a12082828a992404ed55ee8a378f93f
amera2/impl/CameraDevice.java
aa161c600dc17cd33c7276e61fb258dca6aa293d 30-Dec-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Update android.blackLevel.lock"
d842fcd3af58daf55f9ca0bd07044c8f6d796389 26-Dec-2013 Zhijun He <zhijunhe@google.com> Camera2: remove waitUntilIdle from Camera2 API

Change-Id: Id034573d8b50aa0bc93bf7f0e776eb55316746ed
amera2/CameraDevice.java
amera2/impl/CameraDevice.java
0956af56a294397325f2695604229ab7550364ca 26-Dec-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Update android.blackLevel.lock

Change-Id: I4b3ebdf2043c4b242ac1c851a3be90f795f69a00
amera2/CaptureRequest.java
amera2/CaptureResult.java
5a9ff379233025bc85ebc41ac5979def09d3ebfa 26-Dec-2013 Zhijun He <zhijunhe@google.com> Camera2: Update availableThumbnailSizes java doc

Bug: 12135317
Change-Id: I4012ed3e7cd6394c5e964aaeb3381b4932c44b11
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
2807936f5dfdeff25e9ace3482100511a69dcf13 17-Dec-2013 Zhijun He <zhijunhe@google.com> Camera2: Update metadata java docs

Java docs for below keys are updated:
- android.edge.mode
- android.noiseReduction.mode

Bug: 12135317
Change-Id: I950d46b90ece2f519e33719427801fc78b36b39c
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
f353742124af698098884b4172644af0851b30ca 17-Dec-2013 Zhijun He <zhijunhe@google.com> camera2: update java docs for metadata tag spec update

Below tag spec java docs are updated:
- android.control.mode
- android.control.aeMode
- android.control.afMode
- android.control.awbMode

Bug: 12135317
Change-Id: I83f24c1816dfba1cc042e120fba43c5beb1bd2ae
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
7a9b30e9e3e45d387d2fc0cb2bd2eb79da7dd268 11-Dec-2013 Igor Murashkin <iam@google.com> camera2: Add support for embedding images into javadoc

- Also finishes specifying CaptureResult#LENS_SHADING_MAP family

Bug: 12135317
Change-Id: I95ffd61872fefcf2c79cb4f5aa0740162ccc16ad
amera2/CameraCharacteristics.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
ace5bf04126f7dd49d75fca9218031f0db02e5dd 11-Dec-2013 Igor Murashkin <iam@google.com> CameraMetadata: updated generated code (with markdown support)

- also updates description of android.blackLevel.lock

Change-Id: I2d10c492bd6779bbb51672da9854252ba18d4327
amera2/CameraCharacteristics.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
12d39b9ccdd1951d1df6f132b9d46060c820f152 05-Dec-2013 Balint Ureczky <ubalint@gmail.com> take account of RotationVector's new extra parameter

Rotation vector has a new 5th parameter introduced in API 18. But the code classified the 5 parameter the same as it would be 3 and overriden the 4th parameter which is unnecessary and also caused an unexpected behavior.

Issue #63268:
https://code.google.com/p/android/issues/detail?id=63268
Signed-off-by: Balint Ureczky <ubalint@gmail.com>

Change-Id: I6f9a5fc401da655695ab03694b4a74dc5be936ed
ensorManager.java
d786a1900e94c4f0c919b50b44667cea32fd2939 02-Dec-2013 Katie McCormick <kmccormick@google.com> resolved conflicts for merge of 37e4c405 to master

Change-Id: I7df89be84384369ef5e89bb3b924ca38c1b5d9bd
484b57a5655f28967e0062f578f38535dff52323 26-Nov-2013 Katie McCormick <kmccormick@google.com> am 9d0a88bd: Merge "Doc updates: Javadoc fixes" into klp-docs

* commit '9d0a88bd4e07deac01d7759b70cdf160456be1c0':
Doc updates: Javadoc fixes
f2ef28d840647d2f16792313bdc22b2114a5df6a 26-Nov-2013 Katie McCormick <kmccormick@google.com> Doc updates: Javadoc fixes

Change-Id: I82381056f9f13e53ab8a0525f5a53bf98674c052
ensorManager.java
2ab3ec21c0d0b13533434cacf72cc1bc0c81bb32 22-Nov-2013 Jeff Brown <jeffbrown@google.com> am 2458681b: am 263c4310: am ce468a35: Stop wifi display discovery when no longer needed.

* commit '2458681b3ea4571d2f1254ef597475fe6a582907':
Stop wifi display discovery when no longer needed.
ce468a35b388ca46578934706b38dbae94941643 22-Nov-2013 Jeff Brown <jeffbrown@google.com> Stop wifi display discovery when no longer needed.

Keep track of how many clients are requesting scans and scan
continuously until all of them are gone then explicitly terminate the
scan instead of letting it time out as before.

Suspend wifi display scans while connecting or connected to a remote
display. This is handled by both the display manager and media router
since neither has complete information about what is happening.
Much of this code will no longer be needed once wifi display support
is integrated directly into the media router service.

Ensure that we don't attempt to scan or connect to wifi displays
while the wifi display feature is off.

Infer when a connection attempt fails and unselect the wifi display
route automatically so it doesn't appear to be connecting forever.

Fix issues around correctly canceling and retrying connection attempts.
Often we would cancel but not retry.

Improved connection reliability somewhat. It seems that discovery must
already be in progress in order for a connection attempt to succeed.

Ensure QuickSettings uses exactly the same logic as the MediaRouteButton
to determine when the remote display tile should be made visible.

Bug: 11717053
Change-Id: I18afc977b0e8c26204b8c96adaa79f05225f7b6e
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
amera.java
erialManager.java
erialPort.java
amera2/CameraManager.java
amera2/CaptureFailure.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
isplay/WifiDisplayStatus.java
ocation/GeofenceHardwareRequest.java
sb/UsbAccessory.java
sb/UsbDevice.java
sb/UsbEndpoint.java
sb/UsbInterface.java
30cb5c3ffa259f2a6df02a81a766c716477f4b92 15-Nov-2013 Jeff Brown <jeffbrown@google.com> am 2ea480ca: am 5d0b18cd: am 3de885be: Merge "Disallow applications from initiating cast screen." into klp-dev

* commit '2ea480cac89460ee2524cd080e90f6240e8eebf5':
Disallow applications from initiating cast screen.
af574183c274f51d04487a9c8355e9f34a1150f2 15-Nov-2013 Jeff Brown <jeffbrown@google.com> Disallow applications from initiating cast screen.

Only allow the system ui and settings to connect to a remote display.
To do this, we essentially hide the remote displays from applications
by using the ROUTE_TYPE_REMOTE_DISPLAY then add permission checks
around the operations that connect to them.

As a bonus, this may actually save power on devices since applications
that use MediaRouter will not longer be performing discover on
remote display routes at all.

Bug: 11257292
Change-Id: I9ea8c568df4df5a0f0cf3d0f11b39c87e2110795
isplay/DisplayManager.java
e5d2af6be21a5b9b09667be2597cf1bc4b7a4a1e 14-Nov-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: Fix metadata unit test failures"
2f1680be3d5963dc1026c8e5bcda491b77d71734 13-Nov-2013 Zhijun He <zhijunhe@google.com> Camera2: Fix metadata unit test failures

The get/set override for special cases broke the metadata unit test, add proper
handling to fix the test failures.

Also make the key equals check both names and types.

Bug: 11259962
Change-Id: I00ff53115e7043212035cc4306e0481f9d113747
amera2/CameraMetadata.java
amera2/impl/CameraMetadataNative.java
07177de6c7aa4f33d10a3d33a526984edcbb0a8f 12-Nov-2013 Eino-Ville Talvala <etalvala@google.com> am e7d825d8: am ed676b21: am 4d12d8be: Merge "Camera2: Add support for partial result metadata quirk" into klp-dev

* commit 'e7d825d8b2a256ec6303f26318387538964c79f6':
Camera2: Add support for partial result metadata quirk
7a31310439b8ac6a9dca9e81dd3366221bbb1057 07-Nov-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add support for partial result metadata quirk

- Add new CaptureListener.onCapturePartial() callback for receiving
partial result metadata sooner than the full result metadata will be sent
in onCaptureComplete().
- Add hidden keys for the partial result quirk
- Dispatch results to onCapturePartial based on the partial result quirk

All additions are hidden for now.

Bug: 11115603
Change-Id: Ie9a3be640f147257ae22e5b5edf0974bddc1cb85
amera2/CameraCharacteristics.java
amera2/CameraDevice.java
amera2/CaptureResult.java
amera2/impl/CameraDevice.java
5a78dc1cf5b14e4b4c71ce3e743f5a5be8d9de79 08-Nov-2013 Ruben Brunk <rubenbrunk@google.com> am 913c0e38: am 70285910: am e73b41b2: camera2: Remove prior repeating request when setting.

* commit '913c0e38a1316f4a653563ba401a0095c54b71d0':
camera2: Remove prior repeating request when setting.
e73b41b27f16b160cfe49bdcac3091dce94229ae 08-Nov-2013 Ruben Brunk <rubenbrunk@google.com> camera2: Remove prior repeating request when setting.

Bug: 11579778
Change-Id: Idb10662413ff5ee939adbdeab68a97cb34750fac
amera2/impl/CameraDevice.java
23e1866700bead69766fad02d78743c80d48a2d8 06-Nov-2013 Ruben Brunk <rubenbrunk@google.com> am 57171905: am 6327136c: am 6fe15c3d: Merge "gcam: Avoid leaking repeating CaptureRequests." into klp-dev

* commit '57171905216515a187ecb9931d402c3b09ab4b50':
gcam: Avoid leaking repeating CaptureRequests.
7f80d6f74125b25a23622719d27cb1cf0c6194f6 04-Nov-2013 Zhijun He <zhijunhe@google.com> Camera2: hide some face related keys

STATISTICS_FACE_IDS, STATISTICS_FACE_LANDMARKS, STATISTICS_FACE_RECTANGLES and
STATISTICS_FACE_SCORES are redundant since STATISTICS_FACES can report face
info already.

Bug: 11082745
Change-Id: I8239cee8fdce8f5aea3cc26ca979e41251ca05fa
amera2/CaptureResult.java
decfe95fce05627fe6ff5d6fa5801864fb30dc6b 29-Oct-2013 Ruben Brunk <rubenbrunk@google.com> gcam: Avoid leaking repeating CaptureRequests.

Bug: 11352359
Change-Id: I598416c08c0a7c3e5a8054a4d80ed29d82870bd2
amera2/impl/CameraDevice.java
62c49dffde910f2c276610831704ee94ac61b1c2 24-Oct-2013 Aravind Akella <aakella@google.com> am 11e0c0e6: am 1ba90786: am 28e26eb3: Merge "Fix for ClassCastException in SystemSensorManager." into klp-dev

* commit '11e0c0e63c70f8bdfb416661a56663a2da426f41':
Fix for ClassCastException in SystemSensorManager.
31d14ce57ca230588d8ffe991ee827b12d8ed17e 23-Oct-2013 Aravind Akella <aakella@google.com> Fix for ClassCastException in SystemSensorManager.

Bug: 11068858
Change-Id: I074798a6978b91766b37dec32f2683d8e4adf5d3
ystemSensorManager.java
0257767041f0f483f3bc5569bc00567cc5a2da11 17-Oct-2013 Zhijun He <zhijunhe@google.com> am 98d1ba4b: am 650b4616: am 6355103b: Merge "Camera2: filter bad faces" into klp-dev

* commit '98d1ba4bd7e9f5b504ad0b7094c639df2c399734':
Camera2: filter bad faces
842bc9c325879c94fc729103c2f21707c1b6a142 17-Oct-2013 Scott Main <smain@google.com> am 3d66877b: am 0763e156: am 89ec7c78: Merge "some javadoc improvements for virtual display and new meta tag name" into klp-dev

* commit '3d66877b93c037a81f40d896b74b507c57926c54':
some javadoc improvements for virtual display and new meta tag name
6355103bcae6f46105a53e2a8210c0b809980506 17-Oct-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: filter bad faces" into klp-dev
844b3520cc31dbca40f282e5a0e3e6d442d4c686 17-Oct-2013 Zhijun He <zhijunhe@google.com> Camera2: filter bad faces

Filter bad face score and ids.

Bug: 11257538
Change-Id: I9beb042e8c0d2f08a3efcd2877deee036b80482f
amera2/impl/CameraMetadataNative.java
cc2195bb560cc155bf3e7d3a7f27fe619a497124 16-Oct-2013 Scott Main <smain@google.com> some javadoc improvements for virtual display and
new meta tag name

Change-Id: If9caba425f825652468a0f3e868f71ed1a778fb1
isplay/VirtualDisplay.java
813c8e45d95ca87b3bc90e4b166edab9c07c9dfb 15-Oct-2013 Zhijun He <zhijunhe@google.com> am 2c31cf7c: am 549a9590: am 58216c26: Camera2: return CaptureResult.STATISTICS_FACES

* commit '2c31cf7cc4d7fca56e5277df932b4e8ce671935d':
Camera2: return CaptureResult.STATISTICS_FACES
58216c2650c9536f93467d6ab347ca3f7720dedd 15-Oct-2013 Zhijun He <zhijunhe@google.com> Camera2: return CaptureResult.STATISTICS_FACES

Changes included in this CL:

- remove the WAR for face detect mode null case.
- make the sanity check assert to warnings.
- make number of faces to be the minimal length of face metadata array length to
avoid out of bound access, since we relax the sanity check.

Bug: 11206459
Change-Id: Ifd9f7f79617039c1b3ad631f202b48076d775e09
amera2/impl/CameraMetadataNative.java
ac61e030e537150548c7cfac2f1bfcf01a8408c5 15-Oct-2013 Eino-Ville Talvala <etalvala@google.com> am c80477e7: am a7833f86: am bf9b087b: Merge "Camera2: Fix face rectangle coordinate mapping, and use Key.equals" into klp-dev

* commit 'c80477e7124264ff0a61f7e972244be03fc20d42':
Camera2: Fix face rectangle coordinate mapping, and use Key.equals
615b75f3351065845f95f6a2339461813f530ae9 15-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Fix face rectangle coordinate mapping, and use Key.equals

- Faces are reported differently from other rectangles, so the mapping
has to be specialized for them

- Use Key.equals for key comparison.

Bug: 11206459
Change-Id: I9a2a408dad981c2911048191ec30977020953146
amera2/impl/CameraMetadataNative.java
cd925885283396c0379ec2dcaa94e318993f40f8 07-Oct-2013 Eino-Ville Talvala <etalvala@google.com> DO NOT MERGE: Hide new camera API.

Not yet ready.

Bug: 11141002

Change-Id: I4704bffb9ba36af47a66dc5b49cbba00be623aae
amera2/package.html
d9b09fa97eb47b051bbfab8cc491143198fbc9bc 11-Oct-2013 Aravind Akella <aakella@google.com> Merge "Fix registerListener and flush bugs." into klp-dev
4bdc37d315a6dbdcf2425e70423ec43d7b74e102 02-Oct-2013 Aravind Akella <aakella@google.com> Fix registerListener and flush bugs.

1) Fix registerListener to return false when called with a Trigger sensor. Correct java documentation.
2) Remove reservedFlags and FlushCompleteListener parameters from the public API.
3) Create SensorEventListener2 which extends SensorEventListener and has the onFlushCompleted callback.
3) Change flush(Sensor) API to flush(SensorEventListener).

Change-Id: I56ce4e0b6e329483e129a14ad7e8a0cd35665ffe
Bug: 10894703
lushCompleteListener.java
ensorEventListener2.java
ensorManager.java
ystemSensorManager.java
7b01c5c4d27ebbd739d9e5e0de7eaafbffd8e084 09-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Properly copy over user tag when cloning requests

Bug: 11141002
Change-Id: Icc5c4150a6796d705f5c6c3bd1322597fc986af2
amera2/CaptureRequest.java
69c66f4203b1c6e76e457bfaa9e0854c5d7cd832 08-Oct-2013 Alex Ray <aray@google.com> Merge "camera2: describe non-full hw level optional tag entries" into klp-dev
46ea9b0b0451a44fc30a646a6e1c4062f0b3d62d 08-Oct-2013 Igor Murashkin <iam@google.com> Merge "camera2: Workaround for null FACE_DETECT_MODE crashing" into klp-dev
e37885a8a319165592350e4c46df03c3544a7dc1 08-Oct-2013 Igor Murashkin <iam@google.com> camera2: Workaround for null FACE_DETECT_MODE crashing

Bug: 11118679
Change-Id: Id9b055744f6a2f502857b4cc0c5badb46b44a1f8
amera2/impl/CameraMetadataNative.java
04eceec132dddf39cd55cc39235cb7df1de00f9e 07-Oct-2013 Zhijun He <zhijunhe@google.com> Camera2: fix Face class java doc build break

Bug: 10406212
Change-Id: Ida4da1ee3f67e176e04d07f569e153d671fa9e40
amera2/Face.java
ad45fa64382fa00778ff8ddfd1ac65d81fd55404 07-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Fire all callbacks" into klp-dev
868d904306c6a96d94fa0da03515c51c86eefc63 03-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Fire all callbacks

- Allow configureOutputs to be called when device is
actively working, and document what happens then.
- At the managed level, trigger proper sequence of callbacks for
device state changes, for all the callbacks that are not yet
managed by the camera service.
- Restructure CameraManager.openDevice to have the device itself fire the
initial callbacks.
- Make CameraDevice.configureOutputs(null) work.
- Make CameraDeviec.configureOutputs(identical surfaces) work.
- Ensure proper checking for camera closed state.

Bug: 10360518
Change-Id: I9db348ee9c5ce4d3fe02fd34e779acc85cba68dc
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/impl/CameraDevice.java
b7bfdc7cf7f45805e8e7ebea77a15051b8ad3e8d 02-Oct-2013 Zhijun He <zhijunhe@google.com> Camera2: add metadata override

There are interface difference between managed and native side for some
metadata, like Face and JPEG format. we need override them when they are set/get
between native and managed sides.

Also fix some issues in the CameraMetadataTest.

Bug: 10406212

Change-Id: Ibd8be0415968445e711b3ea89f45e1edfa193ee2
amera2/CaptureResult.java
amera2/Face.java
amera2/impl/CameraMetadataNative.java
227c09f998a79ea4baf1fe178297ef6347e05e0a 05-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Fix build.

Change-Id: I1c3537d936fd467014b966179f5ed2a8c6a696da
amera2/impl/CameraMetadataNative.java
51ca8d6bc031313e5040c716cc207c8f62a68891 04-Oct-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Verbosity is verboten.

Bug: 10360518
Change-Id: I155effad61099535bee77cc0d0e380420d96770d
amera2/impl/CameraMetadataNative.java
e841d4e16526a2e466f662305682aa3459d07c15 05-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Implement idle callbacks

- Rework camera callback binder interface
- Connect up idle, disconnect callbacks
- A few unit tests for shutter firing and idle use

Bug: 10549462
Change-Id: I8455a8a0561e366b7edeef6b101682be2ec44d79
amera2/ICameraDeviceCallbacks.aidl
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
e83c4ebc62f10b06139bd4cf6109a1d0f3521032 03-Oct-2013 Alex Ray <aray@google.com> camera2: describe non-full hw level optional tag entries

Bug: 10838063
Change-Id: I4880b306587a4a47172976dfb5c2b41e711c7371
amera2/CameraCharacteristics.java
amera2/CaptureResult.java
18fe0ae08d49b0fe4b6414a3841bd0fcab5419e8 01-Oct-2013 Zhijun He <zhijunhe@google.com> Camera2: return device list with the only supported device

Bug: 10360518
Change-Id: I823f0b6965728ddefc9b70f3df0f50259919cce5
amera2/CameraManager.java
03fdb14ba8779f2941ad2f7c627c0be11f92cea5 30-Sep-2013 Igor Murashkin <iam@google.com> camera2: Fix CameraMetadata#getKeys

Bug: 11007040
Change-Id: I08755bf45ae60ff00736af3672a9f6091f460496
amera2/CameraMetadata.java
amera2/CaptureResult.java
599be6182e1a8f647f02d02ed99d16a74db2a4c6 27-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: remove CameraDevice#getProperties

Also cleanup some unnecessary imports.

Bug: 10360518
Change-Id: Id54aa4c9e3dff2bd354e3ebb83687b000842ea3f
amera2/CameraDevice.java
amera2/impl/CameraDevice.java
c59b078acb20e65ef53169891925f9cee017ba6f 26-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Fix focusRange type

It should be a pair of floats.

Bug: 10360518
Change-Id: Ic0aee6c08eee385ecbf634bafc769e08dc199c1f
amera2/CaptureResult.java
822ac0bada06b2185b4d5e8304160b680a72cff2 26-Sep-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: Implement CameraManager#getCameraCharacteristics" into klp-dev
2001188be30649198972a3199a4322d6f7f5f93d 25-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Implement CameraManager#getCameraCharacteristics

Bug: 10904541
Bug: 10360518
Change-Id: I1da0b0319703fda46789f15a232e56ed1d928bc3
CameraService.aidl
amera2/CameraManager.java
9ca833f4a5eca732b1618bc1a183215c21ae11e5 25-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Add PASSIVE_UNFOCUSED autofocus state." into klp-dev
9bd5f1e6dff31e2299c065157ba3a43bc79a9d48 23-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: replace EDQUOT with EUSERS

Bug: 10838065
Change-Id: Ib450fcfffecec210c7f11842bf024abd7889bad7
amera2/utils/CameraBinderDecorator.java
68f40066c914aefc1f88819dd46dd1135fb9f5bc 10-Sep-2013 Igor Murashkin <iam@google.com> camera2: Rename CameraProperties to CameraCharacteristics

Bug: 10360518
Change-Id: I8667bdcc8c9528ace96dc675585f923004932641
amera2/CameraCharacteristics.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CameraMetadata.java
amera2/CameraProperties.java
amera2/Face.java
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.java
amera2/package.html
6bbf9dc5ae7ebc85991dcfe3e18e837b12d3f333 05-Sep-2013 Igor Murashkin <iam@google.com> camera2: Add capture sequences and capture failures

- CaptureResult#getRequest is used to tie a result to a request (for convenience)
- Add new CaptureFailure class to describe capture failure
- Results/frame numbers also return frame numbers, sequence ids
- Captures now all return the sequence id
- A sequence id onComplete is available in the CaptureListener

Bug: 10360518
Change-Id: I9ebaa45698c718a1185b5ae920b7975925fe2f60
amera2/CameraDevice.java
amera2/CaptureFailure.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/impl/CameraDevice.java
9f880f79a3f179443c8b37c3434717432b2ec8d9 21-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add PASSIVE_UNFOCUSED autofocus state.

The AF state model didn't properly account for the AF algorithm giving
up focusing while in passive scan, which leads to bad state
information being given to the application. Add this state to clarify.

Also a few minor comment edits from the autogeneration.

Bug: 10860639
Change-Id: Ib6b781fb8222a2c06dbc89b7496c593ac87cc026
amera2/CameraMetadata.java
amera2/CaptureResult.java
ab98a0b116884aae3c5a90ddf87fe677e2a351a1 21-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera2: Add more camera device states, make #openCamera async." into klp-dev
47d620ac282870f1f7142bd86ab32d14ad9ee91f 21-Sep-2013 destradaa <destradaa@google.com> Merge "Ensure access to the map of geofence callbacks is synchronized in all cases Fix Java reference leak in the JNI layer" into klp-dev
7f02eb2c84c0a39e6357aca10a4fda1dd090a8a6 20-Sep-2013 destradaa <destradaa@google.com> Ensure access to the map of geofence callbacks is synchronized in all cases
Fix Java reference leak in the JNI layer

Bug: 10624887
Change-Id: I656973653d82c73a7ba2b51f22989ffed144c5df
ocation/GeofenceHardwareImpl.java
5c9eaf6796a4c972710dd5cd23cdfa334fa8ad2e 11-Sep-2013 Igor Murashkin <iam@google.com> camera2: Add more camera device states, make #openCamera async.

* Move CAMERA_IN_USE, MAX_CAMERAS_IN_USE to StateListener#onError
* Copy CAMERA_DISABLED to StateListener#onError

Bug: 10360518
Change-Id: Idd8cf42e1511d12682018588b2b413116cf65116
amera2/CameraAccessException.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/impl/CameraDevice.java
4e1921fa3d093867001188646f63b23e7149bf33 17-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Add docs for availableProcessedSizes

Bug: 10745982
Change-Id: Ia240fa6c0dc0485e2b8dcd04c5a87fa515b0d7b0
amera2/CameraProperties.java
1e4e38252f8eb44fe382e371e29857834cf9fc15 17-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera2: Add key enumeration functionality to CameraMetadata" into klp-dev
901be0ae33faf8ece17170b0d9d4c4429121b6ab 17-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera2: Update Face class." into klp-dev
68ebc1a7b4c18d587612891250f17f36edfe1bc1 15-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Add MAX_CAMERAS_IN_USE error case handling

Throw CAE with reason MAX_CAMERAS_IN when the error code is EDQUOT.

Bug: 10749544
Change-Id: I6820de8b95662a55bb37f099746ea2cbe5056f24
amera2/utils/CameraBinderDecorator.java
7a36a0fbb0a5f14047a3680668da954beca05dcb 11-Sep-2013 Igor Murashkin <iam@google.com> camera2: Add key enumeration functionality to CameraMetadata

* Add a way to enumerate all currently set keys in CameraMetadata
* Add a way to enumerate all available keys for CaptureRequest
* Add a way to enumerate all available keys for CaptureResult
* No way to enumerate all keys for CameraProperties, since it would be
identical to all the currently set keys.

Bug: 10360518
Change-Id: I3a90f8cc385db14a675e4ff876ae93d906ff06bf
amera2/CameraMetadata.java
amera2/CameraProperties.java
amera2/CaptureRequest.java
amera2/impl/CameraMetadataNative.java
b779ac1e2e3e463aa49442ac801dde410f22dc73 05-Sep-2013 Igor Murashkin <iam@google.com> camera2: Update Face class.

- Move Face to be outer class. Enables Parcelable-izing it later.
- Add static public constants for field values.
- Add @hide constructors.
- Rename methods returning Point to have Position suffix.
- Add new key android.statistics.faces (CaptureResult#STATISTICS_FACES)

Bug: 10360518
Bug: 10549293
Change-Id: I067f06f0426114b2c3a3266ca7e00e6cb1d89046
amera2/CaptureResult.java
amera2/Face.java
4fe6429ba2c77a2cc639d712ba979e1f538c5bb1 14-Sep-2013 Rachad Alao <rachad@google.com> Merge "Camera2: Rename TEMPLATE_MANUAL to TEMPLATE_ZERO_SHUTTER_LAG" into klp-dev
bbae94a02e73020646535b0d915f4557c39f357b 13-Sep-2013 Zhijun He <zhijunhe@google.com> Camera2: Rename TEMPLATE_MANUAL to TEMPLATE_ZERO_SHUTTER_LAG

It collides with HAL ZSL template, rename it to TEMPLATE_ZERO_SHUTTER_LAG and
hide it for now.

Bug: 10690122
Change-Id: I793154849aa7aa4bf4874e2ff3f3890dd05b1f9e
amera2/CameraDevice.java
184b17ddef985ba99f1b1ad8f660a742a9f31a19 12-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Add a missing key for controlling shading map mode" into klp-dev
6c62163976844b28859fca322b28af907ec2856d 12-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera_metadata: add android.lens.state MOVING enum value" into klp-dev
d96748b02a468e484f864f4e3e4b7819f7dcdbd0 12-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add a missing key for controlling shading map mode

Bug: 10726421
Change-Id: If41e00c921ab493c7427575258fed63cbbc22dc1
amera2/CameraMetadata.java
amera2/CaptureRequest.java
9ea4ae67fb10a10c464db8372b58bfe574cac03d 12-Sep-2013 Igor Murashkin <iam@google.com> camera_metadata: add android.lens.state MOVING enum value

Bug: 10621609
Change-Id: Ia4fa15db99350f920741f244ae7772520657fdd2
amera2/CameraMetadata.java
amera2/CaptureResult.java
03ad7ae1bc406dbdb452cb5f91f2bde1848fd4cb 12-Sep-2013 Alex Ray <aray@google.com> Merge "consumer ir: clarify @link in documentation" into klp-dev
ede3eeb72c9708df023bdfb369905ededd1ebb06 12-Sep-2013 Eino-Ville Talvala <etalvala@google.com> Merge changes Ia6300c23,Idd2ae8ad into klp-dev

* changes:
Camera2: Immutable metadata
Camera2: Listener rework and other API updates
1e679441af2e93841d5dbcddbb28756898108a9f 11-Sep-2013 Alex Ray <aray@google.com> consumer ir: clarify @link in documentation

Change-Id: Ifebd0b550f5d9860697539646596a0b1cc782949
onsumerIrManager.java
70c2207c34cf0e6b3b383b1b1500ff5385aa51a6 27-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Immutable metadata

Make all camera metadata immutable once created; requests are
created using CameraRequest.Builder.

- Separate CameraMetadata implementation from interface
- Implement deep copying of metadata
- Requests/results/properties have-a native implementation

Bug: 10360518
Change-Id: Ia6300c237219d39f70c63156fa9ca666d951a36e
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CameraMetadata.aidl
amera2/CameraMetadata.java
amera2/CameraProperties.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/ICameraDeviceCallbacks.aidl
amera2/ICameraDeviceUser.aidl
amera2/impl/CameraDevice.java
amera2/impl/CameraMetadataNative.aidl
amera2/impl/CameraMetadataNative.java
amera2/impl/MetadataMarshalClass.java
amera2/impl/MetadataMarshalRect.java
amera2/impl/MetadataMarshalSize.java
amera2/impl/MetadataMarshalString.java
4af73c2153747d0624ccc75dfa001cb91982957f 14-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Listener rework and other API updates

- Add Handlers to each callback-accepting function
- Expand CameraDevice ErrorListener to CameraDeviceListener
- Add idle callback
- Split out disconnect error to its own callback
- Add CameraDevice#getId
- Rename CameraManager's listener to AvailabilityListener
- Rename CameraManager register/unregister*Listener to
add/remove*Listener
- Rename getDeviceIdList to getCameraIdList

Bug: 10549567
Bug: 10549462
Change-Id: Idd2ae8ad8eb126f35a15d765306ada7c1cf74eea
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CaptureRequest.java
amera2/impl/CameraDevice.java
51e95df8f24e9ea30775686b9e324b9a671213dc 26-Jun-2013 Erik Gilling <konkers@android.com> Add consumer IR framework

Change-Id: I786c00db0cce61ef75e4edc24e90f2cdcba6dbfb
onsumerIrManager.java
ConsumerIrService.aidl
50209368626d53b1f8a4a6fdf50d280c7cf65a65 10-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera2: Don't NPE in onStatusChanged" into klp-dev
7441695049674e457064f289b74b11f62fa5c943 07-Sep-2013 Igor Murashkin <iam@google.com> camera2: Don't NPE in onStatusChanged

Bug: 10360518
Change-Id: Icf70a908581af209b889237ad64a555b7e794b67
amera2/CameraManager.java
fcf5809ad43669c2e765aa093a8356959469fd9c 07-Sep-2013 Aravind Akella <aakella@google.com> Merge "Sensor batching APIs for review." into klp-dev
d405e0fc8274e8dc9ce8d6e084f6ad679fa6e6fa 04-Sep-2013 Aravind Akella <aakella@google.com> Sensor batching APIs for review.

Change-Id: I34504e1a0856c2dfeceb69c808abdf3e805c5f1f
lushCompleteListener.java
ensor.java
ensorManager.java
a2815faad7a2f3dc463c7efd33c3651a4434f2fd 06-Sep-2013 Timothy Knight <tknight@google.com> Camera2: Minor docs fix.

Bug: 10639270
Change-Id: Ic5b046a8f8e1c8be83f010e05247914c61b3674b
amera2/CaptureRequest.java
f267dd1d794237229fe71f37d54896ce54c9750d 05-Sep-2013 Ruben Brunk <rubenbrunk@google.com> Merge "Fix CameraService error flag when running HAL1 with API2." into klp-dev
2629f27362f1a35521501f3a28279ab05b9beb32 04-Sep-2013 Timothy Knight <tknight@google.com> Camera2: Clarified docs for 3A regions.

Bug: 10545568
Change-Id: I0a76e7d063ceccb68707973abd312a1b909155ec
amera2/CaptureRequest.java
amera2/CaptureResult.java
6462be7fa0234ca1a285f4f40089f9be1fed8316 04-Sep-2013 Ruben Brunk <rubenbrunk@google.com> Fix CameraService error flag when running HAL1 with API2.

Bug: 10620944
Change-Id: I72517a25bfe0e891ed150c568c37e04a9d6cc38c
amera2/utils/CameraBinderDecorator.java
23c8809568b68430f875df759108c58016c44c16 21-Aug-2013 Timothy Knight <tknight@google.com> Camera2: Updated Rational for denom=0.

Handle NaN and INF using the same semantics as Java floats. No longer
throw an exception if a rational is constructed with a zero-denominator.

This commit is required for the ITS pdk app, since without it, the app
fails when it tries to deserialize rational values that are
(incorrectly) set to 0/0.

Bug: 10337323

Change-Id: I890ec2092f2945abc0f531fc46f9a7f5c71d2dbf
amera2/Rational.java
1f519d46828f11413c70653ce5c31eba25b3f633 04-Sep-2013 Aravind Akella <aakella@google.com> Fix for build breakage. Remove documentation link to hidden registerListener API.

Change-Id: Iba5d623bf12f1b6654f570febcc65d591d309038
ensorManager.java
979cf8e461c6790747b2bb6dcc4c0784ca34dbdd 04-Sep-2013 Igor Murashkin <iam@google.com> Merge "camera2: Don't NPE when closing the CameraDevice" into klp-dev
b4c76b18a369d940f448bcc55d7245b6b30084dd 27-Jun-2013 Aravind Akella <aakella@google.com> Sensor batching. Implementation for registerListener(with batch support) and flush APIs.

Bug: 10109508
Change-Id: I6dfdd986bd8c3368cb568fa7d90abf9c03de9aef
lushCompleteListener.java
ensor.java
ensorManager.java
ystemSensorManager.java
2a3eced15eddc322b946462b9018285997396a99 29-Aug-2013 Igor Murashkin <iam@google.com> camera2: Don't NPE when closing the CameraDevice

Bug: 10360518
Change-Id: I0154e12490a063adea753c0aa6ae422605ba5ac5
amera2/impl/CameraDevice.java
fb3d78118b59cf7e44d780c6a0a050f3b3a7076e 27-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Add CameraDevice#flush()" into klp-dev
9e680685f92752c5c75a2f4929e017aec902aef6 26-Aug-2013 Igor Murashkin <iam@google.com> Merge "camera2: CameraDevice#configureOutputs now deletes unused streams" into klp-dev
57ea59b376c6b72206b5b339733ee5874b181762 24-Aug-2013 Igor Murashkin <iam@google.com> camera2: CameraDevice#configureOutputs now deletes unused streams

Bug: 10461554
Change-Id: I3dc48e434d83b18909d25723cc8855c82e1072bc
amera2/impl/CameraDevice.java
511cd35fcc0b8ab048f284a6af374de8ccc69865 24-Aug-2013 Jeff Brown <jeffbrown@google.com> Docs changes pursuant to API review feedback.

Change-Id: I74c51791192f7fefad4e299d25c91438cbf6ab73
isplay/DisplayManager.java
1f3ecaae6303d5ee6c5ca8499262c9962f036365 04-May-2013 Chong Zhang <chz@google.com> wifi-display: add certification options

When certification mode is enabled:

- Pass wfd session info to wifi display settings

- Allow sink to connect to source

- Add interface in display manager for pausing/resuming session

- Add interface in WifiP2pManager for setting lc, oc and starting
autonomous GO

Note that we're compliant regardless of certification mode, but
some confusing options (eg. allowing incoming connection from
sink) we want to hide when not being tested.

Bug: 9371882
Change-Id: Icc7dcae4e046453796cfa03f5f197055fabf234b
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/WifiDisplaySessionInfo.java
isplay/WifiDisplayStatus.java
8ebd52bf4166a5ef8b7e91c9e3ecce2ce27cff12 13-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add CameraDevice#flush()

- For quickly clearing out all pending and in-progress captures

Bug: 9758581
Change-Id: Ie4123fcc4d4b648a11d4a6257c531f07182bab39
amera2/CameraDevice.java
amera2/ICameraDeviceUser.aidl
amera2/impl/CameraDevice.java
f293627fc2858d8a569b28e8da80047848c961dc 23-Aug-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: Send warning when burst request list is empty" into klp-dev
fc19e2cfe5bd0bc5f5be8a216ef5ee398a86b048 22-Aug-2013 Zhijun He <zhijunhe@google.com> Camera2: Send warning when burst request list is empty

Bug: 10360518
Change-Id: I4ab89af9ecb62442ce277d0ad7604298534ff7db
amera2/impl/CameraDevice.java
8e3a41738fba4883f9951406f334567f621db102 22-Aug-2013 Michael Wright <michaelwr@google.com> Merge "Expose API to query devices for supported keys" into klp-dev
6b223c6a5be788ca28d5d911ab10650be673684b 21-Aug-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: cleanup unused imports" into klp-dev
e8aae8a122162a8d909bc917b32e6ba66d1d4170 21-Aug-2013 Zhijun He <zhijunhe@google.com> Merge "Camera2: Update tonemap curve definitions." into klp-dev
ed255a09ec7260a587e2007b92599a67add4ae10 21-Aug-2013 Zhijun He <zhijunhe@google.com> Camera2: cleanup unused imports

Bug: 10360518
Change-Id: I067a29ac43e7d70f07f45463bee46a8f6d3f31a5
amera2/CameraMetadata.java
amera2/CameraProperties.java
3ffd70554f85bd1ee54354f2d5c44e1bc0878227 20-Aug-2013 Zhijun He <zhijunhe@google.com> Camera2: Update tonemap curve definitions.

This updates android.tonemap.curveGreen and android.tonemap.curveBlue
definitions.
Also update android.sensor.info.physicalSize type.

Bug: 10394966
Change-Id: I23156ad0cd67fa59500a1c803068e392514756d4
amera2/CameraProperties.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
0125ba70bb41406ed597002498823232c8b163b8 21-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Convert camera device errors to exceptions" into klp-dev
5afd3e91b8e785b1b3a42e40b0a3ca11eba2d7cc 21-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Convert camera device errors to exceptions

Bug: 10360518
Change-Id: I1752cecf55269c2c9f22962660c0b3fc236138fa
amera2/impl/CameraDevice.java
d5ff06a2ce4a65615ce5e8b8df93f2c3da2a8bbd 21-Aug-2013 Igor Murashkin <iam@google.com> camera2: add sensor.temperature optional key. clear up some metadata definitions

Change-Id: I1fabdf383b303ea52d73a055b83a0c4a1bca3f95
amera2/CaptureRequest.java
amera2/CaptureResult.java
b7b2d4b490f5dd672e0b00ced579dc052e3637e9 20-Aug-2013 Michael Wright <michaelwr@google.com> Expose API to query devices for supported keys

Change-Id: I29f230e19c6f851b4b72b2fc8dd41f5abcba4631
nput/InputManager.java
b6c38e9de1a2824ce599d7074fa4a226926177c1 16-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove redundant Keys classes

Also update tests accordingly

Bug: 10345522
Change-Id: I8c7d17cdfbda6faba09134745a96089bf1b70cb7
amera2/CameraPropertiesKeys.java
amera2/CaptureRequestKeys.java
amera2/CaptureResultKeys.java
f55916bd31bb79dd47739115b26c0886f9523756 19-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Merge changes I6d125624,I549a9211 into klp-dev

* changes:
Camera2: Fixed issue with HashSet not being initialized
Camera2: Documentation fixes, mostly capitalization mistakes
94a26df84f226120075ca3d9866f2687e11c9dcd 17-Aug-2013 Ruben Brunk <rubenbrunk@google.com> Merge "Refactor CameraService to handle errors properly." into klp-dev
66ef64514464a1bb9c7931993cc8db3d7539f39a 08-Aug-2013 Ruben Brunk <rubenbrunk@google.com> Refactor CameraService to handle errors properly.

Bug: 10361136

- Connect calls now return status_t error flags.

Change-Id: Ibce9ab047348cfcade7e70a2ef03f5a833e13af8
CameraService.aidl
amera2/CameraAccessException.java
amera2/CameraManager.java
amera2/utils/BinderHolder.aidl
amera2/utils/BinderHolder.java
amera2/utils/CameraBinderDecorator.java
4068388beea728bbf9f321b0b5b5c52ce4ab3d06 09-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add user tag to CaptureRequest

Bug: 10360518
Change-Id: I781341b4c598c28ee5dd7551b8e05ab19b8fff0d
amera2/CaptureRequest.java
d27e8768bc8135b6677b649cecec420e6b9bb0dc 15-Aug-2013 Benjamin Hendricks <coolbnjmn@google.com> Camera2: Fixed issue with HashSet not being initialized

Bug: 10345921
Change-Id: I6d12562484b0ed9c59b22e231c3dd050e046b58d
amera2/CameraManager.java
24eb8a313f1a80a35566b8dc456ec2684a05a22e 15-Aug-2013 Benjamin Hendricks <coolbnjmn@google.com> Camera2: Documentation fixes, mostly capitalization mistakes

Bug: 10343538
Change-Id: I549a92117c6ecca385e55c0ca2187c5ee82f024b
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CameraMetadata.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
amera2/Rational.java
66a83ae6500d735b5abb6a97c86addcb1c958d68 14-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera2: Add metadata keys and enum values" into klp-dev
d48233e1e62c119b4bd67ad66e471f6a21e68a3d 14-Aug-2013 Igor Murashkin <iam@google.com> Merge "camera2: Clear up docs for CameraDevice#configureOutputs" into klp-dev
0682809ad08db284d7110aab44108d5e9c310e6b 13-Aug-2013 destradaa <destradaa@google.com> Add support in the platform for Flp Geofencing.

Change-Id: I0fb0e276d3a06322697bb5d46323779aca1f78c5
ocation/GeofenceHardware.java
ocation/GeofenceHardwareImpl.java
ocation/GeofenceHardwareRequestParcelable.aidl
ocation/GeofenceHardwareRequestParcelable.java
ocation/GeofenceHardwareService.java
ocation/IGeofenceHardware.aidl
53f91c5c260b25e4763efe52212c1cf404946e27 10-Aug-2013 Igor Murashkin <iam@google.com> camera2: Clear up docs for CameraDevice#configureOutputs

Change-Id: Id2397ca17c5968cb4dfdb337ea56be9d5f481669
amera2/CameraDevice.java
5a32b20ccc34fd7d4f048de05c427a7a96786531 08-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Add metadata keys and enum values

- Insert metadata enum ints into CameraMetadata
- Insert metadata Keys into relevant files
- Remove some dead code in CameraMetadata

Generated from /system/media/camera/docs.

Change-Id: I3d864ad8c7add5f35ca740860cb2883d54a0791e
amera2/CameraDevice.java
amera2/CameraMetadata.java
amera2/CameraProperties.java
amera2/CaptureRequest.java
amera2/CaptureResult.java
1af4b0280af406cfc7eb46810f6b76e57b983e11 13-Jul-2013 destradaa <destradaa@google.com> Add FlpHal layer to support Location Batching.

Change-Id: Ia3a57d869dfb3f067a1b95fa66d54f311ddcfdc3
ocation/IFusedLocationHardware.aidl
ocation/IFusedLocationHardwareSink.aidl
f0f4a831128c57acb52ce91f6d96a9f2b710c80f 08-Aug-2013 Aravind Akella <aakella@google.com> Fix for build breakage. Correcting the documentatation link in Sensor.java. I added a wrong link {@link #SENSOR_TYPE_ROTATION_VECTOR} instead of {@link #TYPE_ROTATION_VECTOR}.

Change-Id: I55be472c554a5170f3db64b9cb49337a1f4691c0
ensor.java
52df1db3ce3da57dea6322196d4566b72e36f485 08-Aug-2013 Aravind Akella <aakella@google.com> Merge "Adding new constants for STEP_DETECTOR, STEP_COUNTER and GEOMAGNETIC_ROTATION_VECTOR."
4b628cb53dd84dae82db941d49ef10d58f22bf07 06-Aug-2013 Aravind Akella <aakella@google.com> Adding new constants for STEP_DETECTOR, STEP_COUNTER and GEOMAGNETIC_ROTATION_VECTOR.

Change-Id: I31fbdf379454e71950b111f2461bdb430f3352fc
ensor.java
3c9c0918635143f373817fff1ce5131b995282cf 05-Aug-2013 Jean-Baptiste Queru <jbq@google.com> Revert "Revert "be more robust with handling unknown sensors""

This reverts commit 17548b3c70fe4f29d33367a61300f5323f5efe99.
ensor.java
7d00affce6e25b22fd8fc135933b3bf6b547a0dc 03-Aug-2013 Jeff Brown <jeffbrown@google.com> Support public virtual displays.

Refactor the new private virtual display API to also support
creating public virtual displays with various characteristics.
This feature requires special permissions and is only intended
for use by the system.

Change-Id: I44dd19f37cf76ea6d6e313afe42f4a412bd96663
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/VirtualDisplay.java
1e01943fe1876144f0c180163b5b39ee0a9a91ee 03-Aug-2013 Jean-Baptiste Queru <jbq@google.com> am ae311f4c: am 17548b3c: Revert "be more robust with handling unknown sensors"

* commit 'ae311f4c5f86779bb681b9fa8c1122dc174fea72':
Revert "be more robust with handling unknown sensors"
17548b3c70fe4f29d33367a61300f5323f5efe99 03-Aug-2013 Jean-Baptiste Queru <jbq@google.com> Revert "be more robust with handling unknown sensors"

This reverts commit 80ba0a6baec17d5ac5a1e6f9e4b84f7d013d07e6.
ensor.java
80ba0a6baec17d5ac5a1e6f9e4b84f7d013d07e6 04-Jul-2013 Mathias Agopian <mathias@google.com> be more robust with handling unknown sensors

- add support for new sensors (post 4.3)
- don't crash when encountering an unknown sensor type
- clean-up

Bug: 9683153
Change-Id: Iecd883e8a7d0297be1bd2bd4f00c5cc3ffcbccfe
ensor.java
ecb323e3ce94f62411b6799f9a0aa42b052de30d 31-Jul-2013 Zhijun He <zhijunhe@google.com> Camera2 API: Fix missing callback issue

Callback/Listener classes must extend the AIDL Stub class and implement the
methods. Also rename the frameId to requestId to avoid confusion.

Change-Id: I1b2f0e2f99230917f9e0e1875ba3ba1c7859c805
amera2/CameraManager.java
amera2/ICameraDeviceCallbacks.aidl
amera2/impl/CameraDevice.java
2f1a2e423e0fbb64467d6fcfa4e82c6384f31210 26-Jul-2013 Eino-Ville Talvala <etalvala@google.com> Camera2 API: Rename package to android.hardware.camera2

Change-Id: I77b7939e199f9fe8e12a59393c24cff08097448c
CameraService.aidl
amera2/CameraAccessException.java
amera2/CameraDevice.java
amera2/CameraManager.java
amera2/CameraMetadata.aidl
amera2/CameraMetadata.java
amera2/CameraProperties.java
amera2/CameraPropertiesKeys.java
amera2/CaptureRequest.aidl
amera2/CaptureRequest.java
amera2/CaptureRequestKeys.java
amera2/CaptureResult.java
amera2/CaptureResultKeys.java
amera2/ICameraDeviceCallbacks.aidl
amera2/ICameraDeviceUser.aidl
amera2/Rational.java
amera2/Size.java
amera2/impl/CameraDevice.java
amera2/impl/MetadataMarshalClass.java
amera2/impl/MetadataMarshalRect.java
amera2/impl/MetadataMarshalSize.java
amera2/impl/MetadataMarshalString.java
amera2/impl/package.html
amera2/package.html
amera2/utils/CameraBinderDecorator.java
amera2/utils/CameraRuntimeException.java
amera2/utils/Decorator.java
amera2/utils/UncheckedThrow.java
amera2/utils/package.html
hotography/CameraAccessException.java
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/CameraMetadata.aidl
hotography/CameraMetadata.java
hotography/CameraProperties.java
hotography/CameraPropertiesKeys.java
hotography/CaptureRequest.aidl
hotography/CaptureRequest.java
hotography/CaptureRequestKeys.java
hotography/CaptureResult.java
hotography/CaptureResultKeys.java
hotography/ICameraDeviceCallbacks.aidl
hotography/ICameraDeviceUser.aidl
hotography/Rational.java
hotography/Size.java
hotography/impl/CameraDevice.java
hotography/impl/MetadataMarshalClass.java
hotography/impl/MetadataMarshalRect.java
hotography/impl/MetadataMarshalSize.java
hotography/impl/MetadataMarshalString.java
hotography/impl/package.html
hotography/package.html
hotography/utils/CameraBinderDecorator.java
hotography/utils/CameraRuntimeException.java
hotography/utils/Decorator.java
hotography/utils/UncheckedThrow.java
hotography/utils/package.html
7f4d3147d1851d2f0c544e45390c139bda9fd9aa 23-Jul-2013 Zhijun He <zhijunhe@google.com> camera2: Implement CameraDevice#waitUntilIdle

Also cleanup some logging/comments.

Change-Id: Id1a4dd853519802a2b74b8d2172095ba388329e6
hotography/ICameraDeviceUser.aidl
hotography/impl/CameraDevice.java
3710db80d4b9e573d775790e4c9a2ab6e062201e 19-Jul-2013 Igor Murashkin <iam@google.com> camera2 api: marshal rect, size, string for metadata

Change-Id: Iec2fd823bc92394da44abb32ca38a625d7638e3d
hotography/CameraMetadata.java
hotography/impl/MetadataMarshalClass.java
hotography/impl/MetadataMarshalRect.java
hotography/impl/MetadataMarshalSize.java
hotography/impl/MetadataMarshalString.java
27b62ae8eb4623cef45d29c704aaf169f8c76025 18-Jul-2013 Igor Murashkin <iam@google.com> camera2 api: Output classes for key types where it makes sense

Change-Id: I0f74c110cc4917bfd96d812ee98c385bb1b937b7
hotography/CameraPropertiesKeys.java
hotography/CaptureRequestKeys.java
hotography/CaptureResultKeys.java
d84bd0a5f310b14f56d30c64562b1bf0589a74fa 17-Jul-2013 Zhijun He <zhijunhe@google.com> Update camera metedata

Change-Id: Ib33da76659c7aa5364ec2c3abc3613cf23eb7c36
hotography/CameraPropertiesKeys.java
hotography/CaptureRequestKeys.java
hotography/CaptureResultKeys.java
855ccce70112cea09364fe347503ea9750c67e02 16-Jul-2013 Eino-Ville Talvala <etalvala@google.com> Camera2: Remove/@hide non-public keys.

Change-Id: I28fc5d6d41a444730061b6d2652f5cb75f97d56b
hotography/CameraPropertiesKeys.java
hotography/CaptureRequestKeys.java
hotography/CaptureResultKeys.java
d7bf1778df666e82268d1e4549d248ce3dfc9665 13-Jul-2013 Igor Murashkin <iam@google.com> camera2: Implement CameraDevice#getCameraInfo

Bug: 9529161
Change-Id: Ie37d1e07bb8416cbb141f4d49e52337bf7236610
hotography/CameraMetadata.java
hotography/CameraPropertiesKeys.java
hotography/CaptureRequestKeys.java
hotography/CaptureResultKeys.java
hotography/ICameraDeviceUser.aidl
hotography/Size.java
hotography/impl/CameraDevice.java
b9dd637f830e6bd4f257ffb2c807c3ea27f8feee 12-Jul-2013 Igor Murashkin <iam@google.com> camera2 api: Generate metadata keys and enums from XML

Change-Id: I9b04b5933c5922fc522e9216f4deebcd6fc24d78
hotography/CameraMetadata.java
hotography/CameraPropertiesKeys.java
hotography/CaptureRequestKeys.java
hotography/CaptureResultKeys.java
b519cc52ecba8f44da31173c9fc90a7b66d52b79 02-Jul-2013 Igor Murashkin <iam@google.com> camera2 api: Add CameraMetadata get/set support

* Add a Rational class
* Can get/set Key<T> where T is a primitive (or Rational)
* Can get/set Key<T> where T is a primitive array
* Can get/set Key<T> where T is an enum (synthetic constructor only)

Not implemented yet:
* When T is anything else, i.e. Rect, Size, etc

Bug: 9529161
Change-Id: I64438024a1e8327a38dd2672652626f0ffbb70e3
hotography/CameraMetadata.java
hotography/CameraProperties.java
hotography/CaptureRequest.java
hotography/CaptureResult.java
hotography/Rational.java
hotography/Size.java
b25c0efad2a2b4439f764776f5782f06542c67d7 04-Jul-2013 Mathias Agopian <mathias@google.com> be more robust with handling unknown sensors

- add support for new sensors (post 4.3)
- don't crash when encountering an unknown sensor type
- clean-up

Bug: 9683153
Change-Id: Iecd883e8a7d0297be1bd2bd4f00c5cc3ffcbccfe
ensor.java
b8b77bf59ed377d6a9bcd80b8dbe4e146d5fddd3 29-Jun-2013 Zhijun He <zhijunhe@google.com> Correct request template value for record and still

they should match the request template values defined in camera3.h.

Bug 9213377

Change-Id: Ib24aa33a0ed59aff14b115c5d213ac287ea0d948
hotography/CameraDevice.java
70725500dcf3b666b43d50563d64705aab58d2d3 25-Jun-2013 Igor Murashkin <iam@google.com> Initial camera device implementation

* Working streaming preview requests only
* Almost everything else returns empty objects that don't do anything

Bug: 9213377
Change-Id: Ie6f02a7c0952b0f5ebc41905425b15cae221f7d3
CameraService.aidl
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/CameraMetadata.aidl
hotography/CameraMetadata.java
hotography/CameraProperties.java
hotography/CaptureRequest.aidl
hotography/CaptureRequest.java
hotography/CaptureResult.java
hotography/ICameraDeviceCallbacks.aidl
hotography/ICameraDeviceUser.aidl
hotography/impl/CameraDevice.java
hotography/impl/package.html
hotography/utils/CameraBinderDecorator.java
hotography/utils/package.html
e363fbb2647aeb5ef4c87160d84c6b9ae8d45598 25-Jun-2013 Igor Murashkin <iam@google.com> Partial CameraManager implementation

Bug: 9213377
Change-Id: I8f89fb94d7081a71b38e5cd0ad89116d219b4c33
hotography/CameraAccessException.java
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/utils/CameraBinderDecorator.java
hotography/utils/CameraRuntimeException.java
hotography/utils/Decorator.java
hotography/utils/UncheckedThrow.java
a858308ed2c950fe800abeefcb845b9c3197a2f3 25-Jun-2013 Igor Murashkin <iam@google.com> Revert "Partial CameraManager implementation"

This reverts commit e473f7d8f96b5682141522378b761913192d8114.

Change-Id: I23e92ca2def0ebf507f6c782442a4698745bc926
hotography/CameraAccessException.java
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/utils/CameraBinderDecorator.java
hotography/utils/CameraRuntimeException.java
hotography/utils/Decorator.java
hotography/utils/UncheckedThrow.java
e473f7d8f96b5682141522378b761913192d8114 11-Jun-2013 Igor Murashkin <iam@google.com> Partial CameraManager implementation

Bug: 9213377
Change-Id: I29864a5d1f7971ed589d1ffaddeefbb703e34018
hotography/CameraAccessException.java
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/utils/CameraBinderDecorator.java
hotography/utils/CameraRuntimeException.java
hotography/utils/Decorator.java
hotography/utils/UncheckedThrow.java
48d0d1886731ff19ed3fb47a5997be5df0d1bba8 11-Jun-2013 Craig Mautner <cmautner@google.com> Add activity token to display system.

First step in adding activity specific information to displays.
Replace CompatibilityInfoHolder with DisplayAdjustmentsHolder that
holds an activity token in addition to the CompatibilityInfo.

Change-Id: Ie113cd8dd9c62e0b5311204e039a4829096bea68
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
a506a6ec94863a35acca9feb165db76ddac3892c 04-Jun-2013 Jeff Brown <jeffbrown@google.com> Add an API to allow for creating private virtual displays.

This change enables applications to create a private virtual
display that renders its content to a surface of its own creation.
The display is private in the sense that only the application
that owns the display is allowed to place windows upon it.
Mirroring and blanking is also disabled for these displays.

Bug: 9192512
Change-Id: I852ea07f0c7df1d244e354e3daca3a6960285ca0
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/VirtualDisplay.java
e0dae4b493d3547b223f498a9f3e5aa2ddd856f6 15-Jun-2013 Chong Zhang <chz@google.com> Merge "MediaRouter: grey out wifi displays that's in use"
d2e2cc99d0fe59fdd7c02d78ceb53408191c5b6f 14-Jun-2013 Scott Main <smain@google.com> am 695be87d: am 92053f8b: revise docs for new sensor types. fix markup error causing tons of code font

* commit '695be87d6e87fada03b548d05f82e004d0cdb240':
revise docs for new sensor types. fix markup error causing tons of code font
ab87a63997a7dc771acfd0dcd7efda990dc3d5fe 11-Jun-2013 Chong Zhang <chz@google.com> MediaRouter: grey out wifi displays that's in use

bug 9229799

Change-Id: I9f5fd2107f60c492d42c74e575e6483838a51267
isplay/WifiDisplay.java
isplay/WifiDisplayStatus.java
92053f8b28ce0d035d292fa73622200990682511 14-Jun-2013 Scott Main <smain@google.com> revise docs for new sensor types. fix markup error causing tons of code font

Change-Id: I7635bbc44e03b50faeddf5c5fe50f7f47e2cde35
ensor.java
ensorEvent.java
a1b02dbb6edf0644720716d3f271b1ee091aa2d6 12-Jun-2013 Igor Murashkin <iam@google.com> Fix build break due to javadoc linking error

Change-Id: I9da1cb03afef25c11844ec863200f7b5b009e77a
amera.java
cf88be6dc843d972c98ff100430b16aa22c60516 11-Jun-2013 Igor Murashkin <iam@google.com> Merge "camera: Add Java binder proxies for some existing binder interfaces"
4491d684f47fcf1e05652f910587a930be8a4135 01-Jun-2013 Igor Murashkin <iam@google.com> camera: Add Java binder proxies for some existing binder interfaces

Note that anything not in the AIDL interfaces, will NOT be magically
compatible if you just add it there. It probably requires a change in
frameworks/av/camera as well.

Bug: 9213377
Change-Id: I91d3efb755ed2e3ace139f83573f86efdccccd06
ameraInfo.aidl
ameraInfo.java
Camera.aidl
CameraClient.aidl
CameraService.aidl
CameraServiceListener.aidl
ProCameraCallbacks.aidl
ProCameraUser.aidl
b2675542c2f414154125b534767ae0903fba581e 12-Dec-2012 Eino-Ville Talvala <etalvala@google.com> Initial commit of new camera API, mostly just the interface.

- New core API classes in android.hardware.photography
- android.media.Image and android.media.ImageReader classes for
application access to direct hardware image buffers.
- Additions to android.graphics.ImageFormat to describe new image
types needed by new camera API.
- Some documentation included; very little implementation.

Bug: 9111736
Change-Id: I0680f35944d1cb8845b7dc0c67edc8c0f0864573
hotography/CameraAccessException.java
hotography/CameraDevice.java
hotography/CameraManager.java
hotography/CameraMetadata.java
hotography/CameraProperties.java
hotography/CaptureRequest.java
hotography/CaptureResult.java
hotography/Size.java
hotography/package.html
21f603996ed83c7a9a6c430582e8a5af5ac13c6c 05-Jun-2013 Chong Zhang <chz@google.com> wifi-display: set display to unavailable if p2p device is unavailable

Bug 9229799

Change-Id: I680015943f40cded45645dfa0eae42bbce5ce9a3
isplay/WifiDisplay.java
436a1c651a21551ddcd0384c628210116c9a2622 05-Jun-2013 Scott Main <smain@google.com> am 63fcfd5a: am 06543a45: small cleanup of trigger event javadoc

* commit '63fcfd5a52090542e5da601336f712ee64e61d8a':
small cleanup of trigger event javadoc
06543a4559b34abf91e34cb44438683e77e7db36 05-Jun-2013 Scott Main <smain@google.com> small cleanup of trigger event javadoc

Change-Id: Ib8a0fc0a7ddac6259cc1bb9e8701b0d570a101c6
riggerEventListener.java
da861962875287bec87c802e766d6c018e7c5352 15-May-2013 Zhentao Sun <robinvane@google.com> am 0412f5b1: am 5f8afdd8: Merge "Passed the correct gps geofence availability value to client." into jb-mr2-dev

* commit '0412f5b1165d7ff331162dcd1fc29d3ea0fc7223':
Passed the correct gps geofence availability value to client.
b8061be81c7a7cf87f4edc7ea48a8fd464363a61 14-May-2013 Zhentao Sun <robinvane@google.com> Passed the correct gps geofence availability value to client.

Fixed b/8967427.

Change-Id: If205b963533f096c27985476a5d487a2d090ccf8
ocation/GeofenceHardwareImpl.java
3b0929f2a4238cafcf76acd63790cfab8674865b 14-May-2013 kmccormick <kmccormick@google.com> am cca053a3: am 3722947f: Merge "Doc update: manual merge of changes from jb-mr1.1" into jb-mr2-dev

* commit 'cca053a389bf913f23796e1095db9e1ae74bf2f0':
Doc update: manual merge of changes from jb-mr1.1
3722947f2f22b9b56a7479bd29af2680e608f674 14-May-2013 kmccormick <kmccormick@google.com> Merge "Doc update: manual merge of changes from jb-mr1.1" into jb-mr2-dev
2ae118d1077bcec1c407b6ecb9acf14e2152fe93 07-May-2013 Zhentao Sun <robinvane@google.com> am e0dda90b: am aa64548d: Merge "Fixed unreleased wake lock isues and NPE." into jb-mr2-dev

* commit 'e0dda90bde531b12dda8ce0909040b070c3b2b84':
Fixed unreleased wake lock isues and NPE.
cfa496f7cdc52711e9ad7521224f67d1aaee002c 06-May-2013 Zhentao Sun <robinvane@google.com> Fixed unreleased wake lock isues and NPE.

Fixed b/8834502. Wake lock might not be released when the callback is null.
NPE is thrown when the callback is null in some cases too.

Change-Id: I27d3af810669e446cfb57aba8715c80cba3e15e7
ocation/GeofenceHardwareImpl.java
752625c8448388e0f1c33cf3e3bf082c57b8f575 30-Apr-2013 Zhentao Sun <robinvane@google.com> am 460778f1: am 906e57d8: Merge "Fixed race conditions in GeofenceHardwareImpl." into jb-mr2-dev

* commit '460778f10475bb9fa02cbfe8af7faef38807435c':
Fixed race conditions in GeofenceHardwareImpl.
5d555a7b984c214882826f46f0b0db6b067743ec 25-Apr-2013 kmccormick <kmccormick@google.com> Doc update: manual merge of changes from jb-mr1.1

Change-Id: I9f738f62c5e147c4bacacd674ed15a18b089f860
ensorEvent.java
f8f085c51b5f8b180ad964d0385b34f8fa97cd32 26-Apr-2013 Zhentao Sun <robinvane@google.com> Fixed race conditions in GeofenceHardwareImpl.

Fixed b/8725226
1. Check if a geofence is registered before calling removeGeofence,
pauseGeofence and resumeGeofence
2. Moved add/remove operation of mGeofences from handler thread to
binder thread to fix potential race conditions by REMOVE_GEOFENCE.

Change-Id: I1c68a49ac4a08324c13702ba9013d2adf031aed9
ocation/GeofenceHardwareImpl.java
1345bf762bea240c9f38b29ced89962dbb3877ec 19-Apr-2013 Jeff Brown <jeffbrown@google.com> am 31ae3908: am 8adf5d2b: Merge "Undeprecate old UsbDeviceConnection methods." into jb-mr2-dev

* commit '31ae3908fb6d4eccc04920ddaff557b76110fe30':
Undeprecate old UsbDeviceConnection methods.
e783d99038721eb42886840f707a53a43d4e39f4 19-Apr-2013 Jeff Brown <jeffbrown@google.com> Undeprecate old UsbDeviceConnection methods.

Per api review, retain the overloads that do not accept a
buffer start offset.

Bug: 8656781
Change-Id: Ie00aca7d3a4708700c5ddf60e3309e609788a67f
sb/UsbDeviceConnection.java
2661bbd2196dd7aa3b07488943344b5d865e42ef 19-Apr-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Camera: Add hidden camera preview to renderscript allocation API"
176c245cefaf08f33043e9b67cb787efeb6ad662 18-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> Merge "Hardware geofence API changes." into jb-mr2-dev
da6508954a492f3dd4397e70e4fa08ee54bd2741 17-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> Hardware geofence API changes.

b/8631678

1.GeofenceRequest object created.
2.MonitorState moved to a new callback
3.getTypeAndStatus separated to 2 calls.
4.Binder death implemented
5.geofenceChange callback name changed.
6.Parameters rearranged in some calls.

Change-Id: I8fe9621186aeb49efeb0eef1821a2556afe03cfc
ocation/GeofenceHardware.java
ocation/GeofenceHardwareCallback.java
ocation/GeofenceHardwareImpl.java
ocation/GeofenceHardwareMonitorCallback.java
ocation/GeofenceHardwareRequest.java
ocation/GeofenceHardwareService.java
ocation/IGeofenceHardware.aidl
ocation/IGeofenceHardwareCallback.aidl
ocation/IGeofenceHardwareMonitorCallback.aidl
7005b67c127d229017840925d2bc1bd84c43aaf5 03-Apr-2013 Eino-Ville Talvala <etalvala@google.com> Camera: Add hidden camera preview to renderscript allocation API

- Camera.createPreviewAllocation() creates YUV allocations for use as
a preview buffer destination.

- Camera.setPreviewCallbackAllocation() sets such an allocation as the
target for preview data from camera.

Bug: 8563840
Change-Id: Ie42033976fed825d396550bbc033d434c8206b6b
amera.java
edb5242355023c6f16d46be32bdfef8471f88890 16-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> Fix wrong index value.

Rotation vector was at the wrong index value.

b/8165631

Change-Id: I50662befabf80393965c94a0335359019b98eb85
ensor.java
2e90089766c047687662d402819018b308e83d15 11-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> Fix race condition and disable call.

1. A dispatch event can happen as soon you call enabled,
and we won't be ready to receive it. Also add error checks
and not crash if such a thing happens.

2. Java layer shouldn't call disable on the native layer
for trigger sensors. Native layer will clean up on its own.

b/8165631

Change-Id: Icbe76bd1f50632c0bcb0b3b04975b2c2f20ff36b
ensorManager.java
ystemSensorManager.java
6d0c1d78f121d4f1b72973740e8b120c7def1dc0 28-Mar-2013 Jaikumar Ganesh <jaikumar@google.com> Sensor values changes.

1. Remove Sensor Event Pool.
2. Allocate fixed array values for each Sensor added.
- Needed for backward compatibility.
3. Use SDK checks for backward compatibility for
rotation vector.

b/8165631

Change-Id: I2d2cf10d3460478ed7af8e6188343f4bb033503c
ensor.java
ensorEvent.java
ystemSensorManager.java
9a8df4dcf9f83c1cf0cd8dedeb51d1ff8a52a2b5 13-Feb-2013 Jaikumar Ganesh <jaikumar@google.com> Add new sensor types.

1. Add uncalibrated gyros and magnetic field sensor.
2. Change max number of events from 3 to 16.
3. Add new APIs for trigger sensors.

Change-Id: Ifac5c0024c8e5f88b721e5cd97ff26afaaa36717
ensor.java
ensorEvent.java
ensorManager.java
ystemSensorManager.java
riggerEvent.java
riggerEventListener.java
8ce470dd4ba0608abb6b5eae117cefca927af96b 03-Apr-2013 Jaikumar Ganesh <jaikumar@google.com> GPS Hardware geofencing.

Add support for doing geofencing in hardware.

Change-Id: I6d5015190e8d84e1f4beb1010ed977a71c1622d0
ocation/GeofenceHardware.java
ocation/GeofenceHardwareCallback.java
ocation/GeofenceHardwareImpl.java
ocation/GeofenceHardwareService.java
ocation/IGeofenceHardware.aidl
ocation/IGeofenceHardwareCallback.aidl
326e8bf8264b8b89bc3deb1faa0c98a79ca7cac1 29-Mar-2013 kmccormick <kmccormick@google.com> am 84bba952: am 297409fe: am 3abd5a00: am ef47a8c4: am 6d9ff503: Merge "Doc update: clarify rules for rate param" into jb-mr1.1-docs

* commit '84bba9528c5d3baf22656746255b74e72b4555ff':
Doc update: clarify rules for rate param
84bba9528c5d3baf22656746255b74e72b4555ff 29-Mar-2013 kmccormick <kmccormick@google.com> am 297409fe: am 3abd5a00: am ef47a8c4: am 6d9ff503: Merge "Doc update: clarify rules for rate param" into jb-mr1.1-docs

* commit '297409fefcfb2704162536562db9395903476b44':
Doc update: clarify rules for rate param
a230b3cb96f8c73ab8703fbe0773fa02155369cd 29-Mar-2013 kmccormick <kmccormick@google.com> Doc update: clarify rules for rate param

"Bug: 5581113"

Change-Id: Ic87f1c331fba2b08de295b2d77832739bf823500
ensorManager.java
b162617143519b36ac4d5baec9f650a29adec571 28-Mar-2013 Ying Wang <wangying@google.com> Fix doc build.

Change-Id: I479df06f2aed33bf29bb8d90be2339a80248beaa
sb/UsbDeviceConnection.java
6c81a93ef3c9d949b6f0b3e192feafebc96a5d91 28-Mar-2013 Jeff Brown <jeffbrown@google.com> Support specifying buffer start offset for USB requests.

Deprecated existing API which only supported passing buffer
and length in favor of a new one that also supports passing
the start.

Being able to pass a start index is very important because
the kernel imposes size limits on how much data can be transferred
at a time so we often need to transmit large buffers in chunks.

Change-Id: I3484b5e68f1ece61d4645ea04be8ee6a3b79169d
sb/UsbDeviceConnection.java
1aab1dbca5cf7386797ce609c768249247233186 13-Mar-2013 Jaikumar Ganesh <jaikumar@google.com> Revert "Add new sensor types."

This reverts commit bc03a348d78326dee779a8ecc325799c9fceac98.
ensor.java
ensorEvent.java
ensorManager.java
ystemSensorManager.java
riggerEvent.java
riggerEventListener.java
83c9297139996d15d37627966f28da87e0f1f489 13-Mar-2013 Jaikumar Ganesh <jaikumar@google.com> Revert "Remove spurious @Override."

This reverts commit 6e544fd4ca82a3f415c4cf6ca70eedea5112015e.
riggerEventListener.java
47337efd634c25a3919ed2e8db1acff2c23e6874 13-Mar-2013 Jaikumar Ganesh <jaikumar@google.com> Revert "Add a minimum size for the event pools."

This reverts commit c0ce7eeb481540e24bc45f52e604df923c507043.
ystemSensorManager.java
c0ce7eeb481540e24bc45f52e604df923c507043 13-Mar-2013 Justin Koh <justinkoh@google.com> Add a minimum size for the event pools.

Add a minimum size for the event pools for devices which don't have sensors.
Otherwise the system server crash loops on boot.

Change-Id: Ic51c6fc26c8779d9f435f358d4274148a2ddbfb3
ystemSensorManager.java
6e544fd4ca82a3f415c4cf6ca70eedea5112015e 13-Mar-2013 Jaikumar Ganesh <jaikumar@google.com> Remove spurious @Override.

Change-Id: Idd468be5c05bcdf397c6ba02a902c4ef7719fca8
riggerEventListener.java
bc03a348d78326dee779a8ecc325799c9fceac98 13-Feb-2013 Jaikumar Ganesh <jaikumar@google.com> Add new sensor types.

1. Add uncalibrated gyros and magnetic field sensor.
2. Change max number of events from 3 to 16.
3. Add new APIs for trigger sensors.

Change-Id: I1957d723de2b65c31dadaee7386fd8d51ea2f7e5
ensor.java
ensorEvent.java
ensorManager.java
ystemSensorManager.java
riggerEvent.java
riggerEventListener.java
788717ca599c714d58b2cb5deea1d37b4a711c07 16-Feb-2013 Eino-Ville Talvala <etalvala@google.com> Camera and MediaRecorder: Support AppOps

- Allow media processes to update AppOps state
- Pass package name to media services

Bug: 8181262
Change-Id: I115d39f0b306cb9eb7cd3d3e663c680b7322fd3f
amera.java
ed77dce854ee6741ef9b276f642cdc79c981298f 07-Feb-2013 Mathias Agopian <mathias@google.com> Merge "rework SystemSensorManager.java"
33c239f74816449979456e8535b8e058057373d7 06-Feb-2013 Mathias Agopian <mathias@google.com> Merge "allow the framework to access a Sensor's handle"
7f84c065fa1615ee9afb5c229ec9b9319ab88920 05-Feb-2013 Mathias Agopian <mathias@google.com> allow the framework to access a Sensor's handle

this is needed in another CL to fix an issue where
sensors power usage is always reported as 0.

Change-Id: Ie496b98bf4b7e69911bdc99bee14cc924e1d71e8
ensor.java
db772d813492517dce2bd7e6e9fbc88e42b30c02 01-Feb-2013 Mathias Agopian <mathias@google.com> rework SystemSensorManager.java

- it doesn't need a dedicated thread to pull events out
- events are now sent directly to the proper looper by
the sensorservice

this simplifies things a lot.

Change-Id: Ifa32fed3eff9007a2ee03aaaa837412cb4c15e52
ensorManager.java
ystemSensorManager.java
923bd98f67d36cbafa58941fce5952fafd09de4b 02-Feb-2013 Benoit Goby <benoit@android.com> Merge "UsbDebuggingManager: Add interface to clear secure adb keys"
f265ea9d8307282ff1da3915978625a94fc2859e 01-Feb-2013 Dianne Hackborn <hackbod@google.com> App ops: vibration, neighboring cells, dialing, etc.

Improve handling of vibration op, so that apps are
better blamed (there is now a hidden vibrator API that
supplies the app to blame, and the system now uses this
when vibrating on behalf of an app).

Add operation for retrieving neighboring cell information.

Add a new op for calling a phone number. This required
plumbing information about the launching package name through
the activity manager, which required changing the internal
startActivity class, which required hitting a ton of code that
uses those internal APIs.

Change-Id: I3f8015634fdb296558f07fe654fb8d53e5c94d07
nput/InputManager.java
8f124842dd16125062f048257889c85380879b68 31-Jan-2013 Jeff Brown <jeffbrown@google.com> Avoid redundant store into array list.

Prevent possible NPE in case of a race condition
while fetching input devices by descriptor.

Change-Id: I68d0738386c6723d943e595f829981b0890c2b3a
nput/InputManager.java
cd7a17c645761ac0b64c75346b159dd30cbcb01c 22-Dec-2012 Benoit Goby <benoit@android.com> UsbDebuggingManager: Add interface to clear secure adb keys

This is called from Settings that has a button to clear secure
adb public keys installed on the device.

Change-Id: I63ef499c049766ef13ea6cb0594ed6719f35e5f3
sb/IUsbManager.aidl
57b59e025bc10056daf42cd741b626843ff344f5 14-Jan-2013 Scott Kennedy <skennedy@google.com> am aebeea4c: am 5d6d6aab: am 8e45679a: am 026f9191: am 08342698: Merge "docs: Fix a bunch of issues" into jb-mr1-dev

* commit 'aebeea4cf39acae833b1b7f27a4c08d3b55dee37':
docs: Fix a bunch of issues
aebeea4cf39acae833b1b7f27a4c08d3b55dee37 14-Jan-2013 Scott Kennedy <skennedy@google.com> am 5d6d6aab: am 8e45679a: am 026f9191: am 08342698: Merge "docs: Fix a bunch of issues" into jb-mr1-dev

* commit '5d6d6aab255aa17fde979d954c839402837b4243':
docs: Fix a bunch of issues
026f91915f2ad710b93284b9a604d3c39161b2ed 14-Jan-2013 Scott Kennedy <skennedy@google.com> am 08342698: Merge "docs: Fix a bunch of issues" into jb-mr1-dev

* commit '083426980dbe6607a0cfc8b4ec5944d5b414ecbe':
docs: Fix a bunch of issues
7ed189e457b16c06b0425bd28aeeb1df5c8ff5b8 12-Jan-2013 Scott Kennedy <skennedy@google.com> docs: Fix a bunch of issues

External tracker 42609
External tracker 42607
External tracker 42604
External tracker 42600
External tracker 42574
External tracker 42450
External tracker 41050
External tracker 40995
External tracker 40970
External tracker 40935
External tracker 40507
External tracker 40481
External tracker 40435
External tracker 40406
External tracker 40297
External tracker 40281
External tracker 39978
External tracker 39929
External tracker 39803
External tracker 39715
External tracker 39441

Change-Id: If4215cef850ba8e4e8df356a68192566806e7914
ensorEventListener.java
f4c50a87cf6c7fc15c383e43c95ccd53e9b8259f 16-Dec-2012 Marco Nelissen <marcone@google.com> am 50c78219: am 01f42639: Merge "fix typo in docs"

* commit '50c782190d282b76b7d961cf7f9a9e3f0db735ad':
fix typo in docs
50c782190d282b76b7d961cf7f9a9e3f0db735ad 15-Dec-2012 Marco Nelissen <marcone@google.com> am 01f42639: Merge "fix typo in docs"

* commit '01f42639f21ec98feb5e5d458632a1a1005b17e8':
fix typo in docs
ee88bc8ab90696a9e479cf185ec2b8c2be0b7258 06-Dec-2012 Glenn Kasten <gkasten@google.com> Merge "Document that ByteBuffer position not updated"
4a68e3c26dd2512c319071dc20074baa6e7d171f 05-Dec-2012 Hai Guo <deliberatekids@gmail.com> fix typo in docs

description of 'android/hardware/Camera.Parameters.html#
setPreviewFpsRange(int, int)' not right

Change-Id: Ic83c0f404710a0125138df1e2b7663994301aee7
amera.java
575ca85c147f1521480ea98aca13aa3b1ec38884 02-May-2012 Robin Cutshaw <robin.cutshaw@gmail.com> Added missing USB device descriptor fields needed for intent filters

The UsbDevice object is missing the ManufacturerName, ProductName, and
SerialNumber fields. These are needed by intent filters to further
qualify a USB device that is plugged in while in host mode. These
fields have been added in the jni UsbHostManager implementation and
propagated through UsbHostManager and UsbDevice implementations.
The UsbSettingsManager implementation has been modified to allow
manufacturer-name, product-name, and serial-number tags in intents.

File changes:
modified: api/current.txt
modified: core/java/android/hardware/usb/UsbDevice.java
modified: services/java/com/android/server/usb/UsbHostManager.java
modified: services/java/com/android/server/usb/UsbSettingsManager.java
modified: services/jni/com_android_server_UsbHostManager.cpp

Change-Id: I386884715d1b732b06a63feb77790be6b59b6fe6
Signed-off-by: Robin Cutshaw <robin.cutshaw@gmail.com>
sb/UsbDevice.java
50acd73173e5ca68db0a4cc01e75a2faef86b2fb 13-Nov-2012 Craig Mautner <cmautner@google.com> am 67a3fb6f: am c10914ca: Merge "Support Wifi display devices that rename themselves." into jb-mr1.1-dev

* commit '67a3fb6f3b787f0151c7f76f0c19dd1c8b80ae4e':
Support Wifi display devices that rename themselves.
cfde15d709a3466b9d503f51819b7d28e718b482 08-Nov-2012 Glenn Kasten <gkasten@google.com> Document that ByteBuffer position not updated

This behavior is perhaps unfortunate but could cause compatibility
problems if it were changed at this point.

Bug: 7479782
Change-Id: I1ea0f1c8d5277c509cbea199f3c24a1563bcb2d0
erialPort.java
f4334f63c5162035ead3b44131c48015dfc6be58 08-Nov-2012 Eino-Ville Talvala <etalvala@google.com> am 9671e6e1: am e980adfd: am 4a1b6e42: Merge "Camera: Document new video snapshot picture size behavior." into jb-mr1-dev

* commit '9671e6e116bbb8a82784457382cab3f90289e31b':
Camera: Document new video snapshot picture size behavior.
74da109102864f19b3dcdb30cd1d92c46fb12f2f 08-Nov-2012 Jeff Brown <jeffbrown@google.com> Support Wifi display devices that rename themselves.

Some Wifi display devices like to rename themselves after a
connection completes (or at other times). Make sure to update
the name of the display when we detect that it changed in
our scan results.

This problem is somewhat complicated by the fact that we remember
the display name persistently, so we need to update our list
of remembered displays too.

Improve the state machine to avoid redundant attempts to
disconnect or cancel connection.

Bug: 7478895
Change-Id: I35a9e2c6a8deadbe892dacd5e3b4a5a2b12d6cf0
isplay/WifiDisplay.java
58ed5d748c0b9b64845975ef5844ad313de7c3f6 07-Nov-2012 Kenny Root <kroot@google.com> am 768d9e1a: Merge "Correct executable bit for source files"

* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
Correct executable bit for source files
3a084af2e90849aaa8beb3a610189e3399c63ea0 07-Nov-2012 Kenny Root <kroot@google.com> Correct executable bit for source files

Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
nput/InputManager.java
1cab31a45d9455a7b5a25c0deb447c455be4a178 05-Nov-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Document new video snapshot picture size behavior.

On some devices, video snapshot may return pictures that are smaller
than requested. Make that clear.

Bug: 7475089
Change-Id: I0bd759072a7f954e517f3d09cb676fb23f863912
amera.java
ecd580d7dabfce40690a0e820087e169e7c30865 30-Oct-2012 Mathias Agopian <mathias@google.com> am fdd714f8: am 0da554ac: Merge "fix an overflow in the orientation sensonr calculations" into jb-mr1-dev

* commit 'fdd714f8d52a7ab2b96839b7cfe8ed917417383b':
fix an overflow in the orientation sensonr calculations
278a966e80dec29219dfa1356bf4cef07096c913 30-Oct-2012 Mathias Agopian <mathias@google.com> fix an overflow in the orientation sensonr calculations

this would cause the TYPE_ORIENTATION sensor to report NaN after
40 to 800 hours of up-time. this problem only affects the older
and deprecated SensorListener API.

Bug: 7434842
Change-Id: Ie8593cca9c98e4907e417db4106c06151e3ee9a1
egacySensorManager.java
46a0ec73b6d4a81dd037d7beef7321f25349bf9c 29-Oct-2012 Jeff Brown <jeffbrown@google.com> am 14012e1d: am 4e0bf7c4: Merge "Add MediaRouter API to get presentation display." into jb-mr1-dev

* commit '14012e1d1b3c96048955e22d2bb73b9c63189a54':
Add MediaRouter API to get presentation display.
92130f6407dc51c58b3b941d28a6daf4e04b8d62 25-Oct-2012 Jeff Brown <jeffbrown@google.com> Add MediaRouter API to get presentation display.

This new API makes it possible for an application to ask on
which Display it should show a Presentation based on the currently
selected media route.

Also added a new API on DisplayManager to query displays that
support a certain category of uses.

Improved the documentation of the Presentation class to explain
how to choose an appropriate Display for presentation.

Bug: 7409073
Change-Id: Iab451215e570ae55f3718fc228303143c800fe51
isplay/DisplayManager.java
369852ebdea6a5843e299000c57baac89282b154 25-Oct-2012 Nick Kralevich <nnk@google.com> am 7e007ff8: Merge "Sensors could be disabled by any application"

* commit '7e007ff83738a83f43cb59ddc023a2b860367074':
Sensors could be disabled by any application
7e007ff83738a83f43cb59ddc023a2b860367074 25-Oct-2012 Nick Kralevich <nnk@google.com> Merge "Sensors could be disabled by any application"
4f8e5ce21df881796d05a1b2117dd8868570a57b 09-Oct-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Query AudioService for shutter sound enforcement.

The AudioService now tracks the shutter sound enforcement status, in
addition to the existing approach. Check with it when doing shutter
sound operations.

Bug: 7032634
Change-Id: Ief855d3a36ca5679832cf439f5638b10f70b8636
amera.java
fc3f24b4b60c10e0d3f41f70df37e11ea311cc2c 02-Oct-2012 Jeff Sharkey <jsharkey@android.com> Make USB services multi-user aware.

USB settings are now isolated per-user, since they revolve around
installed packages. User-specific settings are returned based on
calling user, or referenced by UserHandle passed to SystemUI. Each
settings Context is wrapped as a specific user, so all broadcasts are
sent correctly. Upgrades any existing USB settings to OWNER.

Physical events, like new devices, are routed to the currently active
user. Switch to using AtomicFile when persisting settings.

Bug: 7244888
Change-Id: I8a723ad3d55ac1bff99276c5f3a3f5e8f013432f
sb/IUsbManager.aidl
bc335457462a12434a9df6955de1dd693cdccac7 27-Sep-2012 Jeff Brown <jeffbrown@google.com> Allow applications to connect to known wifi displays.

Bug: 7177920
Change-Id: I9d8406e1016988e2cd267dfa52d78a829f1b385e
isplay/DisplayManager.java
isplay/IDisplayManager.aidl
487acdfb4eca3859fd688a1ff0a32fe6314b68f6 24-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Improve enableShutterSound documentation.

Bug: 7216272
Change-Id: I1b9add715c7d3671472b9f98d9b1d80823109365
amera.java
5ce25d717059c9c37618aa349314077f99ac34c7 22-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Merge "NEW_API: Add android.hardware.Camera.CameraInfo#canDisableShutterSound" into jb-mr1-dev
89d5546d7fd3a3bb19820c42e8b4527013dd6545 19-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for remembering Wifi display devices.

Add a setting to globally disable Wifi display.

Fixed a bug where the wifi display broadcast receiver
was running on the wrong thread.

Removed the wifi-display QuickSettings dialog, all functionality
has been moved to Settings.

Bug: 7178216
Bug: 7192799
Change-Id: I9796baac8245d664cf28fa147b9ed978d81d8ab9
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/WifiDisplay.java
isplay/WifiDisplayStatus.java
f7c6c5ad64c8e5d20e1806cc98b9919334c69614 19-Sep-2012 Eino-Ville Talvala <etalvala@google.com> NEW_API: Add android.hardware.Camera.CameraInfo#canDisableShutterSound

Allow applications to check if the camera shutter sound can be
disabled.

Bug: 7172643
Change-Id: I3e9184325d3676b24830cc5418ebca8dcade8697
amera.java
8df3b2b3989df44953153603681e03140fd853d6 15-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Document face detection confidence recommendations.

Bug: 7108023
Change-Id: I9de583254d127f9c1f702b7ed159a7080bcbfd25
amera.java
f353f948a5867fb43c9ee1dbec1ebc93f91655ec 13-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Merge "NEW_API: Unhide android.hardware.Camera#enableShutterSound" into jb-mr1-dev
ff5c9146b53d8429f8ee778f193582c12da0d2b3 11-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Merge "NEW_API: Unhide android.hardware.Camera.Parameters#SCENE_MODE_HDR" into jb-mr1-dev
7cfd7d5b65b725d7253295becfe02f03767c71fa 11-Sep-2012 Eino-Ville Talvala <etalvala@google.com> NEW_API: Unhide android.hardware.Camera.Parameters#SCENE_MODE_HDR

Bug: 7054970

Change-Id: I509fa18f1203022bb23cd9ef5c70cb3a3fbb8b77
amera.java
a910390b7d64fba46e7c2034f7085b04e5268cab 11-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Merge "Camera: Add SCENE_MODE_HDR." into jb-mr1-dev
af87681f48b26f38008bb04fc473e16b7306bc54 11-Sep-2012 Eino-Ville Talvala <etalvala@google.com> NEW_API: Unhide android.hardware.Camera#enableShutterSound

Change-Id: I8e7ef3e035dd261be51874f514d6be2fb8933e96
amera.java
6d7a4737643afe05034a36e6ebcd5da1085fbbdc 11-Sep-2012 Magnus Hallqvist <magnus.hallqvist@sonymobile.com> Sensors could be disabled by any application

In the SensorManager API unregisterListener any application could
unregister any sensor. This lets any application disable a sensor
which another application is using.
This fix restricts the applications to only be able to unregister
a sensor it has previously registered to.

Change-Id: Ief926dd29f480dd97626160810dff87a8d3ac8dc
ystemSensorManager.java
da2f0ea10822628875a956e4bf096066c0debe9f 10-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Add SCENE_MODE_HDR.

Change-Id: I43262e6ecd4bdd9a2ed2e94c05ad95435b32a0cd
amera.java
69fe527bea12f262bfb1a5838f40e3433ad3cb78 07-Sep-2012 Eino-Ville Talvala <etalvala@google.com> Camera: Add enableShutterSound method.

Some camera apps may wish to replace the system camera shutter sound
with their own, especially if they are taking rapid bursts of
images. Add method to allow this when possible.

Hidden for now.

Change-Id: I6520f5441d28675626fafab48c6609c589fc6f7e
amera.java
180bbc71810496e280e9993177bfeddb3ad1f558 09-Sep-2012 Jeff Brown <jeffbrown@google.com> Improve Wifi display discovery API.

Change-Id: I4d46503e5413f52da16f79bbc9c631cc5ae9c178
isplay/WifiDisplayStatus.java
e08ae388d63c4db8f9d9a7ecd634f9a51f6e91b9 08-Sep-2012 Jeff Brown <jeffbrown@google.com> Add new wifi display discovery API.

The API is quite simple. There are a few extra functions
on DisplayManager to scan, connect and disconnect from
wifi displays and get status, and a single protected
broadcast sent when the status changes.

Change-Id: Ic91dbab5ee818e790b27fa32e1a1e93788793be0
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/WifiDisplay.aidl
isplay/WifiDisplay.java
isplay/WifiDisplayStatus.aidl
isplay/WifiDisplayStatus.java
4ed8fe75e1dde1a2b9576f3862aecc5a572c56b5 31-Aug-2012 Jeff Brown <jeffbrown@google.com> More improvements to the display manager.

Added more complete support for logical displays with
support for mirroring, rotation and scaling.

Improved the overlay display adapter's touch interactions.

A big change here is that the display manager no longer relies
on a single-threaded model to maintain its synchronization
invariants. Unfortunately we had to change this so as to play
nice with the fact that the window manager wants to own
the surface flinger transaction around display and surface
manipulations. As a result, the display manager has to be able
to update displays from the context of any thread.

It would be nice to make this process more cooperative.
There are already several components competing to perform
surface flinger transactions including the window manager,
display manager, electron beam, overlay display window,
and mouse pointer. They are not manipulating the same surfaces
but they can collide with one another when they make global
changes to the displays.

Change-Id: I04f448594241f2004f6f3d1a81ccd12c566bf296
isplay/DisplayManagerGlobal.java
a492c3a7b2c18426fd0cb4d017eacbc368195dc5 24-Aug-2012 Jeff Brown <jeffbrown@google.com> Initial draft of high-level multi-display APIs.

This patch introduces the ability to create a Context that
is bound to a Display. The context gets its configuration and
metrics from that display and is able to provide a WindowManager
that is bound to the display.

To make it easier to use, we also add a new kind of Dialog
called a Presentation. Presentation takes care of setting
up the context as needed and watches for significant changes
in the display configuration. If the display is removed,
then the presentation simply dismisses itself.

Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d
isplay/DisplayManager.java
bd6e1500aedc5461e832f69e76341bff0e55fa2b 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Add initial multi-display support.

Split the DisplayManager into two parts. One part is bound
to a Context and takes care of Display compatibility and
caching Display objects on behalf of the Context. The other
part is global and takes care of communicating with the
DisplayManagerService, handling callbacks, and caching
DisplayInfo objects on behalf of the process.

Implemented support for enumerating Displays and getting
callbacks when displays are added, removed or changed.

Elaborated the roles of DisplayManagerService, DisplayAdapter,
and DisplayDevice. We now support having multiple display
adapters registered, each of which can register multiple display
devices and configure them dynamically.

Added an OverlayDisplayAdapter which is used to simulate
secondary displays by means of overlay windows. Different
configurations of overlays can be selected using a new
setting in the Developer Settings panel. The overlays can
be repositioned and resized by the user for convenience.

At the moment, all displays are mirrors of display 0 and
no display transformations are applied. This will be improved
in future patches.

Refactored the way that the window manager creates its threads.
The OverlayDisplayAdapter needs to be able to use hardware
acceleration so it must share the same UI thread as the Keyguard
and window manager policy. We now handle this explicitly as
part of starting up the system server. This puts us in a
better position to consider how we might want to share (or not
share) Loopers among components.

Overlay displays are disabled when in safe mode or in only-core
mode to reduce the number of dependencies started in these modes.

Change-Id: Ic2a661d5448dde01b095ab150697cb6791d69bb5
isplay/DisplayManager.java
isplay/DisplayManagerGlobal.java
isplay/IDisplayManager.aidl
isplay/IDisplayManagerCallback.aidl
8d8646471cfef1f31b4d2211d9b33c4071776ae4 28-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 1112a376: am 416362e6: Merge "Change StringTokenizer to TextUtils.StringSplitter"

* commit '1112a376e81af8ef4c2b661f5bda443596ba37da':
Change StringTokenizer to TextUtils.StringSplitter
1112a376e81af8ef4c2b661f5bda443596ba37da 28-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 416362e6: Merge "Change StringTokenizer to TextUtils.StringSplitter"

* commit '416362e6d8c8d0a34e09704138688f75aa810c9b':
Change StringTokenizer to TextUtils.StringSplitter
b47bbc3d80badb94229bc4ce7a2d5006faa9ef15 23-Aug-2012 Craig Mautner <cmautner@google.com> Clean up displayId and layerStack usage.

Make better use of Display object by saving it in DisplayContent.
Only use layerStack when referring to Surfaces. Get displayId from
default Display or default DisplayContent. Remove warnings.

Fixes bug 7038151.

Change-Id: Ie493f0f5e755dc9b91ee969ff561c2a098283ead
isplay/DisplayManager.java
4e68bd420b6cfdbeadb5e69aa6448665b2da762b 26-Apr-2012 Benoit Goby <benoit@android.com> Add UsbDebuggingManager and UsbDebuggingActivity

The UsbDebuggingManager listens to adbd requests and displays a dialog
when the public key authentification fails, for the user to confirm if it
wants to allow USB debugging from the attached host. If the user chooses
to always allow USB debugging, the UsbDebuggingManager writes the public
key to adbd's config file so that the public key authenfication succeeds
next time.

Change-Id: I115c828331d8e326c380844ee33915d5dff22260
sb/IUsbManager.aidl
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
isplay/DisplayManager.java
848c2dc93b6795e171f3dd6f64ea0be65e2762ca 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Stub out display manager service implementation.

Reverting to the previous stub as the display adapter registration
and the logical to physical mapping is not at all what we are going
to need moving forward.

Fixed up the service initialization order so that the display manager
service has a context from the start.

Change-Id: I717f2f1099c7a77180ef207c371ec8329258850a
isplay/DisplayManager.java
6a2ef12753e5fa199463e36e23c6af9df0666093 11-Aug-2012 Jeff Brown <jeffbrown@google.com> Add a toString() method to Sensor for debugging purposes.

Also made the class final, since it cannot be instantiated
by applications.

Change-Id: I540ad56d19debd99426d37b9b63c163827b4c2fc
ensor.java
0a12018e4cd6eaaeaec795f6b2af4499fe3a8bcd 09-Feb-2011 Ali Utku Selen <aliutku.selen@sonyericsson.com> Change StringTokenizer to TextUtils.StringSplitter

Replacing StringTokenizer to TextUtils.StringSplitter,
since TextUtils.StringSplitter is more suitable for basic splitting tasks.
Also increased initial values for HashMap and StringBuilders to avoid
unnecessary buffer enlargement operations. This improves the performance
of these operations.

Change-Id: If9a5b68e6596ba9a6d29597876b6164ef34b57ac
amera.java
0099d67d6824ea7631a487ad4a91a18944cd3324 18-Jul-2012 mike wakerly <mikey@google.com> Fix typo in UsbManager javadoc.

Closes http://b.android.com/32863

Change-Id: I8fc03ee70209413f279f606b393e79c12ee9c0d2
sb/UsbManager.java
a3665ba95d806fcb6780d29d49bd0f1032e8bc86 10-Aug-2012 mike wakerly <mikey@google.com> UsbRequest: set ByteBuffer.position() upon success.

Also clears allocated buffer before copying.

Closes http://b.android.com/28023

Bug: 5385026
Bug: 6766413
Change-Id: Icf2c1d45db4fb2a9bd1fcfdb29aa7308034faaf0
sb/UsbRequest.java
1567a4341bf642e17432a079d3de3381c7a93340 18-Jul-2012 mike wakerly <mikey@google.com> Fix typo in UsbManager javadoc.

Closes http://b.android.com/32863

Change-Id: I8fc03ee70209413f279f606b393e79c12ee9c0d2
sb/UsbManager.java
aa871b0ff0fb38112a1693e80e1146cecc5db21d 26-Jul-2012 Jeff Brown <jeffbrown@google.com> Fix build.

Change-Id: Ife2fd58447205407e41ce3d27e28a705b744bede
isplay/DisplayManager.java
fa25bf5382467b1018bd9af7f1cb30a23d7d59f7 24-Jul-2012 Jeff Brown <jeffbrown@google.com> Add display manager skeleton.

The purpose of this change is to remove direct reliance on
SurfaceFlinger for describing the size and characteristics of
displays.

This patch also starts to make a distinction between logical displays
and physical display devices. Currently, the window manager owns
the concept of a logical display whereas the new display
manager owns the concept of a physical display device.

Change-Id: I7e0761f83f033be6c06fd1041280c21500bcabc0
isplay/DisplayManager.java
isplay/IDisplayManager.aidl
9be0105fbc56eb1b1813bb7c5fe258a144867a43 22-Jun-2012 Scott Main <smain@google.com> docs: fix several links

Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
sb/package.html
ca367b717806c4c69190641c3361d3520a44ad08 31-May-2012 Eino-Ville Talvala <etalvala@google.com> Fix race condition with preview callback.

Bug: 6301018
Change-Id: I19b8bc03ef3983d69e1e986c0f1a8154af5ab080
amera.java
e9c6c9ccfde7a642a4c0554e2d066f3dbbea98ce 29-May-2012 Wu-cheng Li <wuchengli@google.com> Fix startFaceDetection will fail after taking a picture.

bug:6568961
Change-Id: I353c24496ec00805ed46ba90457729dfb5b2c337
amera.java
cf39bdf3dff5e29447f6ce734b76dc3490385e58 18-May-2012 Jeff Brown <jeffbrown@google.com> Add support for switching between multiple keyboard layouts.

Also show a notification when an external keyboard is connected
and does not have a keyboard layout selected yet.

Bug: 6405203
Change-Id: Id0ac6d83b3b381f8a236b2244a04c9acb203db3c
nput/IInputManager.aidl
nput/InputManager.java
d9fec5d317c09da6bcc7a54df4e0190a76d21eae 18-May-2012 Jeff Brown <jeffbrown@google.com> Add support for grouping keyboard layouts by collection.

Bug: 6405203
Change-Id: Id818b27ec09928150795d594a96df186a6e39168
nput/InputManager.java
nput/KeyboardLayout.java
fb8909709979b883ff95b21db3e32666788637b4 16-May-2012 Mathias Agopian <mathias@google.com> fix SensorManager.getAngleChange() documentation

Bug: 6442517

Change-Id: I4b22540817560bdff134d2cc3274e3b39c92d3b1
ensorManager.java
2f0957607411b99810226ad38d59cf18718b86d0 11-May-2012 Jeff Brown <jeffbrown@google.com> Rename kcm attribute to keyboardLayout.

Bug: 6478076
Change-Id: I7fc0d8eb36d03a628d070f8fd6ea1e1464b1a163
nput/InputManager.java
b0dcf5ebb26e33fde3dd8fbdec58499175f51d65 04-May-2012 Wu-cheng Li <wuchengli@google.com> Merge "Avoid deadlocks when calling autoFocus from onAutoFocus callback." into jb-dev
163a3ae770c290f87347e5b413ec8ff9f128a311 03-May-2012 Eino-Ville Talvala <etalvala@google.com> Merge "Update docs for YV12 format and camera preview callbacks." into jb-dev
951516358e2841d2425f610bcd0175d9960135d2 03-May-2012 Eino-Ville Talvala <etalvala@google.com> Update docs for YV12 format and camera preview callbacks.

- Define stride for YV12 when using it for preview callbacks

- Include equations for calculating stride and start indexes of Y, U,
and V planes for YV12.

- Add more cross-references so that equations are easier to find.

Bug: 6330501
Change-Id: I85a78757ec767d08173b9fe714adb715835244b4
amera.java
f05c1d63d16e790ac78c5854bb12374f45d6118e 02-May-2012 Wu-cheng Li <wuchengli@google.com> Avoid deadlocks when calling autoFocus from onAutoFocus callback.

Applicatons may use different threads for calling autoFocus and
onAutoFocus callback.

bug:6026574

Change-Id: I114a60240e22af15ca469b591e080121367db8e2
amera.java
248ba23ad28c1f8fb69904663204df08c5818700 29-Apr-2012 James Dong <jdong@google.com> Fix a race condition in Camera API for handling focus

In the case where a previous AF completion was outstanding but before the completion
notification reached the application, the application cancelled this AF request, and
then started a new AF request. Right after the new AF request, the AF completion
notification for earlier AF request reached the application. The application
could not tell the AF completion notification was meant for the cancelled AF, but
thought the new AF was successfully completed. Subsequently, the application trid to
take a picture, which failed as a result.

The fix is to add an explicit lock in the Camera.java class to fix the race condition to
synchornize autoFocus(), cancelAutoFocus() and the callback of the pending AF
completion message.

o related-to-bug: 6026480

Change-Id: I33d244d908ac066698e792f641ba88fe228b14a9
amera.java
166b05e0ce913711d27ce1a116b3f1fd906822e4 24-Apr-2012 Mike Lockwood <lockwood@google.com> UsbService: Add support for accessory initiating USB audio support

Change-Id: I0e468f4b841de9e1ca7b75a05fc58299dbc78222
Signed-off-by: Mike Lockwood <lockwood@google.com>
sb/UsbAccessory.java
9e6d4b035d4f012d23264d3d2bc946b1ca02dba1 20-Apr-2012 Jeff Brown <jeffbrown@google.com> Lost the race.

Bug: 6373370
Change-Id: If42a3de66b1d407b06064e91ff578dc9ca5ceed8
nput/InputManager.java
e17fc7d6693ed36058a880c69332f642ad48cf18 20-Apr-2012 Wu-cheng Li <wuchengli@google.com> Merge "Improve android.hardware.Camera.setRotation javadoc."
8969ea12ca55eef75783796ba52a0120f7188095 20-Apr-2012 Wu-cheng Li <wuchengli@google.com> Improve android.hardware.Camera.setRotation javadoc.

Change-Id: If6c77044f3f4567ab0c3987fb2ddc47ae307582a
amera.java
7bc1b21a5217c3737ae82edd3ff2d901c69a51ad 18-Apr-2012 Wu-cheng Li <wuchengli@google.com> Remove new camera open API.

Applications are not resumed under the lock screen now.
This API is not needed anymore.

bug:5584464
Change-Id: I1c18efb5ba1ecd39320eb5fd252c6e1229d7b89c
amera.java
4481d9c10ceaf3b886fb5cab1d20941932af5b0f 17-Apr-2012 Jeff Brown <jeffbrown@google.com> Move legacy sensor support to a new class.

Bug: 6339552
Change-Id: I2067b754348ac76b1e1f71608031be2c80fc31d2
egacySensorManager.java
ensorManager.java
ystemSensorManager.java
25157e458d6e10b027d1ba6b78b0487156c9f57a 16-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor SensorManager to move non-API bits into a subclass.

Changed the SensorManager class so that it only contains API-related
bits including what's needed to support legacy sensors. Mostly just
moved stuff around. Making the class abstract is safe because
it does not have a visible constructor in the API.

One minor change is that the cache of sensor type to sensor lists
is now per instance of SensorManager instead of being static.
We can fix this if desired.

Another small change is that we bail out early from registerListener
if the listener has already been registered for the particular
sensor. This happened for both legacy and standard listeners.
The problem is that the ListenerDelegate maintains two lists of
sensors, one is a Map and the other is a List. Adding a sensor
twice causes one entry to be added to the Map and two entries to be
added to the List, but when the sensor is removed the next time, only
one entry is removed from the List, leaving it in an inconsistent
state.

Removed Sensor.getLegacyType() since the value it provides is only
needed in LegacyListener and we don't really save any significant
computation by caching it. Removing the field makes support for
legacy sensors a little more self-contained.

Bug: 6339552
Change-Id: I50d41ac97cf535924f2bfa2026d28547a4d00286
ensor.java
ensorManager.java
ystemSensorManager.java
90aba7caac78b407347b930cfb6ff7d6658ac90a 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add support for input devices that have vibrators."
a47425a13c19f95057df78b8bb65bb25657e8753 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Add support for input devices that have vibrators.

Added a getVibrator() method to InputDevice which returns a Vibrator
associated with that input device. Its uses the same API as the
system vibrator which makes it easy for applications to be modified
to use one or the other.

Bug: 6334179
Change-Id: Ifc7f13dbcb778670f3f1c07ccc562334e6109d2e
nput/IInputManager.aidl
nput/InputManager.java
5573ac01495f48a21496c18d2ebd66b3187e307a 13-Apr-2012 Wu-cheng Li <wuchengli@google.com> Merge "Unhide camera autofocus move callback."
af9e8d38184c6ba4d2d3eb5bde7014a66dd8a78b 13-Apr-2012 Jeff Brown <jeffbrown@google.com> Notify applications when input devices change.

This change allows the InputManager to keep track of what input
devices are registered with the system and when they change.
It needs to do this so that it can properly clear its cache of
input device properties (especially the key map!) when changes
occur.

Added new API so that applications can register listeners for
input device changes.

Fixed a minor bug in EventHub where it didn't handle EPOLLHUP
properly so it would spam the log about unsupposed epoll events
until inotify noticed that the device was gone and removed it.

Change-Id: I937d8c601f7185d4299038bce6a2934fe4fdd2b3
nput/IInputDevicesChangedListener.aidl
nput/IInputManager.aidl
nput/InputManager.java
6574539baecc8610529596554b7bca0f21b334b8 12-Apr-2012 Wu-cheng Li <wuchengli@google.com> Unhide camera autofocus move callback.

Camera autofocus move callback tells the clients when
continuous aufofocus is moving. Applications can show
autofocus animation based on this.

bug:5687212
Change-Id: I3191fd447b1e9de0ccf939eb346344f0be9bcf1a
amera.java
9f25b7fdf216c9ef0bd2322cd223eeaf0d60f77f 10-Apr-2012 Jeff Brown <jeffbrown@google.com> Request key maps from input manager service.

Instead of each application loading the KeyCharacterMap from
the file system, get them from the input manager service as
part of the InputDevice object.

Refactored InputManager to be a proper singleton instead of
having a bunch of static methods.

InputManager now maintains a cache of all InputDevice objects
that it has loaded. Currently we never invalidate the cache
which can cause InputDevice to return stale motion ranges if
the device is reconfigured. This will be fixed in a future change.

Added a fake InputDevice with ID -1 to represent the virtual keyboard.

Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
nput/IInputManager.aidl
nput/InputManager.java
nput/KeyboardLayout.aidl
nput/KeyboardLayout.java
69bba1dfb75a732e9d1ee92f1088d6fbe1e26f68 07-Apr-2012 Jeff Brown <jeffbrown@google.com> Merge "Add a unique input device descriptor."
e38fdfae9196afd1bdc14c5ec6c12793af1e2550 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Add a unique input device descriptor.

The purpose of the input device descriptor is to make it possible
to associate persistent settings for each input device, such as the
keyboard layout.

The descriptor is a hash of the information we have about the
device, such as its vendor id, product id, unique id, name,
or location.

Bug: 6110399
Change-Id: Idb80f946819b3f0dbf4e661bb0a753dbc2b60981
nput/InputManager.java
9d5a4be05b6d51ebb768e5fbcfa27ed9a39269b3 06-Apr-2012 Mike Lockwood <lockwood@google.com> Add Intents to notify when USB audio devices or accessories are attached

In this change, only the USB audio accessory support is implemented.

Change-Id: Id9b411319b07a96dc56649ca74cc5f3f89a55a7c
Signed-off-by: Mike Lockwood <lockwood@google.com>
sb/UsbManager.java
ac14351e16e1258f1cb54e2bf772b8be004eb2b8 06-Apr-2012 Jeff Brown <jeffbrown@google.com> Move some APIs from window manager to input manager.

Simplified input injection API down to just one call.

Removed all input state reading API. It was only used by the
window manager policy and required a permission that applications
could not obtain. READ_INPUT_STATE is now unused and deprecated.

Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
nput/IInputManager.aidl
nput/InputManager.java
4532e6158474a263d9d26c2b42240bcf7ce9b172 05-Apr-2012 Jeff Brown <jeffbrown@google.com> Refactor input system into its own service.

Extracted the input system from the window manager service into
a new input manager service. This will make it easier to
offer new input-related features to applications.

Cleaned up the input manager service JNI layer somewhat to get rid
of all of the unnecessary checks for whether the input manager
had been initialized. Simplified the callback layer as well.

Change-Id: I3175d01307aed1420780d3c093d2694b41edf66e
nput/IInputManager.aidl
9df6e7a926ce480baf70e97ee1b9ea387193f6ad 05-Apr-2012 Jeff Brown <jeffbrown@google.com> Initial commit of InputManager and keyboard layout API.

Added a new InputManager service for interacting with input
devices and configuring them. This will be the focus of
an upcoming refactoring.

Added an API for registering keyboard layouts with the system
based on the use of a broadcast receiver. Applications can
register their own keyboard layouts simply by declaring a
broadcast receiver in their manifests.

Added the skeleton of a package that will ultimately contain
the keyboard layouts and other input device related resources
that are part of the base system.

Bug: 6110399
Change-Id: Ie01b0ef4adbd5198f6f012e73964bdef3c51805c
nput/InputManager.java
8d3c318b2d6690a156cc22ef6599a73bee7ed482 16-Mar-2012 Wu-cheng Li <wuchengli@google.com> Merge "Add a new camera open API that allows taking the ownership."
d45f5b5843842426109213dd035b72fb02a55d7a 16-Mar-2012 Scott Main <smain@google.com> am af2827ba: am 714d655c: am eb1d42e4: Merge "docs: Fix a bunch of misc doc issues from external tracker" into ics-mr1

* commit 'af2827ba96361a63eac792e679027f8d6f2c8482':
docs: Fix a bunch of misc doc issues from external tracker
a1c41e13b521cdd611a8fc46e43b5ae0a2c00238 24-Feb-2012 Wu-cheng Li <wuchengli@google.com> Add a new camera open API that allows taking the ownership.

The purpose is to let face unlock always get the camera
successfully. What happened was the camera applications may
have opened the camera in onResume under the lock screen.
This API lets face unlock take the camera from the camera
application. A new permission will be added, so other
applicatoins won't be able to take the camera from the face
unlock.

bug:5584464

Change-Id: Ib3d9dcbc2161815b68db42327dc01148453704c6
amera.java
0016813784eb3286cd19bc3f57083342ec499cb0 14-Mar-2012 Eino-Ville Talvala <etalvala@google.com> Merge "Add references to MediaActionSound in Camera documentation."
cb56923ba6350cf7441260886f6e8a1c6785886d 12-Mar-2012 Eino-Ville Talvala <etalvala@google.com> Check for null characters being used in camera parameters.

Change-Id: I258bce0fcadaec15e495e3303d3d7a952b72b4b5
amera.java
108708b4873fb05cb029b5bcb29a4e917004ca30 05-Mar-2012 Eino-Ville Talvala <etalvala@google.com> Add references to MediaActionSound in Camera documentation.

Also includes a few minor doc cleanups.

Change-Id: I1742a50f92ceb2b14761e8306891e545a3cf49dd
amera.java
8edad6f16fc1d60a163e0f63153ff4f8a95e6c0e 09-Mar-2012 Scott Main <smain@google.com> docs: Fix a bunch of misc doc issues from external tracker

Change-Id: I03cae5bdb7b806e81cc6c983a014de212cb80c73
eomagneticField.java
f76a50ce8fdc6aea22cabc77b2977a1a15a79630 09-Mar-2012 Ken Wakasa <kwakasa@google.com> Fix obvious typos under frameworks/base/core

Change-Id: Ia5fc3db1bb51824e7523885553be926bcc42d736
amera.java
ensor.java
e69095869c1b324aa20991ed1805c492c3f731e8 01-Mar-2012 Eino-Ville Talvala <etalvala@google.com> NEW_API: Rework CameraSound into MediaActionSound, and unhide it.

MediaActionSound is a helper class for applications that use the
camera, or include camera-like behavior such as taking
screenshots. This class helps applications match the sound-playing
behavior of the Camera.takePicture, MediaRecorder.start, and
MediaRecorder.stop methods.

This is useful for applications that don't use the above methods, but
still logically capture images or video, such as the panorama capture
feature and the video effects in the platform camera application.

Bug: 5029099
Change-Id: I829f6e2941f167f91f9cb506215b7232cb054958
amera.java
ameraSound.java
e0dbd002750856e55d637e883b629e09adfc8a4e 16-Feb-2012 Jeff Brown <jeffbrown@google.com> Mark input and sensor messages as asynchronous.

Set a barrier on traversals.

Vsync is still not enabled by default in this patch so there
should be no observable effect from these changes.

Change-Id: Ie12081b95a8f1e81ed686edf747cc62f2e044b7e
ensorManager.java
7dbc4b457d2c2c6dd39fa445e7edd8109796f0a2 23-Sep-2011 Mike Lockwood <lockwood@android.com> Add SerialPort.sendBreak()

Signed-off-by: Mike Lockwood <lockwood@android.com>
erialPort.java
b01e8bf57b7492b77e3445db51471edcbadda75e 30-Aug-2011 Mike Lockwood <lockwood@android.com> New Serial Manager API:

SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Signed-off-by: Mike Lockwood <lockwood@android.com>
SerialManager.aidl
erialManager.java
erialPort.java
e7eeace594861365b4b5de08eee2cb4c0abf06b2 09-Feb-2012 Scott Main <smain@google.com> am ec12ae99: am 79cfde69: am 52bfc243: docs: fix misc doc bugs from external issue tracker

* commit 'ec12ae9933e463181338834387caa7c58b330635':
docs: fix misc doc bugs from external issue tracker
52bfc243684b2f340da326aaa38e9021e4e3b2e6 09-Feb-2012 Scott Main <smain@google.com> docs: fix misc doc bugs from external issue tracker

Change-Id: If6ff3476670e42b321d56d4a1482ccff96d4d500
ensorEvent.java
143c7c885487ff665ad87c259d4b3b089d0bfec4 07-Jan-2012 Eino-Ville Talvala <etalvala@google.com> am 4bc873e6: am 7944704e: Merge "Switch camera sounds to always use the system enforced audio stream." into ics-mr1

* commit '4bc873e6ff73200af866f8c9efca66ad8ed23682':
Switch camera sounds to always use the system enforced audio stream.
b7feb1c91f1053adb1815bc522c43db3f2c3f598 06-Jan-2012 Eino-Ville Talvala <etalvala@google.com> Switch camera sounds to always use the system enforced audio stream.

Instead of picking between the music stream and the enforced audio
stream, change the camera service to always play sounds through
enforced system stream. Also update the currently-hidden CameraSound
API to match.

Bug: 5778365
Change-Id: I3cc64b1d1ff567dbac8020a665d5b19846197ff3
ameraSound.java
2b072677538de979961b5bf527109fdab1713731 23-Dec-2011 Joe Fernandez <joefernandez@google.com> am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1

* commit '201469f54522436be79d4d6665721049bfc74320':
docs: Add developer guide cross-references, Project ACRE, round 4
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 20-Dec-2011 Joe Fernandez <joefernandez@google.com> docs: Add developer guide cross-references, Project ACRE, round 4

Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
sb/UsbAccessory.java
sb/UsbDevice.java
sb/UsbInterface.java
sb/UsbManager.java
sb/package.html
12f3e28544b00ff4b073cc8ac1b277f0c7a93aab 30-Nov-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add a method to get empty camera parameters."
9d062cfe94dcd24b1d61fc83e5de565cb67965b1 14-Nov-2011 Wu-cheng Li <wuchengli@google.com> Add camera focus move callback.

bug:5534973
Change-Id: Iaadcb2738ad040f94849be30ee531326f6199431
amera.java
1c04a33c040dfb610952d62da9c93a53c291b2d7 22-Nov-2011 Wu-cheng Li <wuchengli@google.com> Add a method to get empty camera parameters.

bug:5656411
Change-Id: I96e1f74c95a7b40bfbf68bdc93d14dad6fd63426
amera.java
0cac6aa993838cdbac90472237541f9b33c40994 18-Nov-2011 Wu-cheng Li <wuchengli@google.com> Move Camera.Sound to a stand-alone class CameraSound.

bug:5640219

Change-Id: Ibc105351e25b9758c451a94d9a5e50942bf0e926
amera.java
ameraSound.java
b838d8d4a26c3cfea2e2a5ce831daebbb5653ae7 17-Nov-2011 Wu-cheng Li <wuchengli@google.com> Unlock camera AWB lock only when white-balance is changed.

bug:5633546
Change-Id: I90bb4b5b445daedf38a64e2f8fb980fc0f0aaa81
amera.java
8c13670c13a7a965884d92193b039e26c96b95c6 12-Aug-2011 Wu-cheng Li <wuchengli@google.com> Improve camera face detection javadoc.

bug:4460717
Change-Id: I6e040911ce802e597e77dfdde1c92b75d51975c8
amera.java
e0cc55ac725feec88c77b482d1990221c9a80f74 08-Nov-2011 Eino-Ville Talvala <etalvala@google.com> Add a sound-playing method to Camera API.

To allow applications with non-standard Camera use cases to use the
platform sound files and routing, add a method to play any of the
standard Camera sounds (shutter, autofocus, record start/stop) using a
background thread.

Bug: 5447107
Change-Id: I2524853a626e3ce334a7aad2f7de061d5c04abd0
amera.java
11ba6da460572b9ce9cb9dc0d5a76b710e7efdb3 01-Nov-2011 Chih-Chung Chang <chihchung@google.com> am 4b6353ea: Merge "Update camera continuous autofocus javadoc." into ics-mr0

* commit '4b6353ea0265bfed52d0637abd1b17596ce25ff0':
Update camera continuous autofocus javadoc.
d47823e359ac346c7a1b9051866a72e8436f82cd 31-Oct-2011 Pannag Sanketi <psanketi@google.com> Expose video stabilization API

Related to bug:5469735

Change-Id: I0a8245b37eed7f2cb58d35c7a9a7b3b293b64694
amera.java
0f4f97b70f6ad59b32e78720ba7357733bdef3e9 27-Oct-2011 Wu-cheng Li <wuchengli@google.com> Update camera continuous autofocus javadoc.

Suppose applications call autoFocus in CAF picture mode. If
CAF is in the middle of scanning, the picture is very likely to
be blurry. Change focus callback to return when the scanning
finishes.

bug:5514415
Change-Id: Ibcb8f92a5263d7dbd7cce54df3617fb21c6255d4
amera.java
6c5c3c392b8abce93fd2d366f12449c713ed0016 18-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: Camera JavaDoc - added xref to Camera DevGuide

Change-Id: I4b5faa154a63f0830717a9156b617a0199604547
amera.java
53b30912d3e8598c05e47308981971e958e98db2 12-Oct-2011 Wu-cheng Li <wuchengli@google.com> Improve camera javadoc and fix some errors.

bug:5169599
Change-Id: Ic2205770753ff462135f884fee0a888ca8ec832d
amera.java
037abb8bb064c2878858c9b69978f6754f242627 11-Oct-2011 Eino-Ville Talvala <etalvala@google.com> Add video stabilization control to Camera parameters.

Hardware video stabilization reduces camera shake in preview
and in recorded videos. It has no effect on still image capture.

Convenience accessor methods hidden for now.

Change-Id: Ie18450bff662b2ef98b85d19719beefc180975fc
amera.java
3c02c12c73fa8719e49a5da6534750196efe3eba 07-Oct-2011 Wu-cheng Li <wuchengli@google.com> Merge "Allow Camera.setDisplayOrientation to be called when preview is active."
d303362ac21fb9de40f2f2366cbe7ecaa113dc12 07-Oct-2011 Wu-cheng Li <wuchengli@google.com> Allow Camera.setDisplayOrientation to be called when preview is active.

bug:5422679

Change-Id: I4c936ab00428fc158b5947fe8f10b1028869bbdb
amera.java
464cb21e2aaa448072449b82156f18bd64c0e613 05-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: Camera class JavaDoc FixIts for ICS

Change-Id: I03d96247d149baf82c53b33aa7737fca11906ce6
amera.java
3d9a9e55df85c720573e69ec3062efc331ea69bb 23-Sep-2011 Wei Huang <weih@google.com> Merge "Update camera javadoc about AE and AWB lock." into ics-factoryrom
664d72e6630522589cc013b25f5c9cdd5d949fa3 23-Sep-2011 Chih-yu Huang <akahuang@google.com> Clear callbacks in camera stopPreview.

Clear those callbacks to remove the references
so the memory can be recycled.

bug:5358774
Change-Id: I3b6034a1891126b3437a6744013f38a64f5bb03b
amera.java
b4f95be03e018df825356fe2cd363797c66303f1 22-Sep-2011 Wu-cheng Li <wuchengli@google.com> Update camera javadoc about AE and AWB lock.

- Autofocus does not lock AE and AWB.
- stopPreview and takePicture do not clear AE and AWB locks.

bug:5356404

Change-Id: I55d9b35f4ff746ecd2bff112c2674f1aa2543aca
amera.java
5263767cdae21f8f6968dfba974623b240746d6e 15-Sep-2011 Mathias Agopian <mathias@google.com> Tweak DELAY_UI for 16Hz to 15Hz

this allows us to hit the lower accel rate.

Change-Id: I21944ee82020cf4b80397b87803bc481ddf51931
ensorManager.java
66bd5e98ec1e626b731394eb8ce63b4f63be1d05 08-Sep-2011 Mathias Agopian <mathias@google.com> Merge "improve the gyroscope javadoc"
ad7f33a29c6ce41f2b662d1de9af7e9cf92f4dc9 08-Sep-2011 Mathias Agopian <mathias@google.com> improve the gyroscope javadoc

change the sample code to something more useful and more
correct.

Change-Id: Ia81f86a2f409edbb395405ababae307663824cb9
ensorEvent.java
4c454d82b6ca2e209323321ef2e712bd1577b032 07-Sep-2011 Wu-cheng Li <wuchengli@google.com> Unhide camera video snapshot supported API.

bug:5187868
Change-Id: Idefde8746012c8ef504f3e3020e3fe1256c60860
amera.java
98bb251c8b527600e7a4cca6cc33499710bbfbf1 30-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add video snapshot camera parameter.

The API is still hidden.

bug:5187868

Change-Id: I59e1b5774ca32be049723d1a0887faa90d8884bb
amera.java
9a10bf0386ac9822e33a15820d8cd1fd8bdb5572 25-Aug-2011 Scott Main <smain@google.com> fix sample code typo
issue 5190961

Change-Id: I15f10bc97b46f0e5f5e31ff5b38d6c3a938ddedf
amera.java
a46c372a75972dbfe73b1813d69fa047c3454b83 23-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Make camera FOCUS_MODE_CONTINUOUS_PICTURE public."
af4f65806e183cc9523b232200031dfe39c2cd3e 19-Aug-2011 Wu-cheng Li <wuchengli@google.com> Make camera FOCUS_MODE_CONTINUOUS_PICTURE public.

bug:5086125
Change-Id: I140dd8357adabb167f2f2efee8f5db00ab86705c
amera.java
7526a6d9235a73f93ae5064e8b82440b61c53929 20-Aug-2011 Wei Hua <whua@google.com> Merge "Added additional Face attributes."
d52b308916d5f207791788e00bc48baecb90d8b8 19-Aug-2011 Wei Hua <whua@google.com> Added additional Face attributes.

bug: 5186701
Change-Id: Id08df922b9a79192a81e6e8bd7c0dccad4664b3b
amera.java
16b67137b893f32491a38ab81d49368322e1ae92 18-Aug-2011 Eino-Ville Talvala <etalvala@google.com> Make changing white-balance mode always disable AWB lock.

Fixes previously unspecified behavior wrt changing white-balance mode
while AWB is locked.

Change-Id: Ib70597319010cc7e6c88b26cae534ceea4fb46ce
amera.java
b9ac75d3dfc53ab4a0a104da147f1dfd7bc8c12f 16-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add new camera focus mode FOCUS_MODE_CONTINUOUS_PICTURE.

The API is still hidden.

bug:5086125
Change-Id: I69268a95ad6aae249771d3a8dfb423ffe2d87081
amera.java
aba367eea4792a1d3778061181e3a38e188f4f06 10-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Unhide camera face detection API."
c0c683b3344c67700882f8059e7d18266366daa9 03-Aug-2011 Wu-cheng Li <wuchengli@google.com> Unhide camera face detection API.

bug:4460717
Change-Id: I8d72b0ada370acd6267c47deb654bb4bf1cfb538
amera.java
08a907149ede244f1ca587b99542744e0260099d 09-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Unhide camera recording hint API."
09f6d67f37d77853dd19fde79523edc524c7c9cd 04-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera bayer image format."
70fb9085044c5e6f52c33c970d238b764cf2373b 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add camera bayer image format.

The API are hidden.

bug:5086073

Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc
amera.java
9c53f1c33a433c1e9bd84a26d57e0e99f616fa24 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Unhide camera recording hint API.

bug:4266229
Change-Id: Ic9014e521e22a3940b9c2068ce38783f52d2ac31
amera.java
e51099f110cf6a77c316402adf7970ae5d3311ea 02-Aug-2011 Mike Lockwood <lockwood@android.com> UsbManager: add getDefaultFunction()

Bug: 5108883

Change-Id: I211f1ee39987da4a5456d86b49b954c564fa3bf4
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbManager.java
bb1e275c0e684dd213f124da77110cdd9d6f090c 29-Jul-2011 Wu-cheng Li <wuchengli@google.com> Pass camera frame metadata from camera service to Java.

bug:4460717
Change-Id: I2fae6e1dfca6b8f3a5ee5716fc7817f5417bf657
amera.java
25d8fb51dae37f1becf4fb3d32e8600c418eb6e8 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add camera recording hint parameter.

The API is still hidden.

bug:4266229
Change-Id: I5e4c24e9e2808582aecb55ac4f1d5be3ed7e36a2
amera.java
f0d6a48c6ad852b84687127f14b1ffde02416dc4 27-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add frame metadata parameter to camera data_callback.

bug:4460717
Change-Id: Ib47d7d7df20af8155a719f3dabefe030893bfebc
amera.java
4c2292efbbfe7338138a9a0e8eefeaabdef1a0b4 21-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add camera face detection API.

API are still hidden.

bug:4460717
Change-Id: I1a515061f141a89bd61c875257712789fb15d2d4
amera.java
f55df0e26a71b93bda2e10de7a5b2dd9ab843765 19-Jul-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera new picture and new video broadcast intents."
10e09c69d659bf54d6efbe1a3660add7f8a39d6e 18-Jul-2011 Wu-cheng Li <wuchengli@google.com> Add camera new picture and new video broadcast intents.

bug:4964321
Change-Id: I42b45cda2e6a30f3bdf6127e2594933f32ecbaeb
amera.java
875c24b897919a80a711dc79cf625006f1ff366d 18-Jul-2011 Mike Lockwood <lockwood@android.com> UsbManager: document that passing null setCurrentFunction restores default function

Change-Id: I4340b336f3e91b3b8242f2a66c34a7a7f5c3021f
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbManager.java
83d3352cf7a67efd60732c0d40e5928f642f6808 13-May-2011 Eino-Ville Talvala <etalvala@google.com> NEW_API: Add auto-exposure and auto-white balance locking to the Camera.

Unhides the Camera API calls for using the auto-exposure and
auto-white balance locks. Adds documentation about the interaction
between auto-focus and the AE and AWB locks.

Change-Id: I5bf73b9dce1c93e11a17f9d3efb82db1261524c5
amera.java
42419ce28a09eb63e29a8fef87e6f5534f41902f 01-Jun-2011 Wu-cheng Li <wuchengli@google.com> Add framework support for camcorder zoom.

The purpose of ICameraRecordingProxy and ICameraRecordingProxyListener is to
allow applications using the camera during recording.

Camera service allows only one client at a time. Since camcorder application
needs to own the camera to do things like zoom, the media recorder cannot
access the camera directly during recording. So ICameraRecordingProxy is a proxy
of ICamera, which allows the media recorder to start/stop the recording and
release recording frames. ICameraRecordingProxyListener is an interface that
allows the recorder to receive video frames during recording.

ICameraRecordingProxy
startRecording()
stopRecording()
releaseRecordingFrame()

ICameraRecordingProxyListener
dataCallbackTimestamp()

The camcorder app opens the camera and starts the preview. The app passes
ICamera and ICameraRecordingProxy to the media recorder by
MediaRecorder::setCamera(). The recorder uses ICamera to setup the camera in
MediaRecorder::start(). After setup, the recorder disconnects from camera
service. The recorder calls ICameraRecordingProxy::startRecording() and
passes a ICameraRecordingProxyListener to the app. The app connects back to
camera service and starts the recording. The app owns the camera and can do
things like zoom. The media recorder receives the video frames from the
listener and releases them by ICameraRecordingProxy::releaseRecordingFrame.
The recorder calls ICameraRecordingProxy::stopRecording() to stop the
recording.

The call sequences are as follows:
1. The app: Camera.unlock().
2. The app: MediaRecorder.setCamera().
3. Start recording
(1) The app: MediaRecorder.start().
(2) The recorder: ICamera.unlock() and ICamera.disconnect().
(3) The recorder: ICameraRecordingProxy.startRecording().
(4) The app: ICamera.reconnect().
(5) The app: ICamera.startRecording().
4. During recording
(1) The recorder: receive frames from ICameraRecordingProxyListener.dataCallbackTimestamp()
(2) The recorder: release frames by ICameraRecordingProxy.releaseRecordingFrame().
5. Stop recording
(1) The app: MediaRecorder.stop()
(2) The recorder: ICameraRecordingProxy.stopRecording().
(3) The app: ICamera.stopRecording().

bug:2644213

Change-Id: I15269397defc25cbbcae16abc071c8349c123122
amera.java
f59717ddb5ef324ee3fdb12b83e7d1b709793d28 22-Jun-2011 Mike Lockwood <lockwood@android.com> Combine UsbManager.setPrimaryFunction and setDefaultFunction

Due to the property trigger on persist.sys.usb.config,
setting the default function also sets the current function.
Now we combine both of these methods into setCurrentFunction, which has
a "makeDefault" option to make the new function the default.

This change should eliminate some problems with setting properties due to
multiple property triggers happening at the same time.

Change-Id: I9851299e9c2ee20475eada1a8104c0d50bf5a9e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/IUsbManager.aidl
sb/UsbManager.java
d8aab93f96a6357dedc791ccdea92412fb423d15 21-Jun-2011 Wu-cheng Li <wuchengli@google.com> Fix camera getMeteringAreas does not return areas correctly.

bug:4494242
Change-Id: Ide5a44fc302ecda22557fc9eba5e7fcd8679712b
amera.java
02e4569b5f126ca916a7473117ddd17d4f2ccbbb 14-Jun-2011 Mike Lockwood <lockwood@android.com> USB: Support for new USB gadget drivers

Change-Id: Id08df50acb873a94f4765a991ee6a6f5b898ddf5
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/IUsbManager.aidl
sb/UsbManager.java
facc8ce116bd92f7ba7e8ecb76cbda3953260ef9 17-Jun-2011 Wu-cheng Li <wuchengli@google.com> Mention device policay manager in Camera.open javadoc.

bug:4185309
Change-Id: I733654a0be1953851dac7686c9c38e7af8f1d73a
amera.java
523510e9b7ae69bde77f0d24a0b744178f3e3dd0 08-Jun-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: Clean up extras for ACTION_USB_STATE broadcast"
9eb014aeb0630dab9210f8eb8b6c2f4250d5990e 08-Jun-2011 Mike Lockwood <lockwood@android.com> UsbManager: Clean up extras for ACTION_USB_STATE broadcast

Also added name for new PTP USB function

Change-Id: Ia2775ba2b23ef6a6108ca7e060239eb51c2eecc8
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbManager.java
32a972c693400db50717435139fa292a63bc937a 07-Jun-2011 Eino-Ville Talvala <etalvala@google.com> Updates to Camera API documentation.

Change-Id: I716a36becce436f57ea62fcfecd9021eb29b76ea
amera.java
bde61a5731cdfef76a0691f8bd53b880606f5f6e 07-Jun-2011 Wu-cheng Li <wuchengli@google.com> Improve android.hardware.Camera.Area javadoc.

bug:4553469
Change-Id: Iae88af354fee4925cb7978572c27f6dd5595ca59
amera.java
90f902afde7ac92cdb60363d517e9d142e1f1977 19-May-2011 Mike Lockwood <lockwood@android.com> resolved conflicts for merge of c1730dcf to master

Change-Id: I9e0f9740930c7d3acb51235dd4c67cf2ed54a486
c1730dcf8971950a0e32e3f4fc6e3fb08b7395cd 19-May-2011 Mike Lockwood <lockwood@android.com> am ae448e2c: am a88b42d5: USB: Add method to access raw USB device descriptors

* commit 'ae448e2c90cae096efea53c1c93a70e7b5ca2db7':
USB: Add method to access raw USB device descriptors
a88b42d569a91290477d8f5731a2ee43931271da 19-May-2011 Mike Lockwood <lockwood@android.com> USB: Add method to access raw USB device descriptors

Change-Id: Id5b46ede14a838198a59bdc8ed4732942044cfa8
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbDeviceConnection.java
c6b7a0131e92a0bdeb268cee185404ceae9b54b7 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge 111d17ce

Change-Id: I2e0aa4328bc78eb5bcd987e7bf74b0889d2fae7f
111d17ce5141aa0fa51de37deae0811e70555d34 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge 4b999030

Change-Id: Ibb94ba77ec8588f5e7636cf6a038b143e3dcb2bd
6c427617be940be32fdebbd9c78f9223b292c814 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge "support humidity sensor type"
d9c2601afa46811bcb1345963d38010690981a01 13-May-2011 Eino-Ville Talvala <etalvala@google.com> Add auto-white balance locking to the Camera API.

Adds a new camera parameter for locking auto-white balance to its
current value. Also adds a function for checking if auto-white balance
lock is supported by the current platform. Lock semantics match that
of the auto-exposure lock.

Hidden for now.

Change-Id: Id59339a4be84d55c1b0b8473d765b6aa765999b2
amera.java
26274fae33b7b056cf5fe9fd6e823cae9e4ddae2 05-May-2011 Wu-cheng Li <wuchengli@google.com> Improve camera javadoc.

Preview has to be stopped before chaning preview size.

Change-Id: I6ab30402b2270eed9606a69ebce43ae58e0776a8
amera.java
9d216f7b0ef66e4d2e32f86cd7e31608fcce49b6 04-May-2011 Mathias Agopian <mathias@google.com> Merge "improve documentation for the ROTATION_VECTOR sensor"
557975c2b57b78f163d124f07c541874436df056 04-May-2011 Mathias Agopian <mathias@google.com> Merge "Add documentation for Sensor.TYPE_PRESSURE"
d84d2b7b1ee5c37da878534f4d493d8d00a3f65f 03-May-2011 Mathias Agopian <mathias@google.com> improve documentation for the ROTATION_VECTOR sensor

the documentation didn't specify which reference coordinate
system was used.

Change-Id: I5ff5d1041b59de365863db6ee34cc9d823801d34
ensorEvent.java
1260a89b54436fdd6d80e7c98b7db3c55f85104c 03-May-2011 Mathias Agopian <mathias@google.com> Add documentation for Sensor.TYPE_PRESSURE

Change-Id: I634722a9a22946a1ae96c0b868af0c66d467a3a6
ensorEvent.java
3773eef4e36fa4171a84b495dca849be112df0a8 15-Apr-2011 Eino-Ville Talvala <etalvala@google.com> Add an auto-exposure lock feature to the Camera API.

Adds a new camera parameter for locking auto-exposure to its current
value. Also adds a function for checking if auto-exposure lock is
supported by the current platform.

Hidden for now.

Change-Id: Id452371191ab220318ce2cb98b8ee91bdde9aab6
amera.java
f715bf95ded30821e81ba93bb48c08725e1c34aa 14-Apr-2011 Wu-cheng Li <wuchengli@google.com> Unhide camera focus area and metering area API.

These API are for touch focus.

bug:3475893

Change-Id: I1e213c0bed0c6fe18dcbfb0457c51c52e7cfae30
amera.java
185052e2d1b8b4eb9df5f47e6d7fd05acb739b84 25-Apr-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Clarify the meaning of weight in the focus and metering area HAL."
4e396e063c8b0fa6201b47166f547a98abfd6038 21-Apr-2011 Eino-Ville Talvala <etalvala@google.com> Clarify the meaning of weight in the focus and metering area HAL.

Weigh values must be less than 1000, but have no restriction on their
sum. Weights should be interpreted as per-pixel values, meaning larger
areas will have more influence over focus/metering than smaller areas
of the same weight.

Change-Id: I988b74f988ddba2ff0c49d078ff3174b47cbae18
amera.java
7b1c5c891a09e0e2a2de101fbf951cdc89e03957 15-Apr-2011 Wu-cheng Li <wuchengli@google.com> Fix camera javadoc errors.

Change-Id: Ia5db14ee01af49e81295d1eb4dd38218de8944cd
amera.java
5819051eee071d622e5cb1f32c74112b1c7b1072 29-Dec-2010 Urs Fleisch <urs.fleisch@gmail.com> support humidity sensor type

Change-Id: I4156842677e91de0f922284d196147ff61e71a70
ensor.java
ensorEvent.java
e98e4c806320ccb3078805ac019cca3ed9796123 12-Apr-2011 Wu-cheng Li <wuchengli@google.com> Add camera metering area API.

The API are still hidden.

bug:3475893
Change-Id: Id4147528def5e0fe067e1a3ed315fa34c14a0640
amera.java
30771b773393596812b6cfd2a4ddf490c43437aa 02-Apr-2011 Wu-cheng Li <wuchengli@google.com> Add camera focus area API.

The API are still hidden.

bug:3475893

Change-Id: I92405c9e332b7fb141788cda7ebc9705dd666c67
amera.java
c4740316423fcd669e09408d11fd46227ccb0b05 04-Apr-2011 Robert Ly <robertly@google.com> am cbfeda13: am 6f7e4cb5: am 3f39f653: Adding package description for android.hardware.usb

* commit 'cbfeda13e7da5c1cdf6f02e76d81ac5f878b1225':
Adding package description for android.hardware.usb
3f39f653a90f9727d13be1e9908f0afb8fe66d6e 04-Apr-2011 Robert Ly <robertly@google.com> Adding package description for android.hardware.usb

Change-Id: I4d243424c6747531a1ac6ab2230c2af73bad4fed
sb/package.html
853814957293d0a891f374d1dc8950be866909c6 01-Apr-2011 Mike Lockwood <lockwood@android.com> am 1c56976a: am 38f04c0f: am 11dd5ae9: Improve Javadoc for USB Manager and MTP/PTP support.

* commit '1c56976a774434bd279b6181c4fc3c555c4648c2':
Improve Javadoc for USB Manager and MTP/PTP support.
11dd5ae97b1cd5889bb66862fd12718da62a9c75 01-Apr-2011 Mike Lockwood <lockwood@android.com> Improve Javadoc for USB Manager and MTP/PTP support.

Bug: 4091519

Change-Id: Ida79593d5a984f7ffd0934ae7bded23b8faf9eef
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbAccessory.java
sb/UsbConstants.java
sb/UsbDevice.java
sb/UsbDeviceConnection.java
sb/UsbEndpoint.java
sb/UsbInterface.java
sb/UsbManager.java
sb/UsbRequest.java
a5d42c857818036375fff2da9f0d0ab34219d773 24-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Merge "NEW_API: Add getTimestamp() to SurfaceTexture."
462db220a2986f7d9fc3d7e3e6af6615570eaa0b 23-Mar-2011 Mathias Agopian <mathias@google.com> fix [4056232] Deprecate Sensor.TYPE_TEMPERATURE and add Sensor.TYPE_AMBIENT_TEMPERATURE

Bug: 4056232
Change-Id: Idf165460fc083f856c320f0f6f8841d73661c829
ensor.java
ensorEvent.java
e309a0fd2e528039b3c1f1372a9a7095bcd852cc 21-Mar-2011 Eino-Ville Talvala <etalvala@google.com> NEW_API: Add getTimestamp() to SurfaceTexture.

Like getTransformMatrix, getTimestamp provides a timestamp for the
OpenGL texture produced by the latest call to updateTexImage().

Timestamps are measured in nanoseconds, and are monotonically
increasing. Other properties of the timestamps (zero point,
comparability) depend on the source providing frames to the
SurfaceTexture, and need to be documented by the source.

bug:3300707

Change-Id: I380d94926d0e9f1c77bb5c1576b72d5ef4e2eba1
amera.java
c5f94d8a4779050125145396ca83fbc862c7ed6b 18-Feb-2011 Eino-Ville Talvala <etalvala@google.com> Add support for timestamps into SurfaceTexture.

API addition: The timestamps are represented as nanoseconds from some
arbitrary time point. Like the SurfaceTexture transform matrix, the
timestamp retrieved by getTimestamp is for the last frame sent to the
GL texture using updateTexImage().

Camera HAL change: Expect vendors to set these timestamps using
native_window_set_buffers_timestamp(). For now, they are
autogenerated by SurfaceTextureClient if set_buffers_timestamp() is
never called, but such timing is likely not accurate enough to pass a
CTS test.

bug:3300707

Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
amera.java
638d7cb3ee0bb3596b01dc19eca9456fa72a36e0 15-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport more USB accessory changes from honeycomb

Change-Id: I8459c5ab9fbf0b3cad752041484a5de44ca9badd
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbAccessory.java
015b1ecaec27b7cf5f1a78099d9ae34a0c3169f2 14-Mar-2011 Mike Lockwood <lockwood@android.com> Add support for USB accessory serial numbers

Change-Id: I47b79f091b300ced60bfc61eff2f771139663aae
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbAccessory.java
2cc0377200b94b2f68f34e34554f2aa39e09cbce 12-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: backport recent USB accessory changes from honeycomb

Bug: 4082651

Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/IUsbManager.aidl
sb/UsbAccessory.java
sb/UsbManager.java
62cfeeb821afb2f3d3b78ad93caa13408cd26eac 12-Mar-2011 Mike Lockwood <lockwood@android.com> USB: minor cleanup work

Bug: 4067029

Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/IUsbManager.aidl
sb/UsbManager.java
a75075e1671f57217d8b8bb75b2d9c3a6bab37d8 11-Mar-2011 Mike Lockwood <lockwood@android.com> UsbManager: Hide APIs not needed for USB host or accessory support.

Bug: 4067029

Change-Id: Ib63ab95a6571d6a691834bfb583a68d2e4cfd22e
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbManager.java
acc29cc91be634070c92a807df412ced97b9b375 11-Mar-2011 Mike Lockwood <lockwood@android.com> UsbDevice: Move IO related methods to new UsbDeviceConnection class

UsbDevice is now just an immutable parcelable object like UsbInterface and
UsbEndpoint.
All IO related functionality is now contained in UsbDeviceConnection
and UsbRequest.

Bug: 4067029

Change-Id: Ia84da0b512a697acc940eee0c3566711c62e1a68
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbDevice.java
sb/UsbDeviceConnection.java
sb/UsbEndpoint.java
sb/UsbInterface.java
sb/UsbManager.java
sb/UsbRequest.java
cc08c439bc7b0afbdafc5ca18c584d2f7724f3df 10-Mar-2011 Mike Lockwood <lockwood@android.com> Merge "UsbAccessory: Add URI string, replace type string with description" into honeycomb-mr1
ac36d7c715a9cd793b2dce6de547594810101c3a 10-Mar-2011 Mike Lockwood <lockwood@android.com> UsbAccessory: Add URI string, replace type string with description

This is a first step toward adding USB accessory URI support

BUG: 4073248

Modified USB accessory matching logic to look only at manufacturer, model and version
(description and URI are not considered when matching apps to accessories)

Also added test for USB accessory protocol version to accessorytest

BUG: 4080288

Change-Id: I992a3433c74efa7a7db37bf030f02c1f0c92f9e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbAccessory.java
838aa45b99f504596971063003fa8a75e89e4c41 09-Mar-2011 Mathias Agopian <mathias@google.com> Merge "fix [4026375] SensorManager quaternion functions can call sqrt with a negative number" into honeycomb-mr1
980f0430c16a8767061a6f7f3506aabf79735ef6 09-Mar-2011 Mike Lockwood <lockwood@android.com> UsbManager: Fix broken Javadoc links

Change-Id: Ia8ec7b29a7532feb00a28d6d325c129a9e041d2b
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/UsbManager.java
c6f23e8521dedac7a07119031913235be3ca37c3 09-Mar-2011 Mike Lockwood <lockwood@android.com> Change UsbManager.requestPermission to only grant permission temporarily

If the user approves an application to access a USB device or accessory
without choosing it as the default application, then permission is granted
only until the device or accessory is disconnected.
Only applications chosen as the default choice have permissions assigned persistently.

BUG: 4061035

Change-Id: Ic4f6271a91b2fc56bbeef82c579e26d88c63ae56
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb/IUsbManager.aidl
sb/UsbAccessory.java
sb/UsbDevice.java
sb/UsbManager.java
3a68b8338b431eb15d28e92f06452efbbda9493e 08-Mar-2011 Mike Lockwood <lockwood@android.com> USB: Add API and dialog for apps to request permissions for USB devices and accessories

New APIs:

UsbManager.hasPermission returns true if the caller has permission
for the given device or accessory

UsbManager.requestPermission poses a dialog to allow the user to give the caller
permission for the device or accessory.
Result is returned via a PendingIntent.
No dialog is displayed if the caller already has permission.

Also moved UsbResolverActivity to SystemUI package

BUG: 4069037

Change-Id: I93be769501a8776b49ac26e468af19f8fa2114c9
sb/IUsbManager.aidl
sb/UsbManager.java
5f94c315a65569bf66d603227177ba3f5ba5acd4 15-Feb-2011 Mathias Agopian <mathias@google.com> fix [3452750] Issue 14634: SensorManager.getRotationMatrixFromVector gets NaN-Values [external] [DO NOT MERGE]

make sure to not pass negative numbers to sqrt().

Change-Id: Ia31f7ebb7b75c79b548e428c6084fa55031617d0
related-bug: 3452750
ensorManager.java
241d8a84e549c40190ecbbfeb63078293c49dfb0 08-Mar-2011 Mathias Agopian <mathias@google.com> fix [4026375] SensorManager quaternion functions can call sqrt with a negative number [DO NOT MERGE]

Just make sure to clamp the argument to zero.

Bug: 4026375
Change-Id: Idd3d4ef977e87c1b3f6b54371105c3152d7dc6b9
ensorManager.java
0eab8214986faf6e5ba1982b8b01c4f06d61b3c4 08-Mar-2011 Mathias Agopian <mathias@google.com> fix [4026375] SensorManager quaternion functions can call sqrt with a negative number

Just make sure to clamp the argument to zero.

Bug: 4026375
Change-Id: I00c5f6c83659a290d5e1e191a1c8d25ec06834c2
ensorManager.java
40bbf9295d5245d3917629ce15f7b37670aef1ac 01-Mar-2011 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Backport USB accessory support to gingerbread

Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
sb/IUsbManager.aidl
sb/UsbAccessory.aidl
sb/UsbAccessory.java
sb/UsbManager.java
c4308f01c965571dc2354107c3574df113e397ee 01-Mar-2011 Mike Lockwood <lockwood@android.com> Move USB framework support from android.hardware to android.hardware.usb package

Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d
Signed-off-by: Mike Lockwood <lockwood@android.com>
UsbManager.aidl
sbAccessory.aidl
sbAccessory.java
sbConstants.java
sbDevice.aidl
sbDevice.java
sbEndpoint.aidl
sbEndpoint.java
sbInterface.aidl
sbInterface.java
sbManager.java
sbRequest.java
sb/IUsbManager.aidl
sb/UsbAccessory.aidl
sb/UsbAccessory.java
sb/UsbConstants.java
sb/UsbDevice.aidl
sb/UsbDevice.java
sb/UsbEndpoint.aidl
sb/UsbEndpoint.java
sb/UsbInterface.aidl
sb/UsbInterface.java
sb/UsbManager.java
sb/UsbRequest.java
02eb8746de2d60563ec2751a34d20923192e4293 27-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: Enhancements for managing USB devices and accessories

When a USB device or accessory is connected, the UsbService now asks the
user which application to associate with the device or accessory.
Applications interested in devices or accessories must specify the
devices they work with via meta-data attached to their manifest.
Permission to communicate with the device is assigned when the user chooses
the activity to use for the device.
The user has the option of clicking the "always use this application" checkbox
to make the assignment automatic in the future.
The user may later clear this preference and revoke permission for an application
to have permission to communicate with the device by clicking the "Clear defaults"
button for the activity in the Manage Applications panel in Settings.

Added class UsbResolveActivity (a subclass or ResolveActivity for choosing
an activity for a USB device or accessory)

Added UsbDeviceManager, which manages the mapping between USB devices/accessories
and applications, including default applications for devices and accessories,
and manages application permissions.

Add interface to allow Settings to clear device and accessory
preferences and permissions for an application.

Remove obsolete ACCESS_USB permission.

Add new signatureOrSystem MANAGE_USB permission to allow administrating
preferences and permissions.

Moved UsbService.java to a "usb" subdirectory, along with new classes
UsbResolveActivity and UsbDeviceManager.

Change-Id: I92554381e9779e68ce380daaee4e1401fb875703
Signed-off-by: Mike Lockwood <lockwood@android.com>
UsbManager.aidl
sbAccessory.java
sbManager.java
f13ec7a3ac18ad87936ddab2e18f57c3bf91bfb6 11-Dec-2010 Mike Lockwood <lockwood@android.com> DO NOT MERGE: Clean up USB notifications:

Add support for separate USB connected and configuration events

Include both USB connected/disconnected and configuration state
in USB_STATE Intent

Remove redundant USB_CONNECTED and USB_DISCONNECTED Intents
Now we just have the sticky USB_STATE broadcast

Move USB disconnnect rebouncing from Tethering to UsbService

Change-Id: I1dea480f4b0daf14247cf37c5f2060498882c002
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
7916432b3cd9d0396872aee6d3d585f19b4b7ef6 28-Jul-2010 Mike Lockwood <lockwood@android.com> DO NOT MERGE UsbManager: squashed commit of:

USB: Add functions for querying if a USB function is supported and enabled.

Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService

Change-Id: I920a211934d993eab8ce744c1cc7b05342389286
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
sbManager.java
0c74819b76752f78803530fb8e4ad0958f0949ed 25-Feb-2011 Wu-cheng Li <wuchengli@google.com> Merge "Improve camera getSupportedPreviewFormats javadoc."
f9293e7d5057f54ec90423f55b78138d5729e30f 25-Feb-2011 Wu-cheng Li <wuchengli@google.com> Improve camera getSupportedPreviewFormats javadoc.

bug:3463624
Change-Id: I4151fc7821e9648c6429acca53582f11f35f8813
amera.java
b607b884bd94d4f75fb4b2ead7457f2027ceb850 24-Feb-2011 Mike Lockwood <lockwood@android.com> Merge "UsbManager: Remove redundant Intent extras from USB device and accessory broadcasts"
e857cc8175d532eccbe75798c56bf3c5378e585e 24-Feb-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add YV12 preview format to camera parameter constants."
10a1b30dfbd0bbeae6776e353600986647c6e0a8 22-Feb-2011 Wu-cheng Li <wuchengli@google.com> Add YV12 preview format to camera parameter constants.

bug:3463624
Change-Id: I8f2992dadfd3fb9e3c9d67743e52da7f3212827e
amera.java
cd4ed5438c0594858aa8edcd0b102878eda0fc81 24-Feb-2011 Scott Main <smain@google.com> am b1eea45a: am 201959af: Merge "docs: fix sensorevent code snippets bug: 3480932" into honeycomb

* commit 'b1eea45a71a3fffe3014bbe84226df3c57ddbafc':
docs: fix sensorevent code snippets bug: 3480932
188d00b07ef0b8968868b3489e80dd9f53d3bafa 23-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: Remove redundant Intent extras from USB device and accessory broadcasts

These extras are also accessable via the UsbDevice and UsbAccessory classes,
which are also included as extras.
Since you can't filter Intents based on extras there is no point in duplicating
this information as separate extras.

Change-Id: I4c8d1e70d66023a1800b3f8f06118898da6b37af
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
d11ee90b6ed54421f0016ffb7de77e5c812bc17f 23-Feb-2011 Scott Main <smain@google.com> docs: fix sensorevent code snippets
bug: 3480932

Change-Id: Id97ca4e0edfb92eaac0f2996bc5e91d757644afb
ensorEvent.java
e00cab707dcaf6f05adb5ccb9c80fdf25c483427 18-Feb-2011 James Dong <jdong@google.com> Application-managed callback buffer support for raw image

bug - 3292153

Change-Id: I9789f7c5cde3a3889d7375e881181e9152d95fc2
amera.java
9182d3c4eb1f9065cb33df5a3594969dd0d42acc 15-Feb-2011 Mike Lockwood <lockwood@android.com> UsbManager: New APIs for USB accessories

USB accessories are peripherals that connect to android devices as a USB host.

When connected, the accessory will first identify itself to the android device
by sending manufacturer, product, accessory type and version strings
to the device, and then request the device to enter USB accessory mode.
The device will then enable the USB accessory kernel driver and disable
all other USB functionality except possibly adb
(adb can be used while the android device is connected to the PC
and the PC is running software that emulates a USB accessory)

The class android.hardware.UsbAccessory is used to describe the
currently attached USB accessory.
UsbAccessory contains the manufacturer, product, accessory type
and version strings to identify the accessory.
The accessory can be opened as a ParcelFileDescriptor, which can be used
to communicate with the accessory over two bulk endpoints.

The Intents UsbManager.USB_ACCESSORY_ATTACHED and
UsbManager.USB_ACCESSORY_DETACHED are broadcast when accessories are
connected and disconnected to the device. The USB_ACCESSORY_ATTACHED
contains a UsbAccessory object for the attached accessory as an extra.
The Intent also contains string extras for the manufacturer, product,
accessory type and version strings to allow filtering on these strings.

Change-Id: Ie77cbf51814a4aa44a6b1e62673bfe4c6aa81755
Signed-off-by: Mike Lockwood <lockwood@android.com>
UsbManager.aidl
sbAccessory.aidl
sbAccessory.java
sbManager.java
f27ebdeb39affdc3ce0a1eb4d2bf1db2583ce834 15-Feb-2011 Mathias Agopian <mathias@google.com> Merge "fix [3452769] SensorEventListener can cause a java allocation at each received event [external]"
929ced35698152b84f12a8b3662f5e50cfd12913 15-Feb-2011 Mathias Agopian <mathias@google.com> fix [3452769] SensorEventListener can cause a java allocation at each received event [external]

increase the size of the SensorEvent pool from 1 to num_sensors*2.
and make the pool global instead of having an instance per SensorEventListener.

Change-Id: I1bcc53a9b07cd1f96fac6fe6e3b9da074e3cb1fd
ensorManager.java
7b6e4bd697e76bfc44e59ad42666e758c091b7bf 15-Feb-2011 Mathias Agopian <mathias@google.com> fix [3452750] Issue 14634: SensorManager.getRotationMatrixFromVector gets NaN-Values [external]

make sure to not pass negative numbers to sqrt().

Change-Id: Ifd200c781ae8a94c8a3c600401b60f4cf2430be3
related-bug: 3452750
ensorManager.java
dbc289d6c27968bd05cc547ca73579347c3adc99 09-Feb-2011 Glenn Kasten <gkasten@google.com> Bug 3438513 Fix incorrect throws clause

Change-Id: Ib47c12b2b03b0b03d8df69f1b943839283c9f867
amera.java
8b682ad08a8e55b3ce2cf58f3aff6d3464ab668b 01-Feb-2011 Mike Lockwood <lockwood@android.com> UsbService: Blacklist HID boot subclass devices (keyboards and mice)

Change-Id: I80558c6205e041ad730c7815aba97cb80132e820
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbConstants.java
b2abd8c424a68eb6a5e3615a99f66c0bd46e6063 30-Jan-2011 The Android Open Source Project <initial-contribution@android.com> Mass merge from gingerbread - do not merge

Change-Id: I45dc3596bf4211d8f91c64f2d1d00588878df629
14f3d8626767c9b5ae28b5ce3954f8267ca4d563 28-Jan-2011 Mathias Agopian <mathias@google.com> am 12d014fd: Merge "fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE" into gingerbread

* commit '12d014fdf40f69512e59e84914b230a2d3e7b8eb':
fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE
1fce24b241e386af19ba7c5bc29af5d18461f4ff 27-Jan-2011 Mike Lockwood <lockwood@android.com> Add support for synchronous bulk USB transfers

Change-Id: Id5de49e4d728a702fa1583ecc24f83f36cc57d21
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbDevice.java
c42eb2cce70aa4e985615ef9d4cddfff435f7b7f 27-Jan-2011 Scott Main <smain@google.com> am d2b87091: am 0f2e2b8b: Merge "Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it\'s not a good location and the info is avilable in the dev guide, but also added some of the

* commit 'd2b87091cc30c575496eb78ebea88297da775359':
Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it's not a good location and the info is avilable in the dev guide, but also added some of the info to the Resources class description.
d2b87091cc30c575496eb78ebea88297da775359 27-Jan-2011 Scott Main <smain@google.com> am 0f2e2b8b: Merge "Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it\'s not a good location and the info is avilable in the dev guide, but also added some of the info to the R

* commit '0f2e2b8b82c7b589bcc603ce57f8ff3d1c947784':
Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it's not a good location and the info is avilable in the dev guide, but also added some of the info to the Resources class description.
f4f05b8f24183b9e0d6959fe8b71fb88543edd9b 07-Jan-2011 Scott Main <smain@google.com> Update package descriptions with editorial revisions.
Notably, this removes exessive info about resources
from the content package, because it's not a good location
and the info is avilable in the dev guide, but also
added some of the info to the Resources class description.

Change-Id: Ie78af26c9cec66314deb98e53078f48e16c08e70
ackage.html
e7d511e148bc901ef41ac44d7b3593e5d803f72f 30-Dec-2010 Mike Lockwood <lockwood@android.com> New APIs for USB host support:

UsbManager:
- is now a service retrievable via Context.getSystemService(Context.USB_SERVICE).
- provides support for returning a list all connected USB devices
- broadcasts ACTION_USB_DEVICE_ATTACHED and USB_DEVICE_DETACHED when devices
are added and removed from the USB host bus

UsbDevice:
- represents an attached USB device.

UsbInterface:
- represents an interface on a USB device
- devices may have multiple interfaces if they provide multiple
sets of functionality (for example, android phones typically have interfaces
for both USB mass storage and adb)

UsbEndpoint:
- represents an endpoint on a USB interface
- endpoints are used for sending or receiving data
(only in one or the other direction)

UsbRequest:
- encapsulates a send or receive request to be sent over an endpoint

Change-Id: Ieef3e434c62760770ea839070cf5eba1a705967a
Signed-off-by: Mike Lockwood <lockwood@android.com>
UsbManager.aidl
sbConstants.java
sbDevice.aidl
sbDevice.java
sbEndpoint.aidl
sbEndpoint.java
sbInterface.aidl
sbInterface.java
sbManager.java
sbRequest.java
80f3376b3a0f9c677c37c98382d1021bed6c5633 22-Jan-2011 Mathias Agopian <mathias@google.com> am b92a40eb: am 12d014fd: Merge "fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE" into gingerbread

* commit 'b92a40ebfaf49783f942b75b413e1499e149c3bb':
fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE
c2b4e21320d85d48e45f6a76e4927adb380c85b8 17-Jan-2011 Mathias Agopian <mathias@google.com> fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE

- make sure to call onAccuracyChanged only when it actually changes
- only call onAccuracyChanged on Magnetic and Orientation sensors, which
are the only ones to support it.
- for other sensors, call onAccuracyChanged only once with the
SENSOR_STATUS_ACCURACY_HIGH value

Change-Id: Ic861e3d48d3b98dab74ffebe2746576f5b69f371
ensorManager.java
fd6f39e147dc077139a41b9c2a4039fbaa20224e 20-Dec-2010 Jamie Gennis <jgennis@google.com> Enable camera preview to a SurfaceTexture.

This change adds a public Java API to use a SurfaceTexture as the
destination of camera preview frames.

Change-Id: If537fed2df12c5c181e2af5f817985c1bda853fb
amera.java
264f6cd0b9215f75dd5917252abea98e8fce6222 06-Jan-2011 Mike Lockwood <lockwood@android.com> Temporarily remove UsbManager support for USB host.

A new USB host API will be added in an upcoming commit

Change-Id: I5816c10c7acd236d31ab8ae255fc83c77121eea0
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
70588bf864f961974c93aace7586d3e2773a54a8 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 3a2c6bf0 to master

Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
69ea4e15e52c456537575d21443ac1efdb03a902 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Documentation fixes found over vacation hacking.

Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
amera.java
d07c9d5d920c261ef10efc825ee5225e83ad1c5b 29-Dec-2010 Mike Lockwood <lockwood@android.com> UsbManager: Add methods to convert between USB device names and IDs

Change-Id: I199a47805b629cc7b1714191d6af2fd70c2bda6d
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
b92df0f66926252cf60cdda7812bb1d50ce9378e 11-Dec-2010 Mike Lockwood <lockwood@android.com> Clean up USB notifications:

Add support for separate USB connected and configuration events

Include both USB connected/disconnected and configuration state
in USB_STATE Intent

Remove redundant USB_CONNECTED and USB_DISCONNECTED Intents
Now we just have the sticky USB_STATE broadcast

Move USB disconnnect rebouncing from Tethering to UsbService

Change-Id: Id13eb0c5d51152d2a538985d680ba1db7d2241dc
Signed-off-by: Mike Lockwood <lockwood@android.com>
sbManager.java
770126a678ccc9328a89407ffc82f4d998b25427 10-Dec-2010 Mike Lockwood <lockwood@android.com> Rename android.hardware.Usb to UsbManager and UsbObserver to UsbService

In preparation for an upcoming change that will make UsbService into a real system service

Change-Id: Id85d624cfc6b10b49a08105cfaaacc667a492c12
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
sbManager.java
6fa74a54346d136294593a4e60d3a59d94b3493c 07-Dec-2010 Dirk Dougherty <ddougherty@google.com> am 0d49a4e8: am 0871ee0c: Doc change: fix href to axis_globe_inverted orientation diagram.

* commit '0d49a4e838769252a313738e30fe78557f769a59':
Doc change: fix href to axis_globe_inverted orientation diagram.
0871ee0c6f43a7201ce49a66211c1c850eabeb6b 07-Dec-2010 Dirk Dougherty <ddougherty@google.com> Doc change: fix href to axis_globe_inverted orientation diagram.
ensorManager.java
dd0b16c26834d9a58b9865a467c7a26ea14482f3 22-Sep-2010 James Dong <jdong@google.com> Add two methods to Camera.java

o getSupportedVideoSizes() allows us to retrieve the list of the supported
video sizes from the camera

o getPreferredPreviewSizeForVideoRecording() allows us to retrieve the
preferred/recommended preview size for camcorder applications

bug - 3237021

Change-Id: I52fc9938d389bb411406320b0309775b6f44f4dc
amera.java
33962f8c7dee1271be2c08e06f903db938be749b 01-Dec-2010 Mathias Agopian <mathias@google.com> am be0ece6f: am 186b68b7: Merge "allow rotation-vector to have 4 components" into gingerbread

* commit 'be0ece6f855ee2ab52309b6633def90ddeab38ee':
allow rotation-vector to have 4 components
7badd2c402f9e8e9fd13f6915ad2e32301f9f305 23-Nov-2010 Mathias Agopian <mathias@google.com> allow rotation-vector to have 4 components

- upadte documentation for rotation vector
- update method dealing with rotation vector to deal with 4 components
- virtual rotation-vector sensor reports all four components
- improve SensorManager documentation layout

Whent he 4-th component of the rotation-vector is present, we can save
a square-root when computing the quaternion or rotation matrix from it.

Change-Id: Ia84d278dd5f0909fab1c5ba050f8df2679e2c7c8
ensorEvent.java
ensorManager.java
4e911849caa9a4c3fe7ba9d820930465ba54de29 20-Nov-2010 Wu-cheng Li <wuchengli@google.com> am fb6f4505: am 589e8381: Merge "Improve camera documentation." into gingerbread

* commit 'fb6f4505ba5c227cebb73f1269b0af5d92e6e5e6':
Improve camera documentation.
589e838116b0dffa696fa39336d0588124877f98 20-Nov-2010 Wu-cheng Li <wuchengli@google.com> Merge "Improve camera documentation." into gingerbread
b4673f757fb62e071824392e364c4a4746e5cb0d 20-Nov-2010 Mathias Agopian <mathias@google.com> am d3b5510b: am 927e7410: Merge "Fix SensorManager.getOrientation() documentation." into gingerbread

* commit 'd3b5510b8505c6c653469193a40f6431272085f3':
Fix SensorManager.getOrientation() documentation.
f71384cd6141c50f589178d309db3ceeb848fb30 20-Nov-2010 Mathias Agopian <mathias@google.com> Fix SensorManager.getOrientation() documentation.

This function doesn't use the same reference coordinate system used
for the rotation matrix, unlike what the documentation previously
stated.

Change-Id: I38abeb74540d33b67f72993b54d7a00a73588dde
ensorManager.java
99a3f3e4e06b4370101ca97cc11dbe81d772fefa 19-Nov-2010 Wu-cheng Li <wuchengli@google.com> Improve camera documentation.

bug:3212606
Change-Id: Iee7106e4665c08a4c75471114010b75d63ac74ce
amera.java
90d6b69426857296ea923306e6c3d7a210b7bc47 10-Nov-2010 Mathias Agopian <mathias@google.com> am 0e438287: am b48189cc: Merge "Improve gyro and accelerometer java doc" into gingerbread

* commit '0e438287995698aacdda715713300fc01a6d1585':
Improve gyro and accelerometer java doc
fa33565714e4192dbab446ee1fbccb87dd414bed 09-Nov-2010 Mathias Agopian <mathias@google.com> Improve gyro and accelerometer java doc

Change-Id: If055512cb51d6e3b9f2094a730bf373ca963d97d
ensorEvent.java
0a514792edfdd8af91f114155585c891ef3ad9d5 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> am 2ee0af48: am a48b70fa: Camera.open() should only return back-facing camera.

* commit '2ee0af48a3ebb4ac1bbf5e867850519b424e5a06':
Camera.open() should only return back-facing camera.
0bae6163644d387a32bf3cd0dde0fa3b9242eb5d 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> am 6025ecec: am 17ae3597: Revert "android.hardware.Camera.open only returns back-facing camera."

* commit '6025ecec2a0c37cdd0b25c85f6ffc54e35b42426':
Revert "android.hardware.Camera.open only returns back-facing camera."
f90a0e84fe80f761bb0f69948a7a59043b11aa2f 09-Nov-2010 Wu-cheng Li <wuchengli@google.com> am 28345ef6: am 07b88fef: android.hardware.Camera.open only returns back-facing camera.

* commit '28345ef6e1171bf5da792bb743c1a986a539ee4b':
android.hardware.Camera.open only returns back-facing camera.
a48b70fa8ff6363d1e5282be70f6be12bc0688dc 08-Nov-2010 Wu-cheng Li <wuchengli@google.com> Camera.open() should only return back-facing camera.

Also update current.xml and 9.xml. setRotationHint was also
missing from 9.xml.
bug:3173302

Change-Id: Idd3f7417a4d35c65910e9b08a1bfd157b91e1baa
amera.java
17ae359721ba74399e785369346509b776999d1f 08-Nov-2010 Wu-cheng Li <wuchengli@google.com> Revert "android.hardware.Camera.open only returns back-facing camera."

This reverts commit 07b88fefd4e6386ad3265da47d008b40e6a58891.
amera.java
07b88fefd4e6386ad3265da47d008b40e6a58891 08-Nov-2010 Wu-cheng Li <wuchengli@google.com> android.hardware.Camera.open only returns back-facing camera.

bug:3173302
Change-Id: I813e41b36c776246f151b66ef289cdf13a05dc2c
amera.java
49686be71e61159d14bf6f73762aec08bfb1c344 04-Nov-2010 Mathias Agopian <mathias@google.com> am b20c2e7c: am 477c4fee: Merge "[3163098] Fix bug in angleChange funtion which caused the returned angle change to be zeroall the time. The fix is to use PrevR instead of computing the difference between R and R." into gingerbread

* commit 'b20c2e7ca03f5ef2694b20ff9a7a10a7249eb936':
[3163098] Fix bug in angleChange funtion which caused the returned angle change to be zeroall the time. The fix is to use PrevR instead of computing the difference between R and R.
34884b409e24c1183b6be4f0611b8ea22e62dc10 04-Nov-2010 Kevin Powell <kpowell@invensense.com> [3163098] Fix bug in angleChange funtion which caused the returned angle change to be zeroall the time. The fix is to use PrevR instead of computing the difference between R and R.

Change-Id: I59cacab4c7108cfb4a17fd1021de7473e6faa74f
ensorManager.java
d55f7e56b9761227f0a310b34d9016fde91613d6 14-Oct-2010 Wu-cheng Li <wuchengli@google.com> Mirror the camera preview if the camera is front-facing.

bug:3095272
Change-Id: Ib1c1d1edc06a33e9d4d2dcb42bc1dd2c25b1310c
amera.java
0c636055351f2e1d26138cf7b3bf3c82553e68c4 22-Oct-2010 Mathias Agopian <mathias@google.com> Merge "Mirror the preview for front-facing cameras. do not merge" into gingerbread
4ef36afa3273bc15a59c3262e41e61d7ccba6c3e 21-Oct-2010 Dirk Dougherty <ddougherty@google.com> am 18cbc0e5: am 3466e1fc: Merge "Doc change: escape angle brackets in javadoc comment." into gingerbread

Merge commit '18cbc0e58a0e68411dff655f116a7010c3f464a2'

* commit '18cbc0e58a0e68411dff655f116a7010c3f464a2':
Doc change: escape angle brackets in javadoc comment.
3466e1fc6db1fed35e2707c67a9ab17673aaf9de 20-Oct-2010 Dirk Dougherty <ddougherty@google.com> Merge "Doc change: escape angle brackets in javadoc comment." into gingerbread
b982fb4fd36a3cd24a0bb17c964139fe4c9cbb47 19-Oct-2010 Wu-cheng Li <wuchengli@google.com> Mirror the preview for front-facing cameras. do not merge

Now overlay does ROT_90 before FLIP_V or FLIP_H. It should be FLIP_V
or FLIP_H first. The formula should be changed after overlay is fixed.

bug:3059865
Change-Id: Ie4366bf7f1fcac7383e8dfc74b1b865997bbbcc6
amera.java
4b3370a31cf9cc497b6de0d4a5414f1951c6f33b 19-Oct-2010 Wu-cheng Li <wuchengli@google.com> am 9bf511db: am f73d48d7: Merge "Fix some camera orientation javadoc errors." into gingerbread

Merge commit '9bf511db85db8e8eff8833b3ec2c30cef12f9188'

* commit '9bf511db85db8e8eff8833b3ec2c30cef12f9188':
Fix some camera orientation javadoc errors.
2fe6fcaff4bdab45484055d6c18dd96d1b7b7be1 15-Oct-2010 Wu-cheng Li <wuchengli@google.com> Fix some camera orientation javadoc errors.

bug:3105659
Change-Id: I0e54f6dd3aa8aeb2494f2596130a5aeb9e1449ba
amera.java
75ceb8d9dbf60943a048098075091bc1e835f1ee 18-Oct-2010 Dirk Dougherty <ddougherty@google.com> Doc change: escape angle brackets in javadoc comment.

Change-Id: Iad525e3575bc8e8cd65c7127b45a56a6fb56245d
ensorEvent.java
e1199e382f875ca6a41ba4991b3e5c3d784729ba 09-Oct-2010 Wu-cheng Li <wuchengli@google.com> am 9df14085: am 29332971: Merge "Add javadoc for display orientation." into gingerbread

Merge commit '9df140851375a977ad99390d71edf8b4a8382fd4'

* commit '9df140851375a977ad99390d71edf8b4a8382fd4':
Add javadoc for display orientation.
c157e0cd161e5b3b28b72bafebb3360ed856a608 07-Oct-2010 Wu-cheng Li <wuchengli@google.com> Add javadoc for display orientation.

Display orientation should be considered while setting preview size,
picture size, or thumbnail size.

bug:3051937
Change-Id: I3b6bd1b920e4752ffdfc8aec56a0da9d474dd630
amera.java
1eb98bdb448ea3bd7d4d2b6b2f3e3406a03fb21b 30-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 6bbc2f15: am 2fb818ca: Fix the javadoc of Parameters.setRotation.

Merge commit '6bbc2f1562ddc1be65aafcce63896f5899596c2a'

* commit '6bbc2f1562ddc1be65aafcce63896f5899596c2a':
Fix the javadoc of Parameters.setRotation.
2fb818ca7dd53d00646854a2473f1a69be43067c 14-Sep-2010 Wu-cheng Li <wuchengli@google.com> Fix the javadoc of Parameters.setRotation.

setRotation needs to consider the orientation of cameras.
Change-Id: I3ef23dc088647dacdddbb83e3f303c16b9251185
amera.java
d276720edb060617168388f44005f0960fa89ad1 21-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 2ad1ebca: am d45cb72a: Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.

Merge commit '2ad1ebcaabb632c8fe714f0c3fd88bdfa14697bd'

* commit '2ad1ebcaabb632c8fe714f0c3fd88bdfa14697bd':
Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.
d45cb72ac0d7d57829ffc9223decb89a5fc42ce2 21-Sep-2010 Wu-cheng Li <wuchengli@google.com> Rename FOCUS_MODE_CONTINUOUS to FOCUS_MODE_CONTINUOUS_VIDEO.

This constant is not public yet. Continuous autofocus should
behave differently in still camera and camcorder. In camcorder,
lens movement may be more smooth. And the triggers to start a
new focus search may be different. If there is a need,
FOCUS_MODE_CONTINUOUS_PHOTO can be added in the future.

Change-Id: I05df9e491aca37829be3df92a73b952f26c86a4a
amera.java
99ce45732030d379549f74248f1f5cc88dfbf191 17-Sep-2010 Mathias Agopian <mathias@google.com> am 8f476407: am 08710dcd: Merge "part of fix for [3004226] Cannot end the call - Proximity sensor doesn\'t work" into gingerbread

Merge commit '8f476407bf4e6283b128532d594d44cc527e8204'

* commit '8f476407bf4e6283b128532d594d44cc527e8204':
part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work
7bb3e78ff37ebe4e25fbb5e408b9a02032d26369 17-Sep-2010 Mathias Agopian <mathias@google.com> am 3a35f078: am 079ed615: Merge "fix [2931909] SensorManger breaks when using different SensorEventListener w/ the same sensors" into gingerbread

Merge commit '3a35f078e75cd3f63e57b0fffbac486e12a0a933'

* commit '3a35f078e75cd3f63e57b0fffbac486e12a0a933':
fix [2931909] SensorManger breaks when using different SensorEventListener w/ the same sensors
4d3cb63b9b9177b79c575ca1b21040cc42ee7879 17-Sep-2010 Mathias Agopian <mathias@google.com> part of fix for [3004226] Cannot end the call - Proximity sensor doesn't work

- In SensorEventQueue, only bail on errors from Looper::loopOnce
- Improve sensor error logging

Change-Id: Ib3cf8d5d9fdac8513a3d753155827e0feeda1662
ensorManager.java
ec33b82c42f3dd996a72b80359c87524b51ffb2a 15-Sep-2010 Mathias Agopian <mathias@google.com> fix [2931909] SensorManger breaks when using different SensorEventListener w/ the same sensors

- Sensor handle can now be arbitrary instead of being limited to 0-31
- make sure to disable sensors only when no listener uses them anymore

Change-Id: If656c8c24d9827a7db1de3b3aa89961abb7def0c
ensorManager.java
16d508acb318f391f22572a1e1c7ea4ba806cb6e 16-Sep-2010 Wu-cheng Li <wuchengli@google.com> am 4db458b4: am a6f41495: Merge "Update camera API and javadoc for API review comments." into gingerbread

Merge commit '4db458b4f71cd9ccbb98f5bf2c08e1f0eb750548'

* commit '4db458b4f71cd9ccbb98f5bf2c08e1f0eb750548':
Update camera API and javadoc for API review comments.
7836660f5eb45b7b7e1f5119face65c80e2ade17 15-Sep-2010 Wu-cheng Li <wuchengli@google.com> Update camera API and javadoc for API review comments.

bug:3001395
bug:3001399
Change-Id: I7030c4eff94ab11f44b862e8c206fb69a4e5c428
amera.java
612ff27425cf2976396d992f32b58ab900c7d708 07-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Quell annoying Java ascii/unicode warning.

This fix is already in master, so just cherry-picking it here too.

Change-Id: I28c57171aa3e55933c3e98555575a074b25b2b2a
ensorEvent.java
6ed727e39e945a512cd870e3136dd47927242020 31-Aug-2010 Mike Lockwood <lockwood@android.com> Merge "USB: Add functions for querying if a USB function is supported and enabled."
08bff3b9d4c0a66c3aaac45db68207d08276fd38 31-Aug-2010 Mike Lockwood <lockwood@android.com> USB: Add functions for querying if a USB function is supported and enabled.

Change-Id: I5fc24960e1e01c27e892acc2e76c12ddf8c654cb
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
b8f7f42f70790121f954c2ae3d2e7b915808510a 30-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 6e46e6f7: am 7ec7b997: Remove camera metering mode API.

Merge commit '6e46e6f7488ad1f4e6ab762d141790798fe3f2d5'

* commit '6e46e6f7488ad1f4e6ab762d141790798fe3f2d5':
Remove camera metering mode API.
7ec7b9970cc3a6311bf043e228991adf24c43523 28-Aug-2010 Wu-cheng Li <wuchengli@google.com> Remove camera metering mode API.

Metering mode is not supported yet.

Change-Id: Id6906d6ab0cd1a9dcbc5c303d8d5081b2cda699e
amera.java
769690e9ea87e00dee7c15d652333eaa2c6c5264 28-Aug-2010 Wu-cheng Li <wuchengli@google.com> am af610b2b: am 1620d118: Fix SDK build error.

Merge commit 'af610b2b9fbf6a7e5e03d3d8bce2f4e082d21048'

* commit 'af610b2b9fbf6a7e5e03d3d8bce2f4e082d21048':
Fix SDK build error.
7fe6d3f13ae18a85c09bf38ea1f3281280a9fd48 28-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 705c2e66: am d851e6fe: Merge "Unhide camera fps range API and deprecate old ones." into gingerbread

Merge commit '705c2e66dcb358c865cf912a5496825088044b79'

* commit '705c2e66dcb358c865cf912a5496825088044b79':
Unhide camera fps range API and deprecate old ones.
1620d118a49dc6df7b0e83d7343f8a8bb6e23b12 28-Aug-2010 Wu-cheng Li <wuchengli@google.com> Fix SDK build error.

Change-Id: I4705c10da850d684caa7067d656aff11bc65acbb
amera.java
5f1e69c76ef5886ed65e303490c5f660da4756ef 18-Aug-2010 Wu-cheng Li <wuchengli@google.com> Unhide camera fps range API and deprecate old ones.

Original preview frame rate API assumes the frame rate
is fixed. It does not not work with auto frame rate camera.

Change-Id: I1233a22ed64d42f167432085716bb6bfc3d36bbf
amera.java
dcde3a8abec3d2d9c1261fef5fb6015c16382346 26-Aug-2010 Mathias Agopian <mathias@google.com> am a62dfe9e: am 94e939e8: Merge "Improve Sensors documentation a bit" into gingerbread

Merge commit 'a62dfe9e49ea785c4be2173479e4472767771ce5'

* commit 'a62dfe9e49ea785c4be2173479e4472767771ce5':
Improve Sensors documentation a bit
43c87e44fc0d7d7b37e039752c0dec093e227381 25-Aug-2010 Mathias Agopian <mathias@google.com> Improve Sensors documentation a bit

Change-Id: I6f4f9ebfaf1e7f461a795f717b9913e3a021e9d4
ensorManager.java
0a5699654f33fc41a9baed26abb9b867ba439399 24-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am f235a519: am ec58dff0: Fix build - remove dead doc link

Merge commit 'f235a519398d47db1bbb8eb5e773565314b1fa4f'

* commit 'f235a519398d47db1bbb8eb5e773565314b1fa4f':
Fix build - remove dead doc link
1770b21ab597e059eb54c9ef268c6ba9a38116d2 24-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am 0460e26a: resolved conflicts for merge of 691be97f to gingerbread-plus-aosp

Merge commit '0460e26a4c9915f77c915d2cc3540969802b02fa'

* commit '0460e26a4c9915f77c915d2cc3540969802b02fa':
add new sensor types for handling gyro data and device orientation
eee09313c659b1c97ef6188b6ae4066c87615159 24-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 346b6126: am 97a56269: Merge "Add camera fps range API." into gingerbread

Merge commit '346b6126d54bda4ddc705b27f49004b5cf3a2b3e'

* commit '346b6126d54bda4ddc705b27f49004b5cf3a2b3e':
Add camera fps range API.
7a0541d6b803da02b8724b1d140d6ccaaec23a36 20-Jul-2010 Kevin Powell <kpowell@invensense.com> add new sensor types for handling gyro data and device orientation
more efficiently.

Change-Id: Ifbcf2caae0865eccf1c9b8060342185c22145a30
ensor.java
ensorEvent.java
ensorManager.java
f235a519398d47db1bbb8eb5e773565314b1fa4f 21-Aug-2010 Jean-Baptiste Queru <jbq@google.com> am ec58dff0: Fix build - remove dead doc link

Merge commit 'ec58dff06693342f12f295fdb7b41cfcbaeb4f14' into gingerbread-plus-aosp

* commit 'ec58dff06693342f12f295fdb7b41cfcbaeb4f14':
Fix build - remove dead doc link
ec58dff06693342f12f295fdb7b41cfcbaeb4f14 21-Aug-2010 Jean-Baptiste Queru <jbq@google.com> Fix build - remove dead doc link

Change-Id: I72e05d41819c14bf67d721740e0d48c71eeae397
ensorManager.java
0460e26a4c9915f77c915d2cc3540969802b02fa 21-Aug-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 691be97f to gingerbread-plus-aosp

Change-Id: Ic095e7f9203eb1465ddf3c195ebf1200e9393124
454630f23784afcf3dd6fc58becbb9fb6aa878a9 12-Aug-2010 Wu-cheng Li <wuchengli@google.com> Add camera fps range API.

Original preview frame rate API assumes the frame rate
is fixed. It does not not work with auto frame rate camera.

Change-Id: I38f7122ac8ec844ffd63558dc0763ffa17b0926a
amera.java
49eda504150e9f1e91c5ea51b1b361c270fa4055 20-Aug-2010 Mathias Agopian <mathias@google.com> am 4195d097: am 8ad86fef: Merge "Improve documentation of getAltitude" into gingerbread

Merge commit '4195d097c535acf9e1c60b323134fcb5609c18b7'

* commit '4195d097c535acf9e1c60b323134fcb5609c18b7':
Improve documentation of getAltitude
f35fd959fe499c61ee0d97d5b0c8feb469397a42 20-Jul-2010 Kevin Powell <kpowell@invensense.com> add new sensor types for handling gyro data and device orientation
more efficiently.

Change-Id: Ie19992f6599e528a79931f4ae592898dac15412e
ensor.java
ensorEvent.java
ensorManager.java
24844c9a30cf20467cd19d28f2e74de74c9c3622 18-Aug-2010 Wu-cheng Li <wuchengli@google.com> am a2527055: am c8696023: Merge "Document that autoFocus must be called in auto and macro mode." into gingerbread

Merge commit 'a2527055f8e3106fe70feeee10ae0c4ddc6596e9'

* commit 'a2527055f8e3106fe70feeee10ae0c4ddc6596e9':
Document that autoFocus must be called in auto and macro mode.
a6704d39b31417dc674d3866f43dad4ce3f850b1 18-Aug-2010 Mathias Agopian <mathias@google.com> Improve documentation of getAltitude

Change-Id: Ie6c61fa6018e54143cec6e65978df9abb48854d9
ensorManager.java
f008f3ea82a0518375ee4ea41b32451badffbd95 17-Aug-2010 Wu-cheng Li <wuchengli@google.com> Document that autoFocus must be called in auto and macro mode.

Change-Id: Ia52f8bc8a75a7473edff50326a4a0467f4295e6a
amera.java
fd83b2f92edf3d1f95161ad3cb2b45826bad6e35 12-Aug-2010 Wu-cheng Li <wuchengli@google.com> am 77a473fb: am ccaa0028: Merge "Improve camera documentation." into gingerbread

Merge commit '77a473fbcea0214832255af91e0a65d853757aae'

* commit '77a473fbcea0214832255af91e0a65d853757aae':
Improve camera documentation.
699fe9397974685e6b2c73f9a3a0eb9e5a5a2ccf 05-Aug-2010 Wu-cheng Li <wuchengli@google.com> Improve camera documentation.

Change-Id: I3c9e5e6de5ce64b8d7d892483930238fa9cc247c
amera.java
fdece4bbbf7d3c9d503827d7da7ee576350d232b 30-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of dfce290b to master

Change-Id: I9caace962cb0a697dd99ed92c5f35e57690fdf91
ce49d03aa40123a086d6017052873bed83835298 30-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of 02513855 to master

Change-Id: Ie33d57798d3d5b800edde753dac86de062bc270c
04d7e83e65e246e154b5b346e3eb0081b741ae88 30-Jul-2010 Mathias Agopian <mathias@google.com> Added SensorManager.getAltitude()

this is a helper function to calculate the altitude from the
pressure and pressure at sea level.

Change-Id: I3f6f14fee6190388f95afa36a66287e3d59eef9b
ensorManager.java
050b56244ff46d43e4886018d7cd20f0b1dc02b9 30-Jul-2010 Mathias Agopian <mathias@google.com> Added SensorManager.getMinDelay()

Exposed the new "min delay" sensor property through native and
java sensor apis. This allows the caller to know what is the
maximum rate at which a sensor can return events, or, if a sensor
works in "update" mode (events returned only when the value changes).

Also augmented SensorManager.regusterSensorEvent() so that it can
accept a value in microsecond in addition to the 4 constants already
defined.

Change-Id: If425e9979892666df8c989d7de3c362230fa19e0
ensor.java
ensorManager.java
da39f0e87814c5acb8b6319a1877b93197fb910e 28-Jul-2010 Mike Lockwood <lockwood@android.com> Send Intents when PTP compatible devices are connected/disconnected to USB

Usb.ACTION_USB_CAMERA_ATTACHED and Usb.ACTION_USB_CAMERA_DETACHED are sent
when cameras are connected and disconnected.
The data field of the intent contains a Uri for the camera in the Mtp content provider.

Change-Id: I814221b4f0507b309997c71edb5a041e8efc54f7
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
50558b956157dad980441bf4fb44931ce834e36b 22-Jul-2010 Mathias Agopian <mathias@google.com> resolved conflicts for merge of bc54e63c to master

Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
e4764521353e898554931a557460fc49209fb0a9 22-Jul-2010 Mathias Agopian <mathias@google.com> Merge "new SensorService" into gingerbread
02b77f81cfcb7c0105ecc012bcc791f0e2c02e6a 21-Jul-2010 Dan Egnor <egnor@google.com> am 79102ad0: am fb1c0fe7: Merge "resolved conflicts for merge of 9bc4039a to gingerbread" into gingerbread

Merge commit '79102ad0f56135335bccc935bbaeb4c5d8115214'

* commit '79102ad0f56135335bccc935bbaeb4c5d8115214':
COMMENT-ONLY change to clarify Camera documentation.
341ff13689dfe822b598e626272ac2e80041b482 20-Jul-2010 Dan Egnor <egnor@google.com> resolved conflicts for merge of 9bc4039a to gingerbread

Change-Id: I6f9262fb293a67cbc04e5756205ae56e28c299ec
1bf797857e025e8a71db86fb9e79765a767ec1eb 15-Jul-2010 Mathias Agopian <mathias@google.com> new SensorService

remove old sensor service and implement SensorManager
on top of the new (native) SensorManger API.

Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
SensorService.aidl
ensorManager.java
bfcbeffc54e93b1c2e2d95fdc301786df4376d6f 13-Jul-2010 Dan Egnor <egnor@google.com> COMMENT-ONLY change to clarify Camera documentation.

Change-Id: I6b75cfdfc34d1c16d93c02a32649022ce5505b11
amera.java
dbd77cd444f89d94ec5333223c1bc17dbe0c90cd 09-Jul-2010 Romain Guy <romainguy@google.com> Remove support for density compatibility in the hardware renderer.

Change-Id: I535e919986e5ccfb344ede8516ccd84c02642823
ensorEvent.java
f3f25bf80b7d21f12442da8f82d17c79dd371692 07-Jul-2010 Dan Tasse <dantasse@google.com> Added some javadoc to Camera.takePicture()

Change-Id: I62597a1417647eeac7611eaccd0df3bda210e3e7
amera.java
0f791a799dc81d93935fd2597297cf7ac2c0a044 23-Jun-2010 Mathias Agopian <mathias@google.com> More improvements to the SensorManager documentation

Change-Id: I8ab79e8787402f0db572226029820b3cf605086f
ensor.java
ensorEvent.java
ensorManager.java
606d591afee24e31e3885a7330638893db1710f5 29-Jun-2010 Mike Lockwood <lockwood@android.com> Merge "Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state" into gingerbread
709981eeedc5c6d640fbb3ecc1ebdcd39d748802 28-Jun-2010 Mike Lockwood <lockwood@android.com> Add new Usb.ACTION_USB_STATE sticky broadcast for monitoring USB connect state

This can be used instead of ACTION_USB_CONNECTED and ACTION_USB_DISCONNECTED
by clients that need to be informed of both USB connect and disconnect events

Change-Id: Ic26927af2e775c2694d18775f9d574c97b095dfd
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
de1057c4a6aa41c3b88bcc4fd49d70f973f1d9eb 14-Jun-2010 Chih-Chung Chang <chihchung@google.com> Unhide new API for supporting multiple cameras.

Change-Id: I916a536c80330444a15986ba380205a6deed2390
amera.java
2423607a32d63a0c646b17758ebeb4dc1d0b791f 23-Jun-2010 Mike Lockwood <lockwood@android.com> Add a new UEventObserver subclass to broadcast an Intent whe USB state changes.

We now broadcast Usb.ACTION_USB_CONNECTED and Usb.ACTION_USB_DISCONNECTED
when USB is connected or disconnected.
The ACTION_USB_CONNECTED extras indicate the enabled/disabled state of
all USB functions.

Change-Id: I11495d039429dbe22bd738067296e39ae415befa
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb.java
74cde2cee9e53006a710f4e80700cd560c2d0e4d 17-Jun-2010 Mathias Agopian <mathias@google.com> Improve SensorManager documentation

this pass is mostly just formating.

Change-Id: Ica7dd014c301817c93e915c08b16da99769eaabb
ensor.java
ensorEvent.java
ensorManager.java
724c52244423feced2677fbd1f905e0b8b0639f2 14-Jun-2010 Chih-Chung Chang <chihchung@google.com> Correct the setDisplayOrientation sample code.

Change-Id: I37af4090b383204a5fd228a4388732e11ef2fa8c
amera.java
b8bb78f54b48868465a9d69d65fda08524ab5ae1 10-Jun-2010 Chih-Chung Chang <chihchung@google.com> Change camera interface to support multiple cameras.

Change-Id: Ie88fe706d2278acf762eca87780de349434778a4
amera.java
2fd73a452268d2acb6e72a1d23a422085ed3c510 11-Jun-2010 Wu-cheng Li <wuchengli@google.com> Unhide camera metering mode API.

Change-Id: Ia3ca83e2a0b5b322e5dbf9ae3d5c1d3b89e0fd31
amera.java
f7f6333831e7b991d92abeddfbd46c2884afa405 03-Jun-2010 Wu-cheng Li <wuchengli@google.com> Add camera metering mode API.

bug:2737111
Change-Id: Ie986fee56ebeaaed2d2efb757701dfe3ffdec8d8
amera.java
00e21f8eb57a7ae2c19516aa0290ab4fb5f251c2 28-May-2010 Wu-cheng Li <wuchengli@google.com> Add javadoc for camera scene modes.

Change-Id: Iab596a6fb77107ffc04fa59d84e18f8e064e336a
amera.java
d2c2929c94bec68741b85f4174e11307fb65157f 28-May-2010 Wu-cheng Li <wuchengli@google.com> Add video frame parameter.

The image format of preview frames and video frames may be different.
We need another parameter for video frame format.

bug:2720893
Change-Id: I966a31b0ce8cab25cdde65db65a18c8cbe9c7bd6
amera.java
185cc455a87c636d48ad9a16c13d2ebad7433735 20-May-2010 Wu-cheng Li <wuchengli@google.com> Fix javadoc of camera focus distances API.

bug:1955650
Change-Id: I073eb533dd1d5fcebbaa430de9af2bf4335c406e
amera.java
e339c5edbebedf446581f18ad70214007309bf4b 13-May-2010 Wu-cheng Li <wuchengli@google.com> Add camera focus distances API.

Applications can use this API to estimate the distance
between the subject and the camera.

bug:1955650
Change-Id: Ie6c8ea4971759cab6c9bcdda2c5ceb5925791c27
amera.java
ca099614841bc619f217dfa088da630a7eb1ab65 06-May-2010 Wu-cheng Li <wuchengli@google.com> Add continuous focus mode constant.

bug:2612447
Change-Id: I9bc3f5a47ad50722a265d50b1d28fb82a2253dc9
amera.java
e25cc656392d8866e163f78b60c7791455d0fb44 06-May-2010 Chih-Chung Chang <chihchung@google.com> Support multiple cameras in framework.

Change-Id: I081f0fbdca4b633715ea7c3b3d42f8662d27598a
amera.java
c58b42327df5fbc826e2fcc2674ab6db0edfcd92 29-Mar-2010 Wu-cheng Li <wuchengli@google.com> Add SCENE_MODE_BARCODE and FOCUS_MODE_EDOF.

bug:2544367
Change-Id: If122a7745e080f9e4bffb15dc4930d71f0421867
amera.java
3f4639a6611222ae1ae5493de49213250d292139 04-Apr-2010 Wu-cheng Li <wuchengli@google.com> Update API and javadoc according to API review.

bug:2553570
Change-Id: I0353938f513c119cec0e31eb980dc4569e17d7eb
amera.java
0ca25191c663ef229f1f475b17899f2017ed6980 29-Mar-2010 Wu-cheng Li <wuchengli@google.com> Add some comments for zoom methods.

Also change RuntimeException to IllegalArgumentException.
bug:2458926

Change-Id: I87af31f5f3f10244131a1117bd1725c2d292b587
amera.java
02034d3568fb3b984e8d185d70e18ba19e592ba3 22-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ie60db5faf407344b8fbe3d5c1e7c01e927ff251e
9119caa144c8eafdba986002003521af3aedfe67 16-Mar-2010 Rodrigo Damazio Bovendorp <rdamazio@google.com> Updated to WMM2010

Change-Id: I5937eed4a8775eae044500552ec81030b93acb18
eomagneticField.java
e208377fbab6b90f41e68699700942a81f4caaeb 11-Mar-2010 Ray Chen <raychen@google.com> Add GPSProcessingMethod tag to ExifInterface.

Change-Id: I7575ae3195dc510e7020368794a66bb064839104
amera.java
c10275abd6a494c93a025f683dde104a5d4f2793 09-Mar-2010 Wu-cheng Li <wuchengli@google.com> Document new preview callback methods more clearly.

bug:2358064
Change-Id: If6af1fbf81b78b2a7ad98ce2c398145fd33200ce
amera.java
5b9bcda3a26e9b1f9b1eff28a2be8853d69614f0 07-Mar-2010 Wu-cheng Li <wuchengli@google.com> Unhide new preview callback methods.

bug:2358064
Change-Id: If9655ae8b7622ea6fc51e0054cfac7451962be66
amera.java
540bc0348ab40727a054cdadcf098b098c0bfb0b 05-Mar-2010 Chih-Chung Chang <chihchung@google.com> Unhide reconnect() in Camera.
amera.java
055c986ab841f8f758398841730f1e90313b132a 23-Feb-2010 Ray Chen <raychen@google.com> Add location provider name to gps-processing-method in EXIF header.
amera.java
8cbb8f5e1f939b03515cb4d5942c3fcb226efb9e 01-Mar-2010 Wu-cheng Li <wuchengli@google.com> Unhide zoom API.

bug:2458926
amera.java
61a449393cf29f3960b4e03ec3fad652dac51b88 27-Feb-2010 Mathias Agopian <mathias@google.com> fix [2475541] Deprecate Sensor.TYPE_ORIENTATION

It's much better to use SensorManager.getRotation() instead.
ensor.java
7895da44e32e9c76e07663aae7084f11cbacbbdb 26-Feb-2010 Mathias Agopian <mathias@google.com> SensorManager: handle 270 and 180 rotation in the legacy APIs

Technically these APIs are deprecated, however old apps might still be using them
so we might as well make sure they work in all orientations.
ensorManager.java
210fc914db37b3cf77ebb3bf75b0b509a1ecb07c 26-Feb-2010 Mathias Agopian <mathias@google.com> [2472946] Sensor.TYPE_ORIENTATION returns inverted roll values

Fix the documentation to reflect reality and encourage developpers to use
SensorManager.getRotation() instead of using Sensor.TYPE_ORIENTATION
ensor.java
ensorEvent.java
ensorManager.java
5cb70b54156fb305d579a1cc167424c8705bfdf7 26-Feb-2010 Dianne Hackborn <hackbod@google.com> Rename Display.getOrientation() to Display.getRotation().

Update various docs.
ensorManager.java
0402e7da70715c96af90aa95c16d1bedc5199645 26-Feb-2010 Wu-cheng Li <wuchengli@google.com> Fix SDK build.
amera.java
24b326a8978bf78e3e560723dde221792784325b 20-Feb-2010 Wu-cheng Li <wuchengli@google.com> Unhide exposure compensation API.

bug:2375993
amera.java
a696f5d667227365da732481770767dcb330dd23 18-Feb-2010 Mathias Agopian <mathias@google.com> Add ImageFormat.java and move the Camera/YUV constants from PixelFormat to it.

PixelFormat's corresponding constansts are now deprecated.
amera.java
a18e90176a8e2442837d0503fbfd4adb9df0818f 10-Feb-2010 Wu-cheng Li <wuchengli@google.com> Explain setPreviewFrameRate and getPreviewFrameRate more clearly.
amera.java
ff723b6c43d5a8fd0ae0e0732f5d47012d74e01d 09-Feb-2010 Wu-cheng Li <wuchengli@google.com> Add exposure compensation parameter.

bug:2375993
amera.java
b3dc5eb4e4143b119491a05e89b186763979ef75 04-Feb-2010 Mathias Agopian <mathias@google.com> fix [2313526] sensor enable race condition

Make sure we wait until the SensorThread is running an has open the sensors fd.
Also handle errors when/if this fails.
ensorManager.java
6c8d2760736a0753dad96b4bb8f98c7d075e6d54 27-Jan-2010 Wu-cheng Li <wuchengli@google.com> Add focal length and view angle API.

bug:2375989,2375987
amera.java
4c4300c71229638183d814ab8374e09f722910f5 23-Jan-2010 Wu-cheng Li <wuchengli@google.com> Add Camera.getSupportedThumbnailSizes() and Size.equals().

bug:2375986
amera.java
e7bd22a9d9441916aa9c67d80ee9f02a2d3e10e5 27-Jan-2010 Chih-Chung Chang <chihchung@google.com> Unhide camera api for set display orientation.
amera.java
d1d7706fce19a9a0cf71ff9b65f3aba9b89eeb3b 23-Jan-2010 Chih-Chung Chang <chihchung@google.com> Add support for setting camera display orientation.
amera.java
f5d95cbc1a6974afeb4d3155bdaa8dae55722a39 08-Jan-2010 Joe Onorato <joeo@android.com> less log spew
ensorManager.java
e417158c06c81c8c4dc6794c5421b711e671c7e3 16-Dec-2009 Mathias Agopian <mathias@google.com> fix [2330211] sensors thread priority too low

bump the sensor thread priority to URGENT_DISPLAY. Events will be enqueued
in the UI (or other user provided) thread, which runs at DISPLAY prio.
ensorManager.java
9c79938d47a3caa06e5fb956955374f30c55992b 04-Dec-2009 Wu-cheng Li <wuchengli@google.com> Document that some parameters will not be null and fix getSupportedPictureFormats.
amera.java
40057ce749c8c4d274db0352a2af4344bda92dba 02-Dec-2009 Wu-cheng Li <wuchengli@google.com> Document that stopPreview is not needed before takePicture.

Also, applications can call startPreview after jpeg callback is received.

http://b/2292461
amera.java
4115c518753052add46b017bb3044da6f6169a7b 03-Nov-2009 Mike Lockwood <lockwood@android.com> Add documentation for proximity and light sensors.

Change-Id: I116424c468d1d3afe89e0e17be773ee8b80ada92
Signed-off-by: Mike Lockwood <lockwood@android.com>
ensor.java
ensorEvent.java
94927dffce1626898b59579dfc5af53b5de8cef6 20-Oct-2009 Andrew Harp <andrewharp@google.com> Patching in hidden API to allow app managed preview frame buffers.

Commit-Id: If3c30fc932697afa966cc97b17749e9996de92ee
amera.java
a6118c6383c6f5703a576d08586a340fd71d28a4 13-Oct-2009 Dave Sparks <davidsparks@android.com> Throttle camera preview frames to the app. Bug 2180302.

With higher frame rates and larger preview frames, we can easily
flood the application with too much data. This patch fakes the
old camera preview mode by doing continuous one-shot frames.
After the previous frame is handled, if the application hasn't
cleared the preview callback, we start another one-shot preview
frame. With this change, the application should never have more
than one preview frame unless it is explicitly saving references
to them.

modified: core/java/android/hardware/Camera.java
amera.java
36f68b8f24df906c969581b0b8e1a47f95dc03cb 29-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add zoom functions and sendCommand.

b2060030
amera.java
2988ab7c322aad7508df930204886f334216b65c 01-Oct-2009 Wu-cheng Li <wuchengli@google.com> Add documentation for scene mode. Other parameters may be changed after setting scene mode.
amera.java
77153ee04e4172cb0e123cadaa1e76671dbd840e 30-Sep-2009 Wu-cheng Li <wuchengli@google.com> Hide zoom api.
amera.java
068ef42c3ffe1eccec10f97f08541304f679fe67 27-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add documentation about flash and change video-light to torch.
amera.java
e6bea600fe5600017a4824adb14752a5b915d164 24-Sep-2009 Wu-cheng Li <wuchengli@google.com> Change setRotation documentaion.
amera.java
36322db5752c7ec196f59ba94abe5d5a63cc19f5 18-Sep-2009 Wu-cheng Li <wuchengli@google.com> Add focus API and FLASH_MODE_VIDEO_LIGHT.
amera.java
ffe1cf251a4f8469695b8acfa37270684dc1b70c 10-Sep-2009 Wu-cheng Li <wuchengli@google.com> Unhide Camera lock and unlock API.
amera.java
eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23 18-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2092386: Support yuyv for camera preview format.

Change-Id: I3ef821fed2132a9faf92983324c7e036d0f5641e
amera.java
46ad796186bdca8bac75607340aa0fac0c34a9d8 16-Sep-2009 Chih-Chung Chang <chihchung@google.com> Unhide cancelAutoFocus API in Camera.

Change-Id: I29450867edf9c68ac06e6d76fae0ad93ea89b632
amera.java
7478ea6848c0059e65a4089b4ec2ff4158520870 16-Sep-2009 Wu-cheng Li <wuchengli@google.com> Remove trailing spaces.
amera.java
244f8c26365a303d9dd861bd48a29a4b48578da1 15-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2083478: Camera needs an auto-focus cancel API

Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
amera.java
da0a56df963353a1f1bd1914fa31f870d982dd5a 11-Sep-2009 Scott Main <smain@google.com> resolved conflicts for merge of e0408aa1 to eclair
df4578e8ab7008a7e528d5af2ae761b33cf2bdf4 10-Sep-2009 Scott Main <smain@google.com> docs only.
add documentation to notify developers about variable
camera specifications and add some more links

Change-Id: I46ef9811af17858cbc6547f88e626becb481b043
amera.java
1c632933d93e2c6b845b2a5578019aff68361e2d 02-Sep-2009 Wu-cheng Li <wuchengli@google.com> Fix SDK build breakage.
amera.java
9b6a8ab8221f2df20c32711b0f1e4f301165fac2 17-Aug-2009 Wu-cheng Li <wuchengli@google.com> Add camera parameters constants and methods.
amera.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
ensorListener.java
ensorManager.java
da83f4674a564007baac03db062a289c8158d940 12-Aug-2009 Benny Wong <Benny.Wong@motorola.com> Modified the camera HAL interface to use the same generic callback architecture as camera services
amera.java
e8b26e197f7c5e4acbdf8a5cd3f014fbc242c8ab 14-Jul-2009 Dave Sparks <davidsparks@android.com> Add zoom and postview callbacks to Camera. This patch
adds a zoom callback to the Java layer. If the hardware supports
a smooth zoom function, this provides a way to update the UI as
the zoom is moving from its original setting to the new commanded
setting. This postview callback supports receive a processed
image before the JPEG encode completes. This allows the display
to be rotated without losing the final preview frame.
amera.java
a1b653d41df9a7999e1dba2a508295671ff6771d 02-Jul-2009 James Dong <jdong@google.com> Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
amera.java
b8a10fe45657f2dcc50cae8a06805f8438a6937e 23-Jun-2009 Wu-cheng Li <wuchengli@google.com> Allow setPreviewDisplay after startPreview.
amera.java
c62f9bd13327937aa2d2f20b44215397120634c1 26-Jun-2009 Dave Sparks <davidsparks@android.com> Pipe all the camera callbacks to Java to facilitate the addition
of new features. This will make it easy to add things like zoom
callbacks without modifying the entire camera stack.
Bug 1837832.
amera.java
270e87f71abc2edf446dbec20c725c823e8c7f37 22-May-2009 Mike Lockwood <lockwood@android.com> Sensors: Use a native_handle for the data channel instead of a single file descriptor.

This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
SensorService.aidl
ensorManager.java
287b30920102b5466efa53a2f17ed69f2c776c16 28-Apr-2009 Mathias Agopian <mathias@google.com> fix 1812272 SensorManager method returns hidden object
ensorManager.java
ab5b424db30b478570d83a30497319a72e91068c 22-Apr-2009 Wu-cheng Li <wuchengli@google.com> Remove debug messages.
modified: core/java/android/hardware/Camera.java

modified: camera/libcameraservice/CameraService.cpp
amera.java
5a0cb42f3ffc10502233d94fe4fae629c3111c7b 02-Apr-2009 Chris Tate <> AI 144135: am: CL 144134 Fix issue 1750132 - SensorManager listener 'rate' parameter units are undocumented
Original author: ctate
Merged from: //branches/cupcake/...

Automated import of CL 144135
ensorManager.java
6dee6243bf5ecb96291e62ece7d736c5aee1e505 26-Mar-2009 Andreas Huber <> Automated import from //branches/donutburger/...@142801,142801
ensorManager.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
amera.java
eomagneticField.java
SensorService.aidl
ensor.java
ensorEvent.java
ensorEventListener.java
ensorListener.java
ensorManager.java
ackage.html
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
amera.java
eomagneticField.java
SensorService.aidl
ensor.java
ensorEvent.java
ensorEventListener.java
ensorListener.java
ensorManager.java
ackage.html
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
amera.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
amera.java
15ab3eae2ec3d73b3e8aa60b33ae41445bf83f4b 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
ensorManager.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
amera.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
eomagneticField.java
SensorService.aidl
ensorManager.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
amera.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
amera.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
amera.java
SensorService.aidl
ensor.java
ensorEvent.java
ensorEventListener.java
ensorListener.java
ensorManager.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
amera.java
SensorService.aidl
ensorListener.java
ensorManager.java
ackage.html