10152 Commits

Author SHA1 Message Date
Selim Cinek
3122fa85b2 Added a message to the keyguard bouncer
A message can now be shown on the keyguard bouncer
explaining why the bouncer is being shown.

Bug: 21618072
Change-Id: I25aea9cc242abbf6a133fb42cc4407f5c2f3f688
2015-06-18 15:30:36 -07:00
Dan Sandler
50ec9b1bd9 Merge "Patch up certain kinds of broken notifications." into mnc-dev 2015-06-18 20:26:49 +00:00
Chris Wren
5e275f9fc0 Merge "instrument volume controls" into mnc-dev 2015-06-18 19:57:50 +00:00
Chris Wren
c4be54a3cb turn off the ligths whenever we see the panel
If notifications are shown on the lockscreen, that counts.

Bug: 15430403
Change-Id: I2598526ff08d5b1eed174c80542634f1fc31ba94
2015-06-18 15:33:40 -04:00
Jason Monk
aa2a19661d Merge "Fix some demo mode issues" into mnc-dev 2015-06-18 19:32:03 +00:00
Jason Monk
259e06f582 Fix some demo mode issues
Bug: 21919885
Change-Id: If79d76a2954b62e290691b1c2338d175fdbbffc5
2015-06-18 15:24:43 -04:00
Jason Monk
7f274f0e1d Merge "Fix opening secured networks from QS" into mnc-dev 2015-06-18 19:19:17 +00:00
Dan Sandler
4e78706f43 Patch up certain kinds of broken notifications.
Notifications in which the icon resource ID is changed after
Builder.build() is called (even, and particularly, as the
last step in the current implementation of
setLatestEventInfo()) were not having their icons properly
parceled. In these cases we now attempt to catch this at
parcel time and construct the necessary Icon object.

But wait! Parceling does not require a Context. So we don't
actually know which package to load the resource from.
Therefore we now allow an Icon to be constructed with an
empty ("") package name, which allows us to complete this
parceling task despite the fact that a Notification does not
know its own package name. (In case you attempt to load a
drawable for such an Icon, loadDrawable will spot the ""
package and instead substitute the Context from its
parameters to try to load the resource.)

As it happens, even though the Notification does not know
its own package name, BaseStatusBar does, because it was
provided at NM.notify() time and is therefore included in
the StatusBarNotification structure. So we can actually
patch up the Icon (if it is TYPE_RESOURCE) and be sure to
get the icon loaded out of the correct package.

While we've got the hood open, this change fixes a couple of
related problems:

  • Foreground service notifications synthetically
    constructed for naughty icon==0 notifications (which we
    are still allowing...FOR NOW) were losing the
    FLAG_FOREGROUND_SERVICE flag (because we're
    re-build()-ing them from scratch rather than rewriting
    the provided Notification object). Now we set the flag
    and hang onto the new notification for next time
    setForeground() is called.

  • We now allow media notifications to avoid getting bumped
    to the top of the notification list if they're
    PRIORITY_MIN. You might want to do that, I guess?

Bug: 21333763
Change-Id: Ia5d1f1acb594c7677bcc75ee3d624da4ffca671f
2015-06-18 15:12:44 -04:00
Selim Cinek
b0a8d2c4ae Merge "Fixed a potential bug where the keyguard could become empty" into mnc-dev 2015-06-18 18:43:16 +00:00
Selim Cinek
d6efd00a6a Merge "Canceling expand animations as well when starting QS expansion" into mnc-dev 2015-06-18 18:42:12 +00:00
Selim Cinek
4c2e9ab911 Merge "Fixed another crash with HUNs" into mnc-dev 2015-06-18 18:41:41 +00:00
Adam Powell
2a1f916418 Merge "Un-hide ViewGroup#onViewAdded/onViewRemoved" into mnc-dev 2015-06-18 17:20:44 +00:00
Adam Powell
6690d018b9 Un-hide ViewGroup#onViewAdded/onViewRemoved
These methods are generally useful for writing custom views, and by
exposing them we make it easier for custom view authors to still allow
app developers to use an OnHierarchyChangedListener since it will not
be occupied by a custom view's implementation.

Also move the actual dispatch to package-scoped dispatch methods so
that a developer forgetting to call super won't stop a listener from
functioning.

Bug 21866523

Change-Id: Ie2bb5e241d7c5a02a5033f33ecdaeb40aceb20b5
2015-06-18 10:19:18 -07:00
Jason Monk
cc4b31e22e Fix opening secured networks from QS
Bug: 21908788
Change-Id: I8d1957cc4e0c259b737c5a4d0633edbb1ff57c03
2015-06-18 12:37:03 -04:00
Selim Cinek
80c2abe5bb Fixed a potential bug where the keyguard could become empty
Bug: 21124013
Change-Id: Ia955b1426e13d47a8f191817d55615253012acb1
2015-06-18 03:17:30 -07:00
Selim Cinek
831941fdd9 Canceling expand animations as well when starting QS expansion
Bug: 21764741
Change-Id: I065a03e7d594459d8c271d3bd7eb104ac2065b01
2015-06-18 03:17:30 -07:00
Selim Cinek
e0890e5cdc Fixed another crash with HUNs
This time for real :)
Bug: 21868047

Change-Id: I0572dce7d7e5abdf806198b194ad2516a021ab0d
2015-06-18 03:17:30 -07:00
Winson Chung
8b9730f749 Merge "Fixing issue with recents not being hidden for translucent apps." into mnc-dev 2015-06-17 23:30:52 +00:00
Winson Chung
fe855d124b Fixing issue with recents not being hidden for translucent apps.
- When tapping home, we can't depend on the stack state to determine
  whether or not hide recents since there can be translucent windows
  above it.  In this case, we just dismiss recents directly since the
  receiver will only be registered while recents is visible.

Bug: 20110140

Change-Id: I6b796cc4cbd790aac9a0857549e34117adb808d8
2015-06-17 16:18:28 -07:00
Winson Chung
1bf9293501 Merge "Fixing a few accessibility issues." into mnc-dev 2015-06-17 22:59:31 +00:00
Winson Chung
83ea6f71eb Fixing a few accessibility issues.
- Fixing issue with accessibility focus being incorrect when animating from home
- Fixing issue with accessibility focus being reset too aggressively when the
  list is scrolled
- Ensuring that recents handles forward/backwards scrolling

Bug: 19997561
Change-Id: I042666775862f4a20e8f22960e1f34e45fc5664e
2015-06-17 14:31:50 -07:00
Chris Wren
e565ee6ccb instrument volume controls
Bug: 21474639
Change-Id: I48641ae778f4e274c0f67ca6491102d978d3cd5f
2015-06-17 15:27:38 -04:00
Selim Cinek
6857ffc940 Merge "Fixed a jump with the panel scrim" into mnc-dev 2015-06-17 18:23:08 +00:00
Jason Monk
f582027663 Merge "Don't reinflate signal icons unless we really need to." into mnc-dev 2015-06-17 18:17:18 +00:00
Jason Monk
f535cf0413 Don't reinflate signal icons unless we really need to.
Bug: 21791609
Change-Id: I5eb1b890f2298211b25afa0e2570f0ab49a45e0b
2015-06-17 12:52:43 -04:00
Geoff Mendal
641234c172 Merge "Import translations. DO NOT MERGE" into mnc-dev 2015-06-17 13:58:40 +00:00
Geoff Mendal
977fdc8e1c Import translations. DO NOT MERGE
Change-Id: If7f177f95be4ab365cf62a8dc080373a7ae0e27b
Auto-generated-cl: translation import
2015-06-17 08:58:03 -05:00
Jason Monk
f858f7034c Merge "Allow QS detail items to get bigger when text is large" into mnc-dev 2015-06-17 13:02:22 +00:00
Selim Cinek
3d395c69fa Fixed a jump with the panel scrim
Bug: 21764980
Change-Id: Ib09aa025143025178a9e21390f3a06b37a067e3e
2015-06-16 19:37:37 -07:00
Jeff Sharkey
df27d3bf30 Dismiss migration notification when wizard done.
Bug: 21830731
Change-Id: Ief1428cd1ee0885fbc026885e1907f7272810d0f
2015-06-16 14:35:50 -07:00
Jason Monk
caceba8b9f Allow QS detail items to get bigger when text is large
Bug: 19795867
Change-Id: I0fd927c63a363dcfcbb6a99fa9c1dac5c7019d60
2015-06-16 16:15:49 -04:00
Selim Cinek
892850396c Merge "Fixed a bug where the statusbar was still visible while dozing" into mnc-dev 2015-06-16 04:16:03 +00:00
Selim Cinek
8f2d767f4e Fixed a bug where the statusbar was still visible while dozing
Bug: 18903923
Change-Id: I9c0c85e40ff7e7be2e9c4122fe5786de3649426c
2015-06-15 20:55:04 -07:00
Adrian Roos
2bfe965138 Merge "Fix unnecessairy announcements when collapsing shade" into mnc-dev 2015-06-16 01:18:01 +00:00
Adrian Roos
54d031bf03 Fix unnecessairy announcements when collapsing shade
Bug: 20171694
Change-Id: Iec73098e2f778dac4a920a717385139952017330
2015-06-15 18:17:16 -07:00
Adrian Roos
d719215fed Merge "Fix accessibility ghosts in quick settings detail" into mnc-dev 2015-06-16 00:35:12 +00:00
Adrian Roos
d366cb130d Fix accessibility ghosts in quick settings detail
Fixes a bug where the tile that was just clicked on
to go to the detail view would become visible and cause
confusion to accessibility services.

Bug: 20209718
Change-Id: I1678a4fc35e8d739b7c657e868b02a25eddcba1d
2015-06-15 17:28:37 -07:00
Adrian Roos
6ecdcf2aa0 Merge "Add AssistUtils" into mnc-dev 2015-06-15 23:49:22 +00:00
Adrian Roos
e91750804a Add AssistUtils
Enables code sharing with Settings for consistent
default value handling.

Bug: 21780590
Change-Id: I669b673f90fab503ae0c2179f09ebac9592bd33a
2015-06-15 16:07:48 -07:00
Adrian Roos
9f33d6cb2e Fix stuck orientation in SetupWizard
Bug: 21755092
Change-Id: I3144a81523ce2ef4bf6dc457c0ea4b9723dae489
2015-06-15 23:02:41 +00:00
John Spurlock
23a6262fe9 Merge "QS: Add disable animations for the DND tile." into mnc-dev 2015-06-15 21:03:55 +00:00
John Spurlock
036e7cbbfa QS: Add disable animations for the DND tile.
Elide the disabled -> enabled anim, since we launch
the detail panel instead.

Bug: 21118976
Change-Id: I392f848641190f114b7838515acb13f22c96e37d
2015-06-15 16:33:44 -04:00
John Spurlock
ab051ef805 Merge "QS icon sizes should be 24dp." into mnc-dev 2015-06-15 20:14:49 +00:00
John Spurlock
c97010c088 QS icon sizes should be 24dp.
Not 28dp.

Bug: 21118976
Change-Id: I9cc326d1333d85b783b85e3238a2a506bf3b55c0
2015-06-15 15:45:38 -04:00
Jason Monk
02b0a574db Merge "Only re-register callbacks if tuning changed" into mnc-dev 2015-06-15 19:24:11 +00:00
Jason Monk
f3d1715cc9 Only re-register callbacks if tuning changed
We only need to get the state if the tuning has actually changed.
Currently we hit this every time we open QS which breaks the alpha
animation on the mobile icon.

Bug: 21791609
Change-Id: I3d77a2d0f81d2d7bed600ccd7a2d2c2b4a262db7
2015-06-15 15:20:24 -04:00
Jason Monk
efd79414bb Merge "Fix EmergencyCallback in NetworkController" into mnc-dev 2015-06-15 19:16:37 +00:00
Jason Monk
7d79bea4a9 Merge "Fix invisible rotation tile" into mnc-dev 2015-06-15 14:26:38 +00:00
Jason Monk
1634d182e1 Fix invisible rotation tile
Make sure we set the state at least once.

Bug: 21837219
Change-Id: Iabd0524f0c09fd3f7b895007204ddf49af19ea98
2015-06-15 10:19:26 -04:00
Jason Monk
5d8c276bb9 Merge "Make references to ssid use a verbatim TtsSpan" into mnc-dev 2015-06-15 14:14:52 +00:00