OSDN Git Service

android-x86/packages-apps-Camera2.git
10 years agoMerge "Move preview transform matrix code into portability library" into ub-camera...
Sol Boucher [Sat, 16 Aug 2014 00:23:47 +0000 (00:23 +0000)]
Merge "Move preview transform matrix code into portability library" into ub-camera-glacier

10 years agoMove preview transform matrix code into portability library
Sol Boucher [Tue, 12 Aug 2014 06:10:12 +0000 (23:10 -0700)]
Move preview transform matrix code into portability library

This allows it to be calculated differently depending on the backing camera API,
which means that camera2 preview streams can be (and are!) displayed upright.

Bug: 16875535
Change-Id: I58fa86098a8b8eddc8f864b93d1e92672c40a1de

10 years agoMerge "Enable seamless switching to/from camera2-backed Photo module" into ub-camera...
Sol Boucher [Sat, 16 Aug 2014 00:23:35 +0000 (00:23 +0000)]
Merge "Enable seamless switching to/from camera2-backed Photo module" into ub-camera-glacier

10 years agoEnable seamless switching to/from camera2-backed Photo module
Sol Boucher [Tue, 5 Aug 2014 06:41:38 +0000 (23:41 -0700)]
Enable seamless switching to/from camera2-backed Photo module

This supports running individual modules against the camera2 API framework while
the rest of the modules use the legacy Camera class.

Bug: 16875535
Change-Id: Ic0ae313a3dd96ba22bacc36c7b1712b183b713ff

10 years agoMerge "Reset 3A regions during CONTINUOUS_PICTURE passive scanning per camera2 API...
Andy Huibers [Fri, 15 Aug 2014 21:39:05 +0000 (21:39 +0000)]
Merge "Reset 3A regions during CONTINUOUS_PICTURE passive scanning per camera2 API." into ub-camera-glacier

10 years agoReset 3A regions during CONTINUOUS_PICTURE passive scanning per camera2 API.
Andy Huibers [Fri, 15 Aug 2014 19:56:42 +0000 (12:56 -0700)]
Reset 3A regions during CONTINUOUS_PICTURE passive scanning per camera2 API.

Bug: 17028594
Change-Id: I8ce7dbd12f2b14a50068d8b034e7a80d8840f012

10 years agoMerge "Add ability to add a ready-state changed listener to the camera." into ub...
Sascha Haeberling [Fri, 15 Aug 2014 20:20:53 +0000 (20:20 +0000)]
Merge "Add ability to add a ready-state changed listener to the camera." into ub-camera-glacier

10 years agoAdd ability to add a ready-state changed listener to the camera.
Sascha Haeberling [Fri, 15 Aug 2014 17:52:37 +0000 (10:52 -0700)]
Add ability to add a ready-state changed listener to the camera.

  Bug: 16945820
  Bug: 16948752

This enables us to hook up memory intense cameras and make sure we don't
activate the shutter button if the camera is not ready.

Change-Id: I70a31c76e063d775c844404ee9e20e583fa233e3

10 years agoHold touch to focus target in 3A UI debug mode.
Andy Huibers [Fri, 15 Aug 2014 17:21:56 +0000 (10:21 -0700)]
Hold touch to focus target in 3A UI debug mode.

Bug: 17028594
Change-Id: I6d60f2a891cc8ab33c2165438295950bf46095b3

10 years agoMerge "Consolidate properties for debugging." into ub-camera-glacier
Andy Huibers [Fri, 15 Aug 2014 16:55:11 +0000 (16:55 +0000)]
Merge "Consolidate properties for debugging." into ub-camera-glacier

10 years agoConsolidate properties for debugging.
Andy Huibers [Fri, 15 Aug 2014 05:24:41 +0000 (22:24 -0700)]
Consolidate properties for debugging.

Change-Id: I052492375bf176622b38382579b2189d22a05349

10 years agoMerge "Move preference subscreens to new Activities from Dialogs" into ub-camera...
Alan Newberger [Fri, 15 Aug 2014 16:32:43 +0000 (16:32 +0000)]
Merge "Move preference subscreens to new Activities from Dialogs" into ub-camera-glacier

10 years agoMove preference subscreens to new Activities from Dialogs
Alan Newberger [Thu, 14 Aug 2014 22:48:59 +0000 (15:48 -0700)]
Move preference subscreens to new Activities from Dialogs

Dialogs are hard to override for action bar settings. The documented
way to do navigation up is to receive menu events. So we no longer
use Dialogs, instead here we set up intents back to the same Activity,
and add an extra system to designate which subscreen to load. This uses
activity stack to do subscreen navigation, and then all screens hit the
same menu handler in the Activity which properly receives up navigation
signals via 'home'. This is not awesome but a better hack than the
Dialog one which depends on Action Bar internals; this approach only
uses public APIs.

Bug: 15756177
Change-Id: Iae2bd254e9cd5dde1d32d0997e5610f359662467

10 years agoMerge "Import translations. DO NOT MERGE" into ub-camera-glacier
Baligh Uddin [Fri, 15 Aug 2014 05:47:35 +0000 (05:47 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-camera-glacier

10 years agoMove code from GoogleCamera that dumps capture request metadata.
Sascha Haeberling [Fri, 15 Aug 2014 02:27:34 +0000 (19:27 -0700)]
Move code from GoogleCamera that dumps capture request metadata.

  Bug: 16945820

Change-Id: Iff3f05b65687073a7272ed31644f34dc6187de21

10 years agoadd a range check in MultiToggleImageButton's bitmap combine function.
Spike Sprague [Wed, 13 Aug 2014 23:57:20 +0000 (16:57 -0700)]
add a range check in MultiToggleImageButton's bitmap combine function.

bug: overrideImageIds
Change-Id: I6e6b60ff8bb269fb25f7b788009103d9b9d02f19

10 years agoMerge "Revert our layout from FULLSCREEN to LAYOUT_FULLSCREEN" into ub-camera-glacier
Alan Newberger [Wed, 13 Aug 2014 23:31:04 +0000 (23:31 +0000)]
Merge "Revert our layout from FULLSCREEN to LAYOUT_FULLSCREEN" into ub-camera-glacier

10 years agoRevert our layout from FULLSCREEN to LAYOUT_FULLSCREEN
Alan Newberger [Wed, 13 Aug 2014 23:28:26 +0000 (16:28 -0700)]
Revert our layout from FULLSCREEN to LAYOUT_FULLSCREEN

We changed this while working on L prep, but FULLSCREEN suppresses the
action bar. Changing back to LAYOUT_FULLSCREEN addresses this.

Bug: 16986789
Change-Id: I561fe765ea5eb72b1d666a124c9810cf349ce56a

10 years agoMerge "update mode switch transition anims" into ub-camera-glacier
Spike Sprague [Wed, 13 Aug 2014 21:14:50 +0000 (21:14 +0000)]
Merge "update mode switch transition anims" into ub-camera-glacier

10 years agoMerge "Fix potential multi-threading bug where size can change before deletion."...
Sascha Haeberling [Wed, 13 Aug 2014 19:42:57 +0000 (19:42 +0000)]
Merge "Fix potential multi-threading bug where size can change before deletion." into ub-camera-glacier

10 years agoFix potential multi-threading bug where size can change before deletion.
Sascha Haeberling [Wed, 13 Aug 2014 19:02:33 +0000 (12:02 -0700)]
Fix potential multi-threading bug where size can change before deletion.

  Bug: 16949503

Change-Id: I9b087cc257edfb2fe5368abaa7a73f910a6db3df

10 years ago[OC] Gcam OneCamera implementation.
Sascha Haeberling [Tue, 5 Aug 2014 17:53:08 +0000 (10:53 -0700)]
[OC] Gcam OneCamera implementation.

  Bug: 16948752

Change-Id: I0160de117c4ff7024e0d546f594b5777847d1833

10 years agoEnable 4K video for Shamu.
Senpo Hu [Fri, 8 Aug 2014 20:42:13 +0000 (13:42 -0700)]
Enable 4K video for Shamu.

- Add a new resolution setting for back camera video: "UHD 4K"

Bug: 16206549
Change-Id: I0b72f8100bc26b556099ad08e093273ccda0f25d

10 years agoMerge "Update option icon transitions" into ub-camera-glacier
Spike Sprague [Wed, 13 Aug 2014 23:28:19 +0000 (23:28 +0000)]
Merge "Update option icon transitions" into ub-camera-glacier

10 years agoanother tweak of the mode switch expanding circle, no more pre-white circle expansion.
Spike Sprague [Wed, 13 Aug 2014 22:55:28 +0000 (15:55 -0700)]
another tweak of the mode switch expanding circle, no more pre-white circle expansion.

bug: 16129873

Change-Id: I1f55dbd40be1801bf7bbf1f3646a8deeec5c353f

10 years agoUpdate option icon transitions
Spike Sprague [Sat, 9 Aug 2014 01:13:56 +0000 (18:13 -0700)]
Update option icon transitions

bug: 16458864

Change-Id: Idaf4b60d357fa08635b55c1356450d3a4b2b48c2

10 years agoMerge "Don't try to share null data" into ub-camera-glacier
Sascha Haeberling [Wed, 13 Aug 2014 19:32:55 +0000 (19:32 +0000)]
Merge "Don't try to share null data" into ub-camera-glacier

10 years agoDon't try to share null data
Sascha Haeberling [Wed, 13 Aug 2014 18:43:57 +0000 (11:43 -0700)]
Don't try to share null data

  Bug: 16875556

Also add warning logs for null check cases.

Change-Id: Ic1e7e81b416d24a748b9572d63c145612b38d822

10 years agoMerge "New Material icons for Camera2" into ub-camera-glacier
Alan Newberger [Wed, 13 Aug 2014 17:09:24 +0000 (17:09 +0000)]
Merge "New Material icons for Camera2" into ub-camera-glacier

10 years agoNew Material icons for Camera2
Alan Newberger [Wed, 13 Aug 2014 17:04:39 +0000 (10:04 -0700)]
New Material icons for Camera2

This CL adds new Material icons for Camera2.

Bug: 16985499
Change-Id: I91972418f7ee9592fc7685e2c4dfd9bb73c3bcc9

10 years agoupdate mode switch transition anims
Spike Sprague [Fri, 25 Jul 2014 18:40:53 +0000 (11:40 -0700)]
update mode switch transition anims

bug: 16129873

Change-Id: Ibcb2e31162dc353de250db2a7d24726b05768ab1

10 years agoRefactor Upgrade/UpgradeAosp into SettingsUpgrader
Alan Newberger [Tue, 5 Aug 2014 16:56:17 +0000 (09:56 -0700)]
Refactor Upgrade/UpgradeAosp into SettingsUpgrader

This CL does three things:
- removes the Upgrade/UpgradeAosp classes which were bunches of statics,
in favor of a SettingsUpgrader abstract class that can be overridden
- moves 'upgrade to strings' hack logic into AppUpgrader so it only is
checked and run once, not for any of the former UpgradeSteps. logic used
to be in Upgrade and run regardless of key, when it was using detection
only meant for KEY.KEY_UPGRADE_VERSION
- adds existence checks for all hack in-place key string upgrades so they
are no-ops if the key was not persisted in the first place.

Bug: 16573087
Change-Id: Ife42f7aa4a7611ba2d143410a3450057b7464901

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 12 Aug 2014 04:55:12 +0000 (21:55 -0700)]
Import translations. DO NOT MERGE

Change-Id: I969568c49246ac278c8c68e025f1ce279a5323a5
Auto-generated-cl: translation import

10 years agoImplemented NDK libjpeg wrapper for YUV420 encoding.
Puneet Lall [Fri, 8 Aug 2014 00:05:38 +0000 (17:05 -0700)]
Implemented NDK libjpeg wrapper for YUV420 encoding.

Bug: 16676082
Change-Id: I588b8023b401d5e713762563c9265ec3d774a678

10 years ago[OC] Add autofocus (tap-to-focus, UI and pre-shot focus) to OneCamera.
Andy Huibers [Thu, 31 Jul 2014 23:31:43 +0000 (16:31 -0700)]
[OC] Add autofocus (tap-to-focus, UI and pre-shot focus) to OneCamera.

Change-Id: Ic88359ad27b8e9ee0e74c8d1bd6ecb71fe3c24f0

10 years agoMerge "Route zoom value through to zoomIndex in device API" into ub-camera-glacier
Alan Newberger [Fri, 8 Aug 2014 01:58:08 +0000 (01:58 +0000)]
Merge "Route zoom value through to zoomIndex in device API" into ub-camera-glacier

10 years agoRoute zoom value through to zoomIndex in device API
Alan Newberger [Fri, 8 Aug 2014 01:02:07 +0000 (18:02 -0700)]
Route zoom value through to zoomIndex in device API

Current UI is wired to track zoom index, so pass that in rather
than the unfinished new zoom ratio API. This finishes the fix for
zoom in the app.

Extended TODO already there. App should continue to operate until
one big refactor moves it form working with zoom indices, to working
with zoom ratios, no breakage in between.

Bug: 16527845
Change-Id: I8d88c3d34ba9ad85b1a115cf1249548a16722a38

10 years agoMerge "Move display orientation calculations out of app code" into ub-camera-glacier
Sol Boucher [Fri, 8 Aug 2014 00:20:57 +0000 (00:20 +0000)]
Merge "Move display orientation calculations out of app code" into ub-camera-glacier

10 years agorollback of b/16632474 and ag/518674
Spike Sprague [Thu, 7 Aug 2014 21:56:27 +0000 (14:56 -0700)]
rollback of b/16632474 and ag/518674

Change-Id: I77af6135ff339240bd52881550a0f42ec996f9c4

10 years agoMerge "fix NPE in action switch" into ub-camera-glacier
Alan Newberger [Wed, 6 Aug 2014 21:56:23 +0000 (21:56 +0000)]
Merge "fix NPE in action switch" into ub-camera-glacier

10 years agofix NPE in action switch
Alan Newberger [Wed, 6 Aug 2014 21:05:31 +0000 (14:05 -0700)]
fix NPE in action switch

Recent conversion of action condition from if/else to switch
overlooked need for switch to be non-null. Fixing here.

Bug: 16847376
Change-Id: I919c585c414d0d3c4ef7fcdefccfda9118ef8104

10 years agoupdate system ui flags for full screen on android L
Spike Sprague [Wed, 6 Aug 2014 19:13:00 +0000 (12:13 -0700)]
update system ui flags for full screen on android L

bug: 16632474
Change-Id: I5b555492587df103b41ad13a6893a334b8c71b68

10 years agoMerge "[OC] Enable flash support." into ub-camera-glacier
Sascha Haeberling [Tue, 5 Aug 2014 23:09:19 +0000 (23:09 +0000)]
Merge "[OC] Enable flash support." into ub-camera-glacier

10 years ago[OC] Migrate away from android.util.Size sinc we cannot use it in K.
Sascha Haeberling [Tue, 5 Aug 2014 22:54:42 +0000 (15:54 -0700)]
[OC] Migrate away from android.util.Size sinc we cannot use it in K.

  Bug: 16654225

Change-Id: I2c0ea6b387b8ad38d6e49c84dca8bf2bde34e249

10 years ago[OC] Enable flash support.
Sascha Haeberling [Thu, 31 Jul 2014 18:36:58 +0000 (11:36 -0700)]
[OC] Enable flash support.

  Bug: 16654225

Also show an error and exit the app if camera could not be opened.

Change-Id: Iddccaff35b081ba98efe2aaae51d9ee10bb7726f

10 years agoImport translations. DO NOT MERGE
Geoff Mendal [Tue, 5 Aug 2014 01:26:07 +0000 (18:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iefb086b8135a5efef30d53c06147a6415f824fb8
Auto-generated-cl: translation import

10 years agoMerge "[OC] Introduce OneCameraCreator so we can dynamically create a different versi...
Sascha Haeberling [Sun, 3 Aug 2014 04:44:00 +0000 (04:44 +0000)]
Merge "[OC] Introduce OneCameraCreator so we can dynamically create a different version." into ub-camera-glacier

10 years ago[OC] Introduce OneCameraCreator so we can dynamically create a different version.
Sascha Haeberling [Sun, 3 Aug 2014 04:15:26 +0000 (21:15 -0700)]
[OC] Introduce OneCameraCreator so we can dynamically create a different version.

   Bug: 16654225

Change-Id: Iaf7d738b4405fa2e58cc5fc8af99d5ff2718f5a9

10 years agoMerge "Prevent monkey crash when deleting without data" into ub-camera-glacier
Sascha Haeberling [Sun, 3 Aug 2014 04:16:45 +0000 (04:16 +0000)]
Merge "Prevent monkey crash when deleting without data" into ub-camera-glacier

10 years agoRestore grid initialization logic to fix grid display on startup
Alan Newberger [Fri, 1 Aug 2014 21:08:37 +0000 (14:08 -0700)]
Restore grid initialization logic to fix grid display on startup

The large settings refactor in ag/484817 not only changed settings
calls in ButtonManager.initializeGridLinesButton, it altered the
order of calls to create the button callback and to set the button
state. The prior implementation and this CL creates the callback,
and then sets state so that the callback, which controls display,
runs upon initial state setup of the button. Otherwise the grid
is not shown correctly on module startup.

Bug: 16687954
Change-Id: I482906d2d54a8545066dded3209b55ae4ad48bdb

10 years ago[OC] Refactoring the session API before intgrating GCam into OneCamera
Sascha Haeberling [Thu, 31 Jul 2014 23:05:57 +0000 (16:05 -0700)]
[OC] Refactoring the session API before intgrating GCam into OneCamera

  Bug: 16654225

Change-Id: I3fe6f46847ed6424310a81722c93c63be8b807a3

10 years agoMove display orientation calculations out of app code
Sol Boucher [Fri, 25 Jul 2014 06:59:21 +0000 (23:59 -0700)]
Move display orientation calculations out of app code

Because they're needed by every app, these are being relocated into the
portability layer. As such, the CameraUtil#getDisplayOrientation() and
CameraUtil#getJpegRotation() methods are being replaced by the API-agnostic
CameraDeviceInfo.Characteristics#getPreviewOrientation() and
CameraDeviceInfo.Characteristics#getJpegOrientation() calls, respectively.

Change-Id: I5048e6f1a5ff655e4ea260b109e7c104bbe790b0

10 years agoImproved logging of foreground source type.
Andy Huibers [Thu, 31 Jul 2014 18:10:24 +0000 (11:10 -0700)]
Improved logging of foreground source type.

Change-Id: I6fdd5a52ec136f76352e006a8e95e88aac0ac1af

10 years agoMerge "[OC] Hook new Capture module up, behind a system property." into ub-camera...
Sascha Haeberling [Thu, 31 Jul 2014 15:21:09 +0000 (15:21 +0000)]
Merge "[OC] Hook new Capture module up, behind a system property." into ub-camera-glacier

10 years ago[OC] Adds the new CaptureModule and UI.
Sascha Haeberling [Thu, 31 Jul 2014 00:48:52 +0000 (17:48 -0700)]
[OC] Adds the new CaptureModule and UI.

  Bug: 16654225

This is essentially a version of the GCamModule without GCam, plus a few
things we need from PhotoModule.

Some code is commented out to be added back in later as a reminder.

CLs to hook the module up will be following up.

Change-Id: I70108529f81a8b0b744dc846287ea2ac121c85da

10 years ago[OC] Hook new Capture module up, behind a system property.
Sascha Haeberling [Thu, 31 Jul 2014 03:17:30 +0000 (20:17 -0700)]
[OC] Hook new Capture module up, behind a system property.

  Bug: 16654225

Change-Id: I6be44fefce66c09425a1bebc1942489f6af7636c

10 years agoPrevent monkey crash when deleting without data
Sascha Haeberling [Wed, 30 Jul 2014 17:31:29 +0000 (10:31 -0700)]
Prevent monkey crash when deleting without data

  Bug: 16536894

Change-Id: I960c0d8f61b2909c7020d3c259fbad8f8c33bc05

10 years agoCleaning up unused strings.
Sascha Haeberling [Wed, 30 Jul 2014 02:43:42 +0000 (19:43 -0700)]
Cleaning up unused strings.

'et' and 'ms' are deprecated and have already been removed from master:
http://ag/506364

Change-Id: I0acb1a5225f0b7c9c3dcf449b0a16bb7f77118ed

10 years ago[OC] Camera2-based OneCamera implementation.
Sascha Haeberling [Wed, 30 Jul 2014 00:28:46 +0000 (17:28 -0700)]
[OC] Camera2-based OneCamera implementation.

  Bug: 16654225

Change-Id: Icc544eac762b5494e6bb6c9e768b810c44e11cd9

10 years agoMerge "Put conversion from string to size into SettingsManager." into ub-camera-glacier
Sascha Haeberling [Wed, 30 Jul 2014 01:12:51 +0000 (01:12 +0000)]
Merge "Put conversion from string to size into SettingsManager." into ub-camera-glacier

10 years agoAdd empty version of SystemProperties interface.
Sascha Haeberling [Wed, 30 Jul 2014 00:32:17 +0000 (17:32 -0700)]
Add empty version of SystemProperties interface.

This is so that we can use it in Camera2 code.

Change-Id: I764adb7377b91b5b54a33535188eb6d0d5159253

10 years agoPut conversion from string to size into SettingsManager.
Sascha Haeberling [Wed, 30 Jul 2014 00:08:18 +0000 (17:08 -0700)]
Put conversion from string to size into SettingsManager.

This way we don't have to spread this logic throughout the codebase.

Change-Id: I2d534d0756a9030e6d67b479a67c86c1cf596589

10 years agoMinor clean-up around the code base.
Sascha Haeberling [Wed, 30 Jul 2014 00:05:43 +0000 (17:05 -0700)]
Minor clean-up around the code base.

Change-Id: I2ed422dd4e0383739ccfa85a2e1e0e49e093e51d

10 years ago[OC] Adding the OneCamera manager API.
Sascha Haeberling [Tue, 29 Jul 2014 23:29:02 +0000 (16:29 -0700)]
[OC] Adding the OneCamera manager API.

  Bug: 16654225

Change-Id: I070f36a6e6c1e756223ff69b74c3171547090f97

10 years ago[OC] Add common abstract OneCamera class.
Sascha Haeberling [Tue, 29 Jul 2014 23:02:52 +0000 (16:02 -0700)]
[OC] Add common abstract OneCamera class.

  Bug: 16654225

Change-Id: I31c0ab4d8f4aa91447d384444258616648633de4

10 years ago[OC] Version 1 of the nterface for OneCamera.
Sascha Haeberling [Tue, 29 Jul 2014 22:46:39 +0000 (15:46 -0700)]
[OC] Version 1 of the nterface for OneCamera.

  Bug: 16654225

Change-Id: Id4a6755577e327849ce60db7c5f64d76fb0a55b2

10 years agoMerge "[OC] Adds a class with common utility functions for capture modules." into...
Sascha Haeberling [Tue, 29 Jul 2014 22:41:54 +0000 (22:41 +0000)]
Merge "[OC] Adds a class with common utility functions for capture modules." into ub-camera-glacier

10 years ago[OC] Adds a class with common utility functions for capture modules.
Sascha Haeberling [Tue, 29 Jul 2014 18:14:39 +0000 (11:14 -0700)]
[OC] Adds a class with common utility functions for capture modules.

  Bug: 16654225

Change-Id: I7bc2eaaa928fd152d20777086abef984421cc320

10 years agoAndroidManifest formatting cleanup
Spike Sprague [Mon, 28 Jul 2014 22:15:10 +0000 (15:15 -0700)]
AndroidManifest formatting cleanup

Change-Id: I279e764987fea743aa78575748a831e31ba28c0c

10 years agore-added color and background entries for gcam
Spike Sprague [Fri, 25 Jul 2014 21:11:42 +0000 (14:11 -0700)]
re-added color and background entries for gcam

bug: 16567671
Change-Id: Ifbe7bd68f0f6c47f645b420ef35d6eb6478c4a7e

10 years agoadded a mutate() call when loading LayerDrawables.
Spike Sprague [Fri, 25 Jul 2014 19:19:11 +0000 (12:19 -0700)]
added a mutate() call when loading LayerDrawables.

bug: 16566825
Change-Id: I71a3a9787b73957f9c34bf1ffa52df41c3a5f6e6

10 years agoMerge "Ensure default focus mode is continuous-picture" into ub-camera-glacier
Alan Newberger [Thu, 24 Jul 2014 23:15:18 +0000 (23:15 +0000)]
Merge "Ensure default focus mode is continuous-picture" into ub-camera-glacier

10 years agoEnsure default focus mode is continuous-picture
Alan Newberger [Thu, 24 Jul 2014 22:55:37 +0000 (15:55 -0700)]
Ensure default focus mode is continuous-picture

The new Settings infrastructure created a bug where the default
focus mode was 'auto', it needs to be continuous-picture. Fixing
here. Also adding verbose logging to the focus manager, could be
helpful in the future.

Bug: 16536583
Change-Id: I80b5905524f7fdaf69097ff8d2780da9f4ee2428

10 years agoMerge "ripple drawable on shutter button" into ub-camera-glacier
Spike Sprague [Thu, 24 Jul 2014 23:15:15 +0000 (23:15 +0000)]
Merge "ripple drawable on shutter button" into ub-camera-glacier

10 years agoripple drawable on shutter button
Spike Sprague [Sat, 19 Jul 2014 00:34:03 +0000 (17:34 -0700)]
ripple drawable on shutter button

bug: 16123188
Change-Id: I390279acb7a4599f1aeba71b415f1261b9a9b97b

10 years agoam 21b8cb69: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Thu, 24 Jul 2014 21:48:33 +0000 (21:48 +0000)]
am 21b8cb69: (-s ours) Import translations. DO NOT MERGE

* commit '21b8cb696c05ef5207d290f3a1ed52453e58f525':
  Import translations. DO NOT MERGE

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 24 Jul 2014 10:36:34 +0000 (03:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6bef6048568c35ef35de13ca1cfb42e663622877
Auto-generated-cl: translation import

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 24 Jul 2014 10:34:53 +0000 (03:34 -0700)]
Import translations. DO NOT MERGE

Change-Id: I991834972e54ce3ad2020dc2244a5c139aa66c32
Auto-generated-cl: translation import

10 years agoUpgrade mode index settings after mode indices were cleaned
Alan Newberger [Wed, 23 Jul 2014 18:25:07 +0000 (11:25 -0700)]
Upgrade mode index settings after mode indices were cleaned

Because we removed a mode index from the camera_mode_* sequence in res/values/arrays.xml,
upgrades were found to crash when settings referred to the old, now nonexistent mode value.
This CL preserves the arrays cleanup and adds a settings upgrade to convert modes to the
new value. Tested and works properly with mode preservation.

Bug: 16467318
Change-Id: I1352a940285687af38290250d7a06b5b7c421338

10 years agoModify Camera settings scope enforcement from crash to warning
Alan Newberger [Wed, 23 Jul 2014 01:46:41 +0000 (18:46 -0700)]
Modify Camera settings scope enforcement from crash to warning

Several bugs have appeared particularly for flash settings, where the app
is attempting to get a scope per the new SettingsManager, and the camera
is already closed meaning there is no valid scope. With this change, such
situations will be logged with call stack traces, so if we see deviant
user behavior we'll know the source. Monkeys should no longer trip settings
crashes with this change.

Bug: 16483952
Bug: 16491601
Change-Id: I26487bc58909a05183563f59ae3cfba571f2504e

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 22 Jul 2014 03:45:09 +0000 (20:45 -0700)]
Import translations. DO NOT MERGE

Change-Id: I90b31e5a34b7ae3463e8006f501b45b031c58025
Auto-generated-cl: translation import

10 years agoSpeed up lockscreen start-up time.
Sascha Haeberling [Thu, 17 Jul 2014 21:06:02 +0000 (14:06 -0700)]
Speed up lockscreen start-up time.

  Bug: 16375664

- Avoid unnecessary camera open/close loop (~350ms)
- Don't load sounds and do other init work when not needed.

Change-Id: I5d297913dcbd3100034c3915119cc3c818f330d3

10 years agoMerge "filmstip quantumification" into ub-camera-glacier
Spike Sprague [Tue, 22 Jul 2014 18:23:05 +0000 (18:23 +0000)]
Merge "filmstip quantumification" into ub-camera-glacier

10 years agofilmstip quantumification
Spike Sprague [Mon, 21 Jul 2014 20:19:10 +0000 (13:19 -0700)]
filmstip quantumification

bug: 16456504

Change-Id: I7c4c309671ae08179f22c35ffa7f3f9f5b4ee7ce

10 years agoam 373c970d: (-s ours) Import translations. DO NOT MERGE
Baligh Uddin [Tue, 22 Jul 2014 17:18:30 +0000 (17:18 +0000)]
am 373c970d: (-s ours) Import translations. DO NOT MERGE

* commit '373c970d5d2c7877890f912e072f232438831b76':
  Import translations. DO NOT MERGE

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 22 Jul 2014 03:46:21 +0000 (20:46 -0700)]
Import translations. DO NOT MERGE

Change-Id: I27bcda4f98bb79dca1e4e06cd5b4abd036245357
Auto-generated-cl: translation import

10 years agoMerge "fixing mode -> color mapping" into ub-camera-glacier
Spike Sprague [Mon, 21 Jul 2014 18:57:21 +0000 (18:57 +0000)]
Merge "fixing mode -> color mapping" into ub-camera-glacier

10 years agofixing mode -> color mapping
Spike Sprague [Mon, 21 Jul 2014 18:55:36 +0000 (11:55 -0700)]
fixing mode -> color mapping

bug: 16123081
Change-Id: I3694e575e8461f4faf6dec076f5afe2a320eaecc

10 years agoMake sure to set an audio source using MediaRecorder.
Sascha Haeberling [Mon, 21 Jul 2014 18:31:13 +0000 (11:31 -0700)]
Make sure to set an audio source using MediaRecorder.

  Bug: 16454543

Change-Id: Ic3bfb14bd7d37e5feda43e50eafcf2e687dee0ce

10 years agoMerge "clean out timelapse stuff from codebase" into ub-camera-glacier
Spike Sprague [Fri, 18 Jul 2014 18:36:32 +0000 (18:36 +0000)]
Merge "clean out timelapse stuff from codebase" into ub-camera-glacier

10 years agoRoute switch preferences through SettingManager
Alan Newberger [Thu, 17 Jul 2014 16:55:34 +0000 (09:55 -0700)]
Route switch preferences through SettingManager

This CL adds a custom switch which uses SettingsManager to control
boolean settings. It relocates SettingsManager to the application
to allow access from multiple activities.

Bug: 16327665
Change-Id: I6af084a4443ea79ca270dab382a66ea527897a38

10 years agoresolved conflicts for merge of dcea7639 to ub-camera-glacier
Sascha Haeberling [Thu, 17 Jul 2014 22:05:26 +0000 (15:05 -0700)]
resolved conflicts for merge of dcea7639 to ub-camera-glacier

Change-Id: I151b172d3e415a529375351ba8c038308e593cd5

10 years agoclean out timelapse stuff from codebase
Spike Sprague [Wed, 16 Jul 2014 22:47:32 +0000 (15:47 -0700)]
clean out timelapse stuff from codebase

Change-Id: Ibcf07302f3eea2800d1f36c918ffe1c3d93b8018

10 years agoupdating mode selector colors
Spike Sprague [Wed, 16 Jul 2014 21:33:59 +0000 (14:33 -0700)]
updating mode selector colors

bug: 16123081
Change-Id: Ibe0b886f73fa934a94e7a1b534a67b56fdeb60d7

10 years agoStore temp session data in 'cache' directory, not data.
Sascha Haeberling [Tue, 15 Jul 2014 23:48:20 +0000 (16:48 -0700)]
Store temp session data in 'cache' directory, not data.

  Bug: 16010129

Change-Id: I06ff67d2917580e1f44bdb6686a9371239bccfef

10 years agoDon't try to show storage hint if activity is no longer running.
Sascha Haeberling [Tue, 15 Jul 2014 15:54:40 +0000 (08:54 -0700)]
Don't try to show storage hint if activity is no longer running.

  Bug: 16198208

Change-Id: I6a6c92286c98cff8b55434a7a0d011bf5043d183

10 years agoam 3c6de14b: Work in #onPictureTaken will be on a forked, so no need to fork the...
Sascha Haeberling [Tue, 15 Jul 2014 00:00:52 +0000 (00:00 +0000)]
am 3c6de14b: Work in #onPictureTaken will be on a forked, so no need to fork the call.

* commit '3c6de14b6e771b6eab84428d53543b066324b8f0':
  Work in #onPictureTaken will be on a forked, so no need to fork the call.

10 years agoDon't crash if filename could not be found for ID.
Sascha Haeberling [Mon, 14 Jul 2014 23:18:38 +0000 (16:18 -0700)]
Don't crash if filename could not be found for ID.

  Bug: 15890671

This is only used for logging but Monkey's crash on master.

Change-Id: I0d08d0a82fd6a7073c7aa1924c21beeb66859577

10 years agoWork in #onPictureTaken will be on a forked, so no need to fork the call.
Sascha Haeberling [Mon, 14 Jul 2014 19:23:36 +0000 (12:23 -0700)]
Work in #onPictureTaken will be on a forked, so no need to fork the call.

  Bug: 16217551

Change-Id: Id9f6e129d402d5e58cf5f63380c5bf13ab996431

10 years agoam c17a5664: Prevent a monkey-generated crash.
Sascha Haeberling [Fri, 11 Jul 2014 17:26:29 +0000 (17:26 +0000)]
am c17a5664: Prevent a monkey-generated crash.

* commit 'c17a56643186dee671bf6e7dec54cd558a7ecb2f':
  Prevent a monkey-generated crash.