73978 Commits

Author SHA1 Message Date
Jack Palevich
f64bf84eeb Merge "Try to survive a failure return from eglMakeCurrent." 2012-03-29 16:26:54 -07:00
Jack Palevich
7d73df83f9 Try to survive a failure return from eglMakeCurrent.
Assume a failure in eglMakeCurrent occurs because the SurfaceView
surface has been destroyed.

See b/6257956 for an example of this failure happening during rotation
stress testing.

Change-Id: I4618703b5291aba3a3f0c6bd83c3435a67b97d33
2012-03-29 16:24:58 -07:00
Martijn Coenen
6c65344fcf Fix permission documentation.
It was incorrect in one case. Also removed obsolete
interface method.

Change-Id: I211fb57e3504e06ff09cf31857c89e2b0e93d679
2012-03-29 15:59:31 -07:00
Justin Koh
bc52ca2814 Stop ANR dialogs from appearing when ActivityManager dialogs should not be shown
Stop ANR dialogs from appearing on devices where the ActivityManager dialogs
should not be shown. Instead, kill the process. This is preferable because the
user can't actually do anything on the device.

TESTED = runs on device with that config, simulated ANR using test app.

Change-Id: I6267000afd12ef929f0c625220184c6ab0139552
2012-03-29 15:37:11 -07:00
Daisuke Miyakawa
5f12f03111 Move TelephonyCapabilities from Phone to telephony
- Move the class.
- Remove some TODOs mentioning this action : the class should belong to
  telephony layer instead of to the Phone package
- Add private strings used in the class

Bug: 6252254
Change-Id: I0d4ca2f8e4d775004d146fe6f9c60165a94366a9
2012-03-29 15:27:55 -07:00
Jeff Brown
58a40a3e92 Merge "Refactor DisplayEventReceiver read loop." 2012-03-29 15:13:21 -07:00
Jeff Brown
a08f3e866a Merge "Enable vsync traversals by default." 2012-03-29 15:12:33 -07:00
Jeff Sharkey
b14ad8cc8c Migrate to shared MockWebServer.
Bug: 4726601
Change-Id: Ibbe71b5785a64bd2883c46b83e721fba9a25afa2
2012-03-29 14:17:03 -07:00
Fabrice Di Meglio
e32a4ac8d3 Merge "Improve FocusFinder for RTL support" 2012-03-29 13:46:30 -07:00
Craig Mautner
1505ce29cf Merge "Move Surface operations out of WindowState." 2012-03-29 13:35:07 -07:00
Craig Mautner
d05b326045 Merge "Move wallpaper animations int WindowAnimator." 2012-03-29 13:34:51 -07:00
Joe Malin
b821a1f980 am 21603cc6: am 6a04325d: DOC CHANGE: Spell Checker article
* commit '21603cc6906783c7ed0f8dc5c2792cc7830e24a2':
2012-03-29 13:34:47 -07:00
Joe Malin
6187ba5076 am 136de4ea: am 6a04325d: DOC CHANGE: Spell Checker article
* commit '136de4ead0c1c0bcdcf1f7904188d1410ebc1e42':
  DOC CHANGE: Spell Checker article
2012-03-29 13:32:46 -07:00
Joe Malin
21603cc690 am 6a04325d: DOC CHANGE: Spell Checker article
* commit '6a04325d5d54e1e51b47c86b7386c355e4eb2191':
  DOC CHANGE: Spell Checker article
2012-03-29 13:29:32 -07:00
Joe Malin
136de4ead0 am 6a04325d: DOC CHANGE: Spell Checker article
* commit '6a04325d5d54e1e51b47c86b7386c355e4eb2191':
  DOC CHANGE: Spell Checker article
2012-03-29 13:29:19 -07:00
Joe Malin
c7e56eff1b am 6a04325d: DOC CHANGE: Spell Checker article
* commit '6a04325d5d54e1e51b47c86b7386c355e4eb2191':
  DOC CHANGE: Spell Checker article
2012-03-29 13:29:19 -07:00
Martijn Coenen
47ece23651 Merge "Fix NDEF documentation to indicate the message may be null." 2012-03-29 13:25:55 -07:00
Jeff Brown
bec0a8682c Refactor DisplayEventReceiver read loop.
Change-Id: I98ef802ec0ca48f768e3b0920e1b4b4f7f141050
2012-03-29 13:10:56 -07:00
Jeff Brown
ebb2d8d708 Enable vsync traversals by default.
Improved how the various callbacks are managed and sequenced
to reduce code duplication.

Added a heuristic to avoid postponing traversals until
the next vsync frame if we did not actually do any drawing during
the previous frame.  This helps in the very common case where
drawing occurs in response to input.

Change-Id: I277d9eeaf50408f8745a3cfd181db1d140770658
2012-03-29 13:10:55 -07:00
Jack Palevich
b0721d4b09 Merge "Make GLSurfaceView handle eglSwapBuffers errors more robustly." 2012-03-29 12:32:49 -07:00
Jack Palevich
db6c78b5bd Make GLSurfaceView handle eglSwapBuffers errors more robustly.
A careful reading of the EGL spec, as well as experience with many
different EGL drivers, has shown that it is error prone to attempt to
discriminate between different error conditions.

We now treat any error besides EGL_CONTEXT_LOST as an indication that the
EGL context is in a bad state, most likely due to the window manager
having removed the underlying surface flinger surface.

In addition, we changed the way we deal with this kind of error:
Previously we would ignore the error and keep rendering. But if the
EGL context and surface has become invalid, it would be better to
stop drawing. We now stop drawing until the surface view surface is
recreated.

See b/6032663 for an example of this problem affecting the GMM app,
but note that GMM is using their own version of GLSurfaceView, so this
change won't help them directly. They'll have to make a similar change
to their version of GLSurfaceView.

Change-Id: Iffe3e1e3a3c7a91d03140fd34391eadeaecf777e
Signed-off-by: Jack Palevich <jackpal@google.com>
2012-03-29 12:23:57 -07:00
Scott Main
141d85b46d am bd26ba48: Merge "docs: update SDK and AVD Manager strings; update android tool doc and update another AVD manager screenshot and finally change "component" to "package" for SDK manager docs" into ics-mr1
* commit 'bd26ba4871078aa85024320040de35995e90924b':
  docs: update SDK and AVD Manager strings; update android tool doc and update another AVD manager screenshot and finally change "component" to "package" for SDK manager docs
2012-03-29 12:09:50 -07:00
Scott Main
fd7f7025ee am af9a26b2: Merge "docs: replace the "Contribute" message with "Design"" into ics-mr1
* commit 'af9a26b21262500c5f864bcd82bc14ee805fdaac':
  docs: replace the "Contribute" message with "Design"
2012-03-29 12:09:47 -07:00
Scott Main
d6a1001027 am 7fa4a28e: docs: add Coolpad to oem driver list
* commit '7fa4a28e1e37cb66d28dc16b7128da1fba01da0e':
  docs: add Coolpad to oem driver list
2012-03-29 12:09:45 -07:00
Joe Malin
9c815e669e am 093ed383: Merge "DOC CHANGE: IME subtype article" into ics-mr1
* commit '093ed3838c3f2847be1893ea49c6b15b90e0afc3':
  DOC CHANGE: IME subtype article
2012-03-29 12:09:43 -07:00
Craig Mautner
c2f9be0b7f Move Surface operations out of WindowState.
Migrated the bulk of Surface operations from WindowState to
WindowStateAnimator. There remain a multitude of cross-referencing
between the two classes and most of the other classes in the wm
package.

Change-Id: I4bfdfb84be31341371f3ef311aca8fc6a4966692
2012-03-29 11:31:12 -07:00
Craig Mautner
e7ae250540 Move wallpaper animations int WindowAnimator.
More refactoring. This time wallpaper animations were broken up from
WindowManagerService and the layout piece kept there while the
animation piece was moved into WindwoAnimator.

Also, applyAnimationLocked and applyEnterAnimationLocked were moved
from WindowManagerService to WindowState.

Change-Id: I05935023702ce05fdfdc804342ec14f719cdfea4
2012-03-29 11:31:11 -07:00
Martijn Coenen
a032783241 Fix NDEF documentation to indicate the message may be null.
The current NFC stack formats tags to the INITIALIZED state
as defined by NFC forum; in that state the tag has the
NDEF Capability Container, but does not contain any message
yet.

Tags in that state (correctly) return the NDEF technology,
but the documentation does not specify that the message
may be null.

Also, get rid of buggy getLastErrorCode and use
(cached) presence check value to determine if tag was
lost during read.

Change-Id: If4293428093024ba9cda5dd7c9979b8b06353234
2012-03-29 11:24:15 -07:00
Joe Malin
6a04325d5d DOC CHANGE: Spell Checker article
Change-Id: I839fc46cc58d68537bbdc0e3433c6329cdab2b04
2012-03-29 11:12:21 -07:00
George Mount
54e1553df6 Merge "Enable scrolling page while editing text." 2012-03-29 11:04:43 -07:00
George Mount
fcff68f87d Enable scrolling page while editing text.
Bug 6194113

Change-Id: I27841bcf0635b9c8579e6db081612fd9e506d4ca
2012-03-29 11:01:02 -07:00
Martijn Coenen
0c1c1eb1c8 Merge "Allow formatting a tag as NDEF without a message." 2012-03-29 10:56:49 -07:00
James Dong
7ae82ce1fd Removed obsolete opencore related comments
Change-Id: Ia05a889ea54a8f38d126508ffdcd09fe2a263538
2012-03-29 10:44:36 -07:00
Martijn Coenen
2976da0305 Allow formatting a tag as NDEF without a message.
Change-Id: I53a219eec17450b2d0ddc42556f0b930d9b34615
2012-03-29 10:09:19 -07:00
Nick Pelly
b956ef3a38 Merge "Use Application#registerLifecycleEvents() instead of a Fragment for Beam." 2012-03-29 09:58:42 -07:00
Nick Pelly
8ce7a27770 Use Application#registerLifecycleEvents() instead of a Fragment for Beam.
Fragments don't work as desired if called after life-cycle events
such as onDestory() or onSaveInstanceState().

The new approach doesn't work after onDestroy() either, but we can more
easily detect this now. For pre-JB apps, we will log an error, and for
JB and onwards we will throw.

Update documentation to make these rules clear, and to encourage
the use of a single Activity per API call, and to make the call
in onCreate().

Bug: 5199662
Bug: 5994691
Bug: 6034901
Bug: 6125297

Change-Id: Ib0dde6abfa44cd56c7ddc13ba0ad0e83bbe30058
2012-03-29 09:52:32 -07:00
Chet Haase
f1260aac0e Merge "Disable DisplayList properties pending fixes for AlphaAnimation" 2012-03-29 09:45:38 -07:00
Chet Haase
76240dafe8 Disable DisplayList properties pending fixes for AlphaAnimation
The new DisplayList properties design has ordering conflicts with the
way that alpha works with old animations (AlphaAnimation). This CL
disables DiksplayList properties while I'm working on a fix and some
more thorough tests for old animations-vs-DL properties in general.

Change-Id: I8f6893138f939171491c2ec3c889214ee55d17b7
2012-03-29 09:42:34 -07:00
Reto Meier
8842cddd7f am 20f394df: Docs: Added efficient downloads Android U class
* commit '20f394df4db02c492d7920f4f366b777451c2067':
  Docs: Added efficient downloads Android U class
2012-03-29 09:16:33 -07:00
Daniel Sandler
34461ef196 Merge "Fix NPE on tablets." 2012-03-29 09:03:34 -07:00
Daniel Sandler
6cf14a02bf Fix NPE on tablets.
Change-Id: I2128daac06988e4bae25ec48a874901ba731ebf9
2012-03-29 11:50:51 -04:00
Irfan Sheriff
8901de0af6 Merge "Add discovery broadcasts for p2p" 2012-03-29 08:41:15 -07:00
satok
b5caab633a Merge "Add document to SpellCheckerService" 2012-03-29 07:55:10 -07:00
George Mount
c11547cdf4 Merge "Support batching input changes to remove flicker." 2012-03-29 07:30:42 -07:00
Michael Jurka
7f2668c846 Preload recents on phones with hard nav keys
Also refactor recents code across Phone/Tablet

Change-Id: Id557c5cb0f7d9378f81c40b20511a5d98bf4078e
2012-03-29 06:28:42 -07:00
Daniel Sandler
0833082c8e Merge "Stop showing ADB and MTP/PTP/USB notifications at the top." 2012-03-29 06:09:13 -07:00
Daniel Sandler
970de33c8d Merge "The beginning of expanded notifications." 2012-03-29 06:09:02 -07:00
Jonathan Dixon
f3fda6962a Merge "Minor code tidying up in WebStorage & GeolocationPermission" 2012-03-29 03:47:36 -07:00
Jeff Brown
c97ed10ba8 Merge "Ensure pointer location view is attached to the policy thread." 2012-03-29 03:05:57 -07:00
Jeff Brown
70825161b5 Ensure pointer location view is attached to the policy thread.
Previously we created the PointerLocationView on whatever thread
happened to trigger the call to updateSettings().  There was
also some messiness around having to add or remove the view
while not holding mLock.

Now, just post the work to the policy handler.

This also makes it possible for us to use invalidate() instead
of postInvalidate() in PointerLocationView, which is more efficient.

Change-Id: I0646d7aeecffdc22f6ac56ae3ef951e7a12e2b93
2012-03-29 03:01:10 -07:00