OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Reduce screen on/off latency." into jb-mr1-dev
Jeff Brown [Mon, 22 Oct 2012 17:36:58 +0000 (10:36 -0700)]
Merge "Reduce screen on/off latency." into jb-mr1-dev

11 years agoMerge "Fix issue #7353900: Brief flash of home screen while dream starts on lock...
Dianne Hackborn [Mon, 22 Oct 2012 17:29:02 +0000 (10:29 -0700)]
Merge "Fix issue #7353900: Brief flash of home screen while dream starts on lock screen." into jb-mr1-dev

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr1-dev
Baligh Uddin [Mon, 22 Oct 2012 17:28:21 +0000 (10:28 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-mr1-dev

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 22 Oct 2012 16:44:44 +0000 (09:44 -0700)]
Import translations. DO NOT MERGE

Change-Id: I02aa0e6fa545b325429029f58d19247b9d3f3373
Auto-generated-cl: translation import

11 years agoMerge "Properly show emoji in the notification ticker." into jb-mr1-dev
Daniel Sandler [Mon, 22 Oct 2012 15:16:17 +0000 (08:16 -0700)]
Merge "Properly show emoji in the notification ticker." into jb-mr1-dev

11 years agoMerge "Show brightness dialog for all users." into jb-mr1-dev
Daniel Sandler [Mon, 22 Oct 2012 15:16:13 +0000 (08:16 -0700)]
Merge "Show brightness dialog for all users." into jb-mr1-dev

11 years agoMerge "New lockscreen: allow search gesture from nav bar." into jb-mr1-dev
Daniel Sandler [Mon, 22 Oct 2012 14:59:17 +0000 (07:59 -0700)]
Merge "New lockscreen: allow search gesture from nav bar." into jb-mr1-dev

11 years agoMerge "Fix crashes when quickly adding and removing users" into jb-mr1-dev
Amith Yamasani [Sun, 21 Oct 2012 14:44:45 +0000 (07:44 -0700)]
Merge "Fix crashes when quickly adding and removing users" into jb-mr1-dev

11 years agoam 454248f0: am e25c241b: am 6faae9ad: Doc change: remove a few third-party refs...
Dirk Dougherty [Sun, 21 Oct 2012 00:55:38 +0000 (17:55 -0700)]
am 454248f0: am e25c241b: am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.

* commit '454248f0d25cfb7e4131acca07a4c38acb74934d':
  Doc change: remove a few third-party refs. Fix broken image ref.

11 years agoam e25c241b: am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image...
Dirk Dougherty [Sun, 21 Oct 2012 00:52:41 +0000 (17:52 -0700)]
am e25c241b: am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.

* commit 'e25c241bddaf1e838b95c924976861733c7042bf':
  Doc change: remove a few third-party refs. Fix broken image ref.

11 years agoam 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.
Dirk Dougherty [Sun, 21 Oct 2012 00:51:00 +0000 (17:51 -0700)]
am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.

* commit '6faae9ad08670c30379fed451e73171f7d1b6ac8':
  Doc change: remove a few third-party refs. Fix broken image ref.

11 years agoDoc change: remove a few third-party refs. Fix broken image ref.
Dirk Dougherty [Sun, 21 Oct 2012 00:32:05 +0000 (17:32 -0700)]
Doc change: remove a few third-party refs. Fix broken image ref.

Change-Id: Ife1826f9c7d409e131b50e7178eba22f962d4219

11 years agoMerge "Fix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolve...
Fabrice Di Meglio [Sat, 20 Oct 2012 02:14:29 +0000 (19:14 -0700)]
Merge "Fix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolveMarginsRelative failures on JO" into jb-mr1-dev

11 years agoFix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolveMargins...
Fabrice Di Meglio [Sat, 20 Oct 2012 01:46:43 +0000 (18:46 -0700)]
Fix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolveMarginsRelative failures on JO

This was a regression introduced by a previous CL.

- we actually need to let the layout params resolution goes all the time
as we dont have any "isResolved" state and a public API for doing its reset thru ViewGroup.

The current implementation is simple and works even if it is doing sometimes a bit more
than it should really do. This is a well conscious tradeoff.

Change-Id: I5c4d532331b3970dfe88f016bc305cbc4a0d83f1

11 years agoReduce screen on/off latency.
Jeff Brown [Sat, 20 Oct 2012 00:04:30 +0000 (17:04 -0700)]
Reduce screen on/off latency.

Reduce latency of screen on/off and improve how it is synchronized with
backlight changes.  Screen state changes are no longer posted to vsync
which should save time.  What's more, the state change occurs on a
separate thread so we no longer run the risk of blocking the Looper
for a long time while waiting for the screen to turn on or off.

Bug: 7382919
Bug: 7139924
Change-Id: I375950d1b07e22fcb94efb82892fd817e2f780dc

11 years agoFix issue #7353900: Brief flash of home screen while dream starts on lock screen.
Dianne Hackborn [Fri, 19 Oct 2012 00:46:00 +0000 (17:46 -0700)]
Fix issue #7353900: Brief flash of home screen while dream starts on lock screen.

Not very clean, this has a special hack in the window manager to
redo layout when a dream window is shown.  After MR1 we should clean
this up (and the various other special dream hacks).

Change-Id: Ic1a5a2b10a0a07b4a5dccdbf0736b614ec06dd4a

11 years agoMerge changes Ie3c8ca8d,Ia175b36d into jb-mr1-dev
Kenny Root [Fri, 19 Oct 2012 23:37:43 +0000 (16:37 -0700)]
Merge changes Ie3c8ca8d,Ia175b36d into jb-mr1-dev

* changes:
  Try to free cache before giving up on install
  Robustly add symlink and add for non-primary users

11 years agoFix crashes when quickly adding and removing users
Amith Yamasani [Thu, 18 Oct 2012 04:16:52 +0000 (21:16 -0700)]
Fix crashes when quickly adding and removing users

Make USER_REMOVED an ordered broadcast and send it before the user's
state is completely removed from the system. This gives services the
opportunity to clean up their state, while still having access to the
user's directory and UserInfo object (such as serial number).

Tell SyncManager to skip over dying/partially created users.

Improve UserManager tests, waiting for users to be removed fully.

Bug: 7382252

Change-Id: I93cfb39c9efe6f15087bf83c569a2d154ef27168

11 years agoMerge "New camera sounds" into jb-mr1-dev
Eric Laurent [Fri, 19 Oct 2012 23:13:07 +0000 (16:13 -0700)]
Merge "New camera sounds" into jb-mr1-dev

11 years agoMerge "Cannot pan in browser if magnification is enabled." into jb-mr1-dev
Svetoslav Ganov [Fri, 19 Oct 2012 21:46:40 +0000 (14:46 -0700)]
Merge "Cannot pan in browser if magnification is enabled." into jb-mr1-dev

11 years agoMerge "Document immutable requirement of SharedPreferences return objects" into jb...
Christopher Tate [Fri, 19 Oct 2012 21:38:04 +0000 (14:38 -0700)]
Merge "Document immutable requirement of SharedPreferences return objects" into jb-mr1-dev

11 years agoNew lockscreen: allow search gesture from nav bar.
Daniel Sandler [Fri, 19 Oct 2012 20:44:15 +0000 (16:44 -0400)]
New lockscreen: allow search gesture from nav bar.

Show a lights-out pip if home is invisible but search is
still OK.

Change-Id: Ifc69c12296cc8e8cf7c89dd06173d7abf499a878

11 years agoDocument immutable requirement of SharedPreferences return objects
Christopher Tate [Fri, 19 Oct 2012 02:01:01 +0000 (19:01 -0700)]
Document immutable requirement of SharedPreferences return objects

In particular, make it quite clear that the set returned by
getStringSet() must not be modfied by the app, period; and
add a similar caution about the map returned via getAll().

Also, fix a bug that could lead to unexpected data being committed
if the set instance passed to putStringSet() was mutated by the
app after that call (including mutations after commit() was
invoked).

Bug 7312641

Change-Id: If9a1be1b0669ac879ff7a7dc67a8805548ea10cc

11 years agoMerge "Fix transition into Recents with live wallpaper" into jb-mr1-dev
Adam Cohen [Fri, 19 Oct 2012 20:17:52 +0000 (13:17 -0700)]
Merge "Fix transition into Recents with live wallpaper" into jb-mr1-dev

11 years agoFix group join CTS test
Irfan Sheriff [Fri, 19 Oct 2012 19:03:47 +0000 (12:03 -0700)]
Fix group join CTS test

Bug: 7379336
Change-Id: I20ead7e8c0d855be523bdfd8d9cb9eaa4b8fcac1

11 years agoMerge "Fix bug #7367429 Popup window should get its direction from it Anchor View...
Fabrice Di Meglio [Fri, 19 Oct 2012 18:33:00 +0000 (11:33 -0700)]
Merge "Fix bug #7367429 Popup window should get its direction from it Anchor View if it can" into jb-mr1-dev

11 years agoMerge "Parcel VpnProfile without using disk format." into jb-mr1-dev
Jeff Sharkey [Fri, 19 Oct 2012 18:12:59 +0000 (11:12 -0700)]
Merge "Parcel VpnProfile without using disk format." into jb-mr1-dev

11 years agoMerge "Frameworks base: Promote dream setting defaults to config." into jb-mr1-dev
John Spurlock [Fri, 19 Oct 2012 17:59:58 +0000 (10:59 -0700)]
Merge "Frameworks base: Promote dream setting defaults to config." into jb-mr1-dev

11 years agoParcel VpnProfile without using disk format.
Jeff Sharkey [Fri, 19 Oct 2012 17:48:11 +0000 (10:48 -0700)]
Parcel VpnProfile without using disk format.

The on-disk format of VpnProfile only stores the username/password
when saveLogin is set, which was dropping them across IPC boundaries.

Bug: 7378327
Change-Id: I30c16efb358ab8f8d3d9229bbf9811146fe034ce

11 years agoMerge "Defer layer rendering to avoid stalls Bug #7326824" into jb-mr1-dev
Romain Guy [Fri, 19 Oct 2012 17:40:27 +0000 (10:40 -0700)]
Merge "Defer layer rendering to avoid stalls Bug #7326824" into jb-mr1-dev

11 years agoProperly show emoji in the notification ticker.
Daniel Sandler [Fri, 19 Oct 2012 17:36:58 +0000 (13:36 -0400)]
Properly show emoji in the notification ticker.

Add an emoji test to StatusBarTest (working around some
difficulties in actually putting high-Unicode chars in the
layout xml).

Bug: 7378383
Change-Id: Ifce9844b26f67d2799521623e5161aa4dad69ed1

11 years agoFix transition into Recents with live wallpaper
Michael Jurka [Fri, 19 Oct 2012 17:12:29 +0000 (19:12 +0200)]
Fix transition into Recents with live wallpaper

Fixes regression introduced by:
738cfc91053fc888397ec2d139e0798f8c95b3ca
(Fixing wallpaper flash when going in/out of Recents)

11 years agoMerge "Allow getDisplayContentLocked to return null..." into jb-mr1-dev
Craig Mautner [Fri, 19 Oct 2012 16:27:05 +0000 (09:27 -0700)]
Merge "Allow getDisplayContentLocked to return null..." into jb-mr1-dev

11 years agoMerge "Fixing wallpaper flash when going in/out of Recents" into jb-mr1-dev
Michael Jurka [Fri, 19 Oct 2012 16:06:19 +0000 (09:06 -0700)]
Merge "Fixing wallpaper flash when going in/out of Recents" into jb-mr1-dev

11 years agoFrameworks base: Promote dream setting defaults to config.
John Spurlock [Thu, 18 Oct 2012 20:49:24 +0000 (16:49 -0400)]
Frameworks base: Promote dream setting defaults to config.

So that:
 - the values can be shared (to fix assoc bug)
 - the values can be customized in product overlays

Bug:7373284
Change-Id: I37f037082523a3d975f6014f36afa28c60117372

11 years agoFixing wallpaper flash when going in/out of Recents
Michael Jurka [Fri, 19 Oct 2012 12:56:47 +0000 (14:56 +0200)]
Fixing wallpaper flash when going in/out of Recents

Bug: 7372516
Bug: 7216872

Change-Id: I2a2308a85caf9f2ad2d382c709e5f8867bd060be

11 years agoFix recents animations for secondary users
Michael Jurka [Thu, 18 Oct 2012 11:13:46 +0000 (13:13 +0200)]
Fix recents animations for secondary users

Bug: 7361640

Change-Id: Ibd177bf01758fb8706b82dcf3bf234e052c38aa3

11 years agoCannot pan in browser if magnification is enabled.
Svetoslav Ganov [Fri, 19 Oct 2012 08:49:01 +0000 (01:49 -0700)]
Cannot pan in browser if magnification is enabled.

1. We cache some events to see if the user wants to trigger magnification. If no
   magnification is triggered we inject these events with adjusted time and down
   time to prevent subsequent transformations being confused by stale events.
   After the cached events, which always have a down, are injected we need to also
   update the down time of all subsequent non cached events.

bug:7379388

Change-Id: I41d8b831cc1016a0ee8f9c5ef5f42eb60a6f64d9

11 years agoMerge "Change android.permission.SERIAL_PORT to signature|system." into jb-mr1-dev
Geremy Condra [Fri, 19 Oct 2012 06:59:36 +0000 (23:59 -0700)]
Merge "Change android.permission.SERIAL_PORT to signature|system." into jb-mr1-dev

11 years agoMerge "Reduce auto-brightness jitter." into jb-mr1-dev
Jeff Brown [Fri, 19 Oct 2012 06:22:14 +0000 (23:22 -0700)]
Merge "Reduce auto-brightness jitter." into jb-mr1-dev

11 years agoMerge "More migration to Global settings." into jb-mr1-dev
Jeff Sharkey [Fri, 19 Oct 2012 06:22:57 +0000 (23:22 -0700)]
Merge "More migration to Global settings." into jb-mr1-dev

11 years agoMerge "Fix deadlock." into jb-mr1-dev
Jeff Brown [Fri, 19 Oct 2012 06:22:02 +0000 (23:22 -0700)]
Merge "Fix deadlock." into jb-mr1-dev

11 years agoMerge "Revert "Revert "This restores JB MR0 behavior where the framework throws an...
Dave Burke [Fri, 19 Oct 2012 04:02:13 +0000 (21:02 -0700)]
Merge "Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.""" into jb-mr1-dev

11 years agoRevert "Revert "This restores JB MR0 behavior where the framework throws an exception...
Dave Burke [Fri, 19 Oct 2012 03:41:55 +0000 (20:41 -0700)]
Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.""

This reverts commit 57fca90ac65ecfe97acd4c93d442c3db8f815e11

Change-Id: I21b007a7d150a4c23f25a706cdba5cb86198198f

11 years agoNew camera sounds
Eric Laurent [Fri, 19 Oct 2012 02:03:20 +0000 (19:03 -0700)]
New camera sounds

Added new camera shutter, video start and video stop sounds.

Bug 7377030.

Change-Id: If2215042fe812280122de40fb6de31c1541adb0c

11 years agoReduce auto-brightness jitter.
Jeff Brown [Thu, 18 Oct 2012 23:14:16 +0000 (16:14 -0700)]
Reduce auto-brightness jitter.

Apply additional hysteresis controls to prevent repeated brightness
changes within a short interval.

Bug: 7266090
Change-Id: I73122457f6f3200c80188d3716ce2baf38f6a0a6

11 years agoFix bug #7367429 Popup window should get its direction from it Anchor View if it can
Fabrice Di Meglio [Thu, 18 Oct 2012 00:20:19 +0000 (17:20 -0700)]
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

11 years agoam fcc93e73: (-s ours) am 135b5ba5: Layoutlib: Read and close XML files as soon as...
Xavier Ducrohet [Fri, 19 Oct 2012 00:52:21 +0000 (17:52 -0700)]
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.

11 years agoam 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
Xavier Ducrohet [Fri, 19 Oct 2012 00:48:57 +0000 (17:48 -0700)]
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.

11 years agoFix deadlock.
Jeff Brown [Thu, 18 Oct 2012 23:13:44 +0000 (16:13 -0700)]
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

11 years agoTry to free cache before giving up on install
Kenny Root [Thu, 18 Oct 2012 21:57:33 +0000 (14:57 -0700)]
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

11 years agoMerge "Fix missing @hide on ViewGroup.resolveLayoutParams()" into jb-mr1-dev
Fabrice Di Meglio [Thu, 18 Oct 2012 23:20:35 +0000 (16:20 -0700)]
Merge "Fix missing @hide on ViewGroup.resolveLayoutParams()" into jb-mr1-dev

11 years agoFix missing @hide on ViewGroup.resolveLayoutParams()
Fabrice Di Meglio [Thu, 18 Oct 2012 23:06:52 +0000 (16:06 -0700)]
Fix missing @hide on ViewGroup.resolveLayoutParams()

- as we dont need this to be public

Change-Id: Ib8de262eec26d4785b13875d59599369b06a067d

11 years agoLayoutlib: Read and close XML files as soon as possible. do not merge.
Xavier Ducrohet [Thu, 18 Oct 2012 01:38:49 +0000 (18:38 -0700)]
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

11 years agoMore migration to Global settings.
Jeff Sharkey [Thu, 18 Oct 2012 22:38:14 +0000 (15:38 -0700)]
More migration to Global settings.

Bug: 7375796
Change-Id: I3954ce141ad30073896090a28eee743ba15fd736

11 years agoMerge "Fix the build" into jb-mr1-dev
Fabrice Di Meglio [Thu, 18 Oct 2012 22:37:26 +0000 (15:37 -0700)]
Merge "Fix the build" into jb-mr1-dev

11 years agoFix the build
Fabrice Di Meglio [Thu, 18 Oct 2012 22:34:30 +0000 (15:34 -0700)]
Fix the build

- was missing a "make update-api" pass

Change-Id: I004a1650cf7946e0e8bd36d75dab81bbca80443c

11 years agoMerge "Layoutlib: Read and close XML files as soon as possible." into jb-mr1-dev
Xavier Ducrohet [Thu, 18 Oct 2012 22:27:38 +0000 (15:27 -0700)]
Merge "Layoutlib: Read and close XML files as soon as possible." into jb-mr1-dev

11 years agoMerge "Fix bug #7374285 GridLayout layout param margins are broken in RTL mode"...
Fabrice Di Meglio [Thu, 18 Oct 2012 22:23:40 +0000 (15:23 -0700)]
Merge "Fix bug #7374285  GridLayout layout param margins are broken in RTL mode" into jb-mr1-dev

11 years agoRobustly add symlink and add for non-primary users
Kenny Root [Thu, 18 Oct 2012 17:58:36 +0000 (10:58 -0700)]
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

11 years agoDefer layer rendering to avoid stalls
Romain Guy [Thu, 18 Oct 2012 22:05:02 +0000 (15:05 -0700)]
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

11 years agoMerge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly...
Svetoslav Ganov [Thu, 18 Oct 2012 22:00:18 +0000 (15:00 -0700)]
Merge "Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered." into jb-mr1-dev

11 years agoMerge "When removing windows remove from resize list." into jb-mr1-dev
Craig Mautner [Thu, 18 Oct 2012 21:46:12 +0000 (14:46 -0700)]
Merge "When removing windows remove from resize list." into jb-mr1-dev

11 years agoAllow getDisplayContentLocked to return null...
Craig Mautner [Thu, 18 Oct 2012 20:55:47 +0000 (13:55 -0700)]
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

11 years agoLayoutlib: Read and close XML files as soon as possible.
Xavier Ducrohet [Thu, 18 Oct 2012 01:38:49 +0000 (18:38 -0700)]
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

11 years agoMerge "Do a clean shutdown of p2p" into jb-mr1-dev
Irfan Sheriff [Thu, 18 Oct 2012 20:44:27 +0000 (13:44 -0700)]
Merge "Do a clean shutdown of p2p" into jb-mr1-dev

11 years agoDo a clean shutdown of p2p
Irfan Sheriff [Thu, 18 Oct 2012 19:39:22 +0000 (12:39 -0700)]
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

11 years agoFix bug #7374285 GridLayout layout param margins are broken in RTL mode
Fabrice Di Meglio [Thu, 18 Oct 2012 18:11:51 +0000 (11:11 -0700)]
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

11 years agoMerge "Track size changes correctly for static wallpapers" into jb-mr1-dev
Chet Haase [Thu, 18 Oct 2012 19:57:22 +0000 (12:57 -0700)]
Merge "Track size changes correctly for static wallpapers" into jb-mr1-dev

11 years agoMerge "Changes to support updating location providers." into jb-mr1-dev
Jeff Hamilton [Thu, 18 Oct 2012 19:45:02 +0000 (12:45 -0700)]
Merge "Changes to support updating location providers." into jb-mr1-dev

11 years agoTrack size changes correctly for static wallpapers
Chet Haase [Thu, 18 Oct 2012 19:01:34 +0000 (12:01 -0700)]
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

11 years agoam 82f0ba79: am 4a6b6948: am 07322102: revise code sample for callback interface
Scott Main [Thu, 18 Oct 2012 19:31:05 +0000 (12:31 -0700)]
am 82f0ba79: am 4a6b6948: am 07322102: revise code sample for callback interface

* commit '82f0ba79e67c154fc12a6cfde2fe1205da166b0d':
  revise code sample for callback interface

11 years agoam 64b3de29: (-s ours) am 434cd38f: Update layoutlib for jb mr1. do not merge.
Xavier Ducrohet [Thu, 18 Oct 2012 19:29:23 +0000 (12:29 -0700)]
am 64b3de29: (-s ours) am 434cd38f: Update layoutlib for jb mr1. do not merge.

* commit '64b3de296cdbc8c02e2890f8853409c6d49cddb1':
  Update layoutlib for jb mr1. do not merge.

11 years agoam 4a6b6948: am 07322102: revise code sample for callback interface
Scott Main [Thu, 18 Oct 2012 19:25:19 +0000 (12:25 -0700)]
am 4a6b6948: am 07322102: revise code sample for callback interface

* commit '4a6b69488f9fd90bbe04a930ffad8999bc93e173':
  revise code sample for callback interface

11 years agoam 434cd38f: Update layoutlib for jb mr1. do not merge.
Xavier Ducrohet [Thu, 18 Oct 2012 19:23:28 +0000 (12:23 -0700)]
am 434cd38f: Update layoutlib for jb mr1. do not merge.

* commit '434cd38f96a4a87220a8218901622f31e567354a':
  Update layoutlib for jb mr1. do not merge.

11 years agoam 07322102: revise code sample for callback interface
Scott Main [Thu, 18 Oct 2012 19:18:31 +0000 (12:18 -0700)]
am 07322102: revise code sample for callback interface

* commit '07322102e5f1877bc2860d2c72eeeb41839d6bea':
  revise code sample for callback interface

11 years agoMagnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered.
Svetoslav Ganov [Thu, 18 Oct 2012 19:14:58 +0000 (12:14 -0700)]
Magnifier not respecting RTL/LTR direction and keyguard dialogs not properly centered.

1. When magnifier, if a dialog that popped up is wider than the scree we pan to its upper
   left corner. We now show the upper right corner if the locale direction is RTL.

2. Keyguard dialogs are not centered since they are used as a sign to recompute the
   magnified area but an unnecessary else statement prevents such dialogs from being
   properly show via a pan.

bug:7374331

Change-Id: I285e46b822a29f0082c502cb642f9da32dabfe6a

11 years agoMerge "Sanity-check erroneous backup agent instantiations" into jb-mr1-dev
Christopher Tate [Thu, 18 Oct 2012 19:07:03 +0000 (12:07 -0700)]
Merge "Sanity-check erroneous backup agent instantiations" into jb-mr1-dev

11 years agoMerge "improve some docs for dreams" into jb-mr1-dev
Scott Main [Thu, 18 Oct 2012 18:37:30 +0000 (11:37 -0700)]
Merge "improve some docs for dreams" into jb-mr1-dev

11 years agoimprove some docs for dreams
Scott Main [Tue, 9 Oct 2012 05:30:29 +0000 (22:30 -0700)]
improve some docs for dreams

Change-Id: I7652f4366cdc8c40926d7961582663cc99ca0735

11 years agoMerge "Stop reloading wallpaper bitmap" into jb-mr1-dev
Chet Haase [Thu, 18 Oct 2012 18:18:14 +0000 (11:18 -0700)]
Merge "Stop reloading wallpaper bitmap" into jb-mr1-dev

11 years agoUpdate layoutlib for jb mr1. do not merge.
Xavier Ducrohet [Wed, 17 Oct 2012 02:56:03 +0000 (19:56 -0700)]
Update layoutlib for jb mr1. do not merge.

Status bar displayed on all devices.
Update logic for displaying nav bar to whether or not
device has soft button.

Update navigation buttons to new look.
Remove battery and signal from navigation bar.

(cherry picked from commit 891b703f7b1e0e396d16477cc66a286da7161b49)

Change-Id: Id7cc9ad4255d2c4d2e6461a565dfe2cc17e12e75

11 years agoShow brightness dialog for all users.
Daniel Sandler [Thu, 18 Oct 2012 18:04:27 +0000 (14:04 -0400)]
Show brightness dialog for all users.

Bug: 7373670
Change-Id: Ibeaa65580c7513d1562b1cfac8cee428fbc63098

11 years agoMerge "LocationManager permissions cleanup" into jb-mr1-dev
Victoria Lease [Thu, 18 Oct 2012 18:02:51 +0000 (11:02 -0700)]
Merge "LocationManager permissions cleanup" into jb-mr1-dev

11 years agoMerge "Allow services to query the info for a dying user." into jb-mr1-dev
Amith Yamasani [Thu, 18 Oct 2012 17:48:20 +0000 (10:48 -0700)]
Merge "Allow services to query the info for a dying user." into jb-mr1-dev

11 years agoMerge "Fix glitch when using settings pulldown then switching to notifications."...
Daniel Sandler [Thu, 18 Oct 2012 17:24:46 +0000 (10:24 -0700)]
Merge "Fix glitch when using settings pulldown then switching to notifications." into jb-mr1-dev

11 years agoStop reloading wallpaper bitmap
Chet Haase [Thu, 18 Oct 2012 17:11:27 +0000 (10:11 -0700)]
Stop reloading wallpaper bitmap

Typo in ImageWallpaper made a dimension check incorrect.

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

Change-Id: I82763ac8c9ed564eba904f552975ab20c8aef932

11 years agoWhen removing windows remove from resize list.
Craig Mautner [Thu, 18 Oct 2012 16:38:10 +0000 (09:38 -0700)]
When removing windows remove from resize list.

Windows remained in the resized list if they were removed during
rotations.

Bug: 7372289 fixed.
Change-Id: I41f949b7836b08b33d4d178e9aa016548328749a

11 years agoLocationManager permissions cleanup
Victoria Lease [Tue, 16 Oct 2012 23:08:48 +0000 (16:08 -0700)]
LocationManager permissions cleanup

This commit is the result of a comprehensive permissions review for
MR1 release. It addresses a number of deviations from spec and from
MR0's behavior, bringing MR1 into sync with both.

It also cleans up the concept of "location resolution permission",
representing it internally as an enumerated access level to reduce
reliance on cumbersome string manipulation. There's a function to
convert the enum int into a permission string where needed, too.

Additionally, this confines caller-identity-sensitive calls to the
hopefully-obviously-named "getCallerAllowedResolutionLevel()". This
should make it much easier to prove correctness with respect to
accidentally calling functions that depend upon the caller's identity
after identity has already been shed by Binder.clearCallingIdentity().

Change-Id: I446169aee8fb2fde26ac6d04b479b40253782acb

11 years agoMerge "Potential fix for bug 7352816" into jb-mr1-dev
Michael Jurka [Thu, 18 Oct 2012 15:48:39 +0000 (08:48 -0700)]
Merge "Potential fix for bug 7352816" into jb-mr1-dev

11 years agoFix glitch when using settings pulldown then switching to notifications.
Daniel Sandler [Thu, 18 Oct 2012 15:44:04 +0000 (11:44 -0400)]
Fix glitch when using settings pulldown then switching to notifications.

Bug: 7348917
Change-Id: I65b51bb161934300da9ca0ebf4b184886e3e81df

11 years agoMerge "Add missing layout params" into jb-mr1-dev
Daniel Sandler [Thu, 18 Oct 2012 13:35:47 +0000 (06:35 -0700)]
Merge "Add missing layout params" into jb-mr1-dev

11 years agoMerge "Dream when user activity times out while docked if appropriate." into jb-mr1-dev
Jeff Brown [Thu, 18 Oct 2012 07:08:17 +0000 (00:08 -0700)]
Merge "Dream when user activity times out while docked if appropriate." into jb-mr1-dev

11 years agoMerge "Add special mirroring modes for demonstration purposes." into jb-mr1-dev
Jeff Brown [Thu, 18 Oct 2012 07:06:47 +0000 (00:06 -0700)]
Merge "Add special mirroring modes for demonstration purposes." into jb-mr1-dev

11 years agoMerge "Defer more Account actions until user starting." into jb-mr1-dev
Jeff Sharkey [Thu, 18 Oct 2012 07:00:40 +0000 (00:00 -0700)]
Merge "Defer more Account actions until user starting." into jb-mr1-dev

11 years agoChanges to support updating location providers.
Jeff Hamilton [Fri, 5 Oct 2012 19:21:58 +0000 (14:21 -0500)]
Changes to support updating location providers.

This reverts commit 20de160ca32a8f2936a80ffd70551a22e2371d25.

Bug: 7242814
Change-Id: I9ec49a14feb835b6683186fc6da4a74ae19fbae2

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr1-dev
Baligh Uddin [Thu, 18 Oct 2012 05:23:34 +0000 (22:23 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-mr1-dev

11 years agoAllow services to query the info for a dying user.
Amith Yamasani [Thu, 18 Oct 2012 04:20:14 +0000 (21:20 -0700)]
Allow services to query the info for a dying user.

This allows services watching for USER_REMOVED to fetch the serialNumber of a dying user.

Also fix an AIOOBE when building the userId array, typically on cleanup.

Bug: 7368826
Change-Id: I24e52278af8353b5744372127da4bf4fafc89baa

11 years agoDream when user activity times out while docked if appropriate.
Jeff Brown [Thu, 18 Oct 2012 03:30:25 +0000 (20:30 -0700)]
Dream when user activity times out while docked if appropriate.

If the user has requested that dreams start when docked and a user
activity timeout occurs, then start dreaming assuming all of the
other usual conditions are appropriate for dreaming (the device is
powered, etc.).

Previously dreams only started when the device was initial docked
but not if the device fell asleep while remaining docked.

Bug: 7281240
Change-Id: I72c3f854fd1ae8e6615f4fa6e4c4ecd8de37c84b

11 years agoMerge "Call requestFocus and ensure that screenOn is set." into jb-mr1-dev
Craig Mautner [Thu, 18 Oct 2012 03:25:11 +0000 (20:25 -0700)]
Merge "Call requestFocus and ensure that screenOn is set." into jb-mr1-dev