101723 Commits

Author SHA1 Message Date
Craig Mautner
ca0ac718cb Remove WindowManager messages from remote queue.
When a new IME is attached it is not enough to remove the
WindowManager messages from the local queue, but the ones in
the previous IME queue must also be removed.

Fixes bug 8263462.

Change-Id: I9e916c6052a83dc7691bcba0b6ab8328b9b7cc36
2013-03-14 09:43:02 -07:00
Chet Haase
2e417be5c4 Better fix for GL wallpaper creation
A previous fix made initializing GL work better by calling eglMakeCurrent()
prior to querying the max texture size. However, that fix worked by creating an eglSurface
earlier than we did before, which for some reason causes problems later if wallpaper creation
fails and we back off to a software solution.

This new fix creates a temporary pbuffer surface instead, which still allows us to make the
call to eglMakeCurrent() prior to querying the max texture size, but does not result in the
later canvas lock failure if the wallpaper creation fails anyway.

Issue #8319960 sluggish yakju animations over launcher

Change-Id: I394d672549260a354f03ad9fd1b9e1f9a161a371
2013-03-14 09:38:01 -07:00
Jeff Sharkey
34f37e7412 Merge "Handle finished bugreports, share from private." into jb-mr2-dev 2013-03-14 15:44:12 +00:00
Chet Haase
7534707b34 Merge "Ensure wallpaper creation succeeds" into jb-mr2-dev 2013-03-14 13:28:13 +00:00
Chet Haase
187e1e2fc7 Ensure wallpaper creation succeeds
ImageWallpaper was sometimes querying GL for a max texture size too early
(before the first call to eglMakeCurrent()). This problem caused the wallpaper
to then get created in software, resulting in noticeably slower performance
when the wallpaper was visible.

This fix ensures that the
makeCurrent happens before the query, ensuring that wallpapers of the right
size actually get created instead of failing due to this error at creation time.

Issue #8319960 sluggish yakju animations over launcher

Change-Id: I12a3eba9f1818bdf544691e0727fe12f7e820651
2013-03-14 06:24:32 -07:00
John Spurlock
ac3dfb3880 Merge "WindowManager.LayoutParams docs cleanup." into jb-mr2-dev 2013-03-14 13:08:06 +00:00
Guang Zhu
32abd66ebd change how app launch is tested
new approach:
  * for each app
    * initial launch
    * sleep 7.5s
    * do 10 iterations: launch app with force stop + sleep in between
    * report average of 10 launches

Change-Id: I9e68975325aa83af35620d727823f5c072aac488
2013-03-13 23:24:31 -07:00
Scott Main
0a93dc9ad8 am 9b92e915: am baf974fa: am b608915d: am af1bd23b: am e8319257: Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d
* commit '9b92e9156dc762cd7802b5126b7a0f56b4c58897':
  cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f
2013-03-13 23:10:56 -07:00
Scott Main
81b294554e am c597f5b6: am bbc13661: am ed3f55f1: am 5f00c3c7: am d0d8f8a9: update IO announcement to remove registration
* commit 'c597f5b69b84943da7820d8d2233f958ed40ab5c':
  update IO announcement to remove registration
2013-03-13 23:10:51 -07:00
Mathias Agopian
b1fa4f92dc Merge "fix CloseGuard usage in Surface" into jb-mr2-dev 2013-03-14 02:13:13 +00:00
Chet Haase
107a48236a Fix erroneous requestLayout-during-layout issues
In general, calling requestLayout() during layout is a Bad Idea.
However, ListView does this during the normal course of its layout, as it
removes and adds views during layout. However, it handles this properly,
ensuring that the views in its hierarchy are all measured and laid out
properly by the time its layout process is done.

A previous fix to the request-during-layout issue attempted to distinguish
the correct from incorrect behavior by checking whether views had been properly
laid out since the requestLayout() call, and making sure the views were
visible in the hierarchy (parented, attached, and !GONE), since otherwise
the views would not be laid out, the flags wouldn't be cleared, and requests
are superfluous anyway. However, this logic only checked whether the
requesting views were GONE, whereas the check should include the entire
parent hierarchy of the views (since a view with a GONE parent is still not
visible to the user).

This fix adds that additional check and cleans up other parts of the previous
code, such as not bothering to post() requests that occur during the second
layout pass unless those requests are also valid (coming from visible views).

Issue #8370042 Path seems to be in an infinite layout loop

Change-Id: I7aaf701229adfeee349a9a7c9ec14585735ba9f6
2013-03-13 18:23:44 -07:00
Mathias Agopian
86e1bc7305 fix CloseGuard usage in Surface
Bug: 8375415
Change-Id: I03e9f318c2ad586f4bd93b280557ada66121d275
2013-03-13 18:21:11 -07:00
Scott Main
9b92e9156d am baf974fa: am b608915d: am af1bd23b: am e8319257: Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed0
* commit 'baf974fa5aaf9977fa1dc26a33ada4e7d68768c0':
  cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f
2013-03-13 17:23:20 -07:00
Scott Main
c597f5b69b am bbc13661: am ed3f55f1: am 5f00c3c7: am d0d8f8a9: update IO announcement to remove registration
* commit 'bbc13661504ef7cc8c397bd05f1ba33db619c77a':
  update IO announcement to remove registration
2013-03-13 17:23:17 -07:00
Scott Main
baf974fa5a am b608915d: am af1bd23b: am e8319257: Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f" into
* commit 'b608915d5dd1bb81c45b6f1406dd2e41f2e7c6cf':
  cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f
2013-03-13 17:20:57 -07:00
Scott Main
bbc1366150 am ed3f55f1: am 5f00c3c7: am d0d8f8a9: update IO announcement to remove registration
* commit 'ed3f55f12d6dd702fed9d9ba21f5d2e333382e44':
  update IO announcement to remove registration
2013-03-13 17:20:54 -07:00
Scott Main
b608915d5d am af1bd23b: am e8319257: Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f" into jb-mr1.1-docs
* commit 'af1bd23bf55efc456727874f39f7e35d49ec2a85':
  cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f
2013-03-13 17:19:32 -07:00
Scott Main
ed3f55f12d am 5f00c3c7: am d0d8f8a9: update IO announcement to remove registration
* commit '5f00c3c7d70b33ad360e48908e23c796fced43bb':
  update IO announcement to remove registration
2013-03-13 17:19:28 -07:00
Scott Main
af1bd23bf5 am e8319257: Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f" into jb-mr1.1-docs
* commit 'e83192577fbc1fc6e0a8d991f07be506605fa496':
  cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f
2013-03-13 17:18:20 -07:00
Scott Main
5f00c3c7d7 am d0d8f8a9: update IO announcement to remove registration
* commit 'd0d8f8a9d464e1bb2385639c2f70c219d8e605e1':
  update IO announcement to remove registration
2013-03-13 17:18:17 -07:00
Scott Main
e83192577f Merge "cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780 docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f" into jb-mr1.1-docs 2013-03-14 00:16:11 +00:00
Scott Main
d0d8f8a9d4 update IO announcement to remove registration
Change-Id: I0d9d984b90db1ee94b8b282fe816e95a6ec43094
2013-03-13 17:15:01 -07:00
Jim Miller
6d4dac7423 Merge "Fix bug where Keyguard's emergencydialer wasn't being launched with a userid." into jb-mr2-dev 2013-03-14 00:00:15 +00:00
Robert Greenwalt
ad7a1d564d Merge "Add logging to track down bug" into jb-mr2-dev 2013-03-13 23:59:00 +00:00
Mathias Agopian
065a118e0e Merge "Try to keep the same native Surface object when reading a parcel" into jb-mr2-dev 2013-03-13 23:54:34 +00:00
Joe Fernandez
8119f871d8 cherrypick from jb-mr1.1-dev Change-Id: I9a7d106e73ca3553b8541def0a143911f4c44780
docs: SDK Platform image JB-MR1.1 and Support Library r12 Release Notes
formerly Change-Id: I54a58649c226b61c3707d0a5385fa97ed029e32f

Change-Id: Id5556ff25a41780703ab0f0b7f5b04dcb228ad87
2013-03-13 16:50:28 -07:00
Romain Guy
03df403372 Merge "Less aggressive glyphs precaching" into jb-mr2-dev 2013-03-13 23:46:34 +00:00
Jeff Sharkey
02ffba940c Handle finished bugreports, share from private.
Show notification when a bugreport is finished, letting the user
launch a SEND_MULTIPLE intent to share them.  Add dialog that warns
user about contents before sharing.  Since bugreports are now stored
in private app data of the Shell app, use FileProvider to build Uris
that we can grant others access to.

Define BUGREPORT_FINISHED as being a protected broadcast.  Delete
older bugreports automatically to reclaim disk space.  Migrate any
Intent extras to ClipData when building PendingIntents.

Add --receiver-permission support to am shell command.

Bug: 7005318
Change-Id: If6c607dbcf137362d5887eac482ff7391563890f
2013-03-13 16:42:38 -07:00
Robert Greenwalt
5ddeb9ed70 Add logging to track down bug
bug:8377625
Change-Id: Ifd0c4081a2f1238dbbc39c6904b993e2fb95455a
2013-03-13 16:38:46 -07:00
Jaikumar Ganesh
980ef31f95 Merge changes I1aab1dbc,I83c92971,I47337efd into jb-mr2-dev
* changes:
  Revert "Add new sensor types."
  Revert "Remove spurious @Override."
  Revert "Add a minimum size for the event pools."
2013-03-13 23:20:31 +00:00
Romain Guy
bd3055f95e Less aggressive glyphs precaching
The renderer used to pre-cache glyphs at record time. This then changed
to pre-caching at the beginning of every frame. This unfortunately entails
a lot of duplicate work on every frame, which amounts to 0.5 to 1ms in
some stock applications.

This change is somewhere in the middle: pre-caching happens the first
time a DrawTextOp is deferred or every time the screen-space transform
is different from the last pre-caching operation.

Change-Id: Id6d9e2599d90a5b75010b0f0a28746befbf3c205
2013-03-13 16:14:47 -07:00
Mathias Agopian
c3b9cd6351 Try to keep the same native Surface object when reading a parcel
If the IGraphicBufferProducers are the same, it's really the same
window, so we keep the same native object.

Bug: 8322406
Change-Id: I96d55a90e6656a05d4e32ae22945226c350b5747
2013-03-13 16:07:57 -07:00
Dianne Hackborn
5d122d96a5 Better documentation on permission checking in ContentProvider.call().
Change-Id: I4a85fd17362c2a32e2b1365fcc07ef0336521616
2013-03-13 15:48:12 -07:00
Jaikumar Ganesh
1aab1dbca5 Revert "Add new sensor types."
This reverts commit bc03a348d78326dee779a8ecc325799c9fceac98.
2013-03-13 15:00:21 -07:00
Jaikumar Ganesh
83c9297139 Revert "Remove spurious @Override."
This reverts commit 6e544fd4ca82a3f415c4cf6ca70eedea5112015e.
2013-03-13 15:00:04 -07:00
Jaikumar Ganesh
47337efd63 Revert "Add a minimum size for the event pools."
This reverts commit c0ce7eeb481540e24bc45f52e604df923c507043.
2013-03-13 14:59:57 -07:00
Mathias Agopian
2530b32de5 Merge "remove uses of Surface in favor of IGraphicBufferProducer" into jb-mr2-dev 2013-03-13 21:42:35 +00:00
Romain Guy
8be3bc4a3d Merge "Prevent infinite loop when trimming the path cache" into jb-mr2-dev 2013-03-13 21:33:47 +00:00
Romain Guy
0f809f3b79 Prevent infinite loop when trimming the path cache
Change-Id: I04b5fa498336068f997c68d8613b35a99f67adbe
2013-03-13 14:32:45 -07:00
Craig Mautner
dc50ba187e Merge "Put debug back in for b/b8263462." into jb-mr2-dev 2013-03-13 21:20:22 +00:00
John Spurlock
33291d8d71 WindowManager.LayoutParams docs cleanup.
Fix a few things found in our "Constants" section.
 - Close unclosed links.
 - Avoid periods inside parens for summary sentences.
 - Lowercasing in a few places for consistency.

Change-Id: I9aa689fd980b373614dae7c4f8257e0786d2340a
2013-03-13 14:45:14 -04:00
Craig Mautner
6efb4c746f Put debug back in for b/b8263462.
Previous CL did not fix.

Change-Id: Ief9e8f519480fa41248d53e5b0187c9657f00b79
2013-03-13 11:12:26 -07:00
Przemyslaw Szczepaniak
24943bf19d Failing Text-To-Speech CTS tests fix.
Fix for failing android.speech.tts.cts.TextToSpeechServiceTest#testSynthesizeToFile.
In test env, ParcelFileDescriptor instance may be EXACTLY the same one that client uses.
And if it's closed by a client, then service is prevented from writing anything to the output.

Bug: 8377754
Change-Id: I7f95aae1b877e543ab02d3c548b29537aa852a89
2013-03-13 15:50:00 +00:00
Baligh Uddin
f3d5de8246 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-03-13 15:00:19 +00:00
Bjorn Bringert
133e2db873 Merge "Hide VOICE_ASSIST intent DO NOT MERGE" into jb-mr2-dev 2013-03-13 13:28:01 +00:00
Jim Miller
86277467ee Merge "Prevent momentary switch of keyguard to landscape" into jb-mr2-dev 2013-03-13 02:03:28 +00:00
Jim Miller
450a3a1697 Fix bug where Keyguard's emergencydialer wasn't being launched with a userid.
Fixes bug 8374423

Change-Id: Iafbcefa431105202b68b3444cb1b42271fe0ccda
2013-03-12 18:54:44 -07:00
Jim Miller
8e26cd8687 Prevent momentary switch of keyguard to landscape
This fixes a bug where keyguard was created without setting
the preferred orientation.  The result is it would temporarily
assume the orientation of the device after being hidden.

The fix sets the flag when the keyguard view hierarchy is created
rather than when visibility changes.

Fixes bug 8124979

Change-Id: Ic54a185e4f51f79f2bb7fbc5ffc6992641e89132
2013-03-12 18:45:28 -07:00
Mathias Agopian
4a05f43698 remove uses of Surface in favor of IGraphicBufferProducer
Change-Id: I2ec590eed03c76a084ee6b0af362a3ca6476bf9f
2013-03-12 18:43:34 -07:00
Justin Koh
c0ce7eeb48 Add a minimum size for the event pools.
Add a minimum size for the event pools for devices which don't have sensors.
Otherwise the system server crash loops on boot.

Change-Id: Ic51c6fc26c8779d9f435f358d4274148a2ddbfb3
2013-03-12 18:06:35 -07:00