summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* SnapdragonGallery: Fix white gallery screen before showing photoLikai Ding2016-06-301-0/+1
| | | | | | | When firsh launch Galler, there is still a white screen. set GalleryActivity attribute windowBackground to black. Change-Id: I8d293595a4adb1183c93da0e2a79ee26e9a6ec48
* Gallery2: improve apply filter operation performance in Photo Editor.Chao Zhang2016-06-289-146/+133
| | | | | | | | | 1. modify HazeBuster, SeeStraight and TrueScanner editor interface. 2. open filter directly if has only one category. 3. modify logic of compare button. Change-Id: Ifa6e77d87548024bea67441c5d87fd12eaaf6f7c CRs-Fixed: 1018892
* Gallery2: Fix white gallery screen before showing photohuiyan2016-06-281-0/+4
| | | | | | | | | | | | | Put a white cover View in front of the SurfaceView and hide it after the first draw. This prevents the SurfaceView being transparent before the first draw. So can see the white screen at first. Set the cover View to the black color if start gallery with view single photo action, which can match the background of photopage to avoid see the white screen. Change-Id: I0b3766eb6023f9bcdb7e0329dcafb978b3dc1557 CRs-Fixed: 1021668
* Gallery2: fix timeline title display abnormal.Chao Zhang2016-06-281-0/+2
| | | | | | | | | timeline title will displays abnormal after set a large photo as contact photo. set correct cluster kind to fix it. Change-Id: Iec62a81bb61b09be4466418520baaa7426ecaeaf CRs-Fixed: 1004573
* Gallery: fix edit crashLikai Ding2016-06-211-1/+1
| | | | | | | Rename jni module names. Change-Id: Ibc90266b0f37cebf532f8344bdaf06bf0f4fab8b CRs-Fixed: 1030458
* Gallery: fix edit UI loadingLikai Ding2016-06-172-2/+4
| | | | | | | | Use full name of ProcessService because of package name change. Also fix a crash when makeup library is not present. Change-Id: Ib4a7cea2a77df2473bc8078507d9c5aadf4fe360 CRs-Fixed: 1030458
* Gallery2: Fix toolbar title dispalyed abnormal.wqi2016-06-143-1/+8
| | | | | | | | The title of toolbar displayed abnormal when launch gallery in landscape mode. adjust the style of toolbar keep display normal. Change-Id: I081a73d24910a30d6ab2799b3c01b47ad617121d CRs-Fixed: 1004530
* Gallery2: Fix null pointer exception from monkey test.huiyan2016-06-141-1/+4
| | | | | | | | | The reference is not instantiated before invoking it. Determine whether the reference is instantiated before invoking it. Change-Id: I12560d85c3b14e0466c127f2422ea554e0b50345 CRs-Fixed: 1019470
* Gallery2: Fix the picture display error after doing rotate operation.huiyan2016-06-141-0/+2
| | | | | | | | | | | | | After rotating the image, use previous canvas to draw the new content, but the canvas is not erased the previous content before using to draw. So if the format of the image is png which alpha is set, the previous content can be seen by the transparent part. Before drawing the new content, the canvas erase the previous content to make the canvas clean. Change-Id: I9f5c3196eed28470673d90d02ce9fdc3fca62727 CRs-Fixed: 996568
* Gallery2: fix sharpness in photo editor doesn't work.Chao Zhang2016-06-141-11/+10
| | | | | | | Use ScriptIntrinsicConvolve3x3 instead local rs file. Change-Id: Ib7c2c36f9571fe5b6d1e50a2ddc26a40e89e2144 CRs-Fixed: 960252
* Gallery2: Fix force closed when print deleted picture.huiyan2016-06-141-1/+6
| | | | | | | | | | When delete the image file, the permissions are also revoked. So securityException occur if read the picture again. Try to catch the securityException and finish it. Change-Id: Ic341425ad097cbdec49be8ddd620ee409f632433 CRs-Fixed: 1004534
* Gallery2: fix crash after editing min/max port valuehuiyan2016-06-141-37/+0
| | | | | | | | | | No permission to set system property when save Min or Max port. The Min or Max port save to preference, not need to set to system property, so it can remove to avoid permission issue. Change-Id: I134b2b01bb9204c337e4f5a5b59863195bb40509 CRs-Fixed: 1004667
* Gallery2: Fix force close when copy pictures from PC to DUThuiyan2016-06-142-4/+7
| | | | | | | | | | | When copying pictures IndexOutOfBoundsException occur, and the reference is null before invoking it. Make sure the index is not out bounds. Determine whether the reference is null before invoking it. Change-Id: I35752c2fee23efd092e0bb2171d0e50cb6110bad CRs-Fixed: 1002766
* Gallery: don't use tile for small thumbnailsLikai Ding2016-06-061-24/+24
| | | | | | | | | | A thumbnail on an FHD screen is ~380px while tile size is 256px. It's quite inefficient to upload a thumbnail in 4 such tiles. As devices today can upload bigger textures in less time, tiling is no longer needed for small thumbnails. CRs-Fixed: 1024519 Change-Id: I95f9a5f1c695b7d7f1401b3a294848d46f1c3545
* Gallery: fix several lint issuesLikai Ding2016-06-063-37/+16
| | | | | CRs-Fixed: 1024516 Change-Id: Ia629e83e244fd1400b87edfefdba0b9a540d8153
* Gallery: remove fade-in animationLikai Ding2016-06-062-10/+1
| | | | | | | Remove fade-in animation for timeline items so it looks faster. CRs-Fixed: 1024519 Change-Id: I30231880d023374f7bb7af6c3f80d9d4fc749815
* Gallery: faster texture uploadLikai Ding2016-06-066-15/+21
| | | | | | | | | | TileTexture.Uploader uses a fixed time slot (4ms) to upload tiles. However, typical GL idle time is much longer than that. To better utilize it, a third parameter is added to onGLIdle method to indicate the due time. This can cut ~170ms on certain devices. CRs-Fixed: 1024519 Change-Id: I8347b87f85815a4deaf10eb10f234a56b047681e
* Gallery: don't check permission on pre-M devicesLikai Ding2016-06-061-1/+3
| | | | | CRs-Fixed: 1024516 Change-Id: I6b9be95ce2e063ed50b910c1d28cf9ce648a37af
* Gallery: don't flash title on launchLikai Ding2016-06-062-1/+1
| | | | | | | Request no title feature in app theme instead of during onCreate(). CRs-Fixed: 1024516 Change-Id: I2805f1e5bdfbeaf3b4e142d9aab18b8e75669e68
* Gallery: remove dead codeLikai Ding2016-06-062-30/+2
| | | | | CRs-Fixed: 1024516 Change-Id: I61002ec124a6a0c0efcf580af581cfc8a1b34ea1
* Gallery: build against current SDKLikai Ding2016-06-032-2/+2
| | | | | | | and bump min sdk version CRs-Fixed: 986672 Change-Id: I7efd6304895d75bd7ea959808ef6948a5bd38dfe
* Gallery: remove calls to @hide and internal API/membersLikai Ding2016-06-0310-48/+41
| | | | | CRs-Fixed: 986672 Change-Id: Ib7b9eb494da9c38191f75960f01e62dfbf356205
* Gallery: AudioSystem wrapperLikai Ding2016-06-032-8/+31
| | | | | CRs-Fixed: 986672 Change-Id: I6cb69643162a089b3565666523291563860e6170
* Gallery: MediaPlayer/Metadata wrapperLikai Ding2016-06-033-9/+61
| | | | | CRs-Fixed: 986672 Change-Id: Ia290c2043d0d6a01df0ff2a07d143e15078ca109
* Gallery: SystemProperties wrapperLikai Ding2016-06-035-44/+96
| | | | | CRs-Fixed: 986672 Change-Id: I84c1c24604ef2bb5890e8054f4a8ef9b43f1a07e
* Gallery: rename project and make it buildLikai Ding2016-05-29236-244/+248
| | | | Change-Id: I18f3b067694be923a263732a90b8e59904db0186
* Merge branch 'android_ui.lnx.1.2-dev'Likai Ding2016-05-301878-0/+182841
|\ | | | | | | Change-Id: Ieb06cc58c083cb03f3dfba07bef506968e36775d
| * Gallery2: Fix FilterShowActivity load fail and force closehuiyan2016-05-095-41/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two running instances of FilterShowActivity, one instantiate from Gallery path, the other instantiate from Camera path. The two activity instances bind to the same ProcessingService instance. If one instaces save image by the service, the service is always in saving state, so other instance cannot load and the NullPointerException occur. Remove the saving condition and use broadcast result to notify FilterShowActivity 's instances to update UI in ProcessingService. In FilterShowActivity load the ui immediately after bind to service and use the request id to distinguish the different instance's request. Change-Id: Ief6e746bba5670f397977639df0ba7fb903a4925 CRs-Fixed: 1002161 1000423
| * Merge "Gallery2: modify some UI interface according to UI document." into ↵Linux Build Service Account2016-05-0915-31/+42
| |\ | | | | | | | | | android_ui.lnx.1.2-dev
| | * Gallery2: modify some UI interface according to UI document.Chao Zhang2016-05-0615-31/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Modify layout of actionbar when selected photo; 2. Modify menu string in Video Page; 3. Modify compare button's position in photo editor; 4. Modify bottom panel's height in photo editor; 5. Set video play icon to 48dp in PhotoView; Change-Id: Ic660d5dde87998e87eb02482ac7ba7e2ba2f0bb1 CRs-Fixed: 1010984
| * | Merge "Gallery: fix a memory leak" into android_ui.lnx.1.2-devLinux Build Service Account2016-05-061-0/+2
| |\ \ | | |/ | |/|
| | * Gallery: fix a memory leakLikai Ding2016-05-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | If video playing is completed, not paused or cancelled, the Runnables posted are not removed from the Handler. Make sure they are removed. Change-Id: I4c27583e4305398b35188c494b6da15f809439b9 CRs-Fixed: 999702
| * | Merge "Gallery2: Fix force closed when input long size at Export Flattened ↵Linux Build Service Account2016-05-051-2/+10
| |\ \ | | | | | | | | | | | | Image." into android_ui.lnx.1.2-dev
| | * | Gallery2: Fix force closed when input long size at Export Flattened Image.huiyan2016-05-031-2/+10
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If input long size, the NumberFormatException occur when parse int from string. Try to catch the NumberFormatException, and use the original width and height for user. Change-Id: I5401f400c2ddb79aa9bd952a02de1c45222f5ae0 CRs-Fixed: 1002767
| * / Gallery2: Fix picture is different when changes font sizehuiyan2016-05-021-1/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | when change the system font size, photopage destroy. when re-start it, the photopage restore from stack. But the current photo index is not saved. So photopage display the original photo not the current photo. In onSaveState the current photo index is saved. In onCreate that current index is restored if the photopage restore from stack. Change-Id: I9a0e4ff1d13773a976c197e96fef570c173b3b8d CRs-Fixed: 1004545
| * Merge "Gallery2: Show seekbar under category panel according to UI design." ↵Linux Build Service Account2016-05-0215-152/+328
| |\ | | | | | | | | | into android_ui.lnx.1.2-dev
| | * Gallery2: Show seekbar under category panel according to UI design.Chao Zhang2016-04-2815-152/+328
| | | | | | | | | | | | | | | | | | | | | | | | 1. Show seekbar under category panel according to UI design. 2. No need animation if return from seek bar's "cancel" and "save". Change-Id: I63d8454137c1c87862c9fb5a52d322edc81ccff3 CRs-Fixed: 1007612
| * | Merge "Gallery2: Fix status bar and menu list are overlapped in photopage." ↵Linux Build Service Account2016-05-023-1/+26
| |\ \ | | |/ | |/| | | | into android_ui.lnx.1.2-dev
| | * Gallery2: Fix status bar and menu list are overlapped in photopage.huiyan2016-04-263-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After the menu list open, the status bar is showed. So they overlapped. Set full screen in onResume state to hide status bar, and cancel full screen in onPause state to show status bar in photopage. Change-Id: I7af92a3c351b0b713126645e0270f454263356ee CRs-Fixed: 1004673
| * | Gallery: fix a memory leakLikai Ding2016-04-273-77/+51
| |/ | | | | | | | | | | | | | | | | | | | | | | The requestAudioFocus() call does not provide the listener previously registered, so it remains in AudioManager and eventually leaks MovieActivity. The regression is introduced by Id8e3e4b0afbc72892301a08fb8a122c285fbfe97. Change-Id: I032cfb9df1973420a51476bba139294badee1366 CRs-Fixed: 999702
| * Merge "Gallery2: fix photo details title display incorrect in Timeline." ↵Linux Build Service Account2016-04-252-4/+18
| |\ | | | | | | | | | into android_ui.lnx.1.2-dev
| | * Gallery2: fix photo details title display incorrect in Timeline.Chao Zhang2016-04-252-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | In Timeline page, index of photo in detail dialog need filter TimelineTitle items. Change-Id: Ice99e24b38c20f56f59b3a219b5f9030165c0acb CRs-Fixed: 1004629
| * | Gallery2: Add gesture controller in MoviePlayer according to UI spec.Chao Zhang2016-04-2529-31/+898
| |/ | | | | | | | | | | | | | | | | 1. Add gesture controller in MoviePlayer according to UI spec, include adjust brightness, adjust volume, adjust video position. 2. Tap screen when system ui is shown, hide system ui immediately. Change-Id: I759246baa1efb18cd525716da59a314ecefaf163 CRs-Fixed: 988590
| * Merge "Gallery2: Fix menu icon is missing when change language on Videos ↵Linux Build Service Account2016-04-253-5/+20
| |\ | | | | | | | | | page." into android_ui.lnx.1.2-dev
| | * Gallery2: Fix menu icon is missing when change language on Videos page.huiyan2016-04-223-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the gallery is in background ,the video page is saved to the stack. After the language change, the Gallery is destroyed. If gallery start again, the video page is restored from the stack. But the action bar is set to don't display the home as up in onResume, which set the navigation icon to null, so the menu icon can't display. If albumpage is started by Video option, the action bar set to display home option. If albumpage is start by others(albumnsetpage), the action bar set to display home as up option,to display menu icon or up icon rightly in action bar. Besides, fix to display the right title with the different language. Change-Id: Ieec0bd47400f6c0b698f5c2e842dc1038d9addcf CRs-Fixed: 1002171
| * | Merge "Revert "Gallery2: Set PhotoPage GL root reset when rotate"" into ↵Linux Build Service Account2016-04-252-18/+0
| |\ \ | | | | | | | | | | | | android_ui.lnx.1.2-dev
| | * | Revert "Gallery2: Set PhotoPage GL root reset when rotate"huiyan2016-04-212-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 104f367812c753362c9c077d1d010e127e3be7f1. Change the orientation in SlideshowPage which is active, photoPage reload the data and invalidate UI in inactive state. This cause UI is black when return from SlideshowPage to PhotoPage. So revert it to avoid reloading data and invalidating UI, if PhotoPage is inactive state and the orientation change. Change-Id: Ia60af41662c60858d92d00fcacb6686a123c0e21 CRs-Fixed: 997153
| * | | Gallery2: hide action bar in photo editor if there has bottom panel.Chao Zhang2016-04-227-6/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. hide action bar in photo editor if there has bottom panel. 2. hide SAVE button and Reset menu item if no modifications. Change-Id: If8e78d95052dbfdc44a5c5edeb464d2fb4e43af5 CRs-Fixed: 988053 988059
| * | | Gallery2: Modified layout of crop and exposure model in photo editor.wqi2016-04-2239-254/+1194
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Modified layout in crop model. 2. Remove mirror and draw only keep crop, straighten, rotate in crop model. 3. Adjust style of seekbar in exposure model. 4. Modified layout in exposure model. 5. Remove '4:3', '3:4', '5:7' and '7:5' functions from crop. According to UX specification document. Change-Id: Ib536b3f57a83053bac8fc6ec778675a82b6327e6 CRs-Fixed: 988082 988090
| * | Merge "Gallery2: fix some abnormal of comparison button in photo editor." ↵Linux Build Service Account2016-04-223-7/+24
| |\ \ | | |/ | |/| | | | into android_ui.lnx.1.2-dev