summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonCamera: Use floating components during video record.Jay Wang2015-09-167-12/+109
| | | | | | | | During recording, there are only 2 widgets on UI. Directly attaching them to window manager and making main UI layer fully transparent can reduce power consumption. Change-Id: I8c4f4768ab91d50fc72080f0f6d7316ee2e60ef4
* Merge "SnapdragonCamera: Reset navigation bar state whenever screen turns on"Linux Build Service Account2015-09-101-0/+7
|\
| * SnapdragonCamera: Reset navigation bar state whenever screen turns onByunghun Jeon2015-09-021-0/+7
| | | | | | | | | | | | | | Reset navigation bar state whenever screen turns on Change-Id: Ic1021322e33cf116706c533edaac0f28396fa631 CRs-Fixed: 887673
* | Merge "SnapdragonCamera: Set default video resolution to 1080p"Linux Build Service Account2015-09-101-4/+7
|\ \
| * | SnapdragonCamera: Set default video resolution to 1080pJay Wang2015-09-031-4/+7
| | | | | | | | | | | | | | | | | | | | | Previously, default video recording resolution was largest available. This has been changed to be 1080p by default. Change-Id: I29b4d7d8d80af1472315fdacb9c1672403247f7f
* | | Merge "SnapdragonCamera: Always enable FD with TruePortrait on"Linux Build Service Account2015-09-101-16/+34
|\ \ \
| * | | SnapdragonCamera: Always enable FD with TruePortrait onJay Wang2015-09-031-16/+34
| |/ / | | | | | | | | | | | | | | | | | | | | | Face detection should always be on when TruePortrait is enabled. Menu item for FD will show on and disabled (not toggleable) when TruePortrait is on. Change-Id: Ibbe8b5aaede2590d2587e9f8094d84f8717a037a
* | | Merge "SnapdragonCamera: limit longshot captures"Linux Build Service Account2015-09-101-0/+13
|\ \ \
| * | | SnapdragonCamera: limit longshot capturesJay Wang2015-09-031-0/+13
| |/ / | | | | | | | | | | | | | | | | | | | | | Limit the number of shots captured during longshot/continuous capture mode. The limit will be based on sysprop: "persist.camera.longshot.shotnum". Reset the value to 0 to remove the limit. Change-Id: Ib8994d2e851fc95feab6b1a3817fc66c75836ccc
* | | Merge "SnapdragonCamera: Fix the preview thumbnail issue"Linux Build Service Account2015-09-091-0/+2
|\ \ \
| * | | SnapdragonCamera: Fix the preview thumbnail issuelikaid2015-09-021-0/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When set the preview thumbnail imageView to visible, it used the drawable resource in cache which was set since last time. That caused we still could see the preview thumbnail though the bitmap was invalid. Clear the drawable resource in cache when the preview thumbnail is invalid. Change-Id: Id37620d32b8dff8dd3cad0f33da678b8709e6ee1 CRs-Fixed: 899905
* | | Merge "SnapdragonCamera: show pause button for time lapse recording"Linux Build Service Account2015-09-091-1/+1
|\ \ \
| * | | SnapdragonCamera: show pause button for time lapse recordingLikai Ding2015-09-081-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | Time lapse recording now has pause/resume support, so don't hide pause button. Change-Id: Ia1b4f1bd2f571cb4a2b9f6f27f07d442eb43be61
* | | Merge "SnapdragonCamera: Fix not able to view other pictures when macro mode"Linux Build Service Account2015-09-091-0/+1
|\ \ \
| * | | SnapdragonCamera: Fix not able to view other pictures when macro modelikaid2015-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Macro+ mode, it always started the refocus editor view when clicked the preview thumbnail, that caused user could not view other pictures. Reset the flag mLastPhotoTakenWithRefocus to false when onResume,start the refocus editor only one time after take a picture with macro+ mode. Change-Id: I07772772be0e6227b87c4f58c900a6c024cd2fdc CRs-Fixed: 896098
* | | | Merge "SnapdragonCamera: Set color effect as none when turn HDR on"Linux Build Service Account2015-09-091-3/+11
|\ \ \ \
| * | | | SnapdragonCamera: Set color effect as none when turn HDR onlikaid2015-08-251-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some color effects has special tone, if do HDR for specific color effects like Negative, we'll get unreasonable pictures. Disable the color effect when HDR on and set it as none effect. Change-Id: I8dca19b081504abaa85728b6d67b85699a184abb CRs-Fixed: 894360
* | | | | Merge "SnapdragonCamera: Stop the longshot when the storage is full"Linux Build Service Account2015-09-092-3/+19
|\ \ \ \ \
| * | | | | SnapdragonCamera: Stop the longshot when the storage is fulllikaid2015-09-062-3/+19
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The remainingPhotos was decreeased by 1 for each shot, when it came to 0, the longshot process was not stopped. When the remaining photos are less than 20, show "<20" for the remainingPhotos; When the storage is full, Stop the longshot process. Change-Id: Ifb1fb38f668132e1058f8a937afa9fa0b5afb5a7 CRs-Fixed: 893008
* | | | | Merge "SnapdragonCamera: Fix the 4K video relative toast issue"Linux Build Service Account2015-09-091-2/+16
|\ \ \ \ \
| * | | | | SnapdragonCamera: Fix the 4K video relative toast issuelikaid2015-09-011-2/+16
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The toast "Enable 4k video quality will disable IS" was shown every time when update the camera parameters, that made user confused. Move the toast to onSharedPreferenceChanged, show it only when set video quality as 4K and IS is ON. CRs-Fixed: 886568 Change-Id: I3246feada6eaf2097278e04b835ad1bc7ff811b8
* | | | | Merge "SnapdragonCamera: Reduce the latency for panorama preview starting"Linux Build Service Account2015-09-091-6/+8
|\ \ \ \ \
| * | | | | SnapdragonCamera: Reduce the latency for panorama preview startinglikaid2015-09-081-6/+8
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In panorama mode preview, the stopPreview and startPreview were called three times after onResume from lockscreen, that caused the preview showing delay. Reduce the unnecessary stopPreview to improve the preview performance. CRs-Fixed: 876035 Change-Id: Ice5b0c305edb773867fd4803c190c98f5518ecb2
* / | | | SnapdragonCamera: Hide camera controllers when review captured imagelikaid2015-09-082-0/+26
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The camera settings options including scene mode, color effect, switcher for back/front camera, and the beautification make-up should only be shown on camera preview, since they are not used for editing pictures. Hide these camera setting options to avoid making user confused. Change-Id: I26599c4d97043069eee9c1a069325735ba625a94 CRs-Fixed: 895938
* | | | Merge "SnapdragonCamera: Limit preview size by capping display dimensions."Linux Build Service Account2015-09-021-0/+33
|\ \ \ \ | |/ / / |/| | |
| * | | SnapdragonCamera: Limit preview size by capping display dimensions.Sai Kumar Sanagavarapu2015-08-141-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By capping the display panel dimensions, effectively limit the preview size configured to backend. This will help in optimizing power and bandwidth. Properties to be configured : camera.display.umax -> set it to the upper max of display panel size camera.display.lmax -> set it to the lower max of display panel size For example if the properties are set as below : adb shell setprop camera.display.umax 1920x1080 adb shell setprop camera.display.lmax 1280x720 Then, in devices having display panel size >1080p, panel size will be seen as 1080p. If its 1080p or lesser (but >=720p), limit it to next allowed max which is 720p. For < 720p, there is no need to do any capping. By capping the panel size, we are indirectly controlling the preview size being chosen in getOptimalPreviewSize(). Change-Id: Ia9963467dbda7fb47d96a96a345f26a5e38a95a1
* | | | Merge "SnapdragonCamera: Allow touch to focus when using opti-zoom"Linux Build Service Account2015-09-011-1/+4
|\ \ \ \
| * | | | SnapdragonCamera: Allow touch to focus when using opti-zoomByunghun Jeon2015-09-011-1/+4
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Allow touch to focus when using opti-zoom Change-Id: Id8f40a395626eea3973e6b728f1fa581acf64633 CRs-Fixed: 900256
* / | | SnapdragonCamera: Close setting/scene mode when setting is selectedByunghun Jeon2015-08-282-7/+3
|/ / / | | | | | | | | | | | | | | | | | | Close setting/scene mode when setting is selected Change-Id: I584b7eaea25774ec4906a40ddae2eda89646893e CRs-Fixed: 898871
* | / SnapdragonCamera: add button borderLikai Ding2015-08-211-1/+7
| |/ |/| | | | | | | | | | | Add border for "All in Focus" button. Also some tweaks to meet UI spec. Change-Id: I56c458a420e503321cc9a3255a7dd4ae0a6d4637
* | SnapdragonCamera: fix app freeze with HDR and Macro+Likai Ding2015-08-191-18/+16
| | | | | | | | | | | | | | | | | | When scenemode is set to HDR and then Macro+, HDR is not turned off. This will cause media server crash and app freeze. Turn off HDR when Macro+ or Optizoom is enabled. Change-Id: I51d7df55bb2c0dffd94d1ddadababaad62e3fe27 CRs-Fixed: 879081
* | Merge "SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModule"Linux Build Service Account2015-08-172-1/+4
|\ \
| * | SnapdragonCamera: Fixing NullPointerException in onCreate of VideoModuleSanjeev Garg2015-08-132-1/+4
| |/ | | | | | | | | | | | | | | | | | | As per new open camera optimization, setContentView is called after init. But VideoModule has a dependency in initialization on setContentView as if setContentView is not called before using mFilmStripView then its value is null. To avoid this changed the location of using mFilmStripView from initialization to onResume. Change-Id: I6f0116fa82554b11b06d733b3952e6596daa50d3
* | Merge "SnapdragonCamera: Hide the top menu items on captured preview"Linux Build Service Account2015-08-173-1/+19
|\ \
| * | SnapdragonCamera: Hide the top menu items on captured previewlikaid2015-08-043-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The menu items will make user confused if show them on the captured preview view. Hide them in that scene, show them again after restart camera preview. CRs-Fixed: 851505 Change-Id: I16df39645209621058a644e2da17e22010a7f451
* | | SnapdragonCamera: fix screen flash on resumingLikai Ding2015-08-141-1/+7
| |/ |/| | | | | | | | | | | | | | | Currently preview cover will be hidden shortly after preview started, but if the actual first frame comes late, the main screen will flash. Register a oneshot preview callback to hide preview cover. Change-Id: I81fabf2d97c32fc2112cf4fceef4edd0872439e2 CRs-Fixed: 889021
* | Revert "SnapdragonCamera: Improved panorama"Byunghun Jeon2015-08-127-577/+1389
| | | | | | | | | | | | This reverts commit "SnapdragonCamera: Improved panorama" Change-Id: I7aef9427c218d06b78cbc097dd32a1629b5ab9d1
* | SnapdragonCamera: Fix submenu icon not display in RTLlikaid2015-08-121-2/+2
| | | | | | | | | | | | | | | | Layout of submenu is not corret in RTL. Change linear layout to relative layout for this case. CRs-Fixed: 885928 Change-Id: Iaa7644cc4ccbf436cbd148a485abab2b9155ba5d
* | Merge "SnapdragonCamera: Improvement in open camera latency"Linux Build Service Account2015-08-111-34/+36
|\ \
| * | SnapdragonCamera: Improvement in open camera latencySanjeev Garg2015-08-061-34/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | setContentView(R.layout.camera_filmstrip) call in the app takes ~40 msec before actual openCamera call is made. This is adding to the total APP camera open latency. So Opening camera in parallel to the call to setContentView(R.layout.camera_filmstrip) to save this time. Change-Id: I8e3797e65d17021853e0e04873178a372f12f195
* | | Merge "SnapDragon: Changes to create UI object before openCamera."Linux Build Service Account2015-08-101-1/+1
|\ \ \
| * | | SnapDragon: Changes to create UI object before openCamera.Guruprasad Gaonkar2015-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenCamera is excecuted on a thread. This thread will access UI object which was not initialized. Change-Id: I1cb15036e0b54a38a1d9750856b1eef5aa9dda43
* | | | Merge "SnapdragonCamera: Set navigation bar according to flag"Linux Build Service Account2015-08-103-12/+18
|\ \ \ \
| * | | | SnapdragonCamera: Set navigation bar according to flagByunghun Jeon2015-08-073-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set navigation bar according to flag and set it to show by default Change-Id: I5ddb9d5f8150d7fd1d182bacb25cd02651a2db5b
* | | | | Merge "SnapdragonCamera: fix screen flash on resuming"Linux Build Service Account2015-08-083-1/+19
|\ \ \ \ \
| * | | | | SnapdragonCamera: fix screen flash on resumingLikai Ding2015-08-063-1/+19
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently preview cover will be hidden shortly after preview started, but if the actual first frame comes late, the main screen will flash. Register a oneshot preview callback to hide preview cover. CRs-Fixed: 881290 Change-Id: I5d93e57f0b9aa338c6b34461d5e3ee31806b6706
* | | | | Merge "SnapdragonCamera: Make camcorder switcher icon invisible."Linux Build Service Account2015-08-072-1/+9
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | SnapdragonCamera: Make camcorder switcher icon invisible.likaid2015-08-062-1/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When take photo for contact and back from setting ,the camcorder switcher icon will show. When take photo from contact,then set the camcoder switcher icon invisible. Change-Id: If0153650d131c5b1ee78a79c255c637aab410d8e CRs-Fixed: 884351
* | | | Merge "SnapdragonCamera: notify focus manager about surface change"Linux Build Service Account2015-08-061-0/+4
|\ \ \ \ | |_|/ / |/| | |
| * | | SnapdragonCamera: notify focus manager about surface changeLikai Ding2015-08-051-0/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If device and preview have different aspect ratio, preview doesn't occupy full screen. So SurfaceView's dimensions including margins need to be considered for transformation matrix. Otherwise touch focus area set to HAL won't match with actual user touch point on screen. CRs-Fixed: 885176 Change-Id: I6b7bfa6e3cb831592615dc5dfc45622f106c99d0