OSDN Git Service

android-x86/packages-apps-Camera2.git
10 years agoam 174ebdd4: (-s ours) am 5d26fdfd: am 143eb46b: Merge "Remove Refocus string and...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 174ebdd4: (-s ours) am 5d26fdfd: am 143eb46b: Merge "Remove Refocus string and icon" into gb-ub-photos-carlsbad

* commit '174ebdd46e809eff1697b88bf29c99f95fd5b4b6':

10 years agoam 48f94999: (-s ours) am 1cc08fea: Merge "Adding back the camera tests to KLP-DEV...
Yu Shan Emily Lau [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 48f94999: (-s ours) am 1cc08fea: Merge "Adding back the camera tests to KLP-DEV after sorting them out in UB." into klp-dev

* commit '48f9499953cc0b24a04c815a46d67b0ed8099d54':

10 years agoam 96fceea0: (-s ours) am d9114beb: am 3be7f94c: Make parsing integers for details...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 96fceea0: (-s ours) am d9114beb: am 3be7f94c: Make parsing integers for details dialog more robust.

* commit '96fceea07eef796bc6de38da2f5fe033cba236e4':

10 years agoam 5da48574: (-s ours) am 919284cf: am 80af7dd8: Fix full-screen swipe layout.
Angus Kong [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 5da48574: (-s ours) am 919284cf: am 80af7dd8: Fix full-screen swipe layout.

* commit '5da48574eae9856835247d82436230b544ec8975':

10 years agoam d1e70234: (-s ours) am dfb722fd: am a2818f58: Merge "Bring back undo delete confir...
Angus Kong [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am d1e70234: (-s ours) am dfb722fd: am a2818f58: Merge "Bring back undo delete confirmation." into gb-ub-photos-carlsbad

* commit 'd1e70234619067b47367f124f24ddf8241aae33f':

10 years agoam 651c18fe: (-s ours) am f2b312dd: am e2fb9943: Proper I18N of the Details dialog...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 651c18fe: (-s ours) am f2b312dd: am e2fb9943: Proper I18N of the Details dialog, especially for RTL.

* commit '651c18fee420b1b5eae1655d43c4b13d6289d1d7':

10 years agoam 6196fadc: (-s ours) am 779160b3: am 00373f8a: Merge "Speed up filmstrip by not...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 6196fadc: (-s ours) am 779160b3: am 00373f8a: Merge "Speed up filmstrip by not decoding with default 3000px." into gb-ub-photos-carlsbad

* commit '6196fadc87d07d1269ed121b2423662c6b3eebbf':

10 years agoam 26a5082d: (-s ours) am d567d7d5: am ce2acbcb: Fix preview thumb orientation
Doris Liu [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 26a5082d: (-s ours) am d567d7d5: am ce2acbcb: Fix preview thumb orientation

* commit '26a5082dbcf2b324550a0a44c7eb907fff086f67':

10 years agoam 7b1e22c7: (-s ours) am 0174828e: am f737ac48: Merge "Add support to "go-to-next...
Angus Kong [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 7b1e22c7: (-s ours) am 0174828e: am f737ac48: Merge "Add support to "go-to-next" in film strip." into gb-ub-photos-carlsbad

* commit '7b1e22c7d0083cc6da935f65bbf234b51258db52':

10 years agoam 9191a598: (-s ours) am 64335cf3: am 56f16746: Merge "Fix video capture animation...
Doris Liu [Wed, 30 Apr 2014 18:14:23 +0000 (18:14 +0000)]
am 9191a598: (-s ours) am 64335cf3: am 56f16746: Merge "Fix video capture animation and video snapshot animation" into gb-ub-photos-carlsbad

* commit '9191a598d8204d2756cc05564bdd6faeda1cb585':

10 years agoam d7f7649a: (-s ours) am 10096771: am 15396ca6: Merge "Fix delete animation in fulls...
Angus Kong [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am d7f7649a: (-s ours) am 10096771: am 15396ca6: Merge "Fix delete animation in fullscreen mode." into gb-ub-photos-carlsbad

* commit 'd7f7649add68ee85376e3cda81ffa5cf00c2bd7a':

10 years agoam 963718bf: (-s ours) am 0d9217b4: am 7e374eb0: Stop the MediaSaveService after...
Angus Kong [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am 963718bf: (-s ours) am 0d9217b4: am 7e374eb0: Stop the MediaSaveService after unbinding.

* commit '963718bf313e849209f8acb050a58ac8016430d9':

10 years agoam d43c559e: (-s ours) am ef851bf2: am 025136bb: Support filmstrip swipe in full...
Angus Kong [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am d43c559e: (-s ours) am ef851bf2: am 025136bb: Support filmstrip swipe in full-screen.

* commit 'd43c559eb98bc0c431f5e1db196d2efc51a4dcc7':

10 years agoam fffbdc3f: (-s ours) am 78ad4a5a: am 87025351: Merge "Update the final PhotoSphere...
Angus Kong [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am fffbdc3f: (-s ours) am 78ad4a5a: am 87025351: Merge "Update the final PhotoSphere result correctly." into gb-ub-photos-carlsbad

* commit 'fffbdc3f9b964d7d0414ae0ab811a3aa5bf6ff03':

10 years agoam 11dbe8af: (-s ours) am de07dbb6: am 304a6360: Merge "Fix nav bar overlapping camer...
Doris Liu [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am 11dbe8af: (-s ours) am de07dbb6: am 304a6360: Merge "Fix nav bar overlapping camera bottom UI controls" into gb-ub-photos-carlsbad

* commit '11dbe8af9d5656ae618ebb0c64e4d24321b5e3de':

10 years agoam 97ff12f9: (-s ours) am fd791ba4: am b5ca24e7: Merge "Remove the "button" part...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am 97ff12f9: (-s ours) am fd791ba4: am b5ca24e7: Merge "Remove the "button" part of the shutter button description." into gb-ub-photos-carlsbad

* commit '97ff12f9ec3bef714d0434af5fb1691c65f38f45':

10 years agoam 00a2e30d: (-s ours) am 2acc6ac5: am d7e01e25: Merge "Fix video snapshot aspect...
Doris Liu [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am 00a2e30d: (-s ours) am 2acc6ac5: am d7e01e25: Merge "Fix video snapshot aspect ratio" into gb-ub-photos-carlsbad

* commit '00a2e30d5053a76e1b8474e5bbeecfa6ea699f75':

10 years agoam a0b114fa: (-s ours) am b8ff43a2: am 2b18ecec: Merge "Make camera preview full...
Doris Liu [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am a0b114fa: (-s ours) am b8ff43a2: am 2b18ecec: Merge "Make camera preview full screen" into gb-ub-photos-carlsbad

* commit 'a0b114fa27c91fcf742e68308db179c39c10f914':

10 years agoam fc30eda1: (-s ours) am 17525fee: am 5ad4114f: (-s ours) Merge "Updating the Camera...
Jason Noguchi [Wed, 30 Apr 2014 18:14:22 +0000 (18:14 +0000)]
am fc30eda1: (-s ours) am 17525fee: am 5ad4114f: (-s ours) Merge "Updating the Camera tests makefile and source to reflect recent split between camera and gallery apps." into gb-ub-photos-carlsbad

* commit 'fc30eda12b5d1a1e0ad073c9137bfeed26540a50':

10 years agoam 6fa6de7a: (-s ours) am d049c85e: am 13ca71eb: Fix squished preview
Doris Liu [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am 6fa6de7a: (-s ours) am d049c85e: am 13ca71eb: Fix squished preview

* commit '6fa6de7a4a12b6e09153fd35e057930e07e1cb8c':

10 years agoam 4921b308: (-s ours) am 9fd5ee8a: am 0819304b: Add "set as" capability in Film...
nicolasroard [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am 4921b308: (-s ours) am 9fd5ee8a: am 0819304b: Add "set as" capability in Film Strip

* commit '4921b308d9b40a6f2ba7b3c5a7c1d91bd089cf66':

10 years agoam 054e5237: (-s ours) am cf43f817: am 722c8607: Rename accessibility text for Photo...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am 054e5237: (-s ours) am cf43f817: am 722c8607: Rename accessibility text for Photo Sphere mode from \'new panorama\'.

* commit '054e5237e9f901f1603c8f59c593b897e8ac7f15':

10 years agoam 31ffcf37: (-s ours) am 49ab978a: am b269061d: Merge "Implement deletion in the...
Angus Kong [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am 31ffcf37: (-s ours) am 49ab978a: am b269061d: Merge "Implement deletion in the menu." into gb-ub-photos-carlsbad

* commit '31ffcf377e348aeaea273f50c691037c140b59ef':

10 years agoam 08ae9e64: (-s ours) am 32ba33c6: am b0a5929b: Add video details to the details...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am 08ae9e64: (-s ours) am 32ba33c6: am b0a5929b: Add video details to the details menu

* commit '08ae9e647fbc9a35181ed0db5d982cce5791b3f5':

10 years agoam ac8455c9: (-s ours) am 397586f0: am 99a5ef6f: Merge "Update the action bar style...
ztenghui [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am ac8455c9: (-s ours) am 397586f0: am 99a5ef6f: Merge "Update the action bar style to match Bryce" into gb-ub-photos-carlsbad

* commit 'ac8455c9760ef793303d3f61f86a3cd09f774798':

10 years agoam fe0655c5: (-s ours) am 119bd7ec: am e98a59af: Merge "Don\'t refresh item on resume...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am fe0655c5: (-s ours) am 119bd7ec: am e98a59af: Merge "Don\'t refresh item on resume as it leads to a filmstrip bug." into gb-ub-photos-carlsbad

* commit 'fe0655c5b50b5a3d3036b5f84cdd49445f1db9f7':

10 years agoam f39b9612: (-s ours) am b030d20d: am 58dfa0fb: Merge "Enable switching cameras...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:21 +0000 (18:14 +0000)]
am f39b9612: (-s ours) am b030d20d: am 58dfa0fb: Merge "Enable switching cameras in video mode." into gb-ub-photos-carlsbad

* commit 'f39b9612dbfdea114c01ad6b3247f9d4378418ff':

10 years agoam 1b27950b: (-s ours) am 2c9dc8eb: am 88ef7664: Bring back the bottom controls in...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am 1b27950b: (-s ours) am 2c9dc8eb: am 88ef7664: Bring back the bottom controls in Filmstrip.

* commit '1b27950b1f52a70b78372f661e28ee83c9ea91cf':

10 years agoam 45bd3fe4: (-s ours) am 1a7fed5f: am 1571239c: Merge "Add the trim functionality...
ztenghui [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am 45bd3fe4: (-s ours) am 1a7fed5f: am 1571239c: Merge "Add the trim functionality back to FilmStripView" into gb-ub-photos-carlsbad

* commit '45bd3fe4581677f4da04d4c558930244e60ada25':

10 years agoam 957da61b: (-s ours) am c5541a55: am e9d3428f: Merge "Add image 1:1 support" into...
Doris Liu [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am 957da61b: (-s ours) am c5541a55: am e9d3428f: Merge "Add image 1:1 support" into gb-ub-photos-carlsbad

* commit '957da61b9229361723f5df310e758033131519f5':

10 years agoam 03ce0b53: (-s ours) am 34a3b7fb: am 856d7ec4: Merge "Add back intent-filter for...
Mangesh Ghiware [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am 03ce0b53: (-s ours) am 34a3b7fb: am 856d7ec4: Merge "Add back intent-filter for default category and main action." into gb-ub-photos-carlsbad

* commit '03ce0b5310ed9edf78bd323ab00f1ed760701421':

10 years agoam db109f7c: (-s ours) am 9e06215e: am 4ff5a1ab: Set views in filmstrip invisible...
Angus Kong [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am db109f7c: (-s ours) am 9e06215e: am 4ff5a1ab: Set views in filmstrip invisible when alpha = 0.

* commit 'db109f7c9c058690c556430b2e3a9819b2599e15':

10 years agoam df651ff6: (-s ours) am 81d517a4: am 394023fb: Single-tap in fullscreen view toggle...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am df651ff6: (-s ours) am 81d517a4: am 394023fb: Single-tap in fullscreen view toggles ActionBar.

* commit 'df651ff65909e92fdc6b1189d857fe847688dd71':

10 years agoam 2cd5b165: (-s ours) am e14044ee: am fae11a16: Implent show-on-map functionality...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am 2cd5b165: (-s ours) am e14044ee: am fae11a16: Implent show-on-map functionality. Also make sure the show-on-map item is only shown for items with coordinates. and add the coordinate to the details view.

* commit '2cd5b16540fae98487c639f6d2e84be52561003a':

10 years agoam d0fcc1bd: (-s ours) am ac87189c: am 29a27c76: Merge "Brings back the details menu...
Sascha Haeberling [Wed, 30 Apr 2014 18:14:20 +0000 (18:14 +0000)]
am d0fcc1bd: (-s ours) am ac87189c: am 29a27c76: Merge "Brings back the details menu with most EXIF data in it. Some are still missing and will come back later." into gb-ub-photos-carlsbad

* commit 'd0fcc1bdc9e019179a3b2c69a632cc177e947be9':

10 years agoam 2b3cee71: (-s ours) am 18aafe57: am fca1c5ec: Defining broadcast intent strings...
Dan Aminzade [Wed, 30 Apr 2014 18:14:19 +0000 (18:14 +0000)]
am 2b3cee71: (-s ours) am 18aafe57: am fca1c5ec: Defining broadcast intent strings as constants in CameraUtil.java. For now I\'m leaving the definition within the Camera application. If we decide we want to publicize and document these intents as part of the Android API, we cou

* commit '2b3cee71446e2468b534ac51103732c3d1e137ac':

10 years agoam 8fc1610d: (-s ours) am a6e1f342: am 7e1c5fe2: Single tap to full screen mode.
Angus Kong [Wed, 30 Apr 2014 18:14:19 +0000 (18:14 +0000)]
am 8fc1610d: (-s ours) am a6e1f342: am 7e1c5fe2: Single tap to full screen mode.

* commit '8fc1610d1eb6c91cf456bd522407e8cc0a41bf76':

10 years agoam c7283d99: (-s ours) am 690eba37: am 0689254e: Merge "Make current view center...
Angus Kong [Wed, 30 Apr 2014 18:14:19 +0000 (18:14 +0000)]
am c7283d99: (-s ours) am 690eba37: am 0689254e: Merge "Make current view center in filmstrip." into gb-ub-photos-carlsbad

* commit 'c7283d9947482586e2a20b98028e86a4f2035f35':

10 years agoam 139f3abf: (-s ours) am d0a780dc: am 92ae10ec: Add support for remote shutter contr...
Dan Aminzade [Wed, 30 Apr 2014 18:14:19 +0000 (18:14 +0000)]
am 139f3abf: (-s ours) am d0a780dc: am 92ae10ec: Add support for remote shutter control via broadcast intents. Send CAMERA_STOPPED and CAMERA_STARTED intents on pause/resume, to notify Gem to hide and show the camera card, and receive the SHUTTER broadcast intent to trigger the

* commit '139f3abfa778e1280c5efc2f2b3b47237507b362':

10 years agoam 845dadec: (-s ours) Reconcile with klp-release - do not merge
The Android Open Source Project [Wed, 30 Apr 2014 18:14:19 +0000 (18:14 +0000)]
am 845dadec: (-s ours) Reconcile with klp-release - do not merge

* commit '845dadec2a2cc619d316c44e706b15eba4d75293':

10 years agoMerge "DO NOT MERGE - Shutter button left handed support" into gb-ub-photos-denali
Doris Liu [Sat, 26 Apr 2014 01:30:39 +0000 (01:30 +0000)]
Merge "DO NOT MERGE - Shutter button left handed support" into gb-ub-photos-denali

10 years agoMerge "Bring back video snapshot" into gb-ub-photos-denali
Doris Liu [Sat, 26 Apr 2014 01:11:20 +0000 (01:11 +0000)]
Merge "Bring back video snapshot" into gb-ub-photos-denali

10 years agoBring back video snapshot
Doris Liu [Sat, 26 Apr 2014 00:35:27 +0000 (17:35 -0700)]
Bring back video snapshot

Bug: 14220490
Change-Id: Ibf20d169aae9de4eb9c1e2151d9c7335bcf7b3a3

10 years agoDO NOT MERGE - Shutter button left handed support
Doris Liu [Tue, 22 Apr 2014 21:47:49 +0000 (14:47 -0700)]
DO NOT MERGE - Shutter button left handed support

Bug: 12823819
Change-Id: I77bdbf17557bdd9f545b98bab58acce68d01b51d
(cherry picked from commit 344320c90639f823451ddac42e8f39b74727787c)

10 years agoAvoid duplicate entries in the resolutions list.
Sascha Haeberling [Fri, 25 Apr 2014 20:04:41 +0000 (13:04 -0700)]
Avoid duplicate entries in the resolutions list.

  Bug: 14277230

Dup entries indicate that a camera doesn't support at least three entries.

Change-Id: Id3c18664637ba9cf80edada924695737863cf3a7

10 years agoProperly remove the settings for an unavailable camera.
Sascha Haeberling [Thu, 24 Apr 2014 21:26:28 +0000 (14:26 -0700)]
Properly remove the settings for an unavailable camera.

  Bug: 14108948

Change-Id: I34222ab976a481e8e28ed0bbc8b773dd3d49e8bb

10 years agoDO NOT MERGE - Refactor preview position logic
Doris Liu [Thu, 10 Apr 2014 23:01:51 +0000 (16:01 -0700)]
DO NOT MERGE - Refactor preview position logic

Centralize the logic of laying out bottom bar and transforming
preview TextureView based on the total space to lay them out
and preview aspect ratio. The layout is updated when either condition
above has changed. Then the rect of the bottom bar and preview
rect can be queried anywhere. This way, bottom bar, mode options
layout, and any view that relies on the preview rect and bottom bar
rect can be laid out without extra layout passes.

Bug: 13795952
Change-Id: I13c38b566b5b5d8f37ec94f325554c089a86ca8e
(cherry picked from commit 28a2950939614a0c1c83787960ce1a218fb69a5e)

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 21 Apr 2014 21:09:58 +0000 (14:09 -0700)]
Import translations. DO NOT MERGE

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

10 years agoDon't crash when less than two cameras are present.
Sascha Haeberling [Fri, 18 Apr 2014 01:47:51 +0000 (18:47 -0700)]
Don't crash when less than two cameras are present.

  Bug: 14108948

Change-Id: Ib288f9fd2bd86f870df22c1fde03184f00cea219

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Thu, 17 Apr 2014 00:41:23 +0000 (17:41 -0700)]
Import translations. DO NOT MERGE

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

10 years agoMerge "Fix edge case in supported video quality selection." into gb-ub-photos-denali
Sascha Häberling [Wed, 16 Apr 2014 18:51:59 +0000 (18:51 +0000)]
Merge "Fix edge case in supported video quality selection." into gb-ub-photos-denali

10 years agoFix edge case in supported video quality selection.
Paul Chang [Mon, 24 Mar 2014 16:05:45 +0000 (12:05 -0400)]
Fix edge case in supported video quality selection.

 Bug: 14108743

If less than three distinct video quality levels are supported, it's possible
for getNextSupportedVideoQualityIndex() to return an out-of-range array index.
Instead, just return the previous supported video quality -- this appears to
be the intended behavior.

Change-Id: I089571edf6ff748ce4914f188b4ef844ecb638c2

10 years agoDo not crash when attempting to refocus a deleted
Seth Raphael [Wed, 16 Apr 2014 18:24:07 +0000 (11:24 -0700)]
Do not crash when attempting to refocus a deleted
image.

Bug: 13546660
Change-Id: Ic260811ad2f45a44577609af0dc69a5c55c7fcfd

10 years agoDon't update metadata on local data insert.
Seth Raphael [Tue, 8 Apr 2014 19:02:18 +0000 (12:02 -0700)]
Don't update metadata on local data insert.

It is possible for insert data to be called in
a loop with many items, and this will cause un-
needed lookups of meta data.

The metadata lookup is already handled but the
filmstrip lazily, so it is not necessary here.

Bug: 13875458
Change-Id: I476eb1d44fa3d089f47b8b16f9be6d3255b4759e

10 years agoAvoid using stale parameters to get focus mode in video
Doris Liu [Tue, 15 Apr 2014 18:45:55 +0000 (11:45 -0700)]
Avoid using stale parameters to get focus mode in video

Bug: 13990664
Change-Id: If6a5b1cc9ce7d1ac67f0558a61036f228601b92b

10 years agoMerge "Import translations. DO NOT MERGE" into gb-ub-photos-denali
Baligh Uddin [Mon, 14 Apr 2014 23:17:28 +0000 (23:17 +0000)]
Merge "Import translations. DO NOT MERGE" into gb-ub-photos-denali

10 years agoMerge "Set video-size key for Samsung Brand devices." into gb-ub-photos-denali
Andy Huibers [Mon, 14 Apr 2014 22:52:06 +0000 (22:52 +0000)]
Merge "Set video-size key for Samsung Brand devices." into gb-ub-photos-denali

10 years agoSet video-size key for Samsung Brand devices.
Andy Huibers [Mon, 14 Apr 2014 20:53:12 +0000 (13:53 -0700)]
Set video-size key for Samsung Brand devices.

Bug: 14060121
Change-Id: I5b8e5b0259a4105b8839112b13e58f2222848c7e

10 years agoSafeguard callback receiver to prevent crashes.
Sascha Haeberling [Mon, 14 Apr 2014 21:41:57 +0000 (14:41 -0700)]
Safeguard callback receiver to prevent crashes.

  Bug: 13765929

It is safe to add these checks here. The receiver is only set in
the constructor, and it's only created in one place, which is
onCreate. And the parameter is the Activity itself, so it can
never be null.
This means the NPE can only happen if onCameraOpened is called after
removeCallbackReceiver is called, which is in onDestroy of the activity.
In this case it's safe to exit.

Change-Id: Ibffd6d54679b564a11b3e83319896241f2e306ad

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 14 Apr 2014 20:04:10 +0000 (13:04 -0700)]
Import translations. DO NOT MERGE

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

10 years agoCheck zoom enabled check and null check on zoom ratio list.
Andy Huibers [Sat, 12 Apr 2014 02:26:47 +0000 (19:26 -0700)]
Check zoom enabled check and null check on zoom ratio list.

Bug: 13987837
Change-Id: I45d3edc42a240c866f151c5e23431cd50eec7bc6

10 years agoMerge "Revert "ZoomRatios might not exist, not crash for logging."" into gb-ub-photos...
Sascha Häberling [Sat, 12 Apr 2014 02:59:56 +0000 (02:59 +0000)]
Merge "Revert "ZoomRatios might not exist, not crash for logging."" into gb-ub-photos-denali

10 years agoRevert "ZoomRatios might not exist, not crash for logging."
Sascha Häberling [Sat, 12 Apr 2014 02:58:12 +0000 (02:58 +0000)]
Revert "ZoomRatios might not exist, not crash for logging."

This reverts commit de26138f7821e33cac293e9c78c23b5c4612dcd2.

Change-Id: Ia788ef858cf2bc8891a5bbbf1a538b49d583247d

10 years agoMerge "DO NOT MERGE Don't call stopPreview after taking a picture on the m8" into...
Sascha Haeberling [Sat, 12 Apr 2014 01:13:52 +0000 (01:13 +0000)]
Merge "DO NOT MERGE Don't call stopPreview after taking a picture on the m8" into gb-ub-photos-denali

10 years agoDO NOT MERGE Don't call stopPreview after taking a picture on the m8
Sascha Haeberling [Sat, 12 Apr 2014 00:58:42 +0000 (17:58 -0700)]
DO NOT MERGE Don't call stopPreview after taking a picture on the m8

  Bug: 13966525

The proper solution is to remove the stopPreview call completely,
but as we have only limited time for testing left, let's be
careful and target specific devices only.

Change-Id: I5aa90b7c72068bae5352a8396e39a2c82ac137b9

10 years agoMerge "ZoomRatios might not exist, not crash for logging." into gb-ub-photos-denali
Sascha Haeberling [Sat, 12 Apr 2014 00:27:25 +0000 (00:27 +0000)]
Merge "ZoomRatios might not exist, not crash for logging." into gb-ub-photos-denali

10 years agoZoomRatios might not exist, not crash for logging.
Sascha Haeberling [Fri, 11 Apr 2014 23:59:38 +0000 (16:59 -0700)]
ZoomRatios might not exist, not crash for logging.

  Bug: 13987837

Change-Id: I77b8863b60cf5311ffd326015e612dfaeb45daa2

10 years agoUpdate mode options with hardware spec whenever hdr setting changes.
Erin Dahlgren [Fri, 11 Apr 2014 21:44:04 +0000 (14:44 -0700)]
Update mode options with hardware spec whenever hdr setting changes.

Bug: 13965048
Change-Id: I7e718bb56cb5dc92c7583bef780d442c04644a56

10 years agoShorten the preference string to fit
Sascha Haeberling [Thu, 10 Apr 2014 22:23:44 +0000 (15:23 -0700)]
Shorten the preference string to fit

  Bug: 13962104

Change-Id: Ie0ba57ad1644241748c8d0406c08be1c981b8f63

10 years agoMerge "Import translations. DO NOT MERGE" into gb-ub-photos-denali
Baligh Uddin [Thu, 10 Apr 2014 15:54:16 +0000 (15:54 +0000)]
Merge "Import translations. DO NOT MERGE" into gb-ub-photos-denali

10 years agoMerge "Tweak log levels for photo, video" into gb-ub-photos-denali
Alan Newberger [Thu, 10 Apr 2014 01:49:16 +0000 (01:49 +0000)]
Merge "Tweak log levels for photo, video" into gb-ub-photos-denali

10 years agoTweak log levels for photo, video
Alan Newberger [Thu, 10 Apr 2014 01:25:34 +0000 (18:25 -0700)]
Tweak log levels for photo, video

Adjusting log levels to insure some simple state flow statements
are printed for all clients at info, plus a few other adjustments.

Bug: 13737123
Change-Id: Ic58b2ad44067253960d68678c34d82895f49f6a6

10 years agoDon't crash when listener registration gets out of sync
Sascha Haeberling [Thu, 10 Apr 2014 01:27:05 +0000 (18:27 -0700)]
Don't crash when listener registration gets out of sync

 Bug: 13914960

In some cases it can happen that resume/pause sequences happen on
two CameraActivities at the same time, especially when switching
from lock-screen to non-lockscreen activities.

Change-Id: Ic0826fc4a1d601b0ba0e6ac9cef84c022d958ad4

10 years agoMerge "Fix the layout error in preview" into gb-ub-photos-denali
Doris Liu [Wed, 9 Apr 2014 22:30:27 +0000 (22:30 +0000)]
Merge "Fix the layout error in preview" into gb-ub-photos-denali

10 years agoFix the layout error in preview
Doris Liu [Wed, 9 Apr 2014 22:07:50 +0000 (15:07 -0700)]
Fix the layout error in preview

This bug is caused by view configuration and layout rect occasionally
out of sync and bottom bar's incapability of correcting itself. To
be specific, configuration can be out of sync with layout rect (i.e.
configuration.orientation is landscape but onLayout() passes in portrait
coordinates), but when that happens, configuration will soon correct
itself through onConfigurationChanged(), then another layout pass will
happen to make sure everything is laid out correctly. In this case,
when configuration and layout coordinates are inconsistent, bottom bar
lays out itself using the wrong alignment, and then changed the preview
rect accordingly. When another layout pass happens to correct this
inconsistency, bottom bar then lays out itself based on the correct
alignment and a wrong preview rect previously adjusted, rendering
correct alignment but wrong size.

Bug: 13911202
Change-Id: I7cf6dbea582ce3888df11039de8f94687fe75784

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Wed, 9 Apr 2014 20:11:39 +0000 (13:11 -0700)]
Import translations. DO NOT MERGE

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

10 years agoMerge "Add logging override helper" into gb-ub-photos-denali
Alan Newberger [Wed, 9 Apr 2014 20:11:02 +0000 (20:11 +0000)]
Merge "Add logging override helper" into gb-ub-photos-denali

10 years agoAdd logging override helper
Alan Newberger [Wed, 9 Apr 2014 19:06:42 +0000 (12:06 -0700)]
Add logging override helper

This CL removes compile-time log suppression with a runtim override.
With a runtime override we can custom configure logging with a single
level, not quite as flexible as a boolean per level but should suit
our needs. Compile-time log pruning could be done with proguard if
desired.

Bug: 13737123

Change-Id: I8bdcaca44b4dc5c7eab8ef2f74e5181bcacd2727

10 years agoLog memory consumption at end of onCreate (Camera2).
Kevin Gabayan [Tue, 8 Apr 2014 23:25:23 +0000 (16:25 -0700)]
Log memory consumption at end of onCreate (Camera2).
Bug: 13280671

Change-Id: Ifdeadff2c89a08757cc2f3792ba61a2b54d19ae0

10 years agoQuery memory consumption at end of onCreate.
Kevin Gabayan [Tue, 8 Apr 2014 18:12:05 +0000 (11:12 -0700)]
Query memory consumption at end of onCreate.
Bug: 13280671

Change-Id: Iedc4c8907a6e726a1835494bd6fad93e6ee8a666

10 years agoMerge "Cancel touch event forwarding when transitioning from shimmy to scroll state...
Doris Liu [Tue, 8 Apr 2014 20:04:42 +0000 (20:04 +0000)]
Merge "Cancel touch event forwarding when transitioning from shimmy to scroll state" into gb-ub-photos-denali

10 years agoCancel touch event forwarding when transitioning from shimmy to scroll state
Doris Liu [Tue, 8 Apr 2014 19:45:10 +0000 (12:45 -0700)]
Cancel touch event forwarding when transitioning from shimmy to scroll state

Bug: 13903149
Change-Id: I70badb1fdc959b3ce0a9d3385e664938ab7918a9

10 years agoMerge "Keep lights out even if the system changes it." into gb-ub-photos-denali
Sascha Haeberling [Tue, 8 Apr 2014 19:29:38 +0000 (19:29 +0000)]
Merge "Keep lights out even if the system changes it." into gb-ub-photos-denali

10 years agoKeep lights out even if the system changes it.
Sascha Haeberling [Tue, 8 Apr 2014 14:08:46 +0000 (07:08 -0700)]
Keep lights out even if the system changes it.

  Bug: 13894148

Change-Id: Ie6d5b8fc1d3601082942a5c0843b447cb4805ceb

10 years agoMerge "Switch visibility on AbstractTutorialOverlay removeOverlay." into gb-ub-photos...
Sascha Haeberling [Tue, 8 Apr 2014 02:53:52 +0000 (02:53 +0000)]
Merge "Switch visibility on AbstractTutorialOverlay removeOverlay." into gb-ub-photos-denali

10 years agoSwitch visibility on AbstractTutorialOverlay removeOverlay.
Sascha Haeberling [Tue, 8 Apr 2014 01:40:33 +0000 (18:40 -0700)]
Switch visibility on AbstractTutorialOverlay removeOverlay.

  Bug: 13337436
  Bug: 12440059

Change-Id: I34dd96df02cedf33be72ae5563bbad3d4b307a12

10 years agoMerge "Import translations. DO NOT MERGE" into gb-ub-photos-denali
Baligh Uddin [Tue, 8 Apr 2014 02:20:51 +0000 (02:20 +0000)]
Merge "Import translations. DO NOT MERGE" into gb-ub-photos-denali

10 years agoMerge "Replace isDebugging compiletime logging override with runtime property" into...
Alan Newberger [Tue, 8 Apr 2014 01:25:12 +0000 (01:25 +0000)]
Merge "Replace isDebugging compiletime logging override with runtime property" into gb-ub-photos-denali

10 years agoMerge "Don't show the tutorial wrapper all the time." into gb-ub-photos-denali
Sascha Haeberling [Tue, 8 Apr 2014 01:10:53 +0000 (01:10 +0000)]
Merge "Don't show the tutorial wrapper all the time." into gb-ub-photos-denali

10 years agoDon't show the tutorial wrapper all the time.
Sascha Haeberling [Tue, 8 Apr 2014 01:06:59 +0000 (18:06 -0700)]
Don't show the tutorial wrapper all the time.

  Bug: 13337436
  Bug: 12440059

Change-Id: I10a969a4c550b6ebbc101f7cdce8ef12c3029137

10 years agoReplace isDebugging compiletime logging override with runtime property
Alan Newberger [Tue, 8 Apr 2014 01:03:08 +0000 (18:03 -0700)]
Replace isDebugging compiletime logging override with runtime property

This CL accomplishes the same goal as the compile-time isDebuggable,
with a runtime property check. This is useful so that we opt in to
logging everything at a given level with one setprop line.

Note that either with this new runtime property or with isDebuggable,
the Log proxy wouldn't log if a particular Configuration value is false,
since that level is instead routed to SILENT_LOGGER.

Bug: 13737123
Change-Id: I78ce629620f420a08a2cc013865847674941fb9b

10 years agoMerge "Make tutorials render in smaller layout on tablets." into gb-ub-photos-denali
Sascha Haeberling [Tue, 8 Apr 2014 00:42:06 +0000 (00:42 +0000)]
Merge "Make tutorials render in smaller layout on tablets." into gb-ub-photos-denali

10 years agoMake tutorials render in smaller layout on tablets.
Sascha Haeberling [Tue, 8 Apr 2014 00:29:44 +0000 (17:29 -0700)]
Make tutorials render in smaller layout on tablets.

  Bug: 13337436
  Bug: 12440059

Change-Id: I7886a86189a94483775a5535c69e22090cec1530

10 years agoShorten ExternalViewerButton log
Alan Newberger [Tue, 8 Apr 2014 00:16:48 +0000 (17:16 -0700)]
Shorten ExternalViewerButton log

While examining logs, noticed our Log proxy rejected this log line
as too long.

Bug: 13737123
Change-Id: I8ca2cf6be79539db0fd262ffd13a317f6fe20dcb

10 years agoMerge "Hide mode switcher in selected state when window is no longer visible" into...
Doris Liu [Mon, 7 Apr 2014 23:20:05 +0000 (23:20 +0000)]
Merge "Hide mode switcher in selected state when window is no longer visible" into gb-ub-photos-denali

10 years agoHide mode switcher in selected state when window is no longer visible
Doris Liu [Mon, 7 Apr 2014 22:45:17 +0000 (15:45 -0700)]
Hide mode switcher in selected state when window is no longer visible

Bug: 13751149
Change-Id: Id479eeed06ec8965df2836c4825de6212c7efa7a

10 years agoMigrate LocationManager to use camera Logger
Alan Newberger [Mon, 7 Apr 2014 22:18:43 +0000 (15:18 -0700)]
Migrate LocationManager to use camera Logger

This is the last remaining non-test class in Camera2 using
android.util.Log directly.

Bug: 13737123
Change-Id: Ia90d1d91b651cace026d9fdd5867d556aa8bad72

10 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 7 Apr 2014 19:33:12 +0000 (12:33 -0700)]
Import translations. DO NOT MERGE

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

10 years agoMerge "Make removeOverlay publicly available." into gb-ub-photos-denali
Sascha Haeberling [Mon, 7 Apr 2014 19:24:54 +0000 (19:24 +0000)]
Merge "Make removeOverlay publicly available." into gb-ub-photos-denali

10 years agoMerge "Resize mode drawer content for tablet to 1.5x of that on phones" into gb-ub...
Doris Liu [Mon, 7 Apr 2014 19:17:08 +0000 (19:17 +0000)]
Merge "Resize mode drawer content for tablet to 1.5x of that on phones" into gb-ub-photos-denali