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
Fabrice Di Meglio
43e4985abf
Fix bug #6248364 Tamil and Denavagari text crash in Google+
...
- fix initialization of variables
Change-Id: Ibda4e1e6f55f867385eaf9a4c7a754c16815bbf0
2012-03-28 16:05:36 -07:00
Romain Guy
7b2f8b8fb7
Pre-scale bitmaps on the native heap
...
Change-Id: I9819b532b89a997ab775b31ffee46445f1d16e20
2012-03-19 18:47:06 -07:00
Romain Guy
caf813fe1e
Remove unused private API
...
Change-Id: Iec9c2bc275fc7376f4e0b0b9c44059c56a9dd173
2012-03-15 18:57:48 -07:00
Siva Velusamy
b48e029107
Merge "Expose a function to set OpenGL Trace level."
2012-03-12 18:10:19 -07:00
Chet Haase
a1cff5043d
Handle view properties at the native level
...
Basic functionality of handling View properties (transforms,
left/right/top/bottom, and alpha) at the native DisplayList level.
This logic is disabled for now (via compile-time flags in View.java and
DisplayListRenderer.h) as we continue work on it (there is no advantage
to the new approach until we optimize invalidation and rendering paths
to use the new code path).
Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3
2012-03-12 15:41:48 -07:00
Siva Velusamy
64d10a1da0
Expose a function to set OpenGL Trace level.
...
This patch adds a function setGlDebugLevel() to libEGL, and
exposes it to the Java layer at android.opengl.GLUtils.enableTracing().
Change-Id: Ia5abb130bc32fcfe3ab25b0a0a5283a54c54f357
2012-03-09 15:25:29 -08:00
Jeff Sharkey
d84e1ce0b5
Split Parcel JNI details away from Binder.
...
This is purely a refactoring, with no change to the underlying
functionality.
Change-Id: I41b59f14e57d1cc144274a01f77658d99a1bfe02
2012-03-08 16:06:30 -08:00
Fabrice Di Meglio
ff40ab7a41
Fix bug #5180841 TextLayoutCache needs to support Indic
...
- add Tamil and Devanagari shaping support
Change-Id: I331ec52cd1987e157100deb699db27f855881c32
2012-02-28 14:35:48 -08:00
Romain Guy
325740fb44
Add hooks to implement Canvas.drawTextOnPath() in GL
...
Change-Id: I165c9e05facf5365aa6850605688e538640c7fcc
2012-02-24 16:48:34 -08:00
Mathias Agopian
b13b9bdad2
frameworks/base refactoring.
...
step 2: move libutils headers to their new home: androidfw
Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
2012-02-17 19:01:26 -08:00
Chih-Chung Chang
fb2cfa223b
Comment out a warning message to avoid log spamming.
...
The warning message happens a lot when the region decoder is used (like
viewing a picture in the Gallery app).
Change-Id: I435f92eac8f322b091f3ed14ee48d0b5f0d84a8a
2012-02-07 13:07:51 +08:00
Jean-Baptiste Queru
0a3f6d69b6
am 33476f7a: am f79bcd2d: am 52da99fa: am a081c7b8: Merge "Skia API changes as a result of an update to the Skia library."
...
* commit '33476f7ad1c3b4dcaefddb306f315e201c4efb33':
Skia API changes as a result of an update to the Skia library.
2012-02-06 14:45:36 -08:00
Jean-Baptiste Queru
52da99fac8
am a081c7b8: Merge "Skia API changes as a result of an update to the Skia library."
...
* commit 'a081c7b8bc5a3ea19fc7562b333fac525b17bc5f':
Skia API changes as a result of an update to the Skia library.
2012-02-06 14:07:31 -08:00
Fabrice Di Meglio
ffd121233a
Merge "Revert back to DroidSansArabic font for SystemUI"
2012-02-03 18:33:49 -08:00
Fabrice Di Meglio
ab8c73882e
Fix bug #5929529 Parentheses aren't correctly rendered in RTL context
...
- do BiDi mirrored char mirroring in TextLayoutCache
- see BiDi mirrored chars list at:
http://www.unicode.org/Public/6.0.0/ucd/extracted/DerivedBinaryProperties.txt
Change-Id: Ia0af0e252dbb0c55cc689bc9db34e05591bb6ee8
2012-02-02 19:07:02 -08:00
Fabrice Di Meglio
9b255cac77
Revert back to DroidSansArabic font for SystemUI
...
- see bug #5957987 Revert to use DroidSansArabic instead of DroidNaskh font for Arabic Shaping in SystemUI
- DroidNaskh was having FontMetrics not compatible with Roboto
Change-Id: I9f3031c250f907c80f3992f71d929dc91686e1e5
2012-02-02 18:57:19 -08:00
Derek Sollenberger
889a3fa6ab
Skia API changes as a result of an update to the Skia library.
...
These changes are required to work with r3022 of Skia
Change-Id: Ib7cebeb2eba6790bb38edfc2397b311cf419e17c
2012-01-31 14:08:22 -05:00
Fabrice Di Meglio
a731b082b2
Code cleaning: centralize use of #if USE_TEXT_LAYOUT_CACHE
...
- also clean some destructors (was not quite compulsory because
they are related to some Singletons)
Change-Id: I3091cac7b38628cda593d72570ba7a5d7ea2a15c
2012-01-27 14:24:46 -08:00
Fabrice Di Meglio
e414613bb8
Merge "Fix bug #5901103 all_source_project_146981_Android - Android ICS LQA Regression:FA, AR, HE and TH - Font Corruption"
2012-01-24 16:57:21 -08:00
Fabrice Di Meglio
3941a22bfd
Fix bug #5901103 all_source_project_146981_Android - Android ICS LQA Regression:FA, AR, HE and TH - Font Corruption
...
- use the first char of the "run" instead of the "string" for the BaseGlyphCount
Change-Id: I647528ec912bb69655cf301bbc73b66dc1a6fc82
2012-01-24 16:44:00 -08:00
Fabrice Di Meglio
bd901dee31
Fix bug #5846413 "phone" keyboard layout is broken on master
...
- was a subtle regression introduced when fixing bug #5753006
- as we are now using SkPaint::kGlyphID_TextEncoding (glyph encoding)
instead of SkPaint::kUTF16_TextEncoding (UTF16 encoding), we need to
force the UTF16 encoding in some cases that are NOT going thru
the TextLayoutCache / Harfbuzz shaping
- fix also breakText() the same way
- also clean some old comment
- Warning: depends also on a CL from Skia for having getBaseGlyphCount() "const"
Change-Id: I3d1fc87f070884876c679b33541f810fbfb5df3f
2012-01-23 13:34:08 -08:00
Jean-Baptiste Queru
12b7da6995
am 6df477be: Merge "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)"
...
* commit '6df477be186233e36fc370c4d2db6c1ed928a740':
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)
2012-01-19 17:26:12 -08:00
Jean-Baptiste Queru
f3f650db96
am a826f9e2: Merge "Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)"
...
* commit 'a826f9e2c4f6329d8d48c927f6e942e78ffaf92f':
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
2012-01-19 17:26:08 -08:00
Jean-Baptiste Queru
08d3c6e5ba
am 4f367f33: Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)"
...
* commit '4f367f3387887c538c81c34cc8becaea6fa5e430':
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
2012-01-19 17:26:03 -08:00
Jean-Baptiste Queru
7ae84204c1
am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)"
...
* commit 'ba7f0d2a03643ce429421b81febf18fd50473070':
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
2012-01-19 17:25:58 -08:00
Jean-Baptiste Queru
97aa8ee811
Merge ee4618bc
...
Change-Id: Ie1dc6ad38e7c30636d80f6caef11cf6673144940
2012-01-19 17:18:25 -08:00
Jean-Baptiste Queru
36b48c30ad
am c318bbb0: Merge "Rename (IF_)LOG() to (IF_)ALOG()"
...
* commit 'c318bbb05e02a0080e129623ec8029d31be0d60e':
Rename (IF_)LOG() to (IF_)ALOG()
2012-01-19 16:59:41 -08:00
Steve Block
c6aacce371
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)
...
Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924
2012-01-19 14:45:03 -08:00
Steve Block
a51f0e707f
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF)
...
Change-Id: I8fbdfa7a7581f481968dbb65aa40f7042936d7cb
2012-01-19 14:44:59 -08:00
Steve Block
933e856150
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF)
...
Change-Id: I26f76452ac49e2890b14d133c065493d8df0fb4a
2012-01-19 14:44:56 -08:00
Steve Block
1afd5bab4e
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
...
Change-Id: I44f267700356967dc51e8f85ebf457dc85cfb229
2012-01-19 14:44:50 -08:00
Steve Block
06ade6ae1b
Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF)
...
Change-Id: I5321ebd12e9c6248a108529e82c4e1af2a4405e3
2012-01-19 14:44:31 -08:00
Steve Block
ad3f5145fe
Rename (IF_)LOG() to (IF_)ALOG()
...
Change-Id: If49c81a2793182771c6160fbca93905daa6f44c1
2012-01-18 11:08:20 +00:00
Romain Guy
11d06a73df
Merge "Fix text encoding when drawing with drawPosText in software"
2012-01-17 14:54:45 -08:00
Romain Guy
62b6eaa7f3
Fix text encoding when drawing with drawPosText in software
...
Change-Id: I0cd8ee526189c38c50953a1a08b50e0b31c55d8c
2012-01-17 14:53:26 -08:00
Fabrice Di Meglio
c7c09960ff
Merge "Fix bug #5870701 Thai text can be clipped when there are more glyphs generated than the initial number of code points"
2012-01-17 11:51:22 -08:00
Fabrice Di Meglio
03e250aefa
Fix bug #5870701 Thai text can be clipped when there are more glyphs generated than the initial number of code points
...
- compute total advances correctly by iterating on the advances array for up to mShaperItem.num_glyphs
- update unit tests
Change-Id: I00af68bef88702215e9222ed80dbffcc81df51a7
2012-01-13 19:49:46 -08:00
Steve Block
3762c31172
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
...
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
2012-01-08 13:19:13 +00:00
Steve Block
8564c8da81
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
...
See https://android-git.corp.google.com/g/157065
Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
2012-01-06 10:07:54 +00:00
Fabrice Di Meglio
d4a69b4a1c
Merge "Fix bug #5753006 Garbled Labels in Maps"
2012-01-05 15:18:52 -08:00
Fabrice Di Meglio
a0a117b4c1
Fix bug #5822825 Paint.measureText (char[] text, int index, int count) cannot handle text more than 32K long - DO NOT MERGE
...
- do not clear the smart pointer when the cache entry does not fit the cache size
See http://code.google.com/p/android/issues/detail?id=23337
Change-Id: Id4533d9f8a396c310c9215157ec5a4c07f30c7f2
2012-01-05 14:34:42 -08:00
Steve Block
bd47cac4df
Merge "Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE"
2012-01-05 14:07:02 -08:00
Fabrice Di Meglio
c726ff02c7
Merge "Fix bug #5822825 Paint.measureText (char[] text, int index, int count) cannot handle text more than 32K long"
2012-01-05 13:55:01 -08:00
Fabrice Di Meglio
c511bee87c
Fix bug #5753006 Garbled Labels in Maps
...
- it was a regression introduced into this CL: https://android-git.corp.google.com/g/#/c/154240/5
- basically needed to set the GlyphID encoding to the Skia Paint as we are now using glyphID resulting
from the Harfbuzz shaping
- also define GlyphID encoding as the default on the Paint class
Change-Id: Idb7c2c57ac67595425ce3be9421258962690fcdd
2012-01-05 13:30:54 -08:00
Fabrice Di Meglio
bd7cdc32eb
Fix bug #5822825 Paint.measureText (char[] text, int index, int count) cannot handle text more than 32K long
...
- do not clear the smart pointer when the cache entry does not fit the cache size
Change-Id: I49f1aa1e70018bb7d6a8fb076d9269d0ec6a5d98
See: http://code.google.com/p/android/issues/detail?id=23337
2012-01-04 14:25:54 -08:00
Steve Block
6215d3ff4b
Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE
...
See https://android-git.corp.google.com/g/156801
Bug: 5449033
Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
2012-01-04 20:05:49 +00:00
Steve Block
5baa3a62a9
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
...
See https://android-git.corp.google.com/g/156016
Bug: 5449033
Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
2012-01-03 22:38:27 +00:00
Fabrice Di Meglio
a4d0770063
Fix bug #5674155 Segmentation issue for Thai
...
- force Harfbuzz to shape with the Thai font
Change-Id: I3830acae17385b050e2745fca277cf66af103099
2011-12-13 18:52:13 -08:00
Fabrice Di Meglio
65194adc9a
Fix bug #5727213 Rendering issues with Bengali in Textview in IML63B
...
- force Harfbuzz to shape with the Bengali font
- also fix potential returned NULL value from SkTypeface::CreateFromFile(path)
Change-Id: I25be09d06e449b89bb4a62444e27f77e436b77ba
2011-12-13 18:14:49 -08:00