2192 Commits

Author SHA1 Message Date
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
Daniel Sandler
8c890f8a69 Merge "Work around instability of Display.getRotation()." into jb-mr1-dev 2012-08-31 12:06:42 -07:00
Daniel Sandler
7f3cf9586e 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
2012-08-31 14:58:13 -04:00
Sascha Prueter
6beee2694c am a3503f26: am 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev
* commit 'a3503f2688c69b49a309763d8da7e7c04327d6d7':
  Revert "Update Back softkey icon Bug: 6020915"
2012-08-31 11:46:13 -07:00
Sascha Prueter
a3503f2688 am 6ee6615d: Merge "Revert "Update Back softkey icon Bug: 6020915"" into jb-dev
* commit '6ee6615d8f923a68021d04dc06b20d72c3f8498a':
  Revert "Update Back softkey icon Bug: 6020915"
2012-08-31 11:43:59 -07:00
Sascha Prueter
f14f01cc26 Revert "Update Back softkey icon Bug: 6020915"
This reverts commit 962daf9b1c4b12aff68a137472b6a7f4db123c65

Change-Id: If60099643336e35fe5bf7dcbf68a419bcd7ebae3
2012-08-31 11:39:44 -07:00
Dianne Hackborn
73365695e4 Merge "Improve multi-user broadcasts." into jb-mr1-dev 2012-08-30 14:56:11 -07:00
Dianne Hackborn
5ac72a2959 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
2012-08-30 14:33:22 -07:00
Daniel Sandler
25bb8eec2d Turn off deadzone flash, replacing it with logcat.
Change-Id: I30db97e5c3a6ef3a06e6065ccf087a7f6d1f9286
2012-08-30 17:10:50 -04:00
Daniel Sandler
8601e8b3ab Merge "Expand the navbar dead zone briefly after touches elsewhere." into jb-mr1-dev 2012-08-29 20:29:28 -07:00
Daniel Sandler
c26185bb7b Expand the navbar dead zone briefly after touches elsewhere.
For now, each time the dead zone captures a touch, it will
flash to let you know that's what happened. We should
probably turn this off before shipping.

Note also that this currently only expands the navbar on
ACTION_DOWN elsewhere in the UI (because this is the only
time ACTION_OUTSIDE is generated); this isn't perfect and
we'll need to do some mucking about with the input system to
get information about ongoing drags or additional pointers
down, but this CL is a good start and introduces the general
mechanism for expanding and contracting the dead zone.

Change-Id: I43e63aed1e541fd07d83fde4d66bcb5be89b69d2
2012-08-29 20:11:21 -04:00
Amith Yamasani
7af0c166f0 Merge "Fix recents list for multiuser" into jb-mr1-dev 2012-08-28 17:02:29 -07:00
Amith Yamasani
d2e99565f5 Fix recents list for multiuser
Since the Recents is now an activity running in the respective user's sandbox,
it shouldn't use the special API to get the current user's recent tasks.
Otherwise it causes all users to fetch the state of the current foreground user
instead of their own recents.

Change-Id: Ice8c2978e6a7ae71c44666c79a19ac07a2cbea1b
2012-08-28 15:49:06 -07:00
Baligh Uddin
97d8f83818 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-28 15:31:22 -07:00
Daniel Sandler
0d43c567ce am 393e3170: am ad955fe8: Merge "SystemUI: Fix data activity overlay not being removed when data is disabled"
* commit '393e3170b3f52a3e191554ffd8c8f81821ba2074':
  SystemUI: Fix data activity overlay not being removed when data is disabled
2012-08-28 13:41:19 -07:00
Baligh Uddin
0d51d679b2 Import translations. DO NOT MERGE
Change-Id: I4739f1d06aba86718416cde965590fe9535bde51
Auto-generated-cl: translation import
2012-08-28 13:30:55 -07:00
Daniel Sandler
393e3170b3 am ad955fe8: Merge "SystemUI: Fix data activity overlay not being removed when data is disabled"
* commit 'ad955fe87f44b43dbb2842fdcbe4e62900b5a07f':
  SystemUI: Fix data activity overlay not being removed when data is disabled
2012-08-28 13:19:52 -07:00
Daniel Sandler
ad955fe87f Merge "SystemUI: Fix data activity overlay not being removed when data is disabled" 2012-08-28 12:52:49 -07:00
Baligh Uddin
d4114d1aa3 Import translations. DO NOT MERGE
Change-Id: Ief33e8fa1f5852b5fd221fafc7bc2f7407aca6d1
Auto-generated-cl: translation import
2012-08-27 13:43:42 -07:00
John Spurlock
68cff8c117 Merge "Beans in space." into jb-mr1-dev 2012-08-27 08:08:11 -07:00
John Spurlock
f07439fba4 Beans in space.
Quick example dream reusing the JB bean bag view.

Change-Id: Iad3ecedc9ba2c258bd33fcfbba2e3fc48382bdc8
2012-08-25 13:25:37 -04:00
Baligh Uddin
6208c6da63 Import translations. DO NOT MERGE
Change-Id: I34bae2ebf2fbf14c76d13c4e2e38c2aa25b3f6d9
Auto-generated-cl: translation import
2012-08-24 12:37:21 -07:00
Chris Wren
b8ea2f59e2 [phones] Only allow double-flick opening of the quicksettings panel.
Bug: 7043587
Change-Id: I39d208626c477e8c081c9d81c3124eb631152998
2012-08-24 12:20:30 -04:00
Baligh Uddin
3081c71a83 Import translations. DO NOT MERGE
Change-Id: Ie2c09a688d76f2886909461362de765820d3e255
Auto-generated-cl: translation import
2012-08-23 17:24:01 -07:00
Justin Ho
fd9619f647 am 3bc03666: am 72404a82: Merge "Update Back softkey icon Bug: 6020915" into jb-dev
* commit '3bc03666ccd322f8ebc0c303dabe920b2ae6944c':
  Update Back softkey icon Bug: 6020915
2012-08-23 12:34:37 -07:00
Michael Jurka
03f482c34d Merge "Recents: apps scale down to thumbnails now" into jb-mr1-dev 2012-08-23 04:57:55 -07:00
Michael Jurka
cb2522c86d Recents: apps scale down to thumbnails now
As a part of this change, Recents is now an
activity.

Known issues:
* Jank: jump-cut as app icon appears suddenly
  after the aniamtion
* Preloading recents is broken on phones without
  soft nav bar and on tablets
* Thumbnail window from animation lingers/flashes
  sometimes

Change-Id: Ie6f991f3c2e1e67f9ed84eb6adba9174ed957248
2012-08-23 04:53:53 -07:00
Baligh Uddin
48df87298a Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-22 19:50:06 -07:00
Justin Ho
3bc03666cc am 72404a82: Merge "Update Back softkey icon Bug: 6020915" into jb-dev
* commit '72404a82d30ff0631a31aed93f221c1fdf210888':
  Update Back softkey icon Bug: 6020915
2012-08-22 12:58:09 -07:00
Baligh Uddin
ae1c2d1c15 Import translations. DO NOT MERGE
Change-Id: I56235165dab3db350e0f5918f4f9bca8f33be611
Auto-generated-cl: translation import
2012-08-22 11:35:27 -07:00
Chet Haase
4d179dc6cc Fix animation of notification handle bar when panel changes height
The notification panel uses LayoutTransition to animate changes to
the list of notifications. This works for the items themselves as
items are added or removed; the new/old items animate in/out and the
existing items animate to make or remove space.

But the handle at the bottom of the list (the gray translucent line) does
not play well with these changes. For example, when an item is swiped away
the handle snaps into its new location before the rest of the items have
finished animating.

The problem comes from a constraint of LayoutTransition; it handles changes
to the container it operates on, and to the parent hierarchy all the way up
to the root. However, it cannot animate changes to siblings of the parents.
So when the list resizes due to item changes, the handle (which is in a sibling
of the list) does not animate this change, but just reacts instantly.

The fix is to draw the handle not as a view itself, but rather as part of the
parent container of the list. So as the list animates a resize, the container will
also animate, and any graphics in the container will animate along with it.
No matter what size the container of the list is, the line will be drawn at
the bottom of it.

Issue #7024902 Notification panel animation incorrect when swiping notification out

Change-Id: Ifc412cb6bcdc6ead35993b0320364a2a95a16e11
2012-08-22 07:53:44 -07:00
Justin Ho
962daf9b1c Update Back softkey icon
Bug: 6020915

Change-Id: I780f09bd1e99a10b2189ab253dd1a082118a385d
2012-08-21 14:21:29 -07:00
Chet Haase
66bcbb9e39 Merge "Fix notification panel bug which prevented proper resizing" into jb-mr1-dev 2012-08-21 13:03:49 -07:00
Baligh Uddin
11780f2f66 Import translations. DO NOT MERGE
Change-Id: Ie9c95838e61ce5fffd21db7cd63f393a7ec2735e
Auto-generated-cl: translation import
2012-08-21 10:43:48 -07:00
Chet Haase
179ec6d0bc Fix notification panel bug which prevented proper resizing
When the notification panel is opened larger than the list's length,
the penl is put into a "rubber band" mode, to animate the bottom of the
panel back to the end of the list. But the rubber band mode is never
unset, which causes an improper result if another notification is ended,
preventing the panel from resizing to the new, appropriate size of the list.

Fix is to unset the rubber banding flag when the snapping animation finishes.

Issue #6992133 Notification bar does not drop down completely in Mako

Change-Id: Id93918086353f58d6eb6bb071556f08eb2e2706e
2012-08-20 17:38:29 -07:00
Benoit Goby
4e68bd420b Add UsbDebuggingManager and UsbDebuggingActivity
The UsbDebuggingManager listens to adbd requests and displays a dialog
when the public key authentification fails, for the user to confirm if it
wants to allow USB debugging from the attached host. If the user chooses
to always allow USB debugging, the UsbDebuggingManager writes the public
key to adbd's config file so that the public key authenfication succeeds
next time.

Change-Id: I115c828331d8e326c380844ee33915d5dff22260
2012-08-20 13:44:34 -07:00
Jeff Brown
98365d7663 Refactor for multi-display support.
Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class.  This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault().  This represents the
bulk of this change.  Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids.  Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
2012-08-19 22:42:08 -07:00
Michael Jurka
d2ae85d41e Merge "Adding a thumbnail scale down animation" into jb-mr1-dev 2012-08-17 13:03:15 -07:00
Dianne Hackborn
79af1dd54c Switch public APIs to use new UserHandle class for identifying users.
Gets rid of "yet another integer" confusion.

Change-Id: Id07ea7307aea7c62f0087c6663a1f1c08e2e5dee
2012-08-17 10:36:08 -07:00
Amith Yamasani
2a00329c6d UserHandle to UserSerialNo mapping
Use AtomicFile for usermanager files.

Added a MANAGE_USERS permission that apps (signature permission) can use
to create/query/modify/remove users.

Change-Id: I5cf232232d0539e7508df8ec9b216e29c2351cd9
2012-08-17 09:06:10 -07:00
Daniel Sandler
5050813f15 Allow the panels to be temporarily dragged past their contents.
Once the user lets go, restore the "correct" height of the
panel.

Bug: 6999596
Change-Id: I2db393873cee876cf17fea25c9d25fe5e3a78424
2012-08-16 15:54:57 -04:00
Daniel Sandler
3fd688fa50 Merge changes Ifad4bd65,I6a4b7d69 into jb-mr1-dev
* changes:
  Turn off an assert.
  Fix crash in SystemUI.
2012-08-16 12:52:18 -07:00
Dianne Hackborn
f02b60aa4f Rename UserId to UserHandle.
This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
2012-08-16 12:46:38 -07:00
Daniel Sandler
fa71962948 Turn off an assert.
Change-Id: Ifad4bd65ddcedc6e2dd018695fd37ddbf9163e80
2012-08-16 13:52:39 -04:00
Daniel Sandler
5a35a0d560 Fix crash in SystemUI.
It looks like we were end()ing the main timing animation in
the middle of the animation (and too many times, at that).

Bug: 6992223
Change-Id: I6a4b7d692171baa73f6211c7843e164b05383a30
2012-08-16 13:52:31 -04:00
Daniel Sandler
1e8feef1fa Fix status bar disabling.
Bug: 6998403
Change-Id: I8a47e694f2f3914ef5cf0d180b0309783148c627
2012-08-16 11:37:41 -04:00
Michael Jurka
832cb229cd Adding a thumbnail scale down animation
Recents animation will temporarily look a bit
wrong, but a subsequent change will fix this.
2012-08-16 00:14:03 -07:00
Daniel Sandler
228916713d Merge "Multiuser support for notifications, take 1." into jb-mr1-dev 2012-08-15 21:03:26 -07:00
Daniel Sandler
b9301c3a68 Multiuser support for notifications, take 1.
Notifications for background users are hidden from the
panel and status bar.

Still need to add a concept of "any user" notifications (for
things coming from the system) and notification visibility
controls (for access to icons + possibly masked text of
a background user's notifications).

Change-Id: Iba121f35a6c25c2e1c44db029d776a5a59a6a008
2012-08-15 23:00:56 -04:00
Daniel Sandler
cf591db049 Confine the quick settings trigger to the right third of the status bar.
Pulling down anywhere on the status bar when a panel is
already showing will switch to the other panel.

Also adjust gesture recorder output to track the settings
panel and annotate it separately.

Change-Id: I0ca3b395b5f2c6c8767237126bce26d0e8c9b8c0
2012-08-15 22:52:03 -04:00