980 Commits

Author SHA1 Message Date
Stephen Hines
ec6f200cd8 Fix RS matrix docs regarding row/column and x/y.
Change-Id: Ibcb90ee62e458adfa55849fc1bc79257293975fe
2012-07-10 16:25:07 -07:00
Romain Guy
3849f93b3c Add Bitmap.isPremultiplied()
This change also adds extra information in the documentation about
premultiplied values.

Change-Id: I51aacb8696340d23354ebf6d7284605d1a790b69
2012-07-09 13:52:40 -07:00
Amith Yamasani
b8151ecd6e Add an icon to the user information.
Store the icon in the user folder under /data/system,
similar to how the wallpaper is stored.

Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
2012-06-12 18:18:29 -07:00
Fabrice Di Meglio
b03b434089 Revert "Revert "Clean up layout direction APIs for Drawable""
This reverts commit c96132ff53e5c26f5b0170edd85072006fb2bc70
2012-06-04 12:55:30 -07:00
Jean-Baptiste Queru
c96132ff53 Revert "Clean up layout direction APIs for Drawable"
This reverts commit c1da65187a4b9de8f72bd617ef937030187c0a92.
2012-06-02 05:46:20 -07:00
Fabrice Di Meglio
c1da65187a Clean up layout direction APIs for Drawable
- see bug #6427629

Change-Id: I3119db3022bba0ee325b6d0d4471bfebd850ec10
2012-06-01 11:39:10 -07:00
Owen Lin
4405a21a6f am 5558f66e: am cb949887: Merge "Release the constraint on the requested version." into jb-dev
* commit '5558f66efe43654c97b851b67a099df0de5429ad':
  Release the constraint on the requested version.
2012-05-21 12:42:33 -07:00
Owen Lin
3bbcbcd5f9 Release the constraint on the requested version.
Allowing to request a region that partially outsides the image.
bug: 5884845

Change-Id: I32344930ab9e2a7f22a706914babb165843e8de7
2012-05-17 12:48:11 -07:00
Pin Ting
f579c86ae4 am 4de3c27c: am 59e2a1ea: Merge "Fix typo in javadoc." into jb-dev
* commit '4de3c27cc702c019e7a9304d9e548fc81340ad7e':
  Fix typo in javadoc.
2012-05-14 08:37:44 -07:00
Pin Ting
852be16790 Fix typo in javadoc.
Change-Id: I0e5d8640764772871e72cb00d117d12f3eaeb64f
2012-05-11 18:09:58 +08:00
Dave Burke
7054b486a3 am 7156645c: am 2ed09ea4: Merge "GFX api cleanup 2 of 2" into jb-dev
* commit '7156645c58d1489b87cf9ecf00cbb4d073d12534':
  GFX api cleanup 2 of 2
2012-05-10 09:33:30 -07:00
Stephen Hines
3db194e9e0 am 218c0899: am 794db6cb: Merge "GFX api cleanup 1.5 of 2" into jb-dev
* commit '218c0899bdea2395f1fe56e1eecc108b633e0da6':
  GFX api cleanup 1.5 of 2
2012-05-09 10:49:44 -07:00
Jason Sams
ef63d09411 am 0916b463: am 48250c27: Merge "GFX api cleanup 1 of 2" into jb-dev
* commit '0916b463598a99400840c5d55a443bee2446b626':
  GFX api cleanup 1 of 2
2012-05-09 10:10:45 -07:00
Stephen Hines
eb39c4bafa am 9d05bd8c: am 1d56afc6: Merge "Revert "Deprecate"" into jb-dev
* commit '9d05bd8c67b6c01436bfdde13ef9fe61cf9f33e9':
  Revert "Deprecate"
2012-05-09 10:09:50 -07:00
Fabrice Di Meglio
450743459f am e1b1cdc0: am 92d7f9ff: Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev
* commit 'e1b1cdc0d45b23ad65819643ca135783ad17b976':
  Fix bug #6408393 Character corruption is caused when locale is changed
2012-05-09 10:09:23 -07:00
Jason Sams
d4ca991098 GFX api cleanup 2 of 2
Change-Id: Ie928b8ee7d31fcaa26fcad9a2548581bb8395a61
2012-05-08 19:02:07 -07:00
Jason Sams
e619de6a4e GFX api cleanup 1.5 of 2
Change-Id: Ib31332ae0b7a6059d4971ea616089cd382ef6895
2012-05-08 18:40:58 -07:00
Jason Sams
65c80f8247 GFX api cleanup 1 of 2
Change-Id: Ib85784c18b1647e51f1d7cf2a4c956d17e1d2e3c
2012-05-08 17:30:26 -07:00
Stephen Hines
1d56afc6ac Merge "Revert "Deprecate"" into jb-dev 2012-05-08 14:25:49 -07:00
Fabrice Di Meglio
30ca5cd11a Fix bug #6408393 Character corruption is caused when locale is changed
- free the TextLayoutCache on Locale change

- also free TextLayoutCache when memory is low

Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
2012-05-07 20:17:38 -07:00
Stephen Hines
9c9ad3f8c2 Revert "Deprecate"
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908.

Conflicts:

	api/current.txt
	graphics/java/android/renderscript/Element.java
	graphics/java/android/renderscript/Script.java

Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
2012-05-07 15:34:29 -07:00
Fabrice Di Meglio
b0aa2f5368 Hide Paint textLocale APIs - DO NOT MERGE
- fix bug #6441521 Need to @hide Paint setTextLocale / getTextLocale - CJK support

Change-Id: Ic536989243d7028e6f5fce7d60dfef4467bebffb
2012-05-04 14:19:19 -07:00
Fabrice Di Meglio
66388dcb09 Hide RTL related APIs - DO NOT MERGE
- fix bug #6441155 API review: @hide RTL layout APIs

Change-Id: I13c5ea5f579cecffed9d517f06180ab0576cd26a
2012-05-04 13:15:12 -07:00
Eino-Ville Talvala
163a3ae770 Merge "Update docs for YV12 format and camera preview callbacks." into jb-dev 2012-05-03 13:49:57 -07:00
Eino-Ville Talvala
951516358e Update docs for YV12 format and camera preview callbacks.
- Define stride for YV12 when using it for preview callbacks

- Include equations for calculating stride and start indexes of Y, U,
  and V planes for YV12.

- Add more cross-references so that equations are easier to find.

Bug: 6330501
Change-Id: I85a78757ec767d08173b9fe714adb715835244b4
2012-05-03 11:02:18 -07:00
Stephen Hines
adeb809201 Start passing element/dim information along with FieldPacker.
BUG=6009244

Change-Id: I3c82c8b40c899b875831f53cf0ad82ea36c1a043
2012-05-01 00:29:52 -07:00
Stephen Hines
9da1b5d030 Unhide FONT.
Change-Id: I86258076817bb8f34ce3bb76031df41c08750f8c
2012-05-01 00:29:52 -07:00
Dianne Hackborn
7634424171 Fix scaling of layout bounds.
Change-Id: I9d8c8924900fed69030ee3e8d6decee89ca67820
2012-04-30 14:51:48 -07:00
Philip Milne
7a23b49a8c Fixes for optical bounds feature.
1. Make the feature opt-in (ViewGroup::layoutMode defaults to CLIP_BOUNDS) without inheritance.
2. Rename COMPONENT_BOUNDS to CLIP_BOUNDS.
3. Rename LAYOUT_BOUNDS to OPTICAL_BOUNDS.
4. Complete GridLayout implementation.
5. Change the default_gap between components to 8dp, to align with the Style Guide.

Change-Id: I8d40dfc5f4ca469f6424eb3ff60d07bec56e3a9f
2012-04-27 16:46:57 -07:00
Alex Sakhartchouk
a0c2eb27b4 Deprecate
Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309
2012-04-19 16:30:58 -07:00
Philip Milne
bbd51f1e36 Share Insets instances between views that have the same background (Drawable)
Change-Id: I47d93ccca6f553b678d25966d10d7a0a97cfa5ea
2012-04-18 16:06:27 -07:00
Jamie Gennis
d1661dcc90 Merge "Unhide new SurfaceTexture & TextureView APIs" 2012-04-16 13:21:53 -07:00
Philip Milne
4e1cb3b794 Merge "Fix for bug 6110465." 2012-04-16 10:03:17 -07:00
Jamie Gennis
33efb231cb Unhide new SurfaceTexture & TextureView APIs
This change unhides the new SurfaceTexture and TextureView APIs that were added
to allow transferring ownership of the SurfaceTexture from the UI framework to
the application.

Change-Id: Ic4b781d907a59e99ff1a5974009305c1f9aee36a
2012-04-13 18:33:38 -07:00
Philip Milne
1557fd7809 Fix for bug 6110465.
Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
2012-04-13 16:25:08 -07:00
Jamie Gennis
2b4bfa5efe SurfaceTexture: update API docs
This change updates the SurfaceTexture API docs and modifies the behavior of
the updateTexImage to produce an IllegalStateException when not attached to a
GLES context.

Change-Id: I5a0875927785108960985c567d571d5f7033256a
2012-04-13 16:04:15 -07:00
Fabrice Di Meglio
069c4f3f0c Merge "Improve Paint.setTextLocale()" 2012-04-12 19:07:57 -07:00
Fabrice Di Meglio
029b633038 Improve Paint.setTextLocale()
Change-Id: Iffc9f8816f48dbd431b3b430a7c48f8d646703f3
2012-04-12 18:44:16 -07:00
Eino-Ville Talvala
ae9a5ca01f Merge "Editing fixes to ImageFormat documentation." 2012-04-12 17:48:58 -07:00
Fabrice Di Meglio
62901af52a Merge "Add Paint.setTextLocale()" 2012-04-12 17:37:44 -07:00
Fabrice Di Meglio
517825f1a9 Add Paint.setTextLocale()
- will be used for better shaping CJK and other goodies

Change-Id: If64945a337edd915f5ebb88f04b6fd18e92ca587
2012-04-12 17:31:17 -07:00
Stephen Hines
e267f5f2b0 Merge "Add missing support for Element.FONT()." 2012-04-12 16:45:00 -07:00
Stephen Hines
3a29141321 Add missing support for Element.FONT().
Change-Id: Id66676958cc41d934b7f01acd65916f6d777d355
2012-04-11 18:15:55 -07:00
Alex Sakhartchouk
918e840628 Unhiding J API's for Renderscript.
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
2012-04-11 14:04:23 -07:00
Eino-Ville Talvala
9184ec307b Editing fixes to ImageFormat documentation.
Change-Id: I74738a65abc3abbb49825b16f4efe3ac2eb6d28e
2012-04-10 15:57:31 -07:00
Jamie Gennis
335a6625b6 Merge changes Iac9cc917,I8eed4b0d
* changes:
  TextureView: add setSurfaceTexture method
  SurfaceTexture: add GL context attach & detach
2012-04-06 09:06:28 -07:00
Romain Guy
17471d730f Fix javadoc
Change-Id: I41315ff2ff1b404de82264e6a56ee46032862a32
2012-04-05 19:04:56 -07:00
Jamie Gennis
c6d9930777 SurfaceTexture: add GL context attach & detach
This change adds Java API support for detaching a SurfaceTexture from one GLES
context and then attaching it to a different one.

Change-Id: I8eed4b0d0e339c11598cb0408d9f4f2d99b3aa06
2012-04-05 16:11:43 -07:00
Amith Yamasani
1da8f00a4c Merge "Embed layout padding in nine patch images" 2012-04-04 13:49:05 -07:00
Amith Yamasani
ec4a50428d Embed layout padding in nine patch images
- Added a new custom PNG chunk that carries the layout padding ints.
- Extract the padding ticks from .9.png images and store in the chunk.
- Load the padding information at runtime into Bitmap and NinePatchDrawable.

- The new chunk is ordered first so that it doesn't cause a problem in older
  versions of the platform.

Bug: 6087201

Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
2012-04-04 12:05:59 -07:00