33138 Commits

Author SHA1 Message Date
Jeff Brown
c69238ebc8 Merge "Remove dithering support." 2012-07-16 16:18:13 -07:00
Jeff Brown
3cc321ecf5 Remove dithering support.
The dithering flag is no longer implemented in Surface Flinger
so this is all dead code.

Change-Id: I74c0e452923207e5b7cfe0eeca9457e5cb990947
2012-07-16 16:17:25 -07:00
Jeff Brown
abae83d155 Merge "Remove freeze(), unfreeze() and setFreezeTint()." 2012-07-16 15:53:00 -07:00
Jeff Brown
f422a56694 Merge "Remove freezeDisplay(), which is no-op." 2012-07-16 15:52:54 -07:00
Jeff Brown
ef4e817ad6 Remove freeze(), unfreeze() and setFreezeTint().
This is all dead code.

Change-Id: Ia8a3068606bfe277a16cde5690f47996657863e8
2012-07-16 15:02:49 -07:00
Jeff Brown
55e395ab33 Remove freezeDisplay(), which is no-op.
Change-Id: I981ee49e6e2d41a09feaee4b384392e83f7faf3d
2012-07-16 14:57:22 -07:00
Nick Pelly
7d4252171c Merge "Improve geofencing: throttle location updates with distance to fence." 2012-07-16 14:26:14 -07:00
Nick Pelly
b613e42f0c Merge "Add a tiny bit of javadoc to PackageMonitor." 2012-07-16 14:25:26 -07:00
Nick Pelly
e0fd693c60 Improve geofencing: throttle location updates with distance to fence.
Previously any geofence (proximity alert) would turn the GPS on at full rate.
Now, we modify the GPS interval with the distance to the nearest geofence.
A speed of 100m/s is assumed to calculate the next GPS update.

Also
o Major refactor of geofencing code, to make it easier to continue to improve.
o Discard proximity alerts when an app is removed.
o Misc cleanup of nearby code. There are other upcoming changes
  that make this a good time for some house-keeping.

TODO:
The new geofencing heuristics are much better than before, but still
relatively naive. The next steps could be:
- Improve boundary detection
- Improve update thottling for large geofences
- Consider velocity when throttling

Change-Id: Ie6e23d2cb2b931eba5d2a2fc759543bb96e2f7d0
2012-07-16 12:18:52 -07:00
Ying Wang
7fffed5fcb Import translations. DO NOT MERGE
Change-Id: Ie0adf80bdc9ab6f2eb8cbf05c743c7cfeb9efd6f
Auto-generated-cl: translation import
2012-07-16 11:38:27 -07:00
Svetoslav Ganov
c9c9a48e7b Removing a workaround for incorrect window position on window move.
1. The window manager was not notifying a window when the latter
   has been moved. This was causing incorrect coordinates of the
   nodes reported to accessibility services. To workaround that
   we have carried the correct window location when making a
   call from the accessibility layer into a window. Now the
   window manager notifies the window when it is moved and the
   workaround is no longer needed. This change takes it out.

2. The left and right in the attach info were not updated properly
   after a report that the window has moved.

3. The accessibility manager service was calling directly methods
   on the window manager service without going through the interface
   of the latter. This leads to unnecessary coupling and in the
   long rung increases system complexity and reduces maintability.

bug:6623031

Change-Id: Iacb734b1bf337a47fad02c827ece45bb2f53a79d
2012-07-16 08:46:11 -07:00
Nick Pelly
357d9cb861 Add a tiny bit of javadoc to PackageMonitor.
Change-Id: I1f9a56f44b4189d77df1327cc4f8c8ccf25db4b9
2012-07-13 23:46:19 -07:00
Ying Wang
ab6996bdd8 Import translations. DO NOT MERGE
Change-Id: Iae5f07176cad4505b21f8adc5fef99ac848cc11d
Auto-generated-cl: translation import
2012-07-13 11:49:32 -07:00
Chet Haase
87e8b25ea3 Merge "Remove redundant computeScroll() call for hw-accelerated views" 2012-07-13 07:39:41 -07:00
Romain Guy
401b1f8574 Merge "Remove obsolete optimization" 2012-07-12 18:02:37 -07:00
Romain Guy
f877308f77 Remove obsolete optimization
Change-Id: I2d43c009c62a7f4a4a2e0a6303bdfa692c4b8c8c
2012-07-12 18:01:00 -07:00
Fabrice Di Meglio
b8405c78fc Merge "Make ActionBar aware of layout direction" 2012-07-12 17:53:42 -07:00
Chet Haase
526057bc77 Remove redundant computeScroll() call for hw-accelerated views
View.draw() calls computeScroll() to initialize scrolling values correctly.
But getDisplayList() also calls computeScroll() for the same reason, resulting
in 2 calls to that method for hw-accelerated views.
Fix: avoid calling computeScroll() in View.draw() for views with display lists.

Change-Id: I57a3862e2d554752cd0fdb862513cbb3dfb3105c
2012-07-12 17:50:41 -07:00
Fabrice Di Meglio
cf1ba0298c Make ActionBar aware of layout direction
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Iea8a512311ee99548f39bbbe342f21eabaffbe09
2012-07-12 17:39:12 -07:00
Jeff Brown
c643ca97a8 Merge "Fix bug in IME handling of pending key events." 2012-07-12 16:18:50 -07:00
Chris Craik
d442aaeb46 Merge "Don't attach functor for SW layers" 2012-07-12 16:17:16 -07:00
Jeff Brown
2499bbecc2 Fix bug in IME handling of pending key events.
Bug: 6812529
Change-Id: I7195a4346d44d65a79969a1bb5daa3bb8a018600
2012-07-12 16:14:37 -07:00
Chris Craik
793b7f8454 Don't attach functor for SW layers
Change-Id: I60fec1629bf1e343a0d69e0ce13a3d632c3f713d
2012-07-12 14:01:50 -07:00
Adam Cohen
289b55e55d Merge "Prevent crash in AppWidgetHost that can be triggered by an AppWidget" 2012-07-12 13:28:17 -07:00
Ying Wang
da1f77aef7 Import translations. DO NOT MERGE
Change-Id: Ifa66f213bcb88bc7f7f992af8f8763d6d3cf1dd1
Auto-generated-cl: translation import
2012-07-12 11:50:38 -07:00
Wink Saville
7914fdbfa6 Merge "Merge commit '1b003ef0' into mit" 2012-07-12 09:18:57 -07:00
Romain Guy
f0af1d5cb2 Remove unused View.flushLayer() API
Change-Id: I5d4c7388afb5265964ab6b769cc0abfee9745c84
2012-07-11 18:31:21 -07:00
Wink Saville
5362f17ff5 Merge commit '1b003ef0' into mit
* commit '1b003ef0':
  Create telephony-common and mms-common

Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
2012-07-11 18:15:50 -07:00
Romain Guy
7d3082a3f0 Update View's opacity when changing the background color
Change-Id: Ib5851d47918c99d4906055a9d0245ea100aee231
2012-07-11 17:52:54 -07:00
Romain Guy
4c9dfc4da9 Merge "Update layers' opaque property when needed" 2012-07-11 17:48:34 -07:00
Romain Guy
846a533945 Update layers' opaque property when needed
Before this change, changing a View's opacity would not be reflected
by hardware layers. This could cause layers to retain their previous
opacity.

Change-Id: Iba2c8b4242deca021651df9324cc7c585a64653d
2012-07-11 17:44:57 -07:00
Adam Cohen
f31608d1fb Prevent crash in AppWidgetHost that can be triggered by an AppWidget
-> When the RemoteViewsFactory violates the getViewTypeCount() contract
   we detect it, and prevent the AdapterView from crashing
-> Also made RemoteViewsCache a static inner class, since we may need
   that down the road, and there's no reason it shouldn't be

Change-Id: I872a255167aac94513e522924179de61286b995a
2012-07-11 17:32:03 -07:00
Mathias Agopian
f16336790b Merge "Fixed exception caused crash in GL bindings" 2012-07-11 16:08:25 -07:00
Mathias Agopian
73a3c0c4d7 Merge "EGL 1.4 bindings generated by glgen" 2012-07-11 16:08:18 -07:00
Wink Saville
a639b311e9 Create telephony-common and mms-common
These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
  frameworks/base/core/java/com/google/android/mms
to:
   frameworks/opt/mms

telephony-common was created by moving some of
   frameworks/base/telephony
to:
   frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
2012-07-11 16:02:08 -07:00
Ying Wang
0ddea75be4 am 04ca8e57: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit '04ca8e577859235a68fa9a5268af528d547310be':
  Import translations. DO NOT MERGE
2012-07-11 13:57:43 -07:00
Ying Wang
40cbdd2ae6 Merge "Import translations. DO NOT MERGE" 2012-07-11 13:55:46 -07:00
Teng-Hui Zhu
5a9bb64eaf Merge "Release the media player when trimming memory" 2012-07-11 13:31:02 -07:00
Ying Wang
b16d4294d0 Import translations. DO NOT MERGE
Change-Id: I2a0c62b421d1a080549c2cbedc1a14c3afaf60f3
Auto-generated-cl: translation import
2012-07-11 12:58:16 -07:00
Ying Wang
2ba281577a Import translations. DO NOT MERGE
Change-Id: Idabf12464d73bf707daf0f870de2349731b574e2
Auto-generated-cl: translation import
2012-07-11 12:51:31 -07:00
Victoria Lease
cae28fa051 Merge "Remove hardcoded typeface pointers" 2012-07-11 12:49:12 -07:00
Billy Hewlett
d6deccb346 Remove hardcoded typeface pointers
There were a number of extraneous typeface pointers, one per
language, in TextLayoutCache.  Removing these makes adding additional
supported fonts easier.  This checkin now properly
unrefs typefaces returned by SkCreateTypefaceForScript.  Additionally,
all harfbuzz shaped fonts (with exceptions Greek, Cyrillic, Hangul)
should call SkCreateTypefaceForScript.

Change-Id: I7dcf603a89e5ff52c6dab8fb87ae1807a79c351c
2012-07-11 08:55:59 -07:00
Raph Levien
23316a1ef8 am 00139b22: Merge "Fix for bug 6716343. Use correct offset for mPos reset. DO NOT MERGE" into jb-dev
* commit '00139b2238562780d66c2ebb8a0675fbe7d896b7':
  Fix for bug 6716343. Use correct offset for mPos reset. DO NOT MERGE
2012-07-10 18:07:27 -07:00
Raph Levien
00139b2238 Merge "Fix for bug 6716343. Use correct offset for mPos reset. DO NOT MERGE" into jb-dev 2012-07-10 18:05:12 -07:00
Thomas Tafertshofer
6b1e838fc1 EGL 1.4 bindings generated by glgen
Change-Id: I1c3da57101f4ea089a12f1796f25b72d6852141e
2012-07-10 15:48:30 -07:00
Teng-Hui Zhu
156f97b6c8 Release the media player when trimming memory
Change-Id: I2bb2880546311761fc38d6208de080a66216fa2f
2012-07-10 15:11:38 -07:00
Craig Mautner
fbf885b652 Merge "Notify client side of window movement." 2012-07-10 14:48:06 -07:00
Fabrice Di Meglio
8e136f85f7 Fix for bug 6716343. Use correct offset for mPos reset. DO NOT MERGE
The mPos field in the MeasuredText object is relative to the start of
the text (mTextStart), but the pos passed in by the caller of the
setPos() method is relative to the character sequence. When spans
overlap break boundaries and the paragraph doesn't start at 0, the
result is an out of bounds error. This fix uses the correct offset.

Change-Id: I64ef06df0eb06f75aedd25de97e9f347eeb52979
2012-07-10 14:30:45 -07:00
Romain Guy
6d2999a048 am 90752485: Properly resize paletted bitmaps when adjusting for density
* commit '907524851af0d656ba049311f7535a4ba5d2b1d2':
  Properly resize paletted bitmaps when adjusting for density
2012-07-10 13:26:49 -07:00
Romain Guy
907524851a Properly resize paletted bitmaps when adjusting for density
If an app used a GIF file in the wrong density bucket, the auto-scaling
code would not properly resize the bitmap.

This issue affects third party applications, here is the external bug
report:

http://code.google.com/p/android/issues/detail?id=34619

DO NOT MERGE

Change-Id: I7f99b28ad6e6c28bdbcb29bbbadcb215268ff710
2012-07-10 13:16:46 -07:00