summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/util
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move ThreadPool to gallerycommon for picasasync and picasastore.Hung-ying Tyan2012-08-214-367/+0
| | | | | Bug: 7005321 Change-Id: I7ae4bafed141be03bca74772a261c7c2fb3036c4
* Fix some bugs introduced by the ActionBarWrapper.Owen Lin2012-08-161-0/+29
| | | | | | bug: 6927267 Change-Id: If05082a4fec25f93d38c6096ebacc5a82e7e7c2e
* Extract the action bar interface.Owen Lin2012-08-151-50/+5
| | | | | | | | | | | | | So that we can use different implementation for different API levels. **NOTE** This change is going to be replaced by the ActionBar compat library when it gets ready. The purpose of this change is making Gallery/Camera run on GB. bug: 6927267 Change-Id: Ic8bb2518918168ea889db6452d6760de390d96b2
* Make a copy of MotionEvent in MotionEventHelper.transform.Wu-cheng Li2012-08-131-2/+3
| | | | | | | | | | | | RotateLayout transforms the event in dispatchTouchEvent. If the event is not handled, the parent of RotateLayout may send the transformed event to other views and the coordinates will be wrong. Make a copy of MotionEvent in transform. This also makes the behavior consistent in different API levels. bug:6974916 Change-Id: Id835767cc9be3f244e5abe2b855e5188045adedc
* Guard the usage of MenuItem.setShowAsAction in MenuHelper.Owen Lin2012-08-081-1/+11
| | | | | bug: 6927642 Change-Id: I3907ac2f86d38c15b681185abee5906ce243339a
* Move motion event related methods to class MotionEventHelper.Ahbong Chang2012-08-071-0/+119
| | | | | Bug: 6943189 Change-Id: I9084cc8ebb501a5b772ed4e00bd64a3b2e8bafb3
* Code clean up.Ahbong Chang2012-07-307-0/+17
| | | | | | | | | Remove unused imports. Remove unused fields. Remove unnecessary cast. Add missing override annotations. Change-Id: Idad2e587697a5015eb5363d7b71fab9de9cc8ffb
* Don't test the EXTRA_LOCAL_ONLY before HC.Owen Lin2012-07-051-2/+7
| | | | Change-Id: Idebb2aba994e38cf7eead795f1834ff98eaec27d
* Don't use Display.getSize().Owen Lin2012-06-271-2/+0
| | | | Change-Id: I9b5c9021bae2b58d2815a909c97104f215d4d2e8
* Remove camera icon in Gallery if there is no launcher icon.Chih-Chung Chang2012-05-171-2/+17
| | | | | Bug: 6516793 Change-Id: I7ec88065565bcafdd2534cd8c7fd8f2591743447
* Fix 6213053 Add Help entry point to Gallery (targeted for J release)Ray Chen2012-05-172-13/+141
| | | | | | b: 6213053 Change-Id: Ib94a8bbdb3114a198b775025c5864a3d83cdd5ad
* Remove PhotoPage spinner shown in the action-bar.Yuli Huang2012-05-072-121/+0
| | | | | | | Remove spinners shown for loading data out of view. bug:5406790 Change-Id: Iffaf97937b86b869559a27f190941c1de263e422
* Add camera icon for camera roll.Chih-Chung Chang2012-05-031-0/+7
| | | | | Bug: 6411709 Change-Id: I2476dba7edb2b763f3b7727f0034fa300cf0287a
* Make 'Edit' behave more consistent with 'Crop'. DO NOT MERGE.Yuli Huang2012-04-272-3/+29
| | | | | | | | 1. Save edited PWA photo in 'dowload', same as cropped images. 2. Fix Crop-image toast may show strings without i18n. bug:6168430 Change-Id: Ic99a478e684597d3dc1a105c4f592dd98d8f227d
* Fix b/6213053 Add Help entry point to Gallery (targeted for J release)Ray Chen2012-04-171-0/+14
| | | | | | b:6213053 Change-Id: Ib9d9c5e69f09d6c2fffb4e6ecb09b2c3ae700365
* Add new filmstrip mode for PhotoView.Chih-Chung Chang2012-04-103-0/+150
| | | | Change-Id: I9da9896303ced8d63a3557d5e6e9bc06fb366cf5
* Fix OOM when switching between camera and camcorder.Wu-cheng Li2012-04-031-4/+10
| | | | | | | | | | - Camera activities extend AbstractGalleryActivity. So onDestroy is moved from Gallery to AbstractGalleryActivity. - Use WeakReference for values in the WeakHashMap of SpinnerVisibilitySetter. bug:5954389 Change-Id: Ib15f269bd4c54a4621bdff58e7ea16b44f8fb3e3
* Reorganize import for all files.Owen Lin2012-03-147-19/+16
| | | | Change-Id: Ia9188bcde727e317e6a476caccaea562f0758b19
* Remove unused code.Chih-Chung Chang2012-02-237-127/+5
| | | | Change-Id: I167596ab023671651df298ddb2b80b7c782f4223
* Add profiling tools.Chih-Chung Chang2012-02-142-0/+394
| | | | Change-Id: Ieab118ededaab5ef46408fac6fdb66b9fff4900e
* am c903fd67: Fix the memory leak by WeakHashMap.Owen Lin2011-11-151-67/+40
|\ | | | | | | | | * commit 'c903fd67c26d652f9dbd5cb321b64d1601357985': Fix the memory leak by WeakHashMap.
| * Fix the memory leak by WeakHashMap.Owen Lin2011-11-141-67/+40
| | | | | | | | | | | | | | | | fix: 5601885 Also simplify the code. Change-Id: I97cdf00d84fa093ad7032e85ec7c31c3365e2447
* | Fix 5454748: Localize hardcoded folder names.Chih-Chung Chang2011-10-241-0/+3
|/ | | | Change-Id: I91586d6f707a0352be6be524e848bd2c2dacab7e
* Fix 5352588: Accept view intent without URI.Chih-Chung Chang2011-10-191-16/+16
| | | | Change-Id: I719fd853b66c05c4fdbe70ff97993b9487997694
* Get rid of "flashies" in the action bar.Evan Millar2011-10-032-5/+134
| | | | | | | | | | | -Filter out short spinner events. All spinner events that last <1sec are now ignored. We also enforce a minimum delay time of 2 sec. -Mark the share and delete menu items as visible="false" by default to get rid of the quick display/removal of them under scenarios where they are ultimately removed. bug:5398336 Change-Id: I0620532f3ab59d9fde46123620eb781a87445b54
* Fix 5299746: New UI layout, part 2.Chih-Chung Chang2011-09-201-0/+7
| | | | | | | | | | - Replace various icons and add xhdpi/sw600dp-mdpi versions of them. - When user press on the thumbnails, show a color overlay on it. - For a wide (w/h > 2) picture, add panorama overlay on it. - Align photo count label position when there is no icon for it. - Adjust offline page layout. Change-Id: I327d25806e99843bfa05d3ca0e9be5a8f9375595
* Copy exif data for cropped image.Owen Lin2011-09-071-0/+19
| | | | | | fix: 5248023 Change-Id: I2f59bfd96ca7533195f7019cc76080579dff8d1e
* Improve the performance of Reviewing a photo.Owen Lin2011-09-051-0/+163
| | | | | | | | | | | | | | | | | fix: 5144370 There is two componenet in the photo page. One is the large photo and the other is the thumbnail strip. They idenpendently load their own data and images. This change fixes several issues here: 1. Prevent sending to many jobs to ThreadPool and block others. In a worse case, if the thumbnail strip send image requests first, it may block the ThreadPool very long. 2. Improve the performance of extracting thumbnails from local files. Now we try to extract the thumbnails from EXIF data first. Change-Id: I45100d4daa025efb479f47c4f105de2b4731b498