summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
Commit message (Collapse)AuthorAgeFilesLines
* Gallery2: fix app crash when there is no map appkaiyiz2014-11-281-3/+18
| | | | | | | | | | | ActivityNotFoundException happened after click showOnMap menu when there is no map app. Catch the Exception to avoid app crash. CRs-Fixed: 753928 Change-Id: I7d811e4a636bed22935fcc050d97559ace44eb31
* Gallery2: Fix Gallery crash when exit playing gif pic.kaiyiz2014-11-041-0/+3
| | | | | | | | | | | When we press back key to exit playing gif pic,the decoder is free and set to null,which casuse this bug happened. Add a condition to avoid the NullPointerException. CRs-fixed: 653709 Change-Id: Iab299554c252c3a1c9352b498cd946cb53e47cc7
* Gallery2: support GIF animationLikai Ding2014-11-045-1003/+899
| | | | | | | This change implements a Java GIF decoder. Change-Id: I72b6e8eb25572bba77a2a46e1754d8db8c47a0cc Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
* Gallery2: support GIF animationLikai Ding2014-11-045-0/+1127
| | | | | | | | (cherry picked new files from commit 2b133c9747af26701a12d60caef3e7e14cf55536) Change-Id: I227cef76cbacd66b7e87bc59b4f07d518b70a859 Signed-off-by: Xiaojing Zhang <zhangx@codeaurora.org>
* am 63186c67: am 71bf4978: am 48372e31: am ebbcc394: Avoid crash if user ↵Alan Newberger2013-10-301-1/+7
|\ | | | | | | | | | | | | disables Camera while Gallery is open * commit '63186c67ba93dd74a8585562909e4828b9f82f69': Avoid crash if user disables Camera while Gallery is open
| * Avoid crash if user disables Camera while Gallery is openAlan Newberger2013-10-301-1/+7
| | | | | | | | | | | | | | | | | | | | We cache the camera availability check so in the corner case that a user disables their camera in package manager, avoid crashing. Not necessary to do more sophisticated handling since this is a narrow case initiated by user. Bug: 11435559 Change-Id: I54d5015cdd9b64aec5c9da9a393824d3b41201a1
* | Merge "Fix invalid private access."Narayan Kamath2013-10-231-2/+2
|\ \ | |/ |/|
| * Fix invalid private access.Narayan Kamath2013-10-231-2/+2
| | | | | | | | | | | | | | See http://bugs.sun.com/view_bug.do?bug_id=6904536 bug: 8992787 Change-Id: I377678a32dff9b7cf8e19c8840f1382b4a4f006e
* | Consider camera available only if intent resolves to an activity.Mangesh Ghiware2013-10-221-5/+4
|/ | | | | | | Fixes crash for restricted profiles without a camera. Bug: 11289596 Change-Id: I3545dbeae2e4c9094746b51b770daa93e3896bb6
* Fix incorrect usage of getComponentEnabledSetting()Mangesh Ghiware2013-10-081-1/+3
| | | | | | Bug: 10912503 Change-Id: I9835995d121445ca170668ae8150a24e95e27544
* Switch Gallery2 to use the support lib for printing.Svetoslav Ganov2013-10-071-160/+0
| | | | | | | | | | | | | Now we have a class in the support library that uses a correct internal implemetation based on the API level. On older devices the app does not crash and on new devices it can print. Also this class does the heavy lifiting. Gallery2 was not using this class, rather it had its own (obsolete) implemetation that was not taking into account the image aspect ratio to provide a hint to the print system for the orientation to be used. bug:11099831 Change-Id: I4cd260614af4d9d87ec31d205ee2a5ef02ef5417
* Rename Gallery activity and add trampolineMangesh Ghiware2013-09-261-2/+2
| | | | | | Bug: 10807861 Change-Id: Iaaf17b579db2fe09900e9817f766f43dd66dea61
* enable change in printingJohn Hoford2013-09-261-3/+14
| | | | Change-Id: Ibf819002d29b83b4a8d72e7916d04f1c88a6bef2
* disable print on older system.John Hoford2013-09-251-0/+8
| | | | Change-Id: I003aa965c885e6c7f65ade51b024bad400e8e458
* fix print code to support landscapeJohn Hoford2013-09-241-5/+9
| | | | Change-Id: Ied569232a55ba953da59eeee2c13fc4608430a2d
* Merge "Add (back) receiver to disable camera." into gb-ub-photos-carlsbadMangesh Ghiware2013-09-231-3/+1
|\
| * Add (back) receiver to disable camera.Mangesh Ghiware2013-09-221-3/+1
| | | | | | | | | | Bug: 10411981 Change-Id: Icff31d2da466746ef6b00d4be32e92067cebd1f1
* | Update Gallery due to API changes.Svetoslav Ganov2013-09-231-11/+22
|/ | | | | | bug:10461180 Change-Id: I1c92871ef97b61920410d12d71ac2620ee502b24
* change the max print resolutionJohn Hoford2013-09-191-1/+3
| | | | Change-Id: Ie2cc1c3f40675ae163438c9b09f26e4ac1881367
* DO NOT MERGE Cherry-pick:Update Gallery due to API change.Svetoslav2013-09-131-1/+1
| | | | Change-Id: Iebb5c774a05581ba3c3b29d695ee7d5fa37576b8
* Update the Gallery API due to API changeSvetoslav2013-09-061-60/+13
| | | | | | This is a cherry-pick of Svetoslav's fix in klp-dev: https://googleplex-android-review.git.corp.google.com/#/c/353376/ Change-Id: Icf61ff059da24630aca8b7eb00575d12cf85e2fb
* Updated Gallery to avoid breaking the build - API changeSvetoslav Ganov2013-08-291-3/+13
| | | | Change-Id: Iaf80496629773dfffab4d1475a711384fa96e010
* Updated printing in Gallery due to API changes.Svetoslav Ganov2013-08-271-43/+92
| | | | | | | | | | | | 1. Now there is two fitting modes: scale to fill and scale to fit. Updated the Gallery print code to support them both. 2. Now we have APIs for specifying which constraints in the print attributes have been satisfied by the app so the pritner does not satisfy them again, e.g. if the app rotated the content then the printer should not do it. Change-Id: I78b2925965068bd528fe6ec739bfd1e93084dd24
* Cherry-pick of KLP CLSvetoslav Ganov2013-08-271-1/+1
| | | | | | | | (printing support) Fixing the build Change-Id: I48eb47c071b2060dfea430cee968bf99225a8bb1
* Add printing to Gallerynicolasroard2013-08-191-0/+14
| | | | Change-Id: I26aad645759f95813003badffbd03845e0df37bb
* Implements Printing in the editornicolasroard2013-08-161-0/+98
| | | | Change-Id: Ib307f8b9c1aaaee2ab96f8e8ddcd86abe38bdc72
* Fix help for GalleryGoogle buildsJohn Reck2013-07-171-106/+0
| | | | | | Bug: 9886976 Change-Id: I23fc78b924f3757f8ab12f84d3a0c97c1adc2333 (cherry picked from commit 7a43c8c3b85d6f9162651d8ed8b3a11a87490824)
* Add background processing servicenicolasroard2013-07-161-1/+1
| | | | | | bug:7298624 Change-Id: Ie79f88fd84fdf8f4dab6a8071f06a819e247b357
* Setup the saving framework to support hiding original photo for editor.ztenghui2013-06-191-6/+2
| | | | | | | | | | | This new approach will try to hide the original image into an auxiliary directory. User will only see one edited image, while being able to go back to the original image in the editor. Refactor SaveCopyTask for more private funcs and more comments. bug:9468909 Change-Id: I866321d23e6db0b3dbd08fec2a6a7e3142b17b65
* Update the duration information when saving new videoztenghui2013-04-181-1/+18
| | | | Change-Id: I9c3fd33dba7f04d9d905429c6bb17cf9a10b7628
* Add relativePath field into photo widget dbDoris Liu2012-12-143-2/+26
| | | | | | | | | | | Bug: 7481248 The bug is caused by the change of external storage going from JB to JBMR1. In light of this change, a new field has been added to the photo widget app database to store the relative path for the local album. With the relative paths stored, the widget app should be more resilient to future storage path changes. Change-Id: Ia2497b882ae67178fa0632f23e07673b82d3a942
* Gallery in separate task for up button in Camera filmstripBobby Georgescu2012-12-141-1/+3
| | | | | Bug: 7738398 Change-Id: I297c15f0a3e537d96d79b05e1dd8d376ff59bfca
* Remove LongSpareArray + some cleanupsYour Name2012-12-111-8/+0
| | | | Change-Id: If5bb44ebca70bd735e426aeb3d9aac2d4bac646e
* Add GLES20 canvas implementation.George Mount2012-12-051-0/+5
| | | | Change-Id: I5680909f31dc097599d0e063aa1f6daba834d3e2
* Video: Add the mute functionality.Teng-Hui Zhu2012-11-142-0/+170
| | | | | | | | | 1. Enable the mute video functionality. 2. Consolidate the sharing code, especially for file handling. bug:7543943 Change-Id: Ie7ec605996bc3242b1a50385f506e6a50ee2d2fc
* Adding AccessibilityUtils classDoris Liu2012-11-051-0/+54
| | | | | | | | | Bug: 7434841 All the functions in this class should be backward compatible to gingerbread. Change-Id: I280a64d195b2df123607a5cdad5886e3048dbb92
* Use TiledTexture for thumbnails.Owen Lin2012-10-241-5/+5
| | | | | | | | | | 1. Use TiledTexture for thumbnails to prevent jank in uploading big thumbnails. (e.g., 512 * 512) 2. Use larger thumbnails (DISPLAY_LONG_SIDE / 5). bug: 7381302 Change-Id: I7661d648373e893b40b2a0304037171760091e00
* Save edited picasa to "Edited Online Photos" albumDoris Liu2012-10-172-0/+4
| | | | | | | | | | | Bug: 7346157 This CL includes the following changes: 1) Save the new image to a new folder named "Edited Online Photos" 2) After the picture is saved, the user will be in the "Edited Online Photos" folder 3) Change the toast during saving to "Saving to" + new folder name Change-Id: Ic505925425419ba9e3c7dac31fd403bf73d6887d
* Fixes bugs in TiledTexture.Owen Lin2012-10-161-3/+3
| | | | | | | | | 1. Upload tiles in SinglePhotoDataAdapter 2. Rebuild the upload queue after the screen nails being recycled bug: 6399444 Change-Id: I57e756f8d1d84742bf82dd34c83baf8df89ae4cc
* Dejank camera roll scrolling in grid view.Pin Ting2012-10-091-4/+2
| | | | | Bug:7302644 Change-Id: I280be430101f57dde5a5a6f427cf48e725e39b45
* Share only 360-degree panoramas with new MIME typeMangesh Ghiware2012-10-081-1/+1
| | | | | | | | | | Bug: 7302972 Instead of using the UsePanoramaViewer attribute in XMP metadata, ensure that the panorama is full 360 degree by checking if the cropped width is same as the full panorama width. Change-Id: I66d864df96052f96db5fa19fb02b3abe214b4dec
* Set the thumbnail/screennail sizes based on screensizeBobby Georgescu2012-10-051-7/+16
| | | | | | | | | | | | | | Bug: 7232758 Prior to this CL, the thumbnail and screennail sizes were hardcoded which resulted in mediocre image quality when using the Gallery in general and the camera filmstrip. Now, we set the size of these items based on the resolution of the display. Because high-resolution devices tend to have higher-performance graphics to drive their large displays, we expect that this will not introduce any significant performance impact. Change-Id: I90e08f7aca670e275c913fd9e21e4459c8bf9fcf
* Accelerate PNG image rendering.Pin Ting2012-10-041-0/+8
| | | | | Bug:7137662 Change-Id: I050a228a6c8031c6a2d068eb4ba1b39be86e9f4a
* Revert "Enable swiping from LightCycle to Gallery"George Mount2012-10-011-49/+0
| | | | | | | This reverts commit 6fd25fd9a457346c8c32e8c4e68c7c491205730b Changed mechanism for enabling swipe in LightCycle. Change-Id: I5c9395eb97ee88d015fb3765d0594d92c4ae126d
* Enable swiping from LightCycle to GalleryGeorge Mount2012-10-011-0/+49
| | | | | | Bug 7212420 Change-Id: Ic61bc06c6113c969e4b2e6e9c87c78a8aa2cb402
* Update to sharing panoramaMangesh Ghiware2012-09-271-3/+5
| | | | | | | | | | | | | Bug: 7150324 Use separate share intents for sharing panoarma and regular JPGs. If photo is a 360 panorama, promote sharing it on the action bar, and move sharing as JPG to overflow menu. MIME type changed to specify panorama360. Change-Id: I8d52733d105820ac17ff36a6ad9d7525893f6d27
* Fix behavior of up button in Camera appBobby Georgescu2012-09-261-0/+6
| | | | | | | Bug: 7233448 - Up button now goes to gallery root when appropriate. Change-Id: Ib474335b2ac4139e7c5a213bda3efa481b24f224
* Reskin: switching between filmstrip and grid in albumBobby Georgescu2012-09-091-0/+2
| | | | | | | | | | | Bug: 7050303 Bug: 6541425 Allows switching between the filmstrip and the grid views within albums and launches camera roll in filmstrip mode by default. Also fixes animation issue when animating from full-screen to grid view. Change-Id: I2a37b92c129cc090fd807973f7e3e82fed207cd3
* Remove unused resources and fix some warnings.Owen Lin2012-08-301-4/+4
| | | | Change-Id: I075977150c7da7650e723e29406f24ae2e23ea97
* Ongoing reskin of Gallery appBobby Georgescu2012-08-241-0/+15
| | | | | | | | | | Bug: 7050303 Moved the majority of color settings from hardcoded to colors.xml in order to allow rapid iteration with UX input. Started changing some colors and layouts to reflect latest UX mocks. Change-Id: I300338e9f75c71f3ed3f36140d16e893387f3184