3387 Commits

Author SHA1 Message Date
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
f59edadd28 am a5fc3b10: am 66bcbb9e: Merge "Fix notification panel bug which prevented proper resizing" into jb-mr1-dev
* commit 'a5fc3b1011522bfe9345726d0bba8cf903fb88c6':
  Fix notification panel bug which prevented proper resizing
2012-08-21 13:08:03 -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
09fea9e304 Import translations. DO NOT MERGE
Change-Id: Iade283b5df45c0968fd2ce437b4b7859ca86a68f
Auto-generated-cl: translation import
2012-08-21 10:45:01 -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
427af58304 am e6bc1238: am 7b7feee8: Merge "Add UsbDebuggingManager and UsbDebuggingActivity" into jb-mr1-dev
* commit 'e6bc1238b7e832c4a568f6bd8a1c769dd1d173ea':
  Add UsbDebuggingManager and UsbDebuggingActivity
2012-08-20 14:52:55 -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
ae56520b36 am aa32f5f0: am 98365d76: Refactor for multi-display support.
* commit 'aa32f5f0db25a1553a353d93274f12432e5d07fc':
  Refactor for multi-display support.
2012-08-19 23:12:23 -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
4a2efa1a6e am 76070ed3: am d2ae85d4: Merge "Adding a thumbnail scale down animation" into jb-mr1-dev
* commit '76070ed39749917efdd15be738f6172959b69acd':
  Adding a thumbnail scale down animation
2012-08-17 13:08:09 -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
7066aafa13 am 73c4e53f: am 79af1dd5: Switch public APIs to use new UserHandle class for identifying users.
* commit '73c4e53f0febb7ac0b454a15180ad0810950d6fe':
  Switch public APIs to use new UserHandle class for identifying users.
2012-08-17 11:47:38 -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
91413e745d am 745ec38b: am 9c38d6e5: Merge "UserHandle to UserSerialNo mapping" into jb-mr1-dev
* commit '745ec38bdca1e86dd0093ade4a382880fda7743a':
  UserHandle to UserSerialNo mapping
2012-08-17 09:24:34 -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
Nick Pelly
f34eae6d23 am 78e9ea9c: am 1f3f128a: Merge "Add javadoc for new location API\'s." into jb-mr1-dev
* commit '78e9ea9c7b4cce2317a24f57cd67d74c53bd1eaf':
  Add javadoc for new location API's.
2012-08-16 18:10:35 -07:00
Nick Pelly
1f3f128ad1 Merge "Add javadoc for new location API's." into jb-mr1-dev 2012-08-16 18:05:32 -07:00
Nick Pelly
4e31c4fffb Add javadoc for new location API's.
Change-Id: If15024ee88421c07ba3a174747774fc451fd002e
2012-08-16 17:59:34 -07:00
Daniel Sandler
7455dc3bf4 am 9744ad68: am 5050813f: Allow the panels to be temporarily dragged past their contents.
* commit '9744ad68e212ce9d08c63ac4ed7b25c81797fd65':
  Allow the panels to be temporarily dragged past their contents.
2012-08-16 13:00:29 -07:00
Daniel Sandler
2c35514efb am b9c0ebc1: am 3fd688fa: Merge changes Ifad4bd65,I6a4b7d69 into jb-mr1-dev
* commit 'b9c0ebc13b50d505026915e6568bfca3ff7fdab0':
  Turn off an assert.
  Fix crash in SystemUI.
2012-08-16 12:57:23 -07:00
Dianne Hackborn
57ccc62e87 am fe1d3d4c: am f02b60aa: Rename UserId to UserHandle.
* commit 'fe1d3d4c52acd5b07466e8111a6db2c596a78a7f':
  Rename UserId to UserHandle.
2012-08-16 12:55:34 -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
Svetoslav Ganov
936d4f2a15 am 2691ab25: am ca34bcf6: resolved conflicts for merge of 80c904df to jb-mr1-dev
* commit '2691ab25e51f0f6c1c90d8f39625549f90fd10fc':
  Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
2012-08-16 12:29:46 -07:00
Svetoslav Ganov
ca34bcf674 resolved conflicts for merge of 80c904df to jb-mr1-dev
Change-Id: Ic2f8d64cd716d04a533ca0685d1fb0d5e2a21933
2012-08-16 12:22:23 -07:00
Daniel Sandler
ceb0bbbe1c am be8e86a1: am 504135b5: Merge "Fix status bar disabling." into jb-mr1-dev
* commit 'be8e86a18846a5171b39411dbfe30bfe88d4dd24':
  Fix status bar disabling.
2012-08-16 11:00:25 -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
Svetoslav Ganov
80c904df15 am 8631701b: Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
* commit '8631701bb770f3a4e3b2a139dc282f2244fe86e6':
  Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
2012-08-16 10:36:55 -07: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
Svetoslav Ganov
8631701bb7 Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
1. Before JellyBean touch exploration was a global setting controlled by the user via
   the UI. However, if the enabled accessibility services do not handle touch exploration
   mode, enabling it makes no sense. Therefore, in JellyBean the services request touch
   exploration mode and the user is presented with a dialog to allow that and if she
   does we store that in the database.

   As a result of the above change a user that has enabled  accessibility, touch
   exploration, and some accessibility services running a pre-JellyBean system
   version may lose touch exploration state, thus rendering the device useless unless
   sighted help is provided, since the enabled service(s) are not in the list of
   services to which the user granted a permission to put the device in touch explore
   mode.

   The fix is during a database upgrade to allow allow all enabled accessibility
   services to toggle touch exploration provided accessibility and touch exploration
   are enabled and no services can toggle touch exploration. Note that the user has
   already manually enabled the services and touch exploration which means the she
   has given consent to have these services work in touch exploration mode

bug:6996354

Change-Id: I0af2dc578cc4fbcc90043341035163b876978ab2
2012-08-15 22:13:03 -07:00
Daniel Sandler
cca3295f3e am b409323f: am 22891671: Merge "Multiuser support for notifications, take 1." into jb-mr1-dev
* commit 'b409323fd5a68f5699644dc6373842524ace7752':
  Multiuser support for notifications, take 1.
2012-08-15 21:08:19 -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
528baa90f9 am ecfbf455: am 2b197db7: Merge "Confine the quick settings trigger to the right third of the status bar." into jb-mr1-dev
* commit 'ecfbf4556adad4c112c39fc7d1b8633db2b0f087':
  Confine the quick settings trigger to the right third of the status bar.
2012-08-15 20:07:48 -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
Daniel Sandler
861e030314 am 2b207837: am 978f853d: Fix situations where the panel wouldn\'t descend.
* commit '2b2078370372e1e7c95c5ca466198a1db384db51':
  Fix situations where the panel wouldn't descend.
2012-08-15 12:55:47 -07:00
Daniel Sandler
978f853d18 Fix situations where the panel wouldn't descend.
Change-Id: I41c1d6a973b2693487062f3a5fbf922ff2025897
2012-08-15 15:48:43 -04:00
Daniel Sandler
7e6c9a7c24 am acd7716a: am 2db99c56: Merge "Turn off chatty logging for everyone." into jb-mr1-dev
* commit 'acd7716a31e2e7896c9525a4eba4fffbc578831d':
  Turn off chatty logging for everyone.
2012-08-15 12:08:07 -07:00
Daniel Sandler
2db99c56f7 Merge "Turn off chatty logging for everyone." into jb-mr1-dev 2012-08-15 12:03:58 -07:00
Jeff Brown
76a2a59966 am e4e71e1d: am 194b6e97: Merge "Power manager rewrite." into jb-mr1-dev
* commit 'e4e71e1d06442726e23f8ccf66c75468634008c4':
  Power manager rewrite.
2012-08-15 10:30:52 -07:00
Jeff Brown
194b6e9716 Merge "Power manager rewrite." into jb-mr1-dev 2012-08-15 10:26:03 -07:00
Daniel Sandler
bf4aa9d5bc Turn off chatty logging for everyone.
Change-Id: I6c6f48012df8a551ae4f2b2a9cd2713184234763
2012-08-15 10:49:28 -04:00
Daniel Sandler
dac17a275f am 05b5391f: am 9cc9aeb0: Merge "Quick settings come to all Android devices." into jb-mr1-dev
* commit '05b5391f55de04f8aa9fe9ac107a4bbb021d08ca':
  Quick settings come to all Android devices.
2012-08-15 06:57:30 -07:00
Daniel Sandler
8e72c9e19c Quick settings come to all Android devices.
I mean, real soon now.

Change-Id: I9a15b49f271e7ae06eb48a402f58270d8adccbf4
2012-08-15 09:52:43 -04:00