Commit Graph

12619 Commits

Author SHA1 Message Date
TreeHugger Robot
96b97d722f Merge "Disallow entering PiP without dismissing keyguard." 2016-12-29 20:29:45 +00:00
Winson Chung
0655da0374 Disallow entering PiP without dismissing keyguard.
- If an activity is showing on the keyguard and enters picture-
  in-picture, then prompt the user to authenticate first
- Fixing NPE in SystemUI due to null runnable being added to the
  post-keyguard-gone callbacks
- Prevent FLAG_SHOW_WHEN_LOCKED from applying when determining
  visibility over keyguard for activities that are in the pinned
  stack

Bug: 33660880
Test: android.server.cts.KeyguardLockedTests
Test: #testEnterPipOverKeyguard

Change-Id: I89477a8a0067e285e5d0122e918fac45274c57ad
2016-12-29 10:53:23 -08:00
Geoffrey Pitsch
f47277805a Merge "Change Notification Inline Settings for Channels" 2016-12-29 15:36:56 +00:00
Selim Cinek
3e555495fc Merge "Improved the behavior with the empty shade view" 2016-12-29 12:26:44 +00:00
Selim Cinek
fe0f4357a1 Merge "Fixed a bug where notifications could stay expanded" 2016-12-29 12:26:07 +00:00
Jiaquan He
71cfaee778 Move grid checking into the layout algorithm. am: 26f637b555
am: c29cd0fdca

Change-Id: Icf69a78743697daaad7e55ca6116d24f716c88ef
2016-12-29 01:57:24 +00:00
Jiaquan He
c29cd0fdca Move grid checking into the layout algorithm.
am: 26f637b555

Change-Id: Ie65d71bd7f6edb5e92f6dd331999424a592c8073
2016-12-29 01:51:24 +00:00
Manu Cornet
fc16b764b6 2D recents: show all close buttons right away am: 8ff7854c4b
am: ca0e55646b

Change-Id: I42325561cc94f816701f4c9cd3edaca31efd5a22
2016-12-29 00:28:55 +00:00
Manu Cornet
9577cb827a 2D Recents: use a slightly darker scrim background am: 48de4e6afe
am: bec5fee38d

Change-Id: Id67d6d2cbc81588dd6163cfbc25d6ff9f073e08a
2016-12-29 00:26:45 +00:00
Manu Cornet
ca0e55646b 2D recents: show all close buttons right away
am: 8ff7854c4b

Change-Id: I18e3729f5e09601a6548647fa16ba90bf2147cb0
2016-12-29 00:21:48 +00:00
Manu Cornet
bec5fee38d 2D Recents: use a slightly darker scrim background
am: 48de4e6afe

Change-Id: I33a961dbd1741d72fa86a0cde0b2e60b76271955
2016-12-29 00:19:48 +00:00
Jiaquan He
26f637b555 Move grid checking into the layout algorithm.
We move grid layout checking into the layout algorithm, so that we can
hide more computation from the views.

Bug: 32101881

Change-Id: I174fe33ef7ed3c04987771dbb42d831a4b9bdab2
2016-12-28 16:07:15 -08:00
Jiaquan He
59deea52e3 Resue TaskView information. am: 0a5e2d6b93
am: e6dd53291e

Change-Id: Iedf5472abf2cf11ce0b9ad1f83224adbfda144ff
2016-12-29 00:06:31 +00:00
Adrian Roos
02ca26defc Merge "QS - Fix race condition in accessibility" am: 302efd6125 am: 3c0a8bba3c am: b12ed1e10f
am: 0a4e1b7078

Change-Id: I1409cc428b41b01ffb1461f011337a7cbe409b46
2016-12-29 00:05:22 +00:00
Android Build Merger (Role)
a1ac1af80f Merge "Resue TaskView information. am: 0a5e2d6b93" into nyc-mr2-dev-plus-aosp 2016-12-28 23:59:59 +00:00
Jiaquan He
e6dd53291e Resue TaskView information.
am: 0a5e2d6b93

Change-Id: I0d998b0e31dedb48ef284386811fe67fbda6c981
2016-12-28 23:58:49 +00:00
Adrian Roos
0a4e1b7078 Merge "QS - Fix race condition in accessibility" am: 302efd6125 am: 3c0a8bba3c
am: b12ed1e10f

Change-Id: I2f17f2bd2f293f2c68ba20fbfd6aa3e693f8b865
2016-12-28 23:58:43 +00:00
Adrian Roos
b12ed1e10f Merge "QS - Fix race condition in accessibility" am: 302efd6125
am: 3c0a8bba3c

Change-Id: I3e05c8c127c021dc321b0ef130159ff7a021a9e8
2016-12-28 23:51:30 +00:00
Jiaquan He
1060c9dcfd Check split screen properly. am: 5fac212e8b
am: e3ecb097b0

Change-Id: Ic534ab1ef2c6c0067e1d43f31b662ea23e221e8d
2016-12-28 19:26:59 +00:00
Jiaquan He
e3ecb097b0 Check split screen properly.
am: 5fac212e8b

Change-Id: Ica99e37798a2447acdbddb7b29b6e67655870b1d
2016-12-28 19:20:00 +00:00
Jorim Jaggi
6f0236688f Change screen pinning back to old gesture
am: 4e723e6087

Change-Id: I83dee36d5d3b16adbf740dd6495e7945bf0236ef
2016-12-28 17:12:28 +00:00
Geoffrey Pitsch
4dd5006ff5 Change Notification Inline Settings for Channels
Removes slider advanced settings.
Move more Guts internals out of BaseStatusBar.

Test: runtest systemui
Change-Id: I0cf7f144859d1248bd54e281cfe0b35a817376a6
2016-12-28 10:13:02 -05:00
Jorim Jaggi
ac5fa1bb60 Change screen pinning back to old gesture
This makes the code a bit more complicated, but allows apps to
receive long-press back again and also makes the mode harder
to exit for toddlers.

Test: Without TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Test: With TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Fixes: 324407
Change-Id: Icd7347aa9c60af00fdb0b3991baabb730552d097
2016-12-28 14:57:40 +01:00
Jorim Jaggi
4e723e6087 Change screen pinning back to old gesture
This makes the code a bit more complicated, but allows apps to
receive long-press back again and also makes the mode harder
to exit for toddlers.

Test: Without TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Test: With TalkBack enabled, make sure the following works:
- Enter multi-window mode with long pressing recents
- Long press back gets sent to the app.
- Enter screen pinning, make sure you can exit with gesture
Merged-In: Icd7347aa9c60af00fdb0b3991baabb730552d097
Change-Id: Icd7347aa9c60af00fdb0b3991baabb730552d097
Fixes: 32440409
2016-12-28 05:56:17 -08:00
Adrian Roos
799992ef75 Ambient Display: Fix race with coloring and redaction am: e5726a2082
am: dff956b0e0

Change-Id: I18d7da64d56f70923926df6231472a2c3a909f15
2016-12-27 23:56:47 +00:00
Adrian Roos
dff956b0e0 Ambient Display: Fix race with coloring and redaction
am: e5726a2082

Change-Id: I9c2c42692f01b7665fb11d6e0f47c707d3c630fc
2016-12-27 23:49:46 +00:00
Jiaquan He
0a5e2d6b93 Resue TaskView information.
In this commit we calculate all the TaskView information we need
during initialization, so that we don't need to calculate again
unless any configuration is changed.

Bug: 32101881
Change-Id: I433688d0a05c69064d0da5268b61340cecdbfe74
2016-12-27 15:48:07 -08:00
Adrian Roos
58ffefa40f Keyguard: Don't lock on SIM removed during shutdown am: 1f8025adf2
am: c30dc190ba

Change-Id: Ic0b38d7d66f702241ee1d9df7e433076cc40485e
2016-12-27 23:36:15 +00:00
Adrian Roos
c30dc190ba Keyguard: Don't lock on SIM removed during shutdown
am: 1f8025adf2

Change-Id: I22b34aa27c6540bf661081950a51eb275894c032
2016-12-27 23:29:47 +00:00
Jiaquan He
5fac212e8b Check split screen properly.
This commit detacts split screen by checking whether there's
a docked task instead of multi window mode.

Bug: 33847223
Bug: 32101881
Change-Id: I23ee11e57ded7c5e81d51cfbfea05500a879945c
2016-12-27 14:52:24 -08:00
Selim Cinek
7e5cff0167 DO NOT MERGE Revert "Add Brightness setting for VR Mode."
am: 966045d070

Change-Id: Ib1be78a47f5947f4fcc6eabc2f6af76523690ed9
2016-12-27 19:22:04 +00:00
Selim Cinek
966045d070 DO NOT MERGE Revert "Add Brightness setting for VR Mode."
This reverts commit 84980c7a93.

Bug: 33895226
Bug: 30984614
Change-Id: I2652e77512bc870190e2172a629abac9341b2c4f
2016-12-27 18:28:40 +00:00
Ian Pedowitz
7e96654f1b Revert "Add Brightness setting for VR Mode."
This reverts commit c7e853f511.

Bug: 33895226
Bug: 30984614
Change-Id: Icca320e02651b7dd7b8db84ab414f41edee32760
2016-12-27 18:28:36 +00:00
Adrian Roos
1f8025adf2 Keyguard: Don't lock on SIM removed during shutdown
Fixes a glitch where the SIM is considered removed because
we turn off the radio during shutdown.

Change-Id: Id783114f557b87051b833ea84cecc862f910c6ca
Fixes: 33788000
2016-12-27 10:16:37 -08:00
Selim Cinek
cde90e504e Improved the behavior with the empty shade view
The empty shade view is now properly appearing

Test: expand panel without notifications, observe smooth transitions
Bug: 33652489
Change-Id: Idedb79121434b974ff221eefd4417c40b100a317
2016-12-27 13:50:23 +01:00
dooyoung.hwang
1b0066230e QS - Fix race condition in accessibility
When users try to open panel, initialization of accessibility is called
in Main Thread by this callstack.

at android.view.ViewGroup.buildOrderedChildList
at android.view.View.populateAccessibilityNodeInfoDrawingOrderInParent
at android.view.View.onInitializeAccessibilityNodeInfoInternal
at android.view.View.onInitializeAccessibilityNodeInfo
at android.view.View.createAccessibilityNodeInfoInternal
at android.view.View.createAccessibilityNodeInfo
at android.view.accessibility.AccessibilityRecord.setSource
...
at android.view.View.setFlags
at android.view.View.setVisibility
at com.android.systemui.qs.QSContainer.updateQsState
at com.android.systemui.qs.QSContainer.setExpanded
at com.android.systemui.statusbar.phone.NotificationPanelView.updateQsState

And another initialization is tried in QSTileHost Thread by this callstack.

at android.view.ViewGroup.buildOrderedChildList
at android.view.View.populateAccessibilityNodeInfoDrawingOrderInParent
at android.view.View.onInitializeAccessibilityNodeInfoInternal
at android.view.ViewGroup.onInitializeAccessibilityNodeInfoInternal
at android.view.View.onInitializeAccessibilityNodeInfo
at android.view.View.createAccessibilityNodeInfoInternal
at android.view.View.createAccessibilityNodeInfo
at android.view.accessibility.AccessibilityRecord.setSource
...
at android.view.View.announceForAccessibility
at com.android.systemui.qs.QSPanel.onAnnouncementRequested
at com.android.systemui.qs.QSTile.handleStateChanged

This race condition can cause crashes, because the same ArrayList
(mPreSortedChildren or mTempArrayList in ViewGroup) is modified by two
different thread.

Test : manual

Change-Id: I9e0ad1fef4be7dc378463c06d10854e0e4c5b3d6
2016-12-26 00:20:43 +00:00
Santos Cordon
84334e25cd Add Brightness setting for VR Mode.
am: 84980c7a93

Change-Id: I4a9c3db7bdf73e673cf8b2409404339df94086c2
2016-12-22 23:58:05 +00:00
Santos Cordon
84980c7a93 Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Merged-In: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
2016-12-22 23:26:49 +00:00
Santos Cordon
c7e853f511 Add Brightness setting for VR Mode.
This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
2016-12-22 12:27:51 -08:00
Selim Cinek
740c111476 Fixed a bug where notifications could stay expanded
When expanding and locking the screen, the notification
could be stuck in a userlocked state and therefore look
expanded even on the lock screen.
Another case where this could happen was when there was
a race between locking the screen and collapsing a group.

On master the same can even happen with the drag-down helper
since we're blocking the touches of it on the always on
screen.

Change-Id: I4f359d727013ee8c9e4174d2855896ba8d3d1a0b
Test: have group on locked shade, expand, click on middle space during expansion
Bug: 33614507
2016-12-22 17:36:00 +01:00
TreeHugger Robot
5ec4ae1c64 Merge "Allowing heads-up notifications now on the lock screen" 2016-12-22 12:24:19 +00:00
Adrian Roos
7335c8b456 DirectReply: Close if touching outside status bar am: 6d53de63bb
am: e6395f8ac7

Change-Id: Icb978071074bc204365fe7378776ac8377ad02f1
2016-12-21 22:28:29 +00:00
Julia Reynolds
7f41c150c3 Merge "Add badging support for channels." 2016-12-21 21:15:45 +00:00
Julia Reynolds
baff400fa5 Add badging support for channels.
In this iteration badges are a user opt in feature.
Known issue: all listeners will receive 'badge only' notifications.

Test: runtest systemui-notification

Change-Id: Ic7450bf4de5351cfdc72bd96ec946fe6e035035c
2016-12-21 21:12:23 +00:00
Adrian Roos
e6395f8ac7 DirectReply: Close if touching outside status bar
am: 6d53de63bb

Change-Id: I134abad75cae32c8eb9229ac8aa993f9bd71b667
2016-12-21 20:06:08 +00:00
Adrian Roos
4869a55f66 Merge "DirectReply: Close if touching outside status bar" into nyc-mr2-dev 2016-12-21 19:56:42 +00:00
Jiaquan He
3785f0a2f6 DO NOT MERGE - Disabled swiping in Grid-based Recents.
am: 620aebabb2

Change-Id: I24914bfe923ec251adff8c931c32398c013ac581
2016-12-21 18:18:34 +00:00
TreeHugger Robot
b9606a5d09 Merge "DO NOT MERGE - Disabled swiping in Grid-based Recents." into nyc-mr2-dev 2016-12-21 18:09:48 +00:00
Selim Cinek
01ee2cd5c4 Allowing heads-up notifications now on the lock screen
In order to isolate notifications properly from their group
and in order to allow them to visually reorder, we now allow
heads up notifications on the lock screen.

Change-Id: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Test: existing tests pass
Test: add heads up on lockscreen
Test: heads up group child on lockscreen
Bug: 32442500
2016-12-21 18:23:11 +01:00
Selim Cinek
45e63815e7 Merge changes Ic88e8094,I4253bf4b,Iba4ebd3c,I943b6352,If88c0b08, ...
* changes:
  Made it easier to use updatable Animators
  Improved the interpolators of the icon appearing
  Modified the way icons merge into the shelf
  Fixed a potential heads up crash
  Fixed a bug where the notifications would close on back
  Bye bye veto button
  Only requiring 2 taps for accessibility on lock screen
  Fixed a bug where systemui could crash
  Introduced the visual stability manager
  Removing notifications always immediately when swiping them away
2016-12-21 12:23:05 +00:00