summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Use long for pointers in EmojiFactory and PdfDocument"Narayan Kamath2014-02-111-7/+7
|\
| * Use long for pointers in EmojiFactory and PdfDocumentAshok Bhat2014-01-311-7/+7
| | | | | | | | | | Change-Id: I275c9ce390dd9e01f772e2044c74cebdb0701de6 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | Move RenderScript from graphics/ to new fw/base subdirectory rs.Tim Murray2014-01-3163-23697/+0
| | | | | | | | Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
* | Convert Java/JNI to 64-bit, part 2.Tim Murray2014-01-3130-484/+490
| | | | | | | | | | | | | | | | | | | | | | This changes BaseObj to support 64-bit IDs. There are a few caveats: 1. Since it is deprecated, RSG will not support 64-bit. 2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL. bug 11332320 Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
* | Convert Java/JNI to 64-bit, part 1.Tim Murray2014-01-313-444/+444
| | | | | | | | | | | | | | | | This converts context and device storage to use long instead of int. bug 11332320 Change-Id: If93a5d78385d3004d5e709762b78bd1d3538088d
* | Add long/double read support.Jason Sams2014-01-313-53/+48
| | | | | | | | Change-Id: I1957f7ac18262a3004a4adcb7c31055212e483c2
* | Use Object + type in place of specific arrayJason Sams2014-01-313-195/+97
| | | | | | | | | | | | Changed to avoid the explosion of entry points in the JNI layer. Change-Id: I7d6cc565c8853b06560eb891fdd5e8acf05c9779
* | Utility API for creating types.Jason Sams2014-01-311-0/+75
| | | | | | | | Change-Id: I3263cb4440ef3a60cd418f0559b8c5638a9b8bf3
* | Remove old hidden API.Jason Sams2014-01-311-8/+0
| | | | | | | | | | | | This was never shipped and long since replaced by ioReceive(). Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b
* | Remove hidden API setSurfaceTexture.Jason Sams2014-01-311-13/+5
|/ | | | Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae
* Merge "AArch64: Use long for pointers in graphics/Interpolator"Narayan Kamath2014-01-291-7/+7
|\
| * AArch64: Use long for pointers in graphics/InterpolatorAshok Bhat2014-01-161-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For storing pointers, long is used in android/graphics/Interpolator class, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I1e181476a4fe5273ff190cf34c4a7487aa1aecf4 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* | Merge "AArch64: Use long for pointers in SurfaceTexture"Narayan Kamath2014-01-291-3/+3
|\ \
| * | AArch64: Use long for pointers in SurfaceTextureAshok Bhat2014-01-161-3/+3
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Long is used in SurfaceTexture class to store pointers as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I771aa62c42bc865e644c63fd48f309782dd03e73 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
* | AArch64: Use long for pointers in graphics/CameraAshok Bhat2014-01-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For storing pointers, long is used in android/graphics/Camera class, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: Ic05ebf2051a225a1638a43f476bab6176c0b5c38 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* | AArch64: Make graphics classes 64-bit compatibleAshok Bhat2014-01-2842-401/+429
|/ | | | | | | | | | | | | | | | | | | | | | Changes in this patch include [x] Long is used to store native pointers as they can be 64-bit. [x] Some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) [x] AssetAtlasManager is not completely 64-bit compatible yet. Specifically mAtlasMap member has to be converted to hold native pointer using long. Added a TODO to AssetAtlasManager.java to indicate the change required. Change-Id: I940433f601c6db998c1a8ffff338f5361200d5ed Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* Merge "AArch64: Use long for pointers in graphics/PathMeasure"Narayan Kamath2014-01-161-10/+10
|\
| * AArch64: Use long for pointers in graphics/PathMeasureAshok Bhat2014-01-131-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For storing pointers, long is used in android/graphics/PathMeasure class, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I4599a9d5f7dcf9c39838db96d9033059114d3a49 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* | AArch64: Use long for pointers in BitmapRegionDecoderAshok Bhat2014-01-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For storing pointers, long is used in BitmapRegionDecoder class, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) In addition, Graphics.cpp has been changed to work with modified BitmapRegionDecoder. Change-Id: Id54087dd3bfb29577e8b762e70946793369dc701 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* | AArch64: Use long for pointers in Movie classAshok Bhat2014-01-151-5/+5
|/ | | | | | | | | | | | | For storing pointers, long is used in Movie class, as native pointers can be 64-bit. In addition, some minor changes have been done to conform with standard JNI practice (e.g. use of jint instead of int in JNI function prototypes) Change-Id: I946325e4af6cb9282012bebdaee89e1117d8797b Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* DO NOT MERGE - Fix improper declaration/use of pointer.Stephen Hines2013-12-181-1/+1
| | | | | | | | | https://code.google.com/p/android/issues/detail?id=61547 This variable is shadowing the outer "ptr" declaration, resulting in a potential NULL pointer being passed to the message API. Change-Id: If96bfae8d5e874e12597182678a180ba137b78da
* Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEADThe Android Open Source Project2013-12-056-21/+90
|\ | | | | | | Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
| * am 90242fe5: Merge "Switch to the new Skia PDF generation APIs." into klp-devSvetoslav2013-11-071-20/+27
| |\ | | | | | | | | | | | | * commit '90242fe5581c8f665c09337a0971a7c3fc908f7c': Switch to the new Skia PDF generation APIs.
| | * Merge "Switch to the new Skia PDF generation APIs." into klp-devSvetoslav2013-11-081-20/+27
| | |\
| | | * Switch to the new Skia PDF generation APIs.Svetoslav2013-11-071-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new Skia PDF generation APIs are a small extension to the code that converts drawing commands to PDF (SkPDFDevice) and this new functionality is exposed via new APIs. This change switches to using these new APIs allowing us to capitalize on the new perspective support for PDF generation. bug:11561776 Change-Id: Ief61f7ff6a5a22c27d3acbe99a48910cb679f594
| * | | am 435c0ee1: Merge "Fix bug #11537133 Hideycling looks broken (KOT36), ↵Fabrice Di Meglio2013-11-072-2/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | missing left padding" into klp-dev * commit '435c0ee10af132937dc0a22c39380624e6efd5ab': Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding
| | * | Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left ↵Fabrice Di Meglio2013-11-072-2/+3
| | |\ \ | | | |/ | | |/| | | | | padding" into klp-dev
| | | * Fix bug #11537133 Hideycling looks broken (KOT36), missing left paddingFabrice Di Meglio2013-11-062-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - enforce the Drawable boolean getPadding(Rect) contract for NinePatchDrawable and DrawableContainer. - as NinePatchDrawable was not enforcing it, the consequence was that the mUserPaddingLeftInitial / mUserPaddingRitghInitial were reset to "0" (even if they got the correct value before the reset). Change-Id: I1efe7fad5f89c0ca47f90189f6d89940e0e9c6ae
| * | | am 47feee53: Merge "Fix some documentation typos." into klp-docsNewton Allen2013-11-073-5/+5
| |\ \ \ | | |/ / | |/| | | | | | | | | | * commit '47feee535f9e4e77165b93b6b9f10379e7aa4bbd': Fix some documentation typos.
| | * | Fix some documentation typos.Newton Allen2013-11-013-5/+5
| | | | | | | | | | | | | | | | Change-Id: I0360d468d54d970c87f313e24e50965245206f28 (cherry picked from commit c502744f2ddcc80a34f5197b5d2c0d701c7d6e71)
| | * | Update the PdfDocument docs with unsupported operations.Svetoslav Ganov2013-10-311-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The PDF generating canvas we use does not yet support all drawing operations. This change adds docs which operations are not yet supported. Change-Id: I8d5ee8c1e2a473ba783b5e62f23ab90a54bbf106 (cherry picked from commit 8db45b844b5482cf61839404c0f6847e053de817)
| * | | Merge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-devChris Craik2013-11-061-0/+5
| |\ \ \
| | * | | Fix NPE with inPurgeable Bitmaps in getAllocationByteCountChris Craik2013-11-061-0/+5
| | |/ / | | | | | | | | | | | | | | | | bug:11556330 Change-Id: I430136ea15baeb60adfb9bb2acdde9505ce707fe
| * | | Merge "Fix recent regression in DrawableContainer." into klp-devJohn Spurlock2013-11-061-1/+1
| |\ \ \ | | |_|/ | |/| |
| | * | Fix recent regression in DrawableContainer.John Spurlock2013-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure optical insets are never null. Bug:11537082 Change-Id: Ib75be83909fac612ae947f501835285cd8a79862
| * | | Merge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. ↵Adam Koch2013-11-061-2/+14
| |\ \ \ | | |/ / | |/| | | | | | Bug: 6064760" into klp-dev
| | * | Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag.Adam Koch2013-11-051-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 6064760 Change-Id: I3fd833a3205be451ff6548fab3555d170c9c570e
| * | | Merge "Fix bug #11256076 Spinner text is too close from the opening triangle ↵Fabrice Di Meglio2013-11-051-6/+25
| |\ \ \ | | |/ / | |/| | | | | | in RTL Locales" into klp-dev
| | * | Fix bug #11256076 Spinner text is too close from the opening triangle in RTL ↵Fabrice Di Meglio2013-10-181-6/+25
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Locales Background Drawable padding was not taken into account in RTL Locales - make sure the Drawables are resolved before resolving padding - during padding resolution take care about background padding Change-Id: Ib0c722adf5341ab4fa2182a0d0ac2ca639e85cfc
| * | Update the PdfDocument docs with unsupported operations.Svetoslav Ganov2013-10-311-0/+25
| |/ | | | | | | | | | | | | | | The PDF generating canvas we use does not yet support all drawing operations. This change adds docs which operations are not yet supported. Change-Id: I8d5ee8c1e2a473ba783b5e62f23ab90a54bbf106
* | Merge "Adding operations to reflected Renderscript class"Jason Sams2013-11-2618-251/+7539
|\ \ | |/ |/|
| * Adding operations to reflected Renderscript classMatthieu Delahaye2013-10-2318-251/+7539
| | | | | | | | | | | | | | | | | | | | | | | | | | Renderscript expose its native types back to the Android system through a set of classes defined within the renderscript package. These classes provides no easy mean to manipulate data they represent. It would be convinient to be able to manipulate the data stored within an allocation via these classes directly instead of having to marshall them into native Java objects. This commit adds such operations to the existing exposed vector types. Change-Id: I1845df1368a82f0d39b36416c83938c7160f6a3f
* | DO NOT MERGE: Hide new camera API.Eino-Ville Talvala2013-10-111-4/+2
| | | | | | | | | | | | | | | | Not yet ready. Bug: 11141002 Change-Id: I4704bffb9ba36af47a66dc5b49cbba00be623aae
* | Use SCREEN Xfermode for keyguard badges; update SeekBarAdam Powell2013-10-072-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plumb through the necessary API features through Drawables and ImageView but leave it hidden for now pending future API review and plumbing through the rest of the framework Drawable implementations. Update SeekBar assets used for keyguard transport control. Set selected status directly instead of finding views by id. Bug 10531608 Bug 10784913 Change-Id: Ia38bd04ad1bc26e9e6da1dda8a374c9ba3ceccb3
* | Preserve fill type in Path.reset().Mike Klein2013-10-072-0/+41
| | | | | | | | | | Bug: 10838355 Change-Id: I7bdecb945fc35dfed02d37745678ae7bda906628
* | Fix animations, padding in RTL mode.Jeff Sharkey2013-10-012-7/+25
| | | | | | | | | | | | | | | | | | | | Show directory animations coming in from left-side when in RTL language. Also fix NinePatchDrawable to correctly mirror its padding when auto-mirrored, and fix InsetDrawable to propagate the layout direction to the wrapped Drawable. Bug: 10987190, 11030793 Change-Id: I1213802a07d0c4ced93438df1e6ddf5aed3df677
* | Merge "clarify Paint flag docs" into klp-devVictoria Lease2013-09-261-12/+102
|\ \
| * | clarify Paint flag docsVictoria Lease2013-09-261-12/+102
| | | | | | | | | | | | | | | Bug: 10460797 Change-Id: Iae622b302cad3dc788f512b472e3a59ec227a8d7
* | | Update docs to state that mark is no longer called.Leon Scroggins III2013-09-252-0/+10
|/ / | | | | | | | | | | BUG:6493544 Change-Id: I97a4d90ce2efcd12f8f1cc5b545f822f8e5a5ab0
* | Move PdfDocument to android.graphics.pdfSvetoslav2013-09-192-0/+429
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Move PdfDocument to android.graphics.pdf. 2. Changed the PdfDocument as per API concil request. 3. Updated the documentation. bug:10461180 bug:10552565 bug:10681585 bug:10552336 Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8