History log of /packages/apps/Camera/src/com/android/camera/ActivityBase.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
19088d77af82850443888b0e222c2a6cb452da51 06-Nov-2012 Bobby Georgescu <georgescu@google.com> Update camera to use FilmstripPage

Bug: 7479348
Change-Id: I34733b92e349655d1c7e74ac8b04a8b2af37243b
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
9b96a7c0c863538920d0245cc7819e9d01409c1d 25-Oct-2012 Angus Kong <shkong@google.com> Force renderring request for Camera Animation.

bug:7410862
Change-Id: Ib6788fdafa01734d757804bea3e29c82f363849c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
5bf0244bc2ccc8de9950baf3edd2868b5393d716 17-Oct-2012 John Reck <jreck@google.com> Remove oversizing path from CameraScreenNail

Bug: 7302956

Change-Id: I237ba0f33358f05becbf228d1e342ad069aaceac
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
ed19156e705efb982b351653a3ea9b15f5a08df7 14-Oct-2012 Wu-cheng Li <wuchengli@google.com> Remove old camera classes and xml files.

bug:7201108

Change-Id: I80ac607bed5bbc4a05c13b871017a4a54e76767e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
925d4cf76bc9fba1a4843f58182d809ecdf89daf 15-Oct-2012 Wu-cheng Li <wuchengli@google.com> No need to set contrained frame for camera screen nail.

New camera UI has full screen preview. There is no need
to set contrained frame anymore.

bug:7311572

Change-Id: Ia491c687436d997358fa274f6251c0bd16062acb
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
27e6caa9dfdb349adb676b57716ab93f5bf7494f 10-Oct-2012 John Reck <jreck@google.com> Do a relayout after changing camera frame

Bug: 7311572

Change-Id: Ie87b55c25f68af66f41f44062be702a217854cb4
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
9a4b58dbf402cf0565e718803d2b18d9c0c7b9dc 07-Oct-2012 George Mount <mount@google.com> Don't reuse the screen nail from LightCycle's capture.

Bug 7301201

Change-Id: I50fc4e6c4796ddb6b7b290fe6adba81853c63e61
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d282a28c60ca8f4ee82d519b12e8b0b057b294d4 03-Oct-2012 George Mount <mount@google.com> Blank out image capture after animation has started.

Bug 7280817

Change-Id: I192da2836b80e396317e9e9676bea660df2cf558
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
e14d9149a501183d3b785f4f4aa484c4b85192d1 02-Oct-2012 George Mount <mount@google.com> Enable swipe to Gallery in LightCycleView.

Bug 7212420

Change-Id: Iaee8c4ddbd429f4c731e64082d73908dfd03e4a7
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8afe041f3dda5d632deaffb90d8819d92a0c6846 25-Sep-2012 Doris Liu <tianliu@google.com> Merge "Making back button exit camera" into gb-ub-photos-arches
53b11253fde509b01851ba022d9178c7c6f13dde 25-Sep-2012 Wu-cheng Li <wuchengli@google.com> Show correct UI in secure image capture mode.

bug:7225688
Change-Id: I43e801e22192834d56521e0ca686a8932b57c059
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8e887b3911f3c182011c20d709832755d96a5959 22-Sep-2012 Doris Liu <tianliu@google.com> Making back button exit camera

Bug: 7208910

The bug is that whenever createCameraScreenNail was called, a new activity state
was added to the activity stack. But the activity states never got removed from
the stack until onDestroy is called (i.e. the end of cameraActivity). When back
button is pressed, the top state in the stack got removed and since there
were more than one activity states in the stack, the new top state was resumed,
which is why back button didn't make camera exit.

Instead of always adding a new activity state to the stack, this CL only adds
the state when the stack is empty. Otherwise, it switches the top state to the new state.
It requires changing switchState function in StateManager.java from being only
accessible within com.android.gallery3d.app to public.

This is part 2 of 2 in fixing the bug.

Change-Id: I1809e0250c9560235d5d4933c2878491f643b357
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
ce51afce8c74f2c68e386b2a8f35c4be6772b760 21-Sep-2012 Wu-cheng Li <wuchengli@google.com> Add the support for secure image capture intent.

bug:7141738

Change-Id: I9ed369ef674412ff0bb0665670fc07500d3a304b
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
7717d2f0fc0e1393971cab44b3bba8a0f1297835 19-Sep-2012 Wu-cheng Li <wuchengli@google.com> Reduce latency when camera is started from secure lock screen.

When camera is started from secure lock screen for the first
time after screen on, the activity gets
onCreate->onResume->onPause->onResume. To reduce the latency,
keep the camera for a short time so it does not need to be
opened again.

The activity is started while the lock screen is shown, so it
must be started and paused because it is not visible. Then the
lock screen is removed and now it is visible so can be resumed
again. This is, as defined, how things are supposed to happen.

bug:7110256

Change-Id: I6a36aeffce32c5e17d267b6fe591fe8c65668b9c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
0f78c8811ea8a7464d4bf62053e62c4fae8fe6d0 19-Sep-2012 Alex Ray <aray@google.com> Revert: Do not let recent apps capture camera screen shots.

Bug: 7191713
Change-Id: I62f95f6917da07a735a05723b40745c1d8f79c38
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
cfbf201b06095591a2ae91af2aa4b97a9c4ae9a5 14-Sep-2012 George Mount <mount@google.com> Hook up the shutter button to lightcycle "done"

Change-Id: If2b5cce55008a0bd825845a9e3fe037542653c92
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d3a252bb71d119cbaeff55aeaa27dd1f8adadba2 05-Sep-2012 Michael Kolb <kolby@google.com> New Camera UI

Introduce camera modules
Add photo and video module
Create new camera activity
Doesn't touch current Camera functionality

Change-Id: Ia88b8ad69d7d03f900acbe33dcc96e469f46a5ed
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
c1f6c073113e20fd0dbeae6d26dcc651c9049fd7 06-Sep-2012 Wu-cheng Li <wuchengli@google.com> Do not load the thumbnail in secure camera mode.

Do not load the thumbnail from the file or media store
in secure camera mode.

bug:7053266

Change-Id: If3f59607b7484e53435325620469a9542fcb5d11
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d80b2cd48dd5958a0e9f370ce28c483b3a1dd166 06-Sep-2012 Wu-cheng Li <wuchengli@google.com> Finish the activity when screen turns off in secure mode.

When camera is started from the secure lock screen and the
screen turns off, finish the activity. Otherwise the camera
will be still on top of the lock screen when the screen turns
on. This also makes sure pictures taken in the last use will
not be shown when the camera is started from the lock screen
again.

bug:7053266
Change-Id: Id3df2a7787e43d993f55ed70374d6722e4bfd040
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
27948cf06f3a8947e455d97f29bdd4bfd2caaeaa 31-Aug-2012 Wu-cheng Li <wuchengli@google.com> Merge "Fix camera cannot be started from secure lock screen." into gb-ub-photos-arches
507cbf2df642994a7fa367f5c96634b1a423d6be 30-Aug-2012 Ahbong Chang <cwahbong@google.com> Do not use FLAG_SECURE on Gingerbread.

Setting the flag causes the white screen and flickering on
Gingerbread, so we do not set it.

Bug: 7023285
Change-Id: I3629f0aa826420e50e28b3fd5a6894dd310ee275
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a69fb3ed52ca847962c154233b9ff0865c8c628b 30-Aug-2012 Wu-cheng Li <wuchengli@google.com> Fix camera cannot be started from secure lock screen.

- Let Gallery control FLAG_SHOW_WHEN_LOCKED.
- Do not finish the activity in onPause. The activity may get
onResume->onPause->onResume in a row. It happens when the
screen is just turned on and users swipe to the camera.

bug:5955016

Change-Id: I4b4c48f871bbafd16e7ea5d2da2a10c8e764f21f
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
88e9e4f88caeddac4343638eb72684c70ef3d797 22-Aug-2012 Wu-cheng Li <wuchengli@google.com> Add support for camera launched from secure lock screen.

bug:5955016

Change-Id: Id3dffc947b9a6be20576c3ccf717a54b473488d9
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
ae8b4eecd123aae8593b620b9e0783a03a907a98 21-Aug-2012 Ahbong Chang <cwahbong@google.com> Disable title bar on gingerbread.

Bug: 6982707
Change-Id: Ie9014622171da365c55f19ed7341b638ea51a0dc
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a96d8603560c2131d1555df82b8f64c6eb06909c 19-Aug-2012 Wu-cheng Li <wuchengli@google.com> Rotate the camera screen nail correctly in gingerbread.

bug:6927809

Change-Id: I6f694f44f5443e6a20e14c2aea91437bed5a3402
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
195f07f83be795b2dfc0cdd12636a2eb4afedd86 10-Aug-2012 Wu-cheng Li <wuchengli@google.com> Put a placeholder image in viewfinder during swipe in API level 10.

bug:6927809

Change-Id: Ib882115c56d1927d039d7fbca7e0ed7bb24ee813
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
c82461e017eed0c8bf73a646d782be3bb4f8d817 08-Aug-2012 Wu-cheng Li <wuchengli@google.com> Guard the usa of surface surface with TargetApi.

bug:6927809

Change-Id: Idc165ec73b734d8a8995c18484ff5a9bee1dfb59
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8e3ccacccd2b128734322877561b8b78a70e103b 06-Aug-2012 Wu-cheng Li <wuchengli@google.com> Use surface view for camera preview before honeycomb.

This change only modifies Camera class.

bug:6927809

Change-Id: Ide669a60d30be5ffaab5b72d510c1ed3dab08647
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
dac1bb32531f7f4d49622bd38c82dde9333c38ac 24-Jul-2012 Ahbong Chang <cwahbong@google.com> Clean up the code.

Remove unused imports.
Remove unused private methods.
Remove unused private fields.
Add @Override for the method overriding its super class.

Change-Id: I557ead47542ffbda6b6afb37535bb3593e891d80
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
844d5d3043103f968beb77a6aa857d5f904d8fcc 19-Jul-2012 Bobby Georgescu <georgescu@google.com> Shared space functionality to ActivityBase, fix for pano

Bug: 6618832
Change-Id: I2b7118c8320b4f2335d5150e88813401544a07f8
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d4412ad0d906e7e74bb054dff90b157c1541b8a6 20-Jul-2012 Bobby Georgescu <georgescu@google.com> Merge "Menu button in camera app only active when needed" into gb-ub-photos-arches
0703fec905d13cff403955fdffdd99b1ce17113f 18-Jul-2012 Bobby Georgescu <georgescu@google.com> Menu button in camera app only active when needed

Bug: 6819025
Change-Id: Iaa394fe634aa1483f262c7074cf72a8d8a95283d
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
525667ff4b93a577298085fe45660a2d15b0bd06 17-Jul-2012 Angus Kong <shkong@google.com> Don't use View.addOnLayoutChangeListener.

bug:6831469
Change-Id: I9a46f70c1564194c9fbf4ccfb19e731fe0981201
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
47a563b623a468f736779da7e21ef69665fc5b80 27-Jun-2012 Chih-Yu Huang <akahuang@google.com> Use android.view.animation to replace ViewPropertyAnimator.

bug:6698378

Change-Id: Icb02cac7b9e2e5ca4e4e8fdf8dfdf498a841913c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
b2838c064ed33d8abd2e6dc7ea38659a3bb686f9 26-Jun-2012 Chih-Chung Chang <chihchung@google.com> Update thumbnail if a picture is deleted in background.

Bug: 6712751
Change-Id: Ie6d7089ef8657c6501fe377594ef84c519840a96
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
c94cd4a5206b05541de0dc8a4821c64d0edba352 31-May-2012 Angus Kong <shkong@google.com> Turn off flash in Gallery.

bug:6581654
Change-Id: I316f73f9956a5cfe91f1f18c3a4658e13b243183
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
40d99c1258ef297c18bf0857860b326d517bf4aa 30-May-2012 Wu-cheng Li <wuchengli@google.com> Fix incorrect sizes in camera switch animation.

bug:5954954
Change-Id: I869df22e650e0cdc5488b96ed624883ac8ac398f
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
76507a9fd2581694942a662a57fbdd46d7a20036 22-May-2012 Wu-cheng Li <wuchengli@google.com> Fix wrong aspect ratio in switch camera animation.

bug:6539357

Change-Id: I8bcb8634d88a27d839fa6ccae102a0d94b5119fb
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
252da3c55a35c77fa4be4d51f79dac4aaf7cdb77 03-May-2012 Pin Ting <pinting@google.com> Add onConfigurationChanged for panorama mode.

Bug:6443692
Change-Id: Ife84c7a078e9b97e438f5ec1b35da5f3550cb500
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
863e7a0094265822c2091256015a3d88958e872b 17-May-2012 Owen Lin <owenlin@google.com> Merge "Set the theme in onCreate()" into jb-dev
a029bd9976ebb618f321e8740c86b0f5d681d241 17-May-2012 Owen Lin <owenlin@google.com> Set the theme in onCreate()

So it won't reset the window backgroud, which has been removed in
AbstractGalleryActivity.onCreate().

bug: 6494653
Change-Id: I5b56ffcff7f62d02552fcae01851733626b07a21
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
05e0d1744d7325621170aff167cb65b7dfdf18f2 17-May-2012 Angus Kong <shkong@google.com> Make panorama work in all orientations.

bug:6305152
Change-Id: Ia38d03fecc32451c4940200ac9578c2dc3d832fe
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d20805f3162b8004cc840230bc8d9c864b114401 16-May-2012 Wu-cheng Li <wuchengli@google.com> Fix camera controls are not displayed when swiping back from photos.

The "transparent region" is not recomputed when a sibling of
SurfaceView changes visibility (unless it involves GONE). It's been
broken since 1.0. Call requestLayout to work around it.

bug:6467123

Change-Id: I741bf75c74862a7486f82d9b27dd8c8bf55dd701
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d97ddcbe7e765b45e68e157af7ac0c873a165aa9 09-May-2012 Wu-cheng Li <wuchengli@google.com> Fix setParameters crash after switching camera is interrupted.

If switching camera is interrupted by pressing home, discard
the switch.

bug:6461894

Change-Id: I29d2fa57fe354acd5d8b2730b76a75f52946ae89
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a60436f0df6fc4189473b5ed27887edbba30312c 09-May-2012 Chih-Chung Chang <chihchung@google.com> Notify Gallery about ScreenNail size change.

Bug: 6355399
Change-Id: I5cedde724e339fd58c27c6c4bd3df80f5c3605a4
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
f3c71bf38a4f0c529d076ef93b2fae3aa59dbf4e 08-May-2012 Chih-Chung Chang <chihchung@google.com> Change the frame provided to gallery to use current framework orientation.

Bug 6451117: Preview location is wrong after rotating the device quickly
Bug 6444303: The preview location is wrong when camera is started upside down on tablet

Change-Id: Id30c39a189615007978c7120bb2b4c77faae29c1
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a1fb83c0f18518013c3b1d4ab8c0f78a7bc0710f 02-May-2012 Wu-cheng Li <wuchengli@google.com> Add animation when switching between back and front cameras.

bug:5954954

Change-Id: I3e3894276b4bea4568e832eaf9e7963182b58269
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d03d34ac9f50857f38034749607ce07c161d5120 05-May-2012 Chih-Chung Chang <chihchung@google.com> Fix 6429662: Video snapshot doesn't work

Change-Id: Idff1f02e714f9b18c08c7ca89ca09db82819a7ab
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
f108795408821e4b930c28a68f8a35972e621f4e 04-May-2012 Pin Ting <pinting@google.com> Fix camera control disappear when restarted.

This changelist fixes NPE in Camera.onConfigurationChanged()and
VideoCamera.onConfigurationChanged() by removing mCameraDevice
operation from setDisplayOrientation() and initializeZoom(). But the
camera control disappears when camera app is restarted. It's because
ActivityBase.onFullScreenChanged(boolean) is invoked three times with
the parameter value in this order true, false, true. The second
invocation leaves a pending action withEndAction(mHideCameraAppView),
which is executed in the third invocation of onFullScreenChanged(),
causing the camera control being hidden. The fix is to add
withEndAction(null).

Another bug is filed for that onFullScreenChanged() being invoked
three times, which causes the camera control flashes.

Bug:6438113
Change-Id: I36305eabe5d7092d681550a1d5772ec790eb1cbb
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
b32f38e943814bfbcfc800126c6589e46bff35bd 03-May-2012 Chih-Chung Chang <chihchung@google.com> Fix action bar style.

Bug: 6408648
Change-Id: Id345022e7bf986638cb43c78e6d5bae1d2c3ace6
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a0b7c6b3c61b68db7f4eb33d81c886fb4e095f2c 30-Apr-2012 Pin Ting <pinting@google.com> Implement onConfigurationChanged for camera and camcorder activities.

When gallery is in foreground, rotating device will invoke camera
onConfigurationChanged in background. The camera layout will change
orientation and be ready when swiping from gallery to camera.

Bug:6304805
Change-Id: I5d0222d3eb062a7646679741a922130c3c13097e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
17de506c16816a9874a5417be402345b9882e0a4 01-May-2012 Wu-cheng Li <wuchengli@google.com> Fix NPE when preview is tapped in camcorder mode.

bug:6422423
Change-Id: Iabc31551ee1747865b976d5efcbd1a2391c17e24
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
78b7bc5fe8e47bc422daf3b4e83cc7b241b210fd 27-Apr-2012 Chih-Chung Chang <chihchung@google.com> Assorted swipe UI fixes.

- Use new full screen callback to display camera controls.
- Use natural orientation for camera preview texture.
- Tell PhotoPage the preview frame position instead of doing transform ourselves.

Bug 6401075: Able to scroll through the gallery pics while capturing video.

Change-Id: Ibd4921c88b870bd5ff11bf26b5bd465d6a3e2c7b
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
72fe79a040df8f01b03a39bec2473f7b0de8228d 26-Apr-2012 Wu-cheng Li <wuchengli@google.com> Make sure action bar is not displayed when start.

bug:6402552

Change-Id: I32e074a585949fa176fe66e17e1c78a3ad66d227
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
196ff90893f16c3497a1e8d2786b8f4c6e13957e 26-Apr-2012 Wei Huang <weih@google.com> Merge "Support landscape/portrait layout for phone/tablet." into jb-dev
2eaabf9cca4528b01e414c384a039c10907c9d0b 18-Apr-2012 Pin Ting <pinting@google.com> Support landscape/portrait layout for phone/tablet.

Bug:6304805
Change-Id: I68966a5e7a571417536059ce5699e409722991c3
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
24e4e6cc25b7628ef15eff703f70b2872575a4cc 24-Apr-2012 Wu-cheng Li <wuchengli@google.com> Show action bar after swiping to gallery.

- Also remove the original camera menu options.

bug:6363385
Change-Id: I38021a79a180d0f2f5b01bdde7f0f4d14da6f501
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
71bf9ebe0f207c1af741e3b76d84dde1358faa1b 24-Apr-2012 Wu-cheng Li <wuchengli@google.com> Fix the crash when tapping thumbnail in panorama.

Swipe UI is not working in panorama yet. Send the intent
when the thumbnail is tapped in panorama.

bug:6313320

Change-Id: I6ab0dc0745b02350a5c87c0d9c8650791b1b19e7
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
2a86dea8eb78891c364e5083d942c05e6019b5c6 24-Apr-2012 Chih-Chung Chang <chihchung@google.com> Merge "Add capture animation in switching to Gallery."
6a4a72b643929701c5d7c8b68b91d762c7277c20 24-Apr-2012 Wu-cheng Li <wuchengli@google.com> Make sure status bar is not displayed.

Gallery shows status bar in portrait. Add a method
to disable it.

bug:6378178
Change-Id: Iea3ebccf0aad3358a8cb82020526937cfc3b50a3
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
4143563bb21d888fce21d97efc6140806183340f 20-Apr-2012 Chih-Chung Chang <chihchung@google.com> Add capture animation in switching to Gallery.

Change-Id: I8a0600cf133ecd5acc5f1e4cc3251d123d571478
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a432c550acb06d2fea9f1d1f33055d914e0ee2bd 19-Apr-2012 Wu-cheng Li <wuchengli@google.com> Remove use of hidden API.

- KeyguardManager: isKeyguardLocked and isKeyguardSecure.
- View: mPaddingLeft, mPaddingRight, mPaddingTop, and
mPaddingBottom.

bug:5029099
Change-Id: Icfdae4a6d463377827e1469e0a5645b5698c821d
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
bfaab736a344641a63170ebdcd9d5377779d3a15 17-Apr-2012 Wu-cheng Li <wuchengli@google.com> Fix touch focus.

Use PhotoPage listener to get the touch event.

bug:6313318

Change-Id: Ib36dfd4fa11779faca59604fb145344d5af9df30
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
5c17d7a077acd1f84bdcb7579f7d02a1094602bc 17-Apr-2012 Wu-cheng Li <wuchengli@google.com> Release the camera faster if recording is interrupted.

Change-Id: I0d18b0fbbcc2d2f765b422ed388fd45b67d53f3d
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
c38faeb66a3f2cc96e4c5e951228d9b01e12edb3 16-Apr-2012 Chih-Chung Chang <chihchung@google.com> Decrease the timing for fading the controller out/in.

From 300ms to 100ms.

Change-Id: I956dd51f4115822ddf1e37bde31923571cb9fd18
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
20d1ab18e1a779e7a1302d1e8cf49851ba258029 13-Apr-2012 Wu-cheng Li <wuchengli@google.com> Remove the workaround of delaying camera open.

The workaround was to fix the race condition of camera open
between camera app and face unlock when screen is on. Now
activities are not resumed while the lock screen is up. The
workaround is not required anymore.

Change-Id: I27fa1af048ccdb79f0ac9f3f61b96216489a0bf5
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8a79ddc5827de54a33d8fbef0e467da2266342cb 09-Apr-2012 Wu-cheng Li <wuchengli@google.com> Make aspect ratio of preview and picture the same.

- Move the preview to the center of the preview frame layout.

bug:6294992
bug:5954389

Change-Id: I47e4b81dd9f3c207025256e1f4e7b23d5f5d84dd
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
1cc3a3466c8e9f30f13b81a88d8b2f31050c599c 09-Apr-2012 Wu-cheng Li <wuchengli@google.com> Change how camera controls fade in/out when swiping.

The camera control should
- fade out as soon as the swiping starts.
- fade in as soon as the preview moves back into the original
place.

bug:5954389

Change-Id: Ib8a766251e111ffce272dfdbb45c43957a0c26e5
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
a6b966047b6215b02c502a3f143106070abf6009 23-Mar-2012 Angus Kong <shkong@google.com> Use galley camera preview to support swipe UI.

Users can swipe to see the last captured picture/video and
the camera roll.

Known issues:
- Capture animation is disabled.
- Effect recording viewfinder is black.
- Swipe to gallery does not work in panorama yet.
- Swipe only works in one direction.
- Touch focus is disabled.
- Some widgets like priority indicators are not positioned correctly.
- Aspect ratio of preview and postview may not match.

bug:5954389

Change-Id: I5ea0459bead36169cd73dfa25717da7353f9d181
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
9833a3328025552a3a176dc4d054cde63ef11885 03-Apr-2012 Wu-cheng Li <wuchengli@google.com> Move mPausing to ActivityBase and rename it to mPaused.

Change-Id: I152b4c327b4f261bd8634f899198d4fada84a98e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
296d27772b9543d55820e1d24d900fea959f1b7a 27-Mar-2012 Pin Ting <pinting@google.com> Cut down unnecessary getParameters() calls.

Move mParameters upwards to ActivityBase.

Everytime when setParameters() is invoked, we use mParameters as
argument, thus mParameters is virtually the updated cache of camera
parameters, so we don't have to get that from camera everytime when
we need it.

There are cases that setParameters() will result in camera parameters
different from the argument passed in. For those cases, we call
getParameters() immediately after setParameters() to get the updated
value for mParameters. This logic remains unchanged in this CL.

bug:5954716
bug:5954391
Change-Id: I4681aed5ebdbf9ee5df1ed3e7aab92912302ee3b
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
e4e5758bb5c73ca929dfbbb9d812e0718f442aca 27-Mar-2012 Pin Ting <pinting@google.com> Merge "Move camera operations to background thread."
475b4c6eca6f7e7ca0e4b3ee0ee234c6fe079687 21-Mar-2012 Pin Ting <pinting@google.com> Move camera operations to background thread.

- This CL moves camera operations off the main thread.
- To keep changes clear, this CL doesn't accelerate operations.
Using async call and condition variable to keep the original
synchronous call structure.
- This design keeps the CameraHolder testability.
- Merge CameraDevice into CameraManager.
- Will explore parallelism and possibly merge CameraHolder and CameraManager in follow-up CLs.

bug:5954391
Change-Id: I4d2ad6d3c70cc221e6a6f90f81b6b7a564102ac1
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8a674bebfba0c4dd4b01018276d20f198f65f19e 26-Mar-2012 Wu-cheng Li <wuchengli@google.com> Fix NPE after recording when there is no thumbnail view.

If camera roll has no images, thumbnail view will be gone.
The width of the thumbnail view will be 0 and cause NPE.
Now layout width is used instead.

bug:6208700

Change-Id: I3906740d10982de3b90b41a8265a6338d4e0db94
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
6899a30e3a89ad4b455978140682d5ba871c1b33 15-Mar-2012 Pin Ting <pinting@google.com> Remove SharePopup.

bug:5954391

Click thumbnail to open Gallery directly, instead of showing SharePopup.

Change-Id: I53ed61c37b370edeb7d0aa4c5d6264693ddf379a
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
892781804513066b68b4a2fa6f846e862dac252a 14-Mar-2012 Owen Lin <owenlin@google.com> Reorganize import for all files.

Change-Id: Ic56125055ff28f989ab4ad84f87736bbd15dd839
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
aef5310d25537494679f9ec6b9d7a1a9cb60887d 22-Feb-2012 Wu-cheng Li <wuchengli@google.com> Save thumbnail in a background thread.

This fixes a strict mode violation. Exiting camera will also
be faster.

bug:5954967

Change-Id: I8dcb5d1bebac71fa9fe930bd0572fa0862d43a66
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
c24a2a83df9b54297995c5270d015bb7fdd85fab 15-Feb-2012 Wu-cheng Li <wuchengli@google.com> Load the thumbnail in a background thread.

The camera app should not block the UI thread to load the last thumbnail.

bug:6012208

Change-Id: Ic2e99806d51e9c1cd5b2c6d32bc5eae4a4de508c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
4edaf0cbbb5d9cfeae786b6fd0560240947f6585 11-Feb-2012 Angus Kong <shkong@google.com> Refactor storage availability codes.

Fields and methods related to low storage hint is now moved to ActivityBase since both Camera and
Video Camera need to check the storage availability. The estimated number of available shots is not
needed and removed.

Change-Id: I3de6620851a435de430584b619ecd0c9a2d8901c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
e5b6a36e64ef2c2cb1435c138a5fc179e9a6bc9a 09-Feb-2012 Wu-cheng Li <wuchengli@google.com> Do not let recent apps capture camera screen shots.

bug:5903209

Change-Id: Ib7ba23e560c78c67290321b74df103025cc0f42e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
913f3784d368a5e11fee5d5db2c355ef832685da 03-Feb-2012 Wu-cheng Li <wuchengli@google.com> Fix warnings and remove unused code.

Change-Id: I1039edbc5a9990d44f5a629a18066805f370775e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
08f2b0c990dc8306f9ce490aec16482fc0bdb64c 07-Jan-2012 Eino-Ville Talvala <etalvala@google.com> am 33747731: am d72992e0: Use default volume control stream instead of the music stream.

* commit '33747731e3957765f0639dcd1126b3f938187162':
Use default volume control stream instead of the music stream.
d72992e05197948b7b5bc96146362f6c6c5fcb46 06-Jan-2012 Eino-Ville Talvala <etalvala@google.com> Use default volume control stream instead of the music stream.

Since the Camera API is moving back to using the system audio stream,
do not override the camera app volume control stream any more.

Bug: 5778365
Change-Id: I27a6a1769d39cb0b246bce7d721d846f6c1430d1
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
19c0b7882d14679bc0fe5d25c4e1ea34350d0b8d 22-Nov-2011 Wu-cheng Li <wuchengli@google.com> Add a test to check camera fails to connect.

+ Add CameraDevice interface.
+ Add MockCamera and RealCamera classes.

bug:5656411

Change-Id: I0cba855a4ac1a68b8e4aa2a56d1e58c6f1def459
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
71e88239cee734b1153839ba9d744a244c0be602 22-Dec-2011 Wu-cheng Li <wuchengli@google.com> Revert "Track users behaviour in Camera app."

This reverts commit 862dc9ba03a2619fcbf8713103317ca5207e409a.
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
862dc9ba03a2619fcbf8713103317ca5207e409a 15-Dec-2011 Chih-yu Huang <akahuang@google.com> Track users behaviour in Camera app.

At the first time, a confirmation dialog would appear.
In Camera:
Track settings when capturing photos and usage of share popup.
In Video:
Track setting about video effect, time lapse, and video quality.
In Panorama:
Track saving picture or discard, length of picture.

bug:4293199
Change-Id: Ie1d289bc2e2c7520db1ccdf4e07b7f55554cfb85
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
d33109730e0ab81230f84e2bd35599e8e24fc4ba 17-Oct-2011 Chung-yih Wang <cywang@google.com> Change the default orientation to portrait.

bug:5446617

Since the orientation is mainly portrait on phones, the default
orientation of an application will decide if the window animation will
be played before it starts. In order to reduce the launch time of Camera
apps, this change is to skip the window animations by changing the default
orientation to portrait.

Change-Id: I6682ab408d7e8d1f0580f3c1600b6c9c3d6a7f6e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
4c7b291018e08dbb4bc1712d95117a294fa1416c 26-Oct-2011 Wu-cheng Li <wuchengli@google.com> Make PreviewFrameLayout and ControlPanelLayout work in potrait mode.

+ Move tablet resource to sw600dp and sw800dp

bug:5446617

Change-Id: Iaf2a442e621ed071d7639972a529dd263e3ce628
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8853039421ae9b129ef40c8e71a347eac321d921 24-Oct-2011 Wu-cheng Li <wuchengli@google.com> Fix camera app still opens the camera in lock screen sometimes.

Suppose camera app is in the foreground. If users turn off and turn
on the screen very fast, camera app can still have the focus when the
lock screen shows up. Now the camera app will not open the camera as
long as screen is locked.

bug:5491362
Change-Id: Idf2a1b160c94abb889729e0525c9903b62f12dd0
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
7d9eadd0c6c38b3761b7e8d3fa3658d194810d60 21-Oct-2011 Jim Miller <jaggies@google.com> Fix 5491362: don't open the camera in onResume in lockscreen.

Change-Id: I678dd23f1603647e801c339a557fc08b53dbfa38
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
8608b577921acf67a5a7b7968cb3633b8f94714d 07-Oct-2011 Chih-Chung Chang <chihchung@google.com> Allow user to adjust the focus and shutter sound volume.

This also fix the problem that user need to slience the ringer to
silence the focus/shutter sound.

Change-Id: Ia4ae5feb4926172fd8af7dc4023525f2ab7daa0e
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
5f6e354a6e2a77aa935fcefeb33a9baa67d48aaf 29-Sep-2011 Chung-yih Wang <cywang@google.com> Fix the single popup issue.

bug:5169941

Popups should not persist when another is opened.
+Rename the confusing PopupChange listener.

Change-Id: Idca3218c090c8d9d176dbb97d8077dcc27409368
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
5df067af93e6b386167f11cdf12701b7905ee444 15-Mar-2011 Wu-cheng Li <wuchengli@google.com> Add image capture intent test.

Change-Id: Iba7ecf9054b630a14f1bf24ba223e0eecb1c3fd4
/packages/apps/Camera/src/com/android/camera/ActivityBase.java
7673ada94b5e2263e7190ca246694cdee31ed03e 24-Feb-2011 Wu-cheng Li <wuchengli@google.com> Ignore search and menu long press key event.

Also ignore menu key during recording.

In phone UI, long-pressing search key will launch voice search.
Long-pressing menu key will launch software keyboard. It is annoying
to accidently launch them while taking a picture.

bug:3108635
bug:3278557

Change-Id: I87a5411d08c4bb292b5a0f78a4a0992a59e8816c
/packages/apps/Camera/src/com/android/camera/ActivityBase.java