summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Document Bitmap.createScaledBitmapBrad Fitzpatrick2010-10-041-0/+9
| | | | Change-Id: Ife6a42bc08d17c56274e78a1f5d2c100c2fe4dc8
* Doc fix: duplicate word 'of'Brad Fitzpatrick2010-10-031-1/+1
| | | | Change-Id: I45a4ca443becc2f2cf02cbca2bd61ef2ee590b5c
* Do not merge.Wei-Ta Chen2010-10-011-263/+0
| | | | | | | Fix 3052285 by not publishing the BitmapRegionDecoder API until the honeycomb release. Bug: 3052285 Change-Id: Ie339e414c1a5581e1d38684621e0e97162616977
* Prevent unhandled exception in NinePatchDrawableSonia Serafimova2010-09-261-8/+10
| | | | | | | | | | Added null check in computeBitmapSize() to avoid unhandled exception "java.lang.NullPointerException" at android.graphics.Rect.<init>(Rect.java:72). This problem was discovered in the wild. Change-Id: I9d40629a052f1390e1811288af6209d8cc3f679b
* Unhide BitmapRegionDecoder.Wei-Ta Chen2010-09-232-136/+263
| | | | | | | | | | | | | 1. Rename LargeBitmap to BitmapRegionDecoder 2. Move the instantiations of BitmapRegionDecoder out of BitmapFactory. 3. Remove the use of MemoryFile in BitmapRegionDecoder, since MemoryFile's API had been modified in master. Otherwise, the change will break the master build. 4. Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Most of the modifications, except for (2) and (3), were reviewed in https://android-git.corp.google.com/g/#change,64716 . However, that change broke the master build due to (3) and was reverted eventually. So, instead of withdrawing this change and waiting for that change to be checked in again, I merge the two changes into one. Change-Id: I2202c0fbbbd6d6676bbd9637e690023ea4099c40
* Fix bug in JNI BitmapFactoryJoseph Wen2010-09-101-6/+0
| | | | | | | In nativeCreateLargeBitmapFromFileDescriptor() if the file descriptor can not be rewinded isShareable should be set to false. Change-Id: I7dd545c9d52d21c226e11b8921e35a1d9bba9515
* Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."Wei-Ta Chen2010-09-081-270/+0
| | | | This reverts commit 50ba3d2c09a9131f3578d271adf2bc8258ca1742.
* Rename LargeBitmap to BitmapRegionDecoder for having a better API.Wei-Ta Chen2010-09-071-0/+270
| | | | | | | Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions. Change-Id: I3e60c7fe4abd0289e1384e69a08fd20fe6fb0e10
* Revert "Don't recycle native bitmap after the finalizer is called."Chih-Chung Chang2010-08-221-1/+0
| | | | | | Bitmap should not be accessed from multiple threads. This reverts commit 966803ab81f8e9bfefa502fcb533de023825a389.
* Load bitmaps in the correct format.Romain Guy2010-08-201-0/+11
| | | | | | Bug #2936873 Change-Id: Ide93ffd8227cea6c610dde625163ccffb4590e90
* Don't recycle native bitmap after the finalizer is called.Chih-Chung Chang2010-08-201-0/+1
| | | | | | | | If an object A's finalizer calls Bitmap B's recycle() when B's finalizer is already called, we will have trouble because the native bitmap is already freed in the finalizer. Change-Id: Ic0be8ed75fb3aacee9ce6e3d9908178a55151eb9
* Merge "Text selection without trackball." into gingerbreadGilles Debunne2010-08-191-2/+4
|\
| * Text selection without trackball.Gilles Debunne2010-08-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backported from HC. Squashed commit of the following: commit af214a595c7a9fdd11a2dc384f7d4665abf751c0 Fixes in TextView's selection. commit eb9fd59ebe6500a66c2003d46b5802299970ae8d TextView with Selection Contextual Mode commit 4c4c338ef355b369ce4b57d6c6fba7ee8f9dddf4 Cosmetic changes around TextView. commit d4b4b054e87480d984ad18766f5e76553e3080d8 Double and one and a half tap removed from TextView. commit 897c2847ba1fca8ef01eadadd1bc3de007af3ee5 Selection handlers in TextView commit 832be74a5394649e28927484d9a86c6d53b430e7 New cursor controller in TextViews. Change-Id: I01cc64736e2abea605317ee53907a1713617fc17
* | DO NOT MERGE. Load assets in place instead of deferring until draw.Romain Guy2010-08-191-13/+11
|/ | | | | | | | | Before this change, all framework assets would be decoded at drawing time outside of zygote. This was forcing all apps to re-decode the assets and zygote to keep an in-memory copy of each asset. This behavior is now opt-in by setting the inPurgeable flag on BitmapFactory.Options. Change-Id: Ief823139163d8071b8ee1267746622faf52eb8ec
* Do JPEG tile-based decoding.Joseph Wen2010-08-172-0/+271
| | | | Change-Id: I5c1b4ac3c02eb4350ef0ba9a7877b22cfd730cfb
* am 38137d7a: Merge "docs: lots of additions to the resources docs new ↵Scott Main2010-07-1513-18/+46
|\ | | | | | | | | | | | | | | | | drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo Merge commit '38137d7a27b037611c70a9d900aa53b4c15563bf' into gingerbread * commit '38137d7a27b037611c70a9d900aa53b4c15563bf': docs: lots of additions to the resources docs
| * docs: lots of additions to the resources docsScott Main2010-06-2113-18/+46
| | | | | | | | | | | | | | | | | | new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
* | Remove the YV16 format for simplicity's sake.Mathias Agopian2010-07-141-49/+72
| | | | | | | | Change-Id: Iee03d100933ba0c67b13d51e0435be3b4cd953cf
* | don't hardcode "mSurface" throughout our source codeMathias Agopian2010-04-121-1/+1
| | | | | | | | | | | | | | this is used in a few places to get access to the android.view.Surface native surface. use a macro instead. Also rename the field to mNativeSurface. Change-Id: I1c6dea14abd6b8b1392c7f97b304115999355094
* | am c162668e: Merge "More framework tests cleanup." into froyoBrett Chabot2010-04-016-0/+255
|\ \ | |/ | | | | | | | | | | Merge commit 'c162668e870cda9d336741f24c177cd925fef8e0' into froyo-plus-aosp * commit 'c162668e870cda9d336741f24c177cd925fef8e0': More framework tests cleanup.
| * More framework tests cleanup.Brett Chabot2010-04-016-0/+255
| | | | | | | | | | | | | | | | | | | | | | | | Move all tests for android.* classes from tests/AndroidTests and tests/CoreTests into framework/base/<core|graphics>/tests. Consolidate all tests for java.* classes to tests/CoreTests. Eventually hopefully these will be moved to dalvik/ somewhere. Remove tests/AndroidTests entirely. Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
* | merge from open-source masterThe Android Open Source Project2010-03-291-1/+2
|\ \ | |/ |/| | | Change-Id: I6a7542e696e69bc8788f3b3b77fcec50512ba81c
| * Fix typos in comment.David Hoover2010-03-281-1/+2
| | | | | | | | Change-Id: Ia2a9ea0802bcc5773bb4fd52d7e07f9492242bfd
* | merge from open-source masterThe Android Open Source Project2010-03-251-2/+2
|\ \ | |/ | | | | Change-Id: I4d8f34986fd9e16ead8a22909263069dbb819d3e
| * setCornerRadii should be called when either of corners radius is specifiedviral.vkm2010-03-251-2/+2
| | | | | | | | | | | | | | | | | | as 0dp and thus while checking for condition, it should be ORed and not ANDed. It solves Android Issue: 939 http://code.google.com/p/android/issues/detail?id=939 Change-Id: Ic18fae769480972f763f634e7462c6ed3853220b
* | update dox that we ignore the exact parameter on computeBoundsMike Reed2010-03-251-9/+7
| | | | | | | | Change-Id: I6051210ea2a73b4d1c6cd631a285209ab130b4e5
* | Fix the build.Romain Guy2010-03-101-0/+4
| | | | | | | | Change-Id: I0caef1fd522d231d803e0fd9e0b8fdf3272db168
* | hidden api sameAs() to compare the pixels of 2 bitmaps for equalityMike Reed2010-03-081-0/+14
| |
* | Add support for linking to a skia bitmap rather than always copying the data ↵Jason Sams2010-03-013-1/+67
| | | | | | | | from the bitmap.
* | Support defered generation of mipmaps. With this change we support mipmap ↵Jason Sams2010-02-233-6/+11
| | | | | | | | generation when the texture is uploaded to GL without requiring RS to retain the full chain.
* | Add ImageFormat.java and move the Camera/YUV constants from PixelFormat to it.Mathias Agopian2010-02-183-26/+105
| | | | | | | | PixelFormat's corresponding constansts are now deprecated.
* | Merge "update dox"Mike Reed2010-02-181-7/+7
|\ \
| * | update doxMike Reed2010-02-171-7/+7
| | |
* | | Added more @RemotableViewMethod methods, mutate ImageView.Jeff Sharkey2010-02-171-1/+4
|/ / | | | | | | | | | | | | | | | | | | Catch some View methods missed during the first pass of marking with @RemotableViewMethod annotation. Also adds new ImageView.setColorFilter(int) to match the android:tint XML attribute. When ImageView touches ColorFilter or alpha, mutate the underlying Drawable. Fix NPE in StateListDrawable.mutate().
* | split libsurfaceflinger_client and libcamera_client out of libuiMathias Agopian2010-02-112-2/+3
| |
* | am 1e90ab54: merge from open-source masterThe Android Open Source Project2010-02-111-5/+19
|\ \ | |/ | | | | | | | | | | | | Merge commit '1e90ab542d675616e9370ab7e5add99d7af12587' * commit '1e90ab542d675616e9370ab7e5add99d7af12587': Fixs the incorrect message for SecurityException Default RotateDrawable's pivot set to (50%, 50%)
| * merge from open-source masterThe Android Open Source Project2010-02-111-5/+19
| |\
| | * Default RotateDrawable's pivot set to (50%, 50%)Cyril Mottier2010-02-061-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to define the pivot in an XML-instanciated RotateDrawable, android:pivotX and android:pivotY had to be set in your XML. Forgetting to set those attributes ended up in a NullPointerException (tv = null) that were caught by the Resources.getDrawable() method (caught as an Exception). As a result a not-very-accurate message was logged: "Resource not found ...". Defining a default pivot value seems like a great fix. Some other fixes would be to modify the documentation or notify the user with a better explanation than "Resource not found ...".
| | * merge from eclairJean-Baptiste Queru2009-11-1546-174/+5700
| | |\
| | | * eclair snapshotJean-Baptiste Queru2009-11-1346-175/+5701
| | | |
| * | | am a66baccc: Merge "Do not merge" into eclairMike Reed2010-01-201-0/+173
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb' into eclair-plus-aosp * commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb': Do not merge
| | * | | Do not mergeMike Reed2010-01-201-0/+173
| | | | | | | | | | | | | | | | | | | | port stretchy from master
| * | | | am fd2f6358: Merge change I771bebb9 into eclairJason Sams2009-12-0711-0/+71
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'fd2f6358321e95d661f24ba4e08327268035aa59' into eclair-plus-aosp * commit 'fd2f6358321e95d661f24ba4e08327268035aa59': Add Java exceptions to catch RS calls with no context or no surface.
| * | | | am c7a63eea: Add a new field to Intent that allows you to give a hint about ↵Joe Onorato2009-12-021-0/+42
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | what on screen caused the intent to be sent. Merge commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640' into eclair-plus-aosp * commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640': Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
| * \ \ \ \ am fa0394c9: Merge change I715333b8 into eclairJason Sams2009-11-172-1/+14
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'fa0394c9f89f13b53c6db2470253825b88cafb64' into eclair-plus-aosp * commit 'fa0394c9f89f13b53c6db2470253825b88cafb64': Add support for dumping RS objects to aid in debugging of white blocks bug.
| * \ \ \ \ \ am ec8178eb: Merge change I9c1bad53 into eclairJason Sams2009-11-162-0/+27
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575' into eclair-plus-aosp * commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575': Add setPriority to allow wallpapers to run at lower cpu priority than default.
* | | | | | | | Modify the API of YuvImage, so that callers do not need to deal withWei-Ta Chen2010-02-101-54/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the yuv format when specifying a rectangle region. Bug: 2285598
* | | | | | | | Preview seperating RenderScript into RenderScript and RenderScriptGLJason Sams2010-02-094-102/+165
| | | | | | | |
* | | | | | | | Merge "Hide field packer."Jason Sams2010-02-021-0/+4
|\ \ \ \ \ \ \ \
| * | | | | | | | Hide field packer.Jason Sams2010-02-021-0/+4
| | | | | | | | |