90438 Commits

Author SHA1 Message Date
Eric Laurent
f526e1e048 New camera sounds
Added new camera shutter, video start and video stop sounds.

Bug 7377030.

Change-Id: If2215042fe812280122de40fb6de31c1541adb0c
2012-10-18 19:03:20 -07:00
Jeff Brown
4f0e969eab Reduce auto-brightness jitter.
Apply additional hysteresis controls to prevent repeated brightness
changes within a short interval.

Bug: 7266090
Change-Id: I73122457f6f3200c80188d3716ce2baf38f6a0a6
2012-10-18 18:45:55 -07:00
Fabrice Di Meglio
b003e28c1d Fix bug #7367429 Popup window should get its direction from it Anchor View if it can
- set the popup layout direction depending on the anchor view's layout direction
(if not defined before)
- make first pass of ViewRootImpl.performTraversals() and configuration update
not override any layout direction that could have been set before

Change-Id: I8e86ca805f0caf52c058d06aa7861df56fb862e6
2012-10-18 18:02:56 -07:00
Xavier Ducrohet
2533ece005 am 1a755c67: am ed5387be: am fcc93e73: (-s ours) am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit '1a755c67e00ddffcb5819ed9caa9096b7203aa3c':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:57:37 -07:00
Xavier Ducrohet
1a755c67e0 am ed5387be: am fcc93e73: (-s ours) am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit 'ed5387be7a78d6d54214683fe5bf8bc3039529b9':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:54:25 -07:00
Xavier Ducrohet
ed5387be7a am fcc93e73: (-s ours) am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit 'fcc93e734be9fe4608fb5a6818163104cdec3fb5':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:52:21 -07:00
Xavier Ducrohet
fcc93e734b am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit '135b5ba52431b147d51a81b807784009cd0510dd':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:48:57 -07:00
Jeff Brown
6669250034 Fix deadlock.
The display manager must never call into the activity manager with
its lock held.  Make it clear that the adapters are constructed
while holding the syncroot lock.

Bug: 7377631
Change-Id: I1557313cbb31dcad9b5a46919a88a5a1c1af3e9b
2012-10-18 17:37:39 -07:00
Kenny Root
cea3743499 Try to free cache before giving up on install
Try to get installd to free up cache before giving up when there is too
little space free.

Bug: 7232123
Change-Id: Ie3c8ca8dfc190abbb9a29a7baee31f32e9de7d69
2012-10-18 17:21:59 -07:00
Justin Koh
8f38f3c8d5 Add appliance mode handling for WiFi Direct invitation dialog.
Add appliance mode handling for WiFi Direct invitation dialog. Otherwise, no
way to accept connections.

Change-Id: Ic31b5bb25fed02848cf7c9e6418e21e9ab8b0cdd
2012-10-18 16:36:57 -07:00
Fabrice Di Meglio
4c2db5f2a5 am 8de328c9: am 45c77ca0: Merge "Fix missing @hide on ViewGroup.resolveLayoutParams()" into jb-mr1-dev
* commit '8de328c996a9f3a8f5ca3ea8e7c47421dd09b9aa':
  Fix missing @hide on ViewGroup.resolveLayoutParams()
2012-10-18 16:27:09 -07:00
Fabrice Di Meglio
8de328c996 am 45c77ca0: Merge "Fix missing @hide on ViewGroup.resolveLayoutParams()" into jb-mr1-dev
* commit '45c77ca0f6afd568ff6d149e17fb43c684e51722':
  Fix missing @hide on ViewGroup.resolveLayoutParams()
2012-10-18 16:24:08 -07:00
Fabrice Di Meglio
45c77ca0f6 Merge "Fix missing @hide on ViewGroup.resolveLayoutParams()" into jb-mr1-dev 2012-10-18 16:20:36 -07:00
Fabrice Di Meglio
1e0ed6b232 Fix missing @hide on ViewGroup.resolveLayoutParams()
- as we dont need this to be public

Change-Id: Ib8de262eec26d4785b13875d59599369b06a067d
2012-10-18 16:06:52 -07:00
Xavier Ducrohet
135b5ba524 Layoutlib: Read and close XML files as soon as possible. do not merge.
Because passing an InputStream to KXML does not close the
stream after the file has been parsed, the files are staying
locked on windows until the gc and finalizers are run.

This change preload the XML files and close their stream,
and then pass the content in a stream to the parser.

(cherry picked from commit c48b0b940d632b9862ff6aa32665e37fe9e50845)

Change-Id: I1b225454c166026c1aab6290c55ac8279e8862d5
2012-10-18 15:48:10 -07:00
Fabrice Di Meglio
2a902caab2 am 193229a5: am 0437302f: Merge "Fix the build" into jb-mr1-dev
* commit '193229a52a732f537e1f062426d1cc8d774bd2c7':
  Fix the build
2012-10-18 15:43:02 -07:00
Fabrice Di Meglio
193229a52a am 0437302f: Merge "Fix the build" into jb-mr1-dev
* commit '0437302f164f3eb1ba6a359ef5b3cd857facbbe4':
  Fix the build
2012-10-18 15:40:24 -07:00
Jeff Sharkey
8d9a1f66d9 More migration to Global settings.
Bug: 7375796
Change-Id: I3954ce141ad30073896090a28eee743ba15fd736
2012-10-18 15:38:14 -07:00
Fabrice Di Meglio
0437302f16 Merge "Fix the build" into jb-mr1-dev 2012-10-18 15:37:26 -07:00
Fabrice Di Meglio
3cb8d26bb0 Fix the build
- was missing a "make update-api" pass

Change-Id: I004a1650cf7946e0e8bd36d75dab81bbca80443c
2012-10-18 15:34:30 -07:00
Xavier Ducrohet
dc8ae9f758 am 26d76606: am d8149b03: Merge "Layoutlib: Read and close XML files as soon as possible." into jb-mr1-dev
* commit '26d76606aff48680fc61f9decaeddff3a568ca58':
  Layoutlib: Read and close XML files as soon as possible.
2012-10-18 15:32:57 -07:00
Xavier Ducrohet
26d76606af am d8149b03: Merge "Layoutlib: Read and close XML files as soon as possible." into jb-mr1-dev
* commit 'd8149b03a8676a49f6ca500eecafe79fadf046a7':
  Layoutlib: Read and close XML files as soon as possible.
2012-10-18 15:30:24 -07:00
Fabrice Di Meglio
6cb9d909f0 am 8c2bc7cc: am 07f85fec: Merge "Fix bug #7374285 GridLayout layout param margins are broken in RTL mode" into jb-mr1-dev
* commit '8c2bc7ccf16f201c10e1a4ffb66f66af63f85a91':
  Fix bug #7374285  GridLayout layout param margins are broken in RTL mode
2012-10-18 15:29:12 -07:00
Xavier Ducrohet
d8149b03a8 Merge "Layoutlib: Read and close XML files as soon as possible." into jb-mr1-dev 2012-10-18 15:27:39 -07:00
Fabrice Di Meglio
8c2bc7ccf1 am 07f85fec: Merge "Fix bug #7374285 GridLayout layout param margins are broken in RTL mode" into jb-mr1-dev
* commit '07f85fecdd9f13a617953c7377ff62b4133b4e30':
  Fix bug #7374285  GridLayout layout param margins are broken in RTL mode
2012-10-18 15:26:29 -07:00
Fabrice Di Meglio
07f85fecdd Merge "Fix bug #7374285 GridLayout layout param margins are broken in RTL mode" into jb-mr1-dev 2012-10-18 15:23:41 -07:00
Kenny Root
a3e90798b7 Robustly add symlink and add for non-primary users
Amazingly, some apps still don't use the nativeLibraryPath. So add a lib
symlink for non-primary users to fix that.

Also, there was an error when the symlink existed that it would give up.
This shouldn't really happen, but in that case, just remove it and
create a new one to be safe.

Also, move the downgrade code to the appropriate place. This downgrade
case triggered the above symlink existing bug.

Bug: 7318366
Bug: 7371571
Change-Id: Ia175b36d98f00bdc2f2433b909aafd524eb34d15
2012-10-18 15:12:09 -07:00
Svetoslav Ganov
83c57b5c52 am d7169b59: am 80ce3d87: Merge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered." into jb-mr1-dev
* commit 'd7169b5936721e8e985e6bf7f7e47095b8d6dcfa':
  Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered.
2012-10-18 15:05:26 -07:00
Romain Guy
7c25aab491 Defer layer rendering to avoid stalls
Bug #7326824

When a layer is taken out of the cache and initialized it gets cleared
to prepare it for future rendering. This triggers the following sequence
of operations:

glBindFramebuffer(layer.fbo)
attach texture storage to FBO
glClear()
glBindFramebuffer(defaultFbo)

The clear forces a resolve on tilers which stalls the CPU for a little
while, thus producing jank during animations. This change moves the
clear to the next frame when we know we will have to execute a resolve
anyway.

Change-Id: Ic1939c25df20ed65a4c48dc81ee549b2cd8b6ec3
2012-10-18 15:05:02 -07:00
Svetoslav Ganov
d7169b5936 am 80ce3d87: Merge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered." into jb-mr1-dev
* commit '80ce3d8746e9bb727ebf37a8963b96be84d82413':
  Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered.
2012-10-18 15:02:25 -07:00
Svetoslav Ganov
80ce3d8746 Merge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered." into jb-mr1-dev 2012-10-18 15:00:18 -07:00
Craig Mautner
9b56af302e am 84288ac1: am be2a4a5e: Merge "When removing windows remove from resize list." into jb-mr1-dev
* commit '84288ac10c96e674be6f0d662862d7c8dbd30de4':
  When removing windows remove from resize list.
2012-10-18 14:52:16 -07:00
Craig Mautner
84288ac10c am be2a4a5e: Merge "When removing windows remove from resize list." into jb-mr1-dev
* commit 'be2a4a5e629b31071a160d57188219d6a76011fa':
  When removing windows remove from resize list.
2012-10-18 14:49:31 -07:00
Craig Mautner
be2a4a5e62 Merge "When removing windows remove from resize list." into jb-mr1-dev 2012-10-18 14:46:13 -07:00
Craig Mautner
2d5618c221 Allow getDisplayContentLocked to return null...
... and check for null returns. This prevents DisplayContent objects
from containing null Display references.

Bug: 7368565 fixed.
Change-Id: I830fb4c1349204c366193657a95a92c48ccee66c
2012-10-18 14:16:43 -07:00
Xavier Ducrohet
c48b0b940d Layoutlib: Read and close XML files as soon as possible.
Because passing an InputStream to KXML does not close the
stream after the file has been parsed, the files are staying
locked on windows until the gc and finalizers are run.

This change preload the XML files and close their stream,
and then pass the content in a stream to the parser.

Change-Id: Iabe27989dc616ec9e7de88e52b1ec3af9f007f7c
2012-10-18 13:59:51 -07:00
Irfan Sheriff
83cfbfb684 am 877cc730: am b98c2fb0: Merge "Do a clean shutdown of p2p" into jb-mr1-dev
* commit '877cc73091e1a8bf0f63e50db7ea5700ec899696':
  Do a clean shutdown of p2p
2012-10-18 13:49:10 -07:00
Irfan Sheriff
877cc73091 am b98c2fb0: Merge "Do a clean shutdown of p2p" into jb-mr1-dev
* commit 'b98c2fb0998b2ad6bffe9c06dd358ba4705eaa4b':
  Do a clean shutdown of p2p
2012-10-18 13:46:35 -07:00
Irfan Sheriff
b98c2fb099 Merge "Do a clean shutdown of p2p" into jb-mr1-dev 2012-10-18 13:44:28 -07:00
Irfan Sheriff
62fa6de135 Do a clean shutdown of p2p
We were doing a lazy shutdown and stopping supplicant behind p2p's back.
Make sure we stop p2p, before we go ahead with shutting down.

Bug: 7368832
Change-Id: I941e9cd69d6f27532207d3dc00b03c55c0e6335c
2012-10-18 13:35:57 -07:00
Fabrice Di Meglio
fcc3348f61 Fix bug #7374285 GridLayout layout param margins are broken in RTL mode
- resolve layout params in ViewGroup when layout direction is changed
- layout param resolution is checking the previous layout direction to
check if we need to resolve

Change-Id: I70af2ad2b4ec83c2ec6c93b3ff445852500d1687
2012-10-18 13:24:03 -07:00
Chet Haase
b3aa6dbbe9 am eeb149ce: am 58e60c23: Merge "Track size changes correctly for static wallpapers" into jb-mr1-dev
* commit 'eeb149ce5659fec407652f61befe26111d9b3081':
  Track size changes correctly for static wallpapers
2012-10-18 13:02:04 -07:00
Chet Haase
eeb149ce56 am 58e60c23: Merge "Track size changes correctly for static wallpapers" into jb-mr1-dev
* commit '58e60c239f1d08a67a154d974cab9711a1dd7ecc':
  Track size changes correctly for static wallpapers
2012-10-18 13:00:13 -07:00
Chet Haase
58e60c239f Merge "Track size changes correctly for static wallpapers" into jb-mr1-dev 2012-10-18 12:57:23 -07:00
Jeff Hamilton
520afbd2dc am ba2c79a5: am e09aed49: Merge "Changes to support updating location providers." into jb-mr1-dev
* commit 'ba2c79a59fa9640d3f54c81f05f664a47337a05c':
  Changes to support updating location providers.
2012-10-18 12:50:34 -07:00
Jeff Hamilton
ba2c79a59f am e09aed49: Merge "Changes to support updating location providers." into jb-mr1-dev
* commit 'e09aed49e3498c9e0f3545ab97f816233d5eac66':
  Changes to support updating location providers.
2012-10-18 12:47:31 -07:00
Jeff Hamilton
e09aed49e3 Merge "Changes to support updating location providers." into jb-mr1-dev 2012-10-18 12:45:02 -07:00
Chet Haase
5f0d976b37 Track size changes correctly for static wallpapers
Previous logic compared the surface size to the bitmap size to determine
whether to reload the bitmap. This was based on an assumption that the bitmap
would be created at the same sizea s the surface. However, the process of
how those sizes get determined is different for surfaces and wallpapers, causing
an occasional issue where the bitmap gets reloaded frequently, every time the wallpaper
is asked to redraw, even though it always gets recreated at the same size.

New logic checks previous surface dimensions against current surface dimensions to
determine whether the bitmap should be reloaded; we really only want to reload
it when the surface size changes.

Issue #7373200 pause when toggling between All Apps and Home screen; Home button stays illuminated for a long time

Change-Id: I108777b72bd42616ad7cf8274af1b3e6b2ed94e7
2012-10-18 12:41:54 -07:00
Scott Main
ae19acd489 am d4161658: am e9b533bf: am 82f0ba79: am 4a6b6948: am 07322102: revise code sample for callback interface
* commit 'd4161658e964ce05aa400de4bc2632d7f4b804d4':
  revise code sample for callback interface
2012-10-18 12:36:28 -07:00
Xavier Ducrohet
13c21bc98e am ebbfdeee: am 5e42147a: am 64b3de29: (-s ours) am 434cd38f: Update layoutlib for jb mr1. do not merge.
* commit 'ebbfdeee38c84e6bb7faccce151b4a0b7d84dfe8':
  Update layoutlib for jb mr1. do not merge.
2012-10-18 12:33:40 -07:00