OSDN Git Service

android-x86/frameworks-base.git
11 years agoMake the SystemUI stop the screen saver when a full-screen notification is posted.
Daniel Sandler [Tue, 4 Sep 2012 17:27:09 +0000 (13:27 -0400)]
Make the SystemUI stop the screen saver when a full-screen notification is posted.

This keeps all the fullScreenIntent logic (including
multiuser implications) in one place.

Change-Id: I4ef284daf90464f105780ade1d971e9e081fbbb5

11 years agoDo not play sounds or vibes for background users' notifications.
Daniel Sandler [Tue, 4 Sep 2012 17:23:01 +0000 (13:23 -0400)]
Do not play sounds or vibes for background users' notifications.

USER_ALL notifications will still play/vibe for any user.

Change-Id: Ie8cc69bd1541193ed9c4207ef38a8d4898af0a9d

11 years agoMerge "Minor refactors." into jb-mr1-dev
Craig Mautner [Sun, 2 Sep 2012 14:51:28 +0000 (07:51 -0700)]
Merge "Minor refactors." into jb-mr1-dev

11 years agoMinor refactors.
Craig Mautner [Sun, 2 Sep 2012 14:47:24 +0000 (07:47 -0700)]
Minor refactors.

- Refactor DragState to take Display instead of DisplayContent.
- Rename xxxAnimationLw methods in WindowManagerPolicy to xxxPostLayout
to reflect animation refactoring.

Change-Id: I502f2aa45a699ad395a249a12abf9843294623f0

11 years agoRevert "Revert "Add more support for transformed clip rects and paths""
Romain Guy [Sat, 1 Sep 2012 03:31:01 +0000 (20:31 -0700)]
Revert "Revert "Add more support for transformed clip rects and paths""

This reverts commit a8557d2169e14997637f57bc897640c8882d4a46.

Change-Id: I36d4883d548fc47ba6c0b4a42012107d0d2f85a6

11 years agoRevert "Add more support for transformed clip rects and paths"
Mathias Agopian [Sat, 1 Sep 2012 02:52:30 +0000 (19:52 -0700)]
Revert "Add more support for transformed clip rects and paths"

this introduced a dead lock in GradientCache's ctor.

This reverts commit dfe082f63e94cde9aee271c94d13de5e7217e036.

Bug: 7096001
Change-Id: I57b8bbab11fb7cb502fa58e3bbf5d19864db874f

11 years agoMerge "Add more support for transformed clip rects and paths" into jb-mr1-dev
Romain Guy [Sat, 1 Sep 2012 00:18:03 +0000 (17:18 -0700)]
Merge "Add more support for transformed clip rects and paths" into jb-mr1-dev

11 years agoAdd more support for transformed clip rects and paths
Romain Guy [Sat, 1 Sep 2012 00:14:30 +0000 (17:14 -0700)]
Add more support for transformed clip rects and paths

Change-Id: I41791b1e1bffef77d503dc9e52428395d2309688

11 years agoAdd some NullPointerExceptions to AndroidKeyStore
Kenny Root [Fri, 31 Aug 2012 20:38:11 +0000 (13:38 -0700)]
Add some NullPointerExceptions to AndroidKeyStore

Existing KeyStore implementations throw NullPointerExceptions beacuse
the KeyStoreSpi doesn't check these arguments for null. Add in checks so
we don't accidentally check some bogus values.

Also switch a RuntimeException to a KeyStoreException

Change-Id: I18f4d4474d607cb2057ea8069b901e0992275e78

11 years agoMerge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
Dianne Hackborn [Fri, 31 Aug 2012 23:23:41 +0000 (16:23 -0700)]
Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev

11 years agoMerge "Centralize the creation of the user system directory" into jb-mr1-dev
Amith Yamasani [Fri, 31 Aug 2012 23:22:52 +0000 (16:22 -0700)]
Merge "Centralize the creation of the user system directory" into jb-mr1-dev

11 years agoMerge "Paramaterize and adjust the glyph cache sizes" into jb-mr1-dev
Chet Haase [Fri, 31 Aug 2012 22:57:27 +0000 (15:57 -0700)]
Merge "Paramaterize and adjust the glyph cache sizes" into jb-mr1-dev

11 years agoMerge "More improvements to the display manager." into jb-mr1-dev
Jeff Brown [Fri, 31 Aug 2012 22:49:11 +0000 (15:49 -0700)]
Merge "More improvements to the display manager." into jb-mr1-dev

11 years agoMerge "Initial draft of high-level multi-display APIs." into jb-mr1-dev
Jeff Brown [Fri, 31 Aug 2012 22:48:25 +0000 (15:48 -0700)]
Merge "Initial draft of high-level multi-display APIs." into jb-mr1-dev

11 years agoMore improvements to the display manager.
Jeff Brown [Fri, 31 Aug 2012 01:18:29 +0000 (18:18 -0700)]
More improvements to the display manager.

Added more complete support for logical displays with
support for mirroring, rotation and scaling.

Improved the overlay display adapter's touch interactions.

A big change here is that the display manager no longer relies
on a single-threaded model to maintain its synchronization
invariants.  Unfortunately we had to change this so as to play
nice with the fact that the window manager wants to own
the surface flinger transaction around display and surface
manipulations.  As a result, the display manager has to be able
to update displays from the context of any thread.

It would be nice to make this process more cooperative.
There are already several components competing to perform
surface flinger transactions including the window manager,
display manager, electron beam, overlay display window,
and mouse pointer.  They are not manipulating the same surfaces
but they can collide with one another when they make global
changes to the displays.

Change-Id: I04f448594241f2004f6f3d1a81ccd12c566bf296

11 years agoInitial draft of high-level multi-display APIs.
Jeff Brown [Fri, 24 Aug 2012 02:48:44 +0000 (19:48 -0700)]
Initial draft of high-level multi-display APIs.

This patch introduces the ability to create a Context that
is bound to a Display.  The context gets its configuration and
metrics from that display and is able to provide a WindowManager
that is bound to the display.

To make it easier to use, we also add a new kind of Dialog
called a Presentation.  Presentation takes care of setting
up the context as needed and watches for significant changes
in the display configuration.  If the display is removed,
then the presentation simply dismisses itself.

Change-Id: Idc54b4ec84b1ff91505cfb78910cf8cd09696d7d

11 years agoCentralize the creation of the user system directory
Amith Yamasani [Fri, 31 Aug 2012 19:12:28 +0000 (12:12 -0700)]
Centralize the creation of the user system directory

Environment.getUserSystemDirectory(int userId)

Use it all relevant places that was hardcoding it.
Also, wipe out the user's system directory when user is removed, otherwise old state
might be transferred to a new user.

Change-Id: I788ce9c4cf9624229e65efa7047bc0c019ccef0a

11 years agoRemove Binder.getOrigCallingUid().
Dianne Hackborn [Fri, 31 Aug 2012 21:05:51 +0000 (14:05 -0700)]
Remove Binder.getOrigCallingUid().

Replaced all remaining places that used it with explicit user
specification.

While doing this, I ran into stuff that was creating PendingIntent
objects (that now need to specify the explicit user they are for),
which are also posting notifications...  but have no way to specify
the user for the notification.

So the notification manager in the system process now also gets a
formal concept of a user associated with the notification, which
is passed in to all the necessary aidl calls.  I also removed the
old deprecated aidl interface for posting/cancelling notifications,
since we now always need a user supplied.

There is more work that needs to be done here, though.  For example
I think we need to be able to specify USER_ALL for a notification that
should be shown to all users (such as low storage or low battery).
Along with that, the PendingIntent creation needs to be tweaked to
be able to handle USER_CURRENT by evaluating the user at the point the
pending intent is sent.

That's for another change, however.

Change-Id: I468e14dce8def0e13e0870571e7c31ed32b6310c

11 years agoMerge "Don't set the time zone under the caller's identity" into jb-mr1-dev
Christopher Tate [Fri, 31 Aug 2012 21:47:34 +0000 (14:47 -0700)]
Merge "Don't set the time zone under the caller's identity" into jb-mr1-dev

11 years agoDon't set the time zone under the caller's identity
Christopher Tate [Fri, 31 Aug 2012 21:40:03 +0000 (14:40 -0700)]
Don't set the time zone under the caller's identity

...otherwise you crash trying to send a broadcast to all users.

Change-Id: If627eeb3eadb1052242c986fe24482d87c8fc093

11 years agoParamaterize and adjust the glyph cache sizes
Chet Haase [Fri, 31 Aug 2012 20:54:03 +0000 (13:54 -0700)]
Paramaterize and adjust the glyph cache sizes

Add new parameters for the texture size used for the larger, fallback caches.
Bump up the defaults in some situations.

Issue #7045164 Adjust cache sizes for manta

Change-Id: I562118ce785d7f8b6e445178878672e9709d25f2

11 years agoMerge "Lots of keyguard improvements - Fix "too many attempts" dialogs - Fix account...
Jim Miller [Fri, 31 Aug 2012 20:57:26 +0000 (13:57 -0700)]
Merge "Lots of keyguard improvements - Fix "too many attempts" dialogs - Fix account unlock mechanism so the user can use email account as backup for pattern unlock - Add mechanism to support future account recovery from non-pattern screen - Tune animation timing for flipping security view. - Move password field to the top of the security view - Add padding and visual feedback to navigation area button" into jb-mr1-dev

11 years agoMerge "Work around instability of Display.getRotation()." into jb-mr1-dev
Daniel Sandler [Fri, 31 Aug 2012 19:06:41 +0000 (12:06 -0700)]
Merge "Work around instability of Display.getRotation()." into jb-mr1-dev

11 years agoWork around instability of Display.getRotation().
Daniel Sandler [Fri, 31 Aug 2012 18:57:09 +0000 (14:57 -0400)]
Work around instability of Display.getRotation().

Ensures that the navigation buttons are properly oriented
each time the screen comes on.

Bug: 7086018
Change-Id: Iac6243792a8c64001ff7409108fb892bd470e4c4

11 years agoam a3503f26: am 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915""...
Sascha Prueter [Fri, 31 Aug 2012 18:46:13 +0000 (11:46 -0700)]
am a3503f26: am 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev

* commit 'a3503f2688c69b49a309763d8da7e7c04327d6d7':
  Revert "Update Back softkey icon Bug: 6020915"

11 years agoam 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev
Sascha Prueter [Fri, 31 Aug 2012 18:43:59 +0000 (11:43 -0700)]
am 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev

* commit '6ee6615d8f923a68021d04dc06b20d72c3f8498a':
  Revert "Update Back softkey icon Bug: 6020915"

11 years agoMerge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev
Sascha Prueter [Fri, 31 Aug 2012 18:40:51 +0000 (11:40 -0700)]
Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev

11 years agoRevert "Update Back softkey icon Bug: 6020915"
Sascha Prueter [Fri, 31 Aug 2012 18:39:44 +0000 (11:39 -0700)]
Revert "Update Back softkey icon Bug: 6020915"

This reverts commit 962daf9b1c4b12aff68a137472b6a7f4db123c65

Change-Id: If60099643336e35fe5bf7dcbf68a419bcd7ebae3

11 years agoam b9445141: (-s ours) am f1faf774: Merge "DO NOT MERGE GestureDetector - Mask action...
Adam Powell [Fri, 31 Aug 2012 18:29:45 +0000 (11:29 -0700)]
am b9445141: (-s ours) am f1faf774: Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into jb-dev

* commit 'b94451411bbdea42eb61ece08c1d759e0b1bf177':
  DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP

11 years agoam f1faf774: Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_...
Adam Powell [Fri, 31 Aug 2012 18:27:31 +0000 (11:27 -0700)]
am f1faf774: Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into jb-dev

* commit 'f1faf7743f39f56cc57d6f2a520e5c8ecf4e58b5':
  DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP

11 years agoMerge "Add an OnDismissListener to AutoCompleteTextView" into jb-mr1-dev
Adam Powell [Fri, 31 Aug 2012 18:26:54 +0000 (11:26 -0700)]
Merge "Add an OnDismissListener to AutoCompleteTextView" into jb-mr1-dev

11 years agoMerge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into...
Adam Powell [Fri, 31 Aug 2012 18:24:30 +0000 (11:24 -0700)]
Merge "DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP" into jb-dev

11 years agoDO NOT MERGE GestureDetector - Mask action when checking POINTER_UP
Adam Powell [Fri, 31 Aug 2012 18:11:39 +0000 (11:11 -0700)]
DO NOT MERGE GestureDetector - Mask action when checking POINTER_UP

Bug 7088494

Change-Id: I723e9b77f0d0473f9d769e53aaa568c4aaac90aa

11 years agoMerge "GestureDetector - Mask action when checking POINTER_UP" into jb-mr1-dev
Adam Powell [Fri, 31 Aug 2012 18:13:16 +0000 (11:13 -0700)]
Merge "GestureDetector - Mask action when checking POINTER_UP" into jb-mr1-dev

11 years agoGestureDetector - Mask action when checking POINTER_UP
Adam Powell [Fri, 31 Aug 2012 18:11:39 +0000 (11:11 -0700)]
GestureDetector - Mask action when checking POINTER_UP

Bug 7088494

Change-Id: I723e9b77f0d0473f9d769e53aaa568c4aaac90aa

11 years agoMerge "Tweak overlay display adapter scaling." into jb-mr1-dev
Jeff Brown [Fri, 31 Aug 2012 07:41:14 +0000 (00:41 -0700)]
Merge "Tweak overlay display adapter scaling." into jb-mr1-dev

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr1-dev
Baligh Uddin [Fri, 31 Aug 2012 05:16:42 +0000 (22:16 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-mr1-dev

11 years agoLots of keyguard improvements
Jim Miller [Thu, 30 Aug 2012 23:50:10 +0000 (16:50 -0700)]
Lots of keyguard improvements
- Fix "too many attempts" dialogs
- Fix account unlock mechanism so the user can use email account as backup for pattern unlock
- Add mechanism to support future account recovery from non-pattern screen
- Tune animation timing for flipping security view.
- Move password field to the top of the security view
- Add padding and visual feedback to navigation area button

Fixes bugs 70884827088631

Change-Id: I23099feae3b7446ec291d8f860601bfc12f9edd8

11 years agoMerge "Notify verifiers that verification is complete" into jb-mr1-dev
rich cannings [Fri, 31 Aug 2012 03:35:07 +0000 (20:35 -0700)]
Merge "Notify verifiers that verification is complete" into jb-mr1-dev

11 years agoMerge "Make detachViewFromParent more robust" into jb-mr1-dev
Chet Haase [Fri, 31 Aug 2012 02:31:59 +0000 (19:31 -0700)]
Merge "Make detachViewFromParent more robust" into jb-mr1-dev

11 years agoMerge "Integrate new assets from UX that include layout bounds." into jb-mr1-dev
Adam Powell [Fri, 31 Aug 2012 01:25:38 +0000 (18:25 -0700)]
Merge "Integrate new assets from UX that include layout bounds." into jb-mr1-dev

11 years agoam 0e90f738: am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:16:30 +0000 (18:16 -0700)]
am 0e90f738: am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit '0e90f738aa82d9b30e6b4f43cd321e3f9cad2fc1':
  Fix code problem in writePidDns

11 years agoam f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:14:15 +0000 (18:14 -0700)]
am f5311768: am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit 'f5311768e3dfdc6be60288363da4f120b0c88e28':
  Fix code problem in writePidDns

11 years agoam 0dab1a19: Merge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 01:11:30 +0000 (18:11 -0700)]
am 0dab1a19: Merge "Fix code problem in writePidDns"

* commit '0dab1a198e19c9993897b031d425a61a3bfec562':
  Fix code problem in writePidDns

11 years agoIntegrate new assets from UX that include layout bounds.
Adam Powell [Fri, 31 Aug 2012 01:06:38 +0000 (18:06 -0700)]
Integrate new assets from UX that include layout bounds.

Change-Id: I682b3f693d8eedb741ea689f56363532cde32132

11 years agoAdd an OnDismissListener to AutoCompleteTextView
Adam Powell [Fri, 31 Aug 2012 00:30:05 +0000 (17:30 -0700)]
Add an OnDismissListener to AutoCompleteTextView

Bug 4551310

Change-Id: I702301ad3360828ec6637b6c09789e00d9661271

11 years agoMake detachViewFromParent more robust
Chet Haase [Fri, 31 Aug 2012 00:20:08 +0000 (17:20 -0700)]
Make detachViewFromParent more robust

Calling detachViewFromParent() without calling remove or attach in the
same drawing frame could, in some situations, cause a crash in the native
DisplayList code. detach/attach are intended to be very lightweight and do
not manage the native DisplayList content the same way that add/remove do.
Nor do they cause an invalidate() or requestLayout(), which would cause the
native structures to get recreated appropriately.

This fix makes this process more robust in two ways:
- DisplayLists should not get finalized (therefore destroying their native
structures) when there are still parent DisplayLists referring to them
(each DisplayList keeps references to its child DisplayLists). This will
prevent the native crash associated with unmatched detach*() calls.
- The docs for detach/attach have been enhanced to make it easier for
developers to understand how to use these methods more correctly and
successfully.

Issue #7064818 detachViewFromParent() should be more robust

Change-Id: I53befc04d5d58c225060f397725566d470488c9b

11 years agoMerge "Fix code problem in writePidDns"
Wink Saville [Fri, 31 Aug 2012 00:36:05 +0000 (17:36 -0700)]
Merge "Fix code problem in writePidDns"

11 years agoEnforce permissions for calls with specified userId
Amith Yamasani [Thu, 30 Aug 2012 01:41:53 +0000 (18:41 -0700)]
Enforce permissions for calls with specified userId

Fix a couple of places where incorrect userIds were being passed in.

Change-Id: I398c676e0488ff7e584be96e96c8b32652134238

11 years agoam 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch...
Dianne Hackborn [Thu, 30 Aug 2012 23:04:19 +0000 (16:04 -0700)]
am 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '1a907db07ea105ea65e146713f436ed072d7084b':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoam 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when startin...
Dianne Hackborn [Thu, 30 Aug 2012 23:01:59 +0000 (16:01 -0700)]
am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '862c383530d64e6c493fb519f567dd5778d9d48c':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoNotify verifiers that verification is complete
rich cannings [Wed, 29 Aug 2012 21:49:51 +0000 (14:49 -0700)]
Notify verifiers that verification is complete

Send the Intent.ACTION_PACKAGE_VERIFIED to all verifiers when
verification is complete (either one verifier verified the package or a
timeout occurred). Details of what occurred is in a new extra,
PackageManager.EXTRA_VERIFICATION_RESULT.

Bug: 7048930
Change-Id: I4f9855a29b0eb6d77f469891402c69e2e8922945

11 years agoam 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."
Dianne Hackborn [Thu, 30 Aug 2012 22:59:40 +0000 (15:59 -0700)]
am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."

* commit '4b60a8d1b8b5f8fd04df5749ce225ed57e0a1a44':
  Added check of ActivityInfo launch mode when starting activity.

11 years agoMerge "Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set" into jb-mr1-dev
Romain Guy [Thu, 30 Aug 2012 22:26:57 +0000 (15:26 -0700)]
Merge "Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set" into jb-mr1-dev

11 years agoDon't quickReject() children if FLAG_CLIP_CHILDREN isn't set
Romain Guy [Thu, 30 Aug 2012 22:19:27 +0000 (15:19 -0700)]
Don't quickReject() children if FLAG_CLIP_CHILDREN isn't set

External report: http://code.google.com/p/android/issues/detail?id=36788

Change-Id: Ibdaecf37ab013e30b16e9dc7a6e50156d72c3e4f

11 years agoMerge "Added check of ActivityInfo launch mode when starting activity."
Dianne Hackborn [Thu, 30 Aug 2012 22:19:03 +0000 (15:19 -0700)]
Merge "Added check of ActivityInfo launch mode when starting activity."

11 years agoMerge "Improve multi-user broadcasts." into jb-mr1-dev
Dianne Hackborn [Thu, 30 Aug 2012 21:56:11 +0000 (14:56 -0700)]
Merge "Improve multi-user broadcasts." into jb-mr1-dev

11 years agoam 30b5bea0: (-s ours) am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:55:55 +0000 (14:55 -0700)]
am 30b5bea0: (-s ours) am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev

* commit '30b5bea07b7357b5063a12e54f002adae9af2b39':
  DO NOT MERGE Remove dead code

11 years agoMerge "Fix a typo in the sample code" into jb-mr1-dev
Teng-Hui Zhu [Thu, 30 Aug 2012 21:54:23 +0000 (14:54 -0700)]
Merge "Fix a typo in the sample code" into jb-mr1-dev

11 years agoam 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:53:42 +0000 (14:53 -0700)]
am 6fdd4963: Merge "DO NOT MERGE Remove dead code" into jb-dev

* commit '6fdd49630834b1c20a781c9d29b241a68d1289ef':
  DO NOT MERGE Remove dead code

11 years agoMerge "Fixed MemoryUsage issue with reporting results." into jb-mr1-dev
Maxim Siniavine [Thu, 30 Aug 2012 21:29:15 +0000 (14:29 -0700)]
Merge "Fixed MemoryUsage issue with reporting results." into jb-mr1-dev

11 years agoMerge "DO NOT MERGE Remove dead code" into jb-dev
John Reck [Thu, 30 Aug 2012 21:50:16 +0000 (14:50 -0700)]
Merge "DO NOT MERGE Remove dead code" into jb-dev

11 years agoFix a typo in the sample code
Teng-Hui Zhu [Thu, 30 Aug 2012 21:36:58 +0000 (14:36 -0700)]
Fix a typo in the sample code

Change-Id: I27ee1b0ef8abf5decefae1ec1706a9f142016344

11 years agoImprove multi-user broadcasts.
Dianne Hackborn [Thu, 30 Aug 2012 01:32:08 +0000 (18:32 -0700)]
Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c

11 years agoam 3dda2cff: (-s ours) am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolli...
Adam Powell [Thu, 30 Aug 2012 21:33:14 +0000 (14:33 -0700)]
am 3dda2cff: (-s ours) am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

* commit '3dda2cffafd94f7f9885efae1c9dc06bc3a625f0':
  DO NOT MERGE - Use focal point for scrolling in GestureDetector

11 years agoam 00925a3b: (-s ours) am d33b6217: DO NOT MERGE - New implementation for ScaleGestur...
Adam Powell [Thu, 30 Aug 2012 21:31:33 +0000 (14:31 -0700)]
am 00925a3b: (-s ours) am d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector

* commit '00925a3b883080fa6888ae9905394fc786465d26':
  DO NOT MERGE - New implementation for ScaleGestureDetector

11 years agoam ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector...
Adam Powell [Thu, 30 Aug 2012 21:30:49 +0000 (14:30 -0700)]
am ecb388ef: Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

* commit 'ecb388efefc427c3fa93f07fd11502564dc194a5':
  DO NOT MERGE - Use focal point for scrolling in GestureDetector

11 years agoam d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector
Adam Powell [Thu, 30 Aug 2012 21:29:02 +0000 (14:29 -0700)]
am d33b6217: DO NOT MERGE - New implementation for ScaleGestureDetector

* commit 'd33b6217fc128652a72f1626bcaa5f3b754102c6':
  DO NOT MERGE - New implementation for ScaleGestureDetector

11 years agoMerge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev
Adam Powell [Thu, 30 Aug 2012 21:28:16 +0000 (14:28 -0700)]
Merge "DO NOT MERGE - Use focal point for scrolling in GestureDetector" into jb-dev

11 years agoMerge "Turn off deadzone flash, replacing it with logcat." into jb-mr1-dev
Daniel Sandler [Thu, 30 Aug 2012 21:12:22 +0000 (14:12 -0700)]
Merge "Turn off deadzone flash, replacing it with logcat." into jb-mr1-dev

11 years agoTurn off deadzone flash, replacing it with logcat.
Daniel Sandler [Thu, 30 Aug 2012 21:10:50 +0000 (17:10 -0400)]
Turn off deadzone flash, replacing it with logcat.

Change-Id: I30db97e5c3a6ef3a06e6065ccf087a7f6d1f9286

11 years agoFixed MemoryUsage issue with reporting results.
Maxim Siniavine [Thu, 30 Aug 2012 21:05:38 +0000 (14:05 -0700)]
Fixed MemoryUsage issue with reporting results.

When the memory of the application did not stabilize within
the time limit, the test would report that using the application
name, instead of the result key. Fixed the test to always use the
result key.

Change-Id: Ie16969e831bd3d89ee0496b992568f52bf1989cb

11 years agoam 6ab3ea5f: am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:54:18 +0000 (13:54 -0700)]
am 6ab3ea5f: am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '6ab3ea5f48abfd777d5bd18d92acc3bc766f78ce':
  Watchdog: Improvement of debuggability

11 years agoam 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:52:00 +0000 (13:52 -0700)]
am 147ef944: am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '147ef9448540adaa4312e3cbc01adfc3c7902f50':
  Watchdog: Improvement of debuggability

11 years agoam 60d1e1a0: Merge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:49:58 +0000 (13:49 -0700)]
am 60d1e1a0: Merge "Watchdog: Improvement of debuggability"

* commit '60d1e1a09e4603e24652e930597ab204855eaa77':
  Watchdog: Improvement of debuggability

11 years agoMerge "Don't die(immediate) if from performTraversals." into jb-mr1-dev
Craig Mautner [Thu, 30 Aug 2012 20:33:19 +0000 (13:33 -0700)]
Merge "Don't die(immediate) if from performTraversals." into jb-mr1-dev

11 years agoMerge "Watchdog: Improvement of debuggability"
Jean-Baptiste Queru [Thu, 30 Aug 2012 20:32:09 +0000 (13:32 -0700)]
Merge "Watchdog: Improvement of debuggability"

11 years agoDO NOT MERGE - Use focal point for scrolling in GestureDetector
Adam Powell [Wed, 29 Aug 2012 20:54:44 +0000 (13:54 -0700)]
DO NOT MERGE - Use focal point for scrolling in GestureDetector

Remove workaround for obsolete touchscreen hardware. Provide a better
focal point for scroll events.

Change-Id: I173cd6696dace379437b56597c4a6ac5c7fbf60d

11 years agoDO NOT MERGE - New implementation for ScaleGestureDetector
Adam Powell [Tue, 28 Aug 2012 00:44:59 +0000 (17:44 -0700)]
DO NOT MERGE - New implementation for ScaleGestureDetector

This solves the problems around active pointer tracking when the
caller may skip events in the MotionEvent stream and replaces the
old implementation with a much simpler algorithm.

Change-Id: I97c0bfad03a6190e403e843d382e05ff2257b66f

11 years agoMerge "AudioService: pause music when undocked" into jb-mr1-dev
Eric Laurent [Thu, 30 Aug 2012 19:40:39 +0000 (12:40 -0700)]
Merge "AudioService: pause music when undocked" into jb-mr1-dev

11 years agoMerge "Use focal point for scrolling in GestureDetector" into jb-mr1-dev
Adam Powell [Thu, 30 Aug 2012 19:22:47 +0000 (12:22 -0700)]
Merge "Use focal point for scrolling in GestureDetector" into jb-mr1-dev

11 years agoam 8f58dfa9: am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when...
John Reck [Thu, 30 Aug 2012 18:45:47 +0000 (11:45 -0700)]
am 8f58dfa9: am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit '8f58dfa975d01c5c50de513848a6aa8a4460d32c':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoam da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic...
John Reck [Thu, 30 Aug 2012 18:43:34 +0000 (11:43 -0700)]
am da5cd308: am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit 'da5cd308028f8f6863bbe3631de91b96802695ec':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoam ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."
John Reck [Thu, 30 Aug 2012 18:41:38 +0000 (11:41 -0700)]
am ae03afda: Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

* commit 'ae03afda41ace0721e48ed15ce35345bfa033116':
  onSavePassword dialog can leak when WebViewClassic is destroyed.

11 years agoAudioService: pause music when undocked
Eric Laurent [Thu, 30 Aug 2012 18:30:16 +0000 (11:30 -0700)]
AudioService: pause music when undocked

Send becomming noisy event also when disconnecting a dock
(analog, digital or USB) or HDMI.

Bug 6760590.

Change-Id: I497df35a3c6817d2b300f532d4cc3f12e3ce9ace

11 years agoMerge "onSavePassword dialog can leak when WebViewClassic is destroyed."
John Reck [Thu, 30 Aug 2012 18:00:21 +0000 (11:00 -0700)]
Merge "onSavePassword dialog can leak when WebViewClassic is destroyed."

11 years agoDon't die(immediate) if from performTraversals.
Craig Mautner [Thu, 30 Aug 2012 03:59:22 +0000 (20:59 -0700)]
Don't die(immediate) if from performTraversals.

The Drive application was calling PopupWindow.dismiss from within
onMeasure. This caused dispatchDetachedFromWindow to be called
from within performTraversals. Since dispatchDetachedFromWindow
destroys much of what performTraversals uses this was a disaster
waiting to happen.

This fix adds a check for seeing if die(immediate=true) is being
called from within performTraversals. If it is then die doesn't
execute doDie immediately, but instead treats it as a call to
die(immediate=false).

Fixes bug 6836841.

Change-Id: I833289e12c19fd33c17a715b2ed2adcf8388573a

11 years agoAccess to all users' external storage.
Jeff Sharkey [Tue, 28 Aug 2012 23:23:01 +0000 (16:23 -0700)]
Access to all users' external storage.

System services holding this permission have external storage bound
one level higher, giving them access to all users' files.

Bug: 7003520
Change-Id: Ib2bcb8455740c713ebd01f71c9a2b89b4e642832

11 years agoMerge "Fix keyguard layout on tablet" into jb-mr1-dev
Jim Miller [Thu, 30 Aug 2012 17:31:41 +0000 (10:31 -0700)]
Merge "Fix keyguard layout on tablet" into jb-mr1-dev

11 years agoMerge "Add getter for animateFirstView property of ViewAnimator" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 17:30:28 +0000 (10:30 -0700)]
Merge "Add getter for animateFirstView property of ViewAnimator" into jb-mr1-dev

11 years agoMerge "Shared OBB storage across users." into jb-mr1-dev
Jeff Sharkey [Thu, 30 Aug 2012 17:28:51 +0000 (10:28 -0700)]
Merge "Shared OBB storage across users." into jb-mr1-dev

11 years agoFix keyguard layout on tablet
Jim Miller [Thu, 30 Aug 2012 17:24:40 +0000 (10:24 -0700)]
Fix keyguard layout on tablet

Bug:7084961
Change-Id: I6415aa736bf9e2b71a288716e3125429be2b663c

11 years agoAdd getter for animateFirstView property of ViewAnimator
Chet Haase [Thu, 30 Aug 2012 16:51:08 +0000 (09:51 -0700)]
Add getter for animateFirstView property of ViewAnimator

Tooling for xml properties is easier/better if we can properly reflect the
xml properties at the Java language API level as well. We had setters/getters
for the other properties of ViewAnimator, but only a setter for the
animateFirstView property.

Issue #6104327 Inconsistency between XML API and Java API for widgets - ViewAnimator

Change-Id: Iede7231fa433ce14f7a8299da4cedd4720370bc8

11 years agoMerge "Avoid thrashing the glyph cache during the precache phase" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 16:29:36 +0000 (09:29 -0700)]
Merge "Avoid thrashing the glyph cache during the precache phase" into jb-mr1-dev

11 years agoAvoid thrashing the glyph cache during the precache phase
Chet Haase [Thu, 30 Aug 2012 16:06:46 +0000 (09:06 -0700)]
Avoid thrashing the glyph cache during the precache phase

It is unlikely, but possible, to draw so many glyphs in a frame
(especially of the glyphs are quite large) that the cache starts flushing
itself to fit the later glyphs in. This causes unnecessary thrashing, because
when we actually draw the frame, we will again need to flush to fit the
earlier glyphs in, and then flush again to fit the later ones in.

It is better to avoid thrashing the cache at the precache phase, and wait
until we actually draw the glyphs that do not fit to do any eviction of
the earlier glyphs.

This change simply notes when we are in the preaching phase, and avoids flushing
the cache when a glyph does not fit.

Issue #7081725 avoid thrashing cache during DisplayList recording

Change-Id: I230410ab5b478091b1032fa99dc1752acf868bbe

11 years agoMerge "Fix bug with Fbo layer clipping" into jb-mr1-dev
Chet Haase [Thu, 30 Aug 2012 14:22:36 +0000 (07:22 -0700)]
Merge "Fix bug with Fbo layer clipping" into jb-mr1-dev

11 years agoWatchdog: Improvement of debuggability
rikard dahlman [Tue, 28 Aug 2012 14:12:38 +0000 (16:12 +0200)]
Watchdog: Improvement of debuggability

If the watchdog detects a problem the system server process
is killed, that is followed by a crash. Because the crash is
done after the system server process is killed, the crash
don't contain info about the system server.
This improvement will make sure that the system is crashed
before the system server process is killed.
Behavior is only changed for eng and userdebug builds.

Change-Id: I9f1c8fd8b03d0114032ed44fb582705ad0b49733

11 years agoonSavePassword dialog can leak when WebViewClassic is destroyed.
Johan Redestig [Thu, 30 Aug 2012 08:13:41 +0000 (10:13 +0200)]
onSavePassword dialog can leak when WebViewClassic is destroyed.

The AlertDialog creates in onSavePassword method leaks if
WebViewClassic is destroyed when the dialog is shown.

Change-Id: I81f20e1dd138467a6413766c0a081b389b334ae0

11 years agoMerge "Locking when clearing VPN source rules." into jb-mr1-dev
Jeff Sharkey [Thu, 30 Aug 2012 05:33:45 +0000 (22:33 -0700)]
Merge "Locking when clearing VPN source rules." into jb-mr1-dev

11 years agoLocking when clearing VPN source rules.
Jeff Sharkey [Thu, 30 Aug 2012 05:27:39 +0000 (22:27 -0700)]
Locking when clearing VPN source rules.

Otherwise lockdown VPN reset is racy and can bring down system_server.

Change-Id: Ib8eecde1d0857a1669c3ca5506a46198c71b1b51