History log of /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b75f5defe8ace12b8b563e713f7175863ab5713d 23-Oct-2012 John Reck <jreck@google.com> Drive GLRootView with Choreographer

Bug: 7332724
By routing requestRender through postOnAnimation we can drive
the GLRootView's rendering with the UI thread's coreographer, which
ensures that touch events are processed before drawing

Change-Id: Iac2b3229e9a09ee0319c64c5fc7cb906512a379c
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
38ff40dbd2103bf189b536a27194091e966d7b50 07-Oct-2012 John Reck <jreck@google.com> Animation support

Bug: 7300696

Change-Id: I80bfb27114a06dfc6f0f1aa866224cd547cc929d
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
f6b2ec819e28d126f4ccb73d90e899e6fbed969e 30-Sep-2012 Wu-cheng Li <wuchengli@google.com> Disable effects recording UI.

bug:7106963
Change-Id: I1c056b30efd9b2d8c976b611ada971a8bff1ad87
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
5e92668f42b5f29a0e55653b0bbf2df342723a6d 26-Sep-2012 Teng-Hui Zhu <ztenghui@google.com> Trimming: switch to use sherlock action bar

Show a "done" instead of the icon according to the UX team.
And we don't have API level dependency.

bug:7093240

Change-Id: Ib331495dd233c4dcbeb3d587bd5a4d0d89039d49
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
62e8403c69f4a82a4023651499a88f15eaa47fa5 25-Sep-2012 Wu-cheng Li <wuchengli@google.com> Add API check for "context" input port of effects recording.

bug:7106963
Change-Id: Ia065903dd120bf20862c6adfd8a699277a27ac50
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
03f6fce66de39b3578ac036557c1ec1aed729f61 25-Sep-2012 Pin Ting <pinting@google.com> Enable effects recording in JellyBean.

Bug:7106963
Change-Id: I2ef0a30d1b9c970fdd9ce01459173db3bde99c6b
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
15ff1b1ca52bea348b8a490b5b5abe53fa43eaf2 24-Sep-2012 Teng-Hui Zhu <ztenghui@google.com> The trimming solution with the mp4parser library.

bug:7093055

Change-Id: I598a81d80c9c5107696f3af7761207e3ec88f3ff
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
32727c5c8844da540801486fe45de5056cbf4008 19-Sep-2012 Wu-cheng Li <wuchengli@google.com> Remove CAN_USE_FLAG_SECURE constant.

bug:7191713

Change-Id: Ia439970d9b51316ccf003fa17453deed7a27cf2b
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
2e1771b997ab6966411b2c612562c538ae3e325d 19-Sep-2012 Pin Ting <pinting@google.com> Use 565 pixel format for pre-JB; use 888 otherwise.

Bug:7189512
Change-Id: Iec5d528fef4f4fc589370339add299a40fc8f26e
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
3f1f1baf3a674927e25cd5cd885fb372796bd3a0 24-Aug-2012 Teng-Hui Zhu <ztenghui@google.com> Add the UI elements for video trim activity.

1. Refactored the classes to support both the video play and trim.

Now the common code for controller overlay is in CommonControllerOverlay,
which is basically the same as the original MovieControllerOverlay without
animation. Because in trimming, we don't want to hide all the controller.
The specific animations are implemented in the sub-classes which are
TrimControllerOverlay and MovieControllerOverlay.

At the same time, TrimTimeBar extended TimeBar to support the extra
trimming start scrubber and end scrubber.

The interface between the timebar and the controllerOverlay are kept almost
the same way, except adding the trimming info when necessary.

With all these, the activity of TrimVideo now relied on the TrimTimeBar
and TrimControllerOverlay. Similarily, the MovieActivity relied on the TimeBar
and MovieControllerOverlay.

2. Hook the TrimVideo activity with the trim menu.

Note that the icons are temporary for now, still need UX input on that.

bug:7093055

Change-Id: Ib9bfbc090106744a569fce4c451ddffc0a2c699b
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
a625b6562d3bfc86465778b336c96fb42064be21 04-Sep-2012 Owen Lin <owenlin@google.com> Set inMutable to true if we may reuse the bitmap.

bug: 7092330
Change-Id: I0def7e2e9ce57d09ba7f5e001b33cc605a6af44c
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
ce1e6cb9dfd5d8d41153b2a00671a3698d405994 30-Aug-2012 Ahbong Chang <cwahbong@google.com> Add api check for FLAG_SECURE.

Bug: 7023285
Change-Id: I515123a7454595846bbea6369c05cd22b7d2ec60
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
e44b08e727a9df677b6969ff921a2392e865e8dc 29-Aug-2012 Wu-cheng Li <wuchengli@google.com> Old panorama only supports ICS and forward.

bug:7075249
Change-Id: I0b5884459a417444966ac88284056a182104a68b
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
46f9d24b8440fe790aa4bdd625dbf231b140df17 25-Aug-2012 Wu-cheng Li <wuchengli@google.com> Add api check for camera HDR.

bug:7054776
Change-Id: Id551b7f1d76168b7735f0a48c19619431b93b66e
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
b21b8e58a604f6c701245d84b141b5b87663192b 23-Aug-2012 Owen Lin <owenlin@google.com> Uses ActionBarSherlock in Gallery

bug: 6927267

Change-Id: I1c22975d1a1f3a36510ad93e6a0cefea110ca38f
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
df792aa8493fd5bfad04a5a44440a04bb8c47b14 23-Aug-2012 Pin Ting <pinting@google.com> Hide UI entry of effects recording.

Change-Id: Ie35526e7fbc38c56c0c19653ba50fcafb685791b
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
d41a508729ee04d0aab00c192c40570353b240d9 22-Aug-2012 Wu-cheng Li <wuchengli@google.com> Add API check for view transformation properties.

Ex: View.setTranslationX, View.setPivotX, etc.

bug:6982696
Change-Id: Ib9fc5f3d7c83d99ced47dcd79dfee430d7ad67c8
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
a31da5858f1f7c4f3351d5e83cd63724e09f9e19 21-Aug-2012 Wu-cheng Li <wuchengli@google.com> Add an API check for starting preview in Jpeg callback.

The CTS was added in ICS. 8fe4f547c45

bug:6996830
Change-Id: I89a5ef4f542b4c5d75da042fe1e6e481a5fe5c89
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
d84941f0649c751c0cc5fd2f6b233380e878ca26 17-Jul-2012 Owen Lin <owenlin@google.com> Add SimpleMenuXXX implementation for the Gingerbread platform.

1. Add a SimpleMenuInflator to parse the res/menu/xxx.xml files.
2. Add minimal code to show the menu.

**NOTE**
This change is going to be replaced by the ActionBar compat library
when it gets ready and integrated. The purpose of this change is making
Gallery/Camera run on GB.

Change-Id: Ia7d402c82a6da1b9558ebbd103e161d2471b34dd
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
910935b67775d03def8769884bbac910892b6e24 08-Aug-2012 Pin Ting <pinting@google.com> Don't use getPreferredPreviewSizeForVideo and getSupportedVideoSizes before api 11.

Bug:6927815
Change-Id: Ifaa154c93536cfcc65fb1c67834dc737f2065f11
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
ba04cb7a9c5e57a166f8057950711ec7b8da2ba4 07-Aug-2012 Owen Lin <owenlin@google.com> Guard the usage of MenuItem.setShowAsAction in MenuHelper.

bug: 6927642
Change-Id: I3907ac2f86d38c15b681185abee5906ce243339a
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
28038df8ccc1422541276974e9cf140fd4b76f1e 08-Aug-2012 Pin Ting <pinting@google.com> Hide effect recording UI in ICS api level.

Bug:6913179
Change-Id: I76e533fa04ac35a1e5b1ee54b9e120434e96ebbf
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
4e9b8e44bfe9c15e80ed60ce1b99520ed72ce764 07-Aug-2012 Angus Kong <shkong@google.com> Add check for using SurfaceTexture when recording.

bug:6839752
Change-Id: Iafc6535fe057c7cd34264c6b104d2326e2f56a89
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
778ec3597e00cd048224b2c393e2d925bfb27c57 06-Aug-2012 Yuli Huang <yuli@google.com> Do not show photo editor before api level 14.

bug:6927717
Change-Id: Iab0fddaa169e03b65dd0a987ee8b5c892f971000
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
211807ba43ac5a93e94130a1256cc0423fff0e37 07-Aug-2012 Wu-cheng Li <wuchengli@google.com> Add API check for surface texture.

bug:6927809

Change-Id: I4b08df6670337592bb0ac1c2cf1235af085e9a1d
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
90df352389eda7c964e6a43a0b752d27f16e02a7 31-Jul-2012 Owen Lin <owenlin@google.com> Don't use Files.getContentUri in previous API levels.

Change-Id: I4d096734d22c93b83b2bf8082450ad0d73ade837
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
fb5571987f2555b04731b6f3e1c479efc16d542a 19-Jul-2012 Wu-cheng Li <wuchengli@google.com> Do not use ShareActionProvider before API 14.

Use simple share intent before API 14.

bug:6706723

Change-Id: I47930f0b81c7c8c1943054964a093967a7704bf1
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
abf0ea68634c1d21870c48297ab6898491e0c56f 31-Jul-2012 Chih-Chung Chang <chihchung@google.com> Manually transform the event coordinates on older platforms.

Change-Id: I070b27112ea028f2a1596dcdfa480537765174b9
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
68cdf08079df14c4f121bc2bff5b65ab204e6a88 31-Jul-2012 Angus Kong <shkong@google.com> Add API check for camera metering area.

bug:6881073
Change-Id: I08ea3bd8e6f128e8998f4048eb451cb80c342fe5
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
4d063b338503dc81e9b16b89bc171a98b59fe6a9 31-Jul-2012 Pin Ting <pinting@google.com> Don't use QUALITY_xxxP and hasProfile prior to API level 11.

Bug:6900688
Change-Id: I4b852a3727e46a9bd3ebb55c726e64519f9c2092
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
cc8e7ab7ae0912186beff20e7f042fd6c1e78b35 27-Jul-2012 Owen Lin <owenlin@google.com> Don't call Action.setLogo and Action.setHomeButtonEnabled in old API levels.

bug: 6706724
bug: 6706785

Change-Id: I09e48b8a042c5ce84442dddaf4e4bdfd1960ec4f
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
6c64f55edcaddd2a2677f39678830540ccea5a4f 24-Jul-2012 Angus Kong <shkong@google.com> Add check for camera focus/metering area.

bug:6881073
Change-Id: I6ea851befc9f95d4b3def3e7d04da7285be5a755
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
d498a90641c98ab93c3b063b45274304c0f53b53 24-Jul-2012 Angus Kong <shkong@google.com> Rename to HAS_ZOOM_WHEN_RECORDING.

Rename HAS_CAMCORDER_ZOOM to HAS_ZOOM_WHEN_RECORDING.

bug:6838676

Change-Id: I12446f62810b391b1f40944ee93258efe1689a93
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
81aef137fc0d841b992cc7771902458df6272954 24-Jul-2012 Owen Lin <owenlin@google.com> Avoid using class defined in API level 14.

Change-Id: Ia6385f98b048292de70c6e8aa628a2e6fc629485
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
064c30b6c89c4282487290ea11e7d3fd1ef68c64 20-Jul-2012 Angus Kong <shkong@google.com> Add check for camcorder zoom.

bug:6838676
Change-Id: I9aeda27cf55ded444841ade40ea1eb1b91da01cb
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
a895fae285e0a163faa523c6fe6e05e0f379fe16 20-Jul-2012 Chih-Chung Chang <chihchung@google.com> Only make time lapse recording available on and after Honeycomb.

Change-Id: Ia5b2f69a3c0feb9e0219118a7dd372a09cf2da73
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
80bacf0bb7db15ea21029b6ce645ec093562aa7d 17-Jul-2012 Ahbong Chang <cwahbong@google.com> Add checker for panorama supporting.

Bug: 6816669
Change-Id: I34f80485d46f04f7adc49e2fd49dea1a08a72af9
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
840ae396bac4ff8ff34e88c8d2a1773cb112a4b6 13-Jul-2012 Chih-Chung Chang <chihchung@google.com> Only use SurfaceTexture.release and setIconAttribute on newer platforms.

Bug: 6706784

Change-Id: Ic1bb2bb27c3184d791de566d88dbade039fb9d87
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
1b10bf568327fa6c6c1ddbfd98cb17524bebfd46 13-Jul-2012 Angus Kong <shkong@google.com> Add the method for hidden fields.

bug:6698375
Change-Id: I5feb3fdd680fec0d745bd3176f4676c16484d4ed
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
4bfc86a3d6ce4df7fa3751ef5e06cf622cae0de2 11-Jul-2012 Ahbong Chang <cwahbong@google.com> Add existence check for face detection methods.

android.hardware.Camera.setFaceDetectionListener()
android.hardware.Camera.startFaceDetection()
android.hardware.Camera.stopFaceDetection()
android.hardware.Camera.Parameters.getMaxNumDetectedFaces()

Bug: 6707152
Change-Id: Ia6b54246273548db44ec28c40f9efe49048ea8d5
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
8880e1f41c568ae56326051ff926448c0edaf6f6 09-Jul-2012 Hung-ying Tyan <tyanh@google.com> Add existence check for DevicePolicyManager.getCameraDisabled()

Bug: 6706695
Change-Id: Ib8ea8805a4bea862c8407f8c73a6e5ba1e0f49d3
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
b0774a3bfb24d8515fc3ddf152fabf82f0ff67e5 06-Jul-2012 Yuli Huang <yuli@google.com> Avoid using setSystemUiVisibility in old platforms.

bug:6785569

Change-Id: I0a19ab2818b6f34d530c5d65e781d3168533d44f
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
fe9989a9a58d5ef883099ef747625aca0232df35 05-Jul-2012 Owen Lin <owenlin@google.com> Don't test the EXTRA_LOCAL_ONLY before HC.

Change-Id: Idebb2aba994e38cf7eead795f1834ff98eaec27d
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
a2cb30b688131380cab763a1b4da25f15a9fa45a 04-Jul-2012 Owen Lin <owenlin@google.com> Don't show the shuffle and album widget for old platforms

Change-Id: Ide7074025aefe289bf6c71d623eac5100ab72932
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
b1eb01cd02d1e75e6b9c3e593f6ff34335e2ca8a 04-Jul-2012 Owen Lin <owenlin@google.com> Don't use invalidateOptionsMenu before API level 11.

Change-Id: If46d46e44797b2bd4f66235eca0954a55d0008cf
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
097518e3dcbf212a78fa1fe3ad1ddea236401eb5 04-Jul-2012 Chih-Chung Chang <chihchung@google.com> Don't use AutoFocusMoveCallback on older platforms.

Change-Id: I281888ee88c08b1caf4754e714f0f42c75e26dd9
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
04ebde7418493debda790f3eae933b5f6c38e897 03-Jul-2012 Chih-Chung Chang <chihchung@google.com> Use MTP only if the MTP API is available.

Change-Id: I5c747d0da2905eb344c56dfab6333034dd5eecc3
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
6772173d2a49b87a1d209f42fe52b5f830596f99 02-Jul-2012 Chih-Chung Chang <chihchung@google.com> Remove dependencies on APIs only exist on newer platforms.

Change-Id: I606a23863247454051dd183ddf6b77f6bc882685
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
df4763cf8752fb1babc7244fc2be33ed87d3b072 28-Jun-2012 Owen Lin <owenlin@google.com> Don't reuse bitmap before HoneyComb.

Change-Id: I0df9bf0a8f43e28ed25b436d4c584dc3ceb43c1d
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
3a45725ad42324cd2db172fb082fe80772d94d3f 28-Jun-2012 Owen Lin <owenlin@google.com> Don't use Build.VERSION_CODES.

Since they won't be available on old platform.

bug: 6752318

Change-Id: I55a9e83dbf05b93c83c68cb31f6edcbc29793283
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
30aa92093126f00b46543ae3b5d1035a3270f240 27-Jun-2012 Owen Lin <owenlin@google.com> Don't reuse bitmaps in BitmapRegionDecoder before JB.

Change-Id: I8a2f520f98116af6861fa2cd1460e6f848bbb4e4
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
b47927b7b43679e7315e6099e0a610760320d18d 21-Jun-2012 Owen Lin <owenlin@google.com> Use MediaColumns.WIDTH and MediaColumns.HEIGHT only when they are available.

bug:6698720

Change-Id: Iaabfd1d5fe16b5d89f564d688a78e773ad36c8bd
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
7a5e1e771ae58241f3a2be36f23025f282032261 20-Jun-2012 Owen Lin <owenlin@google.com> Guard the use of SYSTEM_UI_FLAG_XXXX with TargetApi

bug: 6698718

Change-Id: I6962f0128ce2bd57658b7f3b77d2bc150eff1f60
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java