10269 Commits

Author SHA1 Message Date
Craig Mautner
fc25e1ebf4 am bd696c05: am 7950d081: Merge "Make mLayoutNeeded per-Display." into jb-mr1-dev
* commit 'bd696c0573025fd5d424ef726b188a183895b609':
  Make mLayoutNeeded per-Display.
2012-09-04 16:39:46 -07:00
Craig Mautner
7950d081ac Merge "Make mLayoutNeeded per-Display." into jb-mr1-dev 2012-09-04 16:35:46 -07:00
Craig Mautner
19d59bc5ad Make mLayoutNeeded per-Display.
Switch from a global mLayoutNeeded to one for each Display so that
we don't run layout on Displays that haven't changed.

Change-Id: Ib65c5c667933cceacc46b94f4e6e6bd613d5cb35
2012-09-04 16:18:52 -07:00
Jim Miller
a6e7d33cab am 6627406a: am 175ae55c: Merge "Update DevicePolicyManager with ability to disable keyguard widgets" into jb-mr1-dev
* commit '6627406a5ce881d6d6b4bcdfef4b2b9804032810':
  Update DevicePolicyManager with ability to disable keyguard widgets
2012-09-04 15:25:40 -07:00
Jim Miller
175ae55c0d Merge "Update DevicePolicyManager with ability to disable keyguard widgets" into jb-mr1-dev 2012-09-04 15:20:42 -07:00
rich cannings
6b73398346 am e4b9584d: am 69042083: Merge "Enable package verification" into jb-mr1-dev
* commit 'e4b9584d94e2bae424fed64c243323ce56ad43bc':
  Enable package verification
2012-09-04 15:13:15 -07:00
rich cannings
690420831c Merge "Enable package verification" into jb-mr1-dev 2012-09-04 15:09:09 -07:00
Fabrice Di Meglio
949c875a05 am 81c66d65: am 035ce2ca: Merge "Add support for "-rtl" in resources" into jb-mr1-dev
* commit '81c66d6592718e9a1c57c39c1675ea13e8e769bb':
  Add support for "-rtl" in resources
2012-09-04 15:06:20 -07:00
Fabrice Di Meglio
035ce2ca92 Merge "Add support for "-rtl" in resources" into jb-mr1-dev 2012-09-04 15:01:03 -07:00
Jim Miller
b8ec470617 Update DevicePolicyManager with ability to disable keyguard widgets
Change-Id: I5876e9e180b2a995aaa355fbbb2b67cebb86104d
2012-09-04 13:52:36 -07:00
rich cannings
68ed7e448d Enable package verification
Turn on package verification, if a verifier exists. Play app is now a verifier.

Bug: 7064853
Change-Id: I11f6b108c507ea6236038b1415eb9064ca4c3c6d
2012-09-04 13:42:32 -07:00
Dianne Hackborn
6d2e850819 am bc5b003a: am d2a8df95: Merge "Fix issue #7097984 java.lang.SecurityException: Permission Denial:" into jb-mr1-dev
* commit 'bc5b003a45a900263d565ba7bb48908e80638b7d':
  Fix issue #7097984 java.lang.SecurityException: Permission Denial:
2012-09-04 13:16:07 -07:00
Dianne Hackborn
d2a8df9541 Merge "Fix issue #7097984 java.lang.SecurityException: Permission Denial:" into jb-mr1-dev 2012-09-04 13:11:49 -07:00
Craig Mautner
754b61abc7 am 0f3428f3: am 34a75df6: Merge "Remove single pass actions from display loop." into jb-mr1-dev
* commit '0f3428f3b9b9372311f12681e7e89a4e248531d9':
  Remove single pass actions from display loop.
2012-09-04 12:38:25 -07:00
Craig Mautner
a52b41b7d5 am fed542f1: am ed48f9f8: Merge "Change layout inner loop order for multi display." into jb-mr1-dev
* commit 'fed542f16cb68d778f8df46df3c2de40fe4222aa':
  Change layout inner loop order for multi display.
2012-09-04 12:36:42 -07:00
Craig Mautner
34a75df635 Merge "Remove single pass actions from display loop." into jb-mr1-dev 2012-09-04 12:32:11 -07:00
Craig Mautner
ed48f9f8b2 Merge "Change layout inner loop order for multi display." into jb-mr1-dev 2012-09-04 12:30:45 -07:00
Dianne Hackborn
b8839dd357 Fix issue #7097984 java.lang.SecurityException: Permission Denial:
broadcast asks to run as user -1 but is calling from user 0; this requires

Also improve part of issue #7087789: Local denial of service via
low-permissioned apps

No longer allow closeSystemDialogs() from background processes.

Change-Id: I752d5a1d51be0b69fde6999d6659835e5bde3efe
2012-09-04 12:11:21 -07:00
Dianne Hackborn
750c950820 am e7713557: am 7d69e8bd: Merge "Add registering for explicit users." into jb-mr1-dev
* commit 'e7713557927412a5a80d41d6ee5a68bddeda948c':
  Add registering for explicit users.
2012-09-04 10:44:45 -07:00
Dianne Hackborn
7d69e8bd21 Merge "Add registering for explicit users." into jb-mr1-dev 2012-09-04 10:40:07 -07:00
Dianne Hackborn
20e809870d Add registering for explicit users.
New API to register as an explicit user, which allows you to
also select ALL to see broadcasts for all users.

New BroadcastReceiver API to find out which user the broadcast
was sent to.

Use this in app widget service to handle per-user package broadcasts
and boot completed broadcasts correctly.

Change-Id: Ibbe28993bd4aa93900c79e412026c27863019eb8
2012-09-04 10:39:21 -07:00
Craig Mautner
ea3a09a5b9 Remove single pass actions from display loop.
The WindowAnimator loop over each Display contained actions that
only needed to be done one time but were instead done once per loop.

Change-Id: Ia916b08cdb7670686e6295dbcef6a5ff27474099
2012-09-04 09:49:35 -07:00
Craig Mautner
76a7165719 Change layout inner loop order for multi display.
The inner loop that ran over each display had a few problems:
- The Surface transaction was starting and stopping between each
display.
- The layout change bits were being applied globally so all
displays were layed out when only individual displays needed to be.
- Wallpaper and input actions were being applied each time through
the display loop rather than once only for the default display.

Change-Id: I924252bab28c426222a4bb73693accc4b21cecbe
2012-09-04 08:59:39 -07:00
Craig Mautner
bd6cc4973d am 1f7b5c30: am e94831e5: Merge "Minor refactors." into jb-mr1-dev
* commit '1f7b5c3043c5eda7932c8e1f6bbee4f06c593f15':
  Minor refactors.
2012-09-02 07:55:58 -07:00
Craig Mautner
e94831e5ed Merge "Minor refactors." into jb-mr1-dev 2012-09-02 07:51:28 -07:00
Craig Mautner
398341927f Minor refactors.
- Refactor DragState to take Display instead of DisplayContent.
- Rename xxxAnimationLw methods in WindowManagerPolicy to xxxPostLayout
to reflect animation refactoring.

Change-Id: I502f2aa45a699ad395a249a12abf9843294623f0
2012-09-02 07:47:24 -07:00
Dianne Hackborn
37f5ec2a21 am 9b52f007: am 2701f325: Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev
* commit '9b52f0071780160355376484a3992d2710160a3f':
  Remove Binder.getOrigCallingUid().
2012-08-31 16:28:41 -07:00
Amith Yamasani
cb3c5d8d11 am d92518fd: am 430e5b23: Merge "Centralize the creation of the user system directory" into jb-mr1-dev
* commit 'd92518fd4b7eaa8c8abdda4b6b97f7acca3f95cf':
  Centralize the creation of the user system directory
2012-08-31 16:28:36 -07:00
Dianne Hackborn
2701f325a6 Merge "Remove Binder.getOrigCallingUid()." into jb-mr1-dev 2012-08-31 16:23:47 -07:00
Amith Yamasani
430e5b23cf Merge "Centralize the creation of the user system directory" into jb-mr1-dev 2012-08-31 16:22:52 -07:00
Jeff Brown
b7b396cf5b am 697b1a01: am f83ec838: Merge "More improvements to the display manager." into jb-mr1-dev
* commit '697b1a015efde0ed69cfa69de4f9a908640a4ec1':
  More improvements to the display manager.
2012-08-31 15:53:47 -07:00
Jeff Brown
f83ec83891 Merge "More improvements to the display manager." into jb-mr1-dev 2012-08-31 15:49:17 -07:00
Jeff Brown
4ed8fe75e1 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
2012-08-31 15:42:46 -07:00
Amith Yamasani
61f57379ca 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
2012-08-31 15:33:21 -07:00
Dianne Hackborn
4120375d46 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
2012-08-31 15:11:13 -07:00
Christopher Tate
5af942d324 am fcfa228c: am 176d105d: Merge "Don\'t set the time zone under the caller\'s identity" into jb-mr1-dev
* commit 'fcfa228c4c88581d3792934e645e1048f5913017':
  Don't set the time zone under the caller's identity
2012-08-31 14:52:14 -07:00
Christopher Tate
897798225d 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
2012-08-31 14:44:25 -07:00
Jeff Brown
51f4f43a57 am 68a6f2a7: am 00453e7a: Merge "Tweak overlay display adapter scaling." into jb-mr1-dev
* commit '68a6f2a737ce6dc0f418132edbef9cd84e201d1c':
  Tweak overlay display adapter scaling.
2012-08-31 00:46:00 -07:00
Jeff Brown
00453e7a01 Merge "Tweak overlay display adapter scaling." into jb-mr1-dev 2012-08-31 00:41:15 -07:00
rich cannings
6c197585c1 am d3fe930d: am a2875f48: Merge "Notify verifiers that verification is complete" into jb-mr1-dev
* commit 'd3fe930da9199d7fde39e243ba9c695872c0622b':
  Notify verifiers that verification is complete
2012-08-30 20:39:58 -07:00
rich cannings
a2875f481b Merge "Notify verifiers that verification is complete" into jb-mr1-dev 2012-08-30 20:35:08 -07:00
Amith Yamasani
7ced19d5ce am b33ef6a2: am f203aeef: Enforce permissions for calls with specified userId
* commit 'b33ef6a212c520d27fde88600c8f8c936b568446':
  Enforce permissions for calls with specified userId
2012-08-30 17:31:43 -07:00
Dianne Hackborn
99c8584954 am f4444412: am b2dd4e87: am 1a907db0: am 862c3835: am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."
* commit 'f44444120b84da822077cddd4ed37359c7de7481':
  Added check of ActivityInfo launch mode when starting activity.
2012-08-30 16:08:55 -07:00
Amith Yamasani
f203aeef99 Enforce permissions for calls with specified userId
Fix a couple of places where incorrect userIds were being passed in.

Change-Id: I398c676e0488ff7e584be96e96c8b32652134238
2012-08-30 16:08:23 -07:00
Dianne Hackborn
b2dd4e87ae 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.
2012-08-30 16:04:19 -07:00
rich cannings
d1b5cfc94a 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
2012-08-30 16:00:59 -07:00
Dianne Hackborn
862c383530 am 4b60a8d1: Merge "Added check of ActivityInfo launch mode when starting activity."
* commit '4b60a8d1b8b5f8fd04df5749ce225ed57e0a1a44':
  Added check of ActivityInfo launch mode when starting activity.
2012-08-30 15:59:40 -07:00
Dianne Hackborn
4b60a8d1b8 Merge "Added check of ActivityInfo launch mode when starting activity." 2012-08-30 15:19:03 -07:00
Dianne Hackborn
7cd1bfa801 am f59dfc81: am 73365695: Merge "Improve multi-user broadcasts." into jb-mr1-dev
* commit 'f59dfc81f4d1e91aa436ed70d7f8372bce3d91e0':
  Improve multi-user broadcasts.
2012-08-30 15:01:28 -07:00
Dianne Hackborn
73365695e4 Merge "Improve multi-user broadcasts." into jb-mr1-dev 2012-08-30 14:56:11 -07:00