History log of /packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1461b5333aab31faee65272d64c2ac7f9809d4d0 05-Jun-2012 Eino-Ville Talvala <etalvala@google.com> Rename Camera to LegacyCamera for SDK inclusion.

The SDK needs a camera app that does not require GPU acceleration.
The Camera app from 4.0.4 meets these requirements.

Change-Id: Idb42d4b9e47d584ef1da10e3ba672d537c8db94b
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
90089f9eddde732725c43dcad07f4567ed8cb776 18-Nov-2011 Wu-cheng Li <wuchengli@google.com> Update camera sound API.

bug:5640219
Change-Id: Ic3af6527f3025ec04ba4be16b621b462f89953f1
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
f30e0fcdd498713b82f8ad0922baa4a8f030dcd9 15-Nov-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Switch sound playing to use Camera.playSound()" into ics-mr1
72eaced345def3746038f1aba3efe2845b274884 10-Nov-2011 Wu-cheng Li <wuchengli@google.com> Do not reset the focus if next snapshot is pending.

+ Suupose autofocus is focusing and a picture will be taken when
focus callback arrives. Remeber the next snapshot request if
the shutter button is clicked.

bug:5589632

Change-Id: Ice8df7145f68996bd307fa5914e1c672bc624239
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
d628e27f561c4bedf0d457f64270fc12740b5280 09-Nov-2011 Eino-Ville Talvala <etalvala@google.com> Switch sound playing to use Camera.playSound()

Instead of using a few private APIs to properly manage audio output
for panorama, effects recording, and focus notification, use the new
Camera API for sound playback.

Bug: 5447107
Change-Id: I7d5a3d9502f36c199ea75a89e2c6b878185f880f
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
abf79a3e25e6c631275e9f81424c0aa25ec9191b 01-Nov-2011 Chih-Chung Chang <chihchung@google.com> am 4d55f6cb: Merge "Remove long pressing shutter triggers autocous." into ics-mr0

* commit '4d55f6cb82c07a6191d2ab8e78fbab8c31e9db89':
Remove long pressing shutter triggers autocous.
60dc073ff3087af41f9cf3b738eaa74bb2212f95 27-Oct-2011 Chih-Chung Chang <chihchung@google.com> Fix 5310099: Accept an array of default values for ListPreference.

The reason we want an array of default values is some of them may
be unsupported on a hardware platform. The first supported value
in the array will be used as the default value.

Change-Id: I9e372304ec0eaea3181cf70c352a50b82d4b8c58
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
30e2c49eedfbce51be7458161829a750f809d56d 27-Oct-2011 Wu-cheng Li <wuchengli@google.com> Remove long pressing shutter triggers autocous.

autoFocus behavior has changed in CAF. The focus callback
will not return immediately if CAF is scanning. There is
no need to have long pressing behavior.

bug:5514415

Change-Id: Iacf14fa3ad48b03c79122296a74e7511c41ea62f
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
048edf2ef22607b85bc4b062e2af71804f5b3530 21-Oct-2011 Chih-yu Huang <akahuang@google.com> Fix focus area in front camera.

Front camera preview is mirrored. Change to use matrix to
calculate the focus area. So the focus area will be
correct in all orientations in front or back camera.

bug:5446617
bug:5461028
Change-Id: I2d39a22cd9f034c5028843ca3d4abe0f9962f18a
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
53be34deae057cfa297c3ee73eee91f880272650 20-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix AE and AWB lock were incorrectly unlocked during autofocus.

The only actual difference of this patch is not to unlock AE
and AWB when the state is STATE_FOCUSING_SNAP_ON_FINISH.

bug:5483130

Change-Id: If5108ef3c3677ebed96a291a505408ebfdc4668e
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
73ab0023b4a9d86ac5fa844116a83aa6c52acf0c 13-Oct-2011 heech.park <heech.park@samsung.com> Implemented full scan AF followed by capture on long pressing the shutter button.

1. In CAF, do full scan AF followed by capture on long pressing the
shutter button.
2. Capture is triggered only if long press is released on the button.

bug:5447399

Change-Id: I9c7d75d76074e2e20d1f1926388315cec2c22eed
Signed-off-by: Raji Reddy Kandi <rajireddy.k@samsung.com>
Signed-off-by: Sam Braganza <sam.braganza@samsung.com>
Signed-off-by: heech.park <heech.park@samsung.com>
Signed-off-by: heech.park <heech.park@samsung.com>
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
9d80a29af1ed57eded5d20af51ef5e704b32b452 07-Oct-2011 Chih-Chung Chang <chihchung@google.com> Remember the snapshot request when the previous one is still in progress.

Change-Id: I6916f775c1143a87c326e5450dfbdaf3008bc3b7
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
1acf35ce296efc6b3ad823a9500f79f71c545201 06-Oct-2011 Wu-cheng Li <wuchengli@google.com> Change focus sound.

bug:5401870

Change-Id: Ifb5c61ad52489c0b8fb711ba6ada624f20f0e880
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
a7a50a45c75585e350eb730574b1e531468e8b18 05-Oct-2011 Wu-cheng Li <wuchengli@google.com> Always show gray focus indicator in continuous autofocus mode.

+ Do not play focus sound in CAF.

Now CAF does not do a full scan. It returns failure most of
the time. It is strange to show red indicator.

bug:5219431

Change-Id: Ie914180e7132f29c8365dcccf810a7787bbf0d54
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
bd29d3c5d59b375d77334aaa426545dc781b95fd 30-Sep-2011 Chih-yu Huang <akahuang@google.com> Use smaller focus area and larger metering area.

Change the length of focusIndicator to 1/4 of height.

bug:5371513
Change-Id: I1a242b9caec9c59c4d6ce2cd70fcf6d4e55dcfc9
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
620e427c0aa990458d39b43477675b768d360327 13-Sep-2011 Wu-cheng Li <wuchengli@google.com> Fix AF failure when shutter and tap focus are triggered at the same time.

When the shutter button and the viewfinder are tapped simultaneously.
(1) onTouch ACTION_DOWN. Tap area is set and AF is not started yet.
(2) Shutter doFocus. AF starts.
(3) onTouch ACTION_UP. AF is called again and an exception is thrown.

Now onTouch always cancelAutoFocus if AF is in progress and the state
is not STATE_FOCUSING_SNAP_ON_FINISH.

bug:5265128
Change-Id: Ib52dcc5169132dde2b688062d812d59e0d7c2d7c
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
6bc0f740f5d7fa6eb8aa8a4ba7dd3ab4dca999d4 08-Sep-2011 Wu-cheng Li <wuchengli@google.com> Do not trigger another aufocous if CAF returns failure.

It was decided CAF will do a full-scan automatically if
the scene is not focused. The app does not need to call
autofocus again.

bug:5265061
Change-Id: Id16444a89c9a64ddd0df0c6817ae3dc0df4f652b
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
20b3c3526ebb8d8a6873f7a1110f23847a843515 01-Sep-2011 Wu-cheng Li <wuchengli@google.com> Update focus rectangle assets.

bug:5223866
Change-Id: I9e938953dd552da784fdea067a9b2b3859e579dd
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
d4832351874aa6eb2cd5e312c21bd4ec607ff3a4 30-Aug-2011 Wu-cheng Li <wuchengli@google.com> Rotate the focus rectangle in different orientations.

The new focus assets look different in portrait and landscape.
Rotate the drawable so the orientation looks correct.

bug:5223866
Change-Id: I5e5ebbcbaca95b118e051fbf6131c1a12584b2f2
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
5d4972e63a1f81139c6503fd433f06c77276fc38 25-Aug-2011 Sundar Raman <sunds@ti.com> Reset the touch AF before calling cancelAutoFocus

If touch AF is reset after cancelAutoFocus then the AF mode
stays at auto and also the touch region passed to the driver
doesnt get reset.

Change-Id: I6bc4241c1fde104e41315e065aaa70489cc7a197
Signed-off-by: Sundar Raman <sunds@ti.com>
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
58dadc3028b3af2e9895089e1b39ad1ab982ece2 25-Aug-2011 Wu-cheng Li <wuchengli@google.com> Fix NPE in FocusManager.

bug:5210804

Change-Id: I39143a3c45d27db6dc2669e3a249945aafddc3c4
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java
d480002ccad05cf992c628c72884091c36cc654c 22-Aug-2011 Wu-cheng Li <wuchengli@google.com> Refactor all focus code to a separate class.

The code about focus is complicated and scattered around.
Move the code to a new class, so it is easier to maintain.

Change-Id: I0214b405bf1596d967e7d89cdb04328322c6ab95
/packages/apps/LegacyCamera/src/com/android/camera/FocusManager.java