98037 Commits

Author SHA1 Message Date
Jean-Michel Trivi
ed2d10dab7 Updates to remote control client (un)registration
Iterate over the remote control stack from top to bottom
 when (un)registering a remote control client (RCC).
When unregistering an RCC, stop traversing the stack when
 match found. If match was at top of the stack, update
 the remote control display (RCD).

Change-Id: If64acf102bdf328085d707f9e0f7e86cf4d4001a
2012-12-27 09:43:46 -08:00
Jean-Michel Trivi
bc83425c11 Fix stack traversal order when removing or adding media button receiver
Iterate over the media button receiver stack from top to bottom
 when removing or adding a receiver.
Update comments and name to reflect that the corresponding methods
 must be synchronized on audio focus and remote control.

Change-Id: I1fb7f682a999aa66d92d56ca6ecd8b37eeff8ac9
2012-12-26 16:18:24 -08:00
Jean-Michel Trivi
c30f45b97f Add comments in AudioService focus and media button stack traversal
Add comments to reflect where and why the audio focus and media
 button stacks are traversed with an iterator, which traverses
 the stack from bottom to top.

Change-Id: I462a522195e742295d13eff5fc727e59a5d7e830
2012-12-26 10:46:29 -08:00
Craig Mautner
2d1eb74a8e Merge "Save most recent thumbnail Bitmap for reuse." 2012-12-20 16:45:06 -08:00
Craig Mautner
b12428a128 Save most recent thumbnail Bitmap for reuse.
This keeps Recents from taking two identical screenshots, one for
the Recents thumbnail and one for the pause activity thumbnail.

Fixes bug 7351766.

Change-Id: Ia4d12802151666ec36e4d9b395cf10e1e02dc37f
2012-12-20 16:24:58 -08:00
The Android Open Source Project
a8e4314604 am ac0fd124: (-s ours) Reconcile with jb-mr1.1-release - do not merge
* commit 'ac0fd124133b04f555047df8804ecc46ef3751e9':
2012-12-20 15:50:06 -08:00
The Android Open Source Project
ac0fd12413 Reconcile with jb-mr1.1-release - do not merge
Change-Id: I47c257db0d5a21fe4f6592924ebd47bd8578d5ea
2012-12-20 15:46:28 -08:00
Raph Levien
0925131933 Merge "Suppress horizontal scrolling with trailing blanks" 2012-12-20 15:46:23 -08:00
Raph Levien
afe8e9b6d0 Suppress horizontal scrolling with trailing blanks
The existing behavior of EditText is that trailing blanks can cause a
line to exceed the layout width, causing the cursor to extend past the
line, which in turn causes horizontal scrolling. This patch clamps the
cursor to the layout width in the non-scrolling case, which makes the
spaces effectively invisible when they're at the end of the line, but at
least suppresses the scrolling.

The clamping only works reliably in left-to-right alignments, so this
patch checks for than and only enables the clamping in those cases.

Fix for bug 7699295.

Change-Id: I22bc4e6c9ded3d7716edfcf10dd2b5c31a5da9de
2012-12-20 15:42:47 -08:00
The Android Automerger
345f7fcfaf merge in jb-mr1.1-release history after reset to jb-mr1.1-dev 2012-12-20 14:31:16 -08:00
Victoria Lease
d07d7fd016 am 5ddfa247: am fc56015b: Merge "Possible leak in android_emoji_EmojiFactory_newInstance"
* commit '5ddfa24776f971d45e5fc80189abb3edd715818d':
  Possible leak in android_emoji_EmojiFactory_newInstance
2012-12-20 13:49:46 -08:00
Victoria Lease
5ddfa24776 am fc56015b: Merge "Possible leak in android_emoji_EmojiFactory_newInstance"
* commit 'fc56015bd3d86e470fdf3ac8449776809124875e':
  Possible leak in android_emoji_EmojiFactory_newInstance
2012-12-20 13:47:07 -08:00
Dirk Dougherty
9ed5fd4cb7 am b7f4bf36: am f6c71644: am e487e537: am 0402b653: Merge "Doc change: point developer landing page featured content to blog post." into jb-mr1-dev
* commit 'b7f4bf3604df8f3181931835a5dfc414c3072749':
  Doc change: point developer landing page featured content to blog post.
2012-12-20 13:29:38 -08:00
Scott Main
b23955be38 am d1ecaf39: am 15423b20: am 226e973f: am 8afb3ba4: Merge "docs: SDK r21.0.1 Release Notes" into jb-mr1-dev
* commit 'd1ecaf399d60395c4af4f53edba6de348004b6d3':
  docs: SDK r21.0.1 Release Notes
2012-12-20 13:29:33 -08:00
Dirk Dougherty
b7f4bf3604 am f6c71644: am e487e537: am 0402b653: Merge "Doc change: point developer landing page featured content to blog post." into jb-mr1-dev
* commit 'f6c71644dce2a93c386a1803a46ca7d99a9ae543':
  Doc change: point developer landing page featured content to blog post.
2012-12-20 12:55:39 -08:00
Dirk Dougherty
f6c71644dc am e487e537: am 0402b653: Merge "Doc change: point developer landing page featured content to blog post." into jb-mr1-dev
* commit 'e487e537b0fcc5b9f972c1e247fd1b019150fa05':
  Doc change: point developer landing page featured content to blog post.
2012-12-20 12:53:16 -08:00
Dirk Dougherty
e487e537b0 am 0402b653: Merge "Doc change: point developer landing page featured content to blog post." into jb-mr1-dev
* commit '0402b65327aa568c7ea706879d9ddb222436aa87':
  Doc change: point developer landing page featured content to blog post.
2012-12-20 12:49:22 -08:00
Dirk Dougherty
0402b65327 Merge "Doc change: point developer landing page featured content to blog post." into jb-mr1-dev 2012-12-20 12:46:00 -08:00
Dirk Dougherty
0f08867b93 Doc change: point developer landing page featured content to blog post.
Change-Id: I8201d223b4b2c28227c7aac3499a81d29c3ec9e3
2012-12-20 12:40:22 -08:00
Scott Main
d1ecaf399d am 15423b20: am 226e973f: am 8afb3ba4: Merge "docs: SDK r21.0.1 Release Notes" into jb-mr1-dev
* commit '15423b204d1dfc6ef5632f26166d445bf9cef2f5':
  docs: SDK r21.0.1 Release Notes
2012-12-20 12:17:33 -08:00
Scott Main
15423b204d am 226e973f: am 8afb3ba4: Merge "docs: SDK r21.0.1 Release Notes" into jb-mr1-dev
* commit '226e973f3946778078840db46274a2c34b30a6b0':
  docs: SDK r21.0.1 Release Notes
2012-12-20 12:15:25 -08:00
Scott Main
226e973f39 am 8afb3ba4: Merge "docs: SDK r21.0.1 Release Notes" into jb-mr1-dev
* commit '8afb3ba4dac2f3e42884cb40f8fa407e072382e3':
  docs: SDK r21.0.1 Release Notes
2012-12-20 12:12:03 -08:00
Scott Main
732e2de1a0 am 0aa3df58: am c3261bd8: am 76f7774d: am f6e55123: Merge "docs: NDK r8d Release Notes" into jb-mr1-dev
* commit '0aa3df583f81de90078258781a95fff40237c499':
  docs: NDK r8d Release Notes
2012-12-20 12:11:02 -08:00
Victoria Lease
fc56015bd3 Merge "Possible leak in android_emoji_EmojiFactory_newInstance" 2012-12-20 12:09:48 -08:00
Scott Main
0aa3df583f am c3261bd8: am 76f7774d: am f6e55123: Merge "docs: NDK r8d Release Notes" into jb-mr1-dev
* commit 'c3261bd8402b13c4c4ac8842ff7eaa51a9c8c33e':
  docs: NDK r8d Release Notes
2012-12-20 12:09:13 -08:00
Scott Main
c3261bd840 am 76f7774d: am f6e55123: Merge "docs: NDK r8d Release Notes" into jb-mr1-dev
* commit '76f7774db8e8cba1ad06018f42edf21b8c77131c':
  docs: NDK r8d Release Notes
2012-12-20 12:07:58 -08:00
Scott Main
76f7774db8 am f6e55123: Merge "docs: NDK r8d Release Notes" into jb-mr1-dev
* commit 'f6e551239017745f88893acaf38b3bac097aceb1':
  docs: NDK r8d Release Notes
2012-12-20 12:04:57 -08:00
Scott Main
8afb3ba4da Merge "docs: SDK r21.0.1 Release Notes" into jb-mr1-dev 2012-12-20 12:03:53 -08:00
Scott Main
f6e5512390 Merge "docs: NDK r8d Release Notes" into jb-mr1-dev 2012-12-20 12:02:29 -08:00
Andrew Hsieh
d20df4de9a am 38dd88ef: am 62ec9588: Merge "Fix typo"
* commit '38dd88ef6cecbbe0e344b64741990735f96fbb0c':
  Fix typo
2012-12-20 11:07:08 -08:00
Glenn Kasten
8548749404 am 2326be4f: am ba97ad2a: Merge "Leak in ToneGenerator_native_setup"
* commit '2326be4fa9cb3b523a3ea13875e91bdc437da33d':
  Leak in ToneGenerator_native_setup
2012-12-20 11:07:04 -08:00
Andrew Hsieh
38dd88ef6c am 62ec9588: Merge "Fix typo"
* commit '62ec9588650327f4fc3f367097b9549635229239':
  Fix typo
2012-12-20 11:03:46 -08:00
Glenn Kasten
2326be4fa9 am ba97ad2a: Merge "Leak in ToneGenerator_native_setup"
* commit 'ba97ad2a6740d5d38326c0c2ce8d5a685fab30bf':
  Leak in ToneGenerator_native_setup
2012-12-20 11:03:33 -08:00
Stephen Hines
696a5e04ea Merge "We can only optimize bitmaps that have USAGE_SHARED." 2012-12-20 10:25:04 -08:00
Craig Mautner
5b88cd7218 Merge "Fade recents thumbnail to transparent earlier." 2012-12-20 09:48:37 -08:00
Dirk Dougherty
fa0f9be8c5 am 0943862c: am edafbe79: am a232fa3f: am 0f0d9b32: Merge "Doc change: update develop landing page." into jb-mr1-dev
* commit '0943862cf5025c74f5343ded76c8d6aaa0abeaa1':
  Doc change: update develop landing page.
2012-12-20 09:42:45 -08:00
Dirk Dougherty
0943862cf5 am edafbe79: am a232fa3f: am 0f0d9b32: Merge "Doc change: update develop landing page." into jb-mr1-dev
* commit 'edafbe798e7daf18a109fa234b11fe2351c8fe27':
  Doc change: update develop landing page.
2012-12-20 09:41:02 -08:00
Dirk Dougherty
edafbe798e am a232fa3f: am 0f0d9b32: Merge "Doc change: update develop landing page." into jb-mr1-dev
* commit 'a232fa3f831a9ae104c492d321be580ea0c7770e':
  Doc change: update develop landing page.
2012-12-20 09:38:56 -08:00
Dirk Dougherty
a232fa3f83 am 0f0d9b32: Merge "Doc change: update develop landing page." into jb-mr1-dev
* commit '0f0d9b32cb41acc2e7b0b5556c64b366f5f08709':
  Doc change: update develop landing page.
2012-12-20 09:34:47 -08:00
Craig Mautner
321bdf52a1 Fade recents thumbnail to transparent earlier.
- Reduce the gpu load by fading the recents thumbnail to an alpha of
0.0 before the remaining animations are completed. When alpha hits
0 the gpu treats the layer as hidden and can render the remaining
layers faster.

- Refactoring of animations to:
  o Remove unused setInterpolator() calls on AnimationSet constituents.
  o Remove unnecessary setFillBefore() calls.
  o Consolidate setDuration() calls into AnimationSet.
  o Create Interpolators once.
  o Group animation set calls with their Animations.
  o Use same animation timing and Interpolator for all animations.

This is a partial fix for 7729214.

Change-Id: Ic3c47bcf7c84944128effb699efcdd1f89200fc4
2012-12-20 09:32:02 -08:00
Dirk Dougherty
0f0d9b32cb Merge "Doc change: update develop landing page." into jb-mr1-dev 2012-12-20 09:28:37 -08:00
Stephen Hines
d34dc85f8f We can only optimize bitmaps that have USAGE_SHARED.
Change-Id: I1149a9e25738da5ee348e3c18e7fdd7c1948e89e
2012-12-19 19:34:17 -08:00
Craig Mautner
a2303750fb Merge changes I1dfe21e5,Ia0218bf8
* changes:
  Clean up warnings.
  Minor refactorings.
2012-12-19 16:40:18 -08:00
Scott Main
1d25430c95 am f36ced0a: am a6cf72d8: am 18ac5570: am db49d317: Merge "Doc change: add mention of localized promo graphics." into jb-mr1-dev
* commit 'f36ced0a8c38098eff5dc3652b35b4d527d02aab':
  Doc change: add mention of localized promo graphics.
2012-12-19 16:23:42 -08:00
Scott Main
f36ced0a8c am a6cf72d8: am 18ac5570: am db49d317: Merge "Doc change: add mention of localized promo graphics." into jb-mr1-dev
* commit 'a6cf72d8ce00b27f00c59ccd34b775cdaf92341e':
  Doc change: add mention of localized promo graphics.
2012-12-19 16:21:38 -08:00
Scott Main
a6cf72d8ce am 18ac5570: am db49d317: Merge "Doc change: add mention of localized promo graphics." into jb-mr1-dev
* commit '18ac55709de6714459c89086b6924bb697470999':
  Doc change: add mention of localized promo graphics.
2012-12-19 16:19:11 -08:00
Scott Main
18ac55709d am db49d317: Merge "Doc change: add mention of localized promo graphics." into jb-mr1-dev
* commit 'db49d317291861d8f885f3510f9b70b31e592f11':
  Doc change: add mention of localized promo graphics.
2012-12-19 16:15:08 -08:00
Scott Main
db49d31729 Merge "Doc change: add mention of localized promo graphics." into jb-mr1-dev 2012-12-19 16:12:18 -08:00
Andrew Hsieh
62ec958865 Merge "Fix typo" 2012-12-19 16:10:12 -08:00
Marco Nelissen
eca3eb5983 Merge "Don't create weird ByteBuffers" 2012-12-19 15:40:47 -08:00