Commit Graph

19061 Commits

Author SHA1 Message Date
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
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
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
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
Jean-Michel Trivi
0310e8c8f3 Do not translate system-reserved stream type names
Do not translate the names of stream types that are reserved
  for the internal workings of the audio system, and are
  never meant to be read by the end user.
Also fix the string for STREAM_TTS.

Test: make
Bug: 33790976
Change-Id: Ied97b1ad38ad90911ac41ed277a618bc50c531c4
2016-12-23 20:54:11 +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
cfdf27f24b Merge "Add Brightness setting for VR Mode." into nyc-mr2-dev 2016-12-22 23:49:20 +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
TreeHugger Robot
1fc63da0e5 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2016-12-22 16:57:14 +00:00
TreeHugger Robot
5ec4ae1c64 Merge "Allowing heads-up notifications now on the lock screen" 2016-12-22 12:24:19 +00:00
Bill Yi
7158c89582 Import translations. DO NOT MERGE
Change-Id: Id563dc4a6227745978c8999d577b0970c5c1103f
Auto-generated-cl: translation import
2016-12-21 19:50:32 -08: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
Sean Stout
5721e75a0a Merge "Renamed "Demo mode" to "System UI demo mode"" 2016-12-21 19:36:53 +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
Selim Cinek
f082fe2319 Made it easier to use updatable Animators
The existing system is extended such that AnimationProperties
can be easier animated and running animations updated.

As a first sample this animates the scale of the
icons in the shelf.

Change-Id: Ic88e8094d53f37ab13f5e9e00796b63d229a5114
Test: runtest systemui
Bug: 32437839
2016-12-21 12:12:31 +01:00
Selim Cinek
061d90729b Improved the interpolators of the icon appearing
The interpolator has now a slight overshoot to it again.

Change-Id: I4253bf4b2cf9d471e3aa8c9483c9bcb88c2b3032
Test: add notifications, observe icon movement
Bug: 32437839
2016-12-21 12:10:54 +01:00
Selim Cinek
a1d9790735 Modified the way icons merge into the shelf
The icon can now also move into the shelf in an animated
way instead of just moving out of it.

Change-Id: Iba4ebd3cd48b5299b89bd0cb2b05bd318e352173
Fixes: 33463805
Test: add notification observe behavior when scrolling
2016-12-21 11:55:04 +01:00
Selim Cinek
40f8876515 Fixed a potential heads up crash
If a group became suppressed with a summary that is
heads-upped, while also being in the process of being
removed, it could lead to a crash.

Test: isolate a HUN that was being removed and is a child
Change-Id: I943b63529778a3c85b03da033837f5a677b2d352
Fixes: 33645653
2016-12-21 11:55:03 +01:00
Selim Cinek
9bb05631fa Fixed a bug where the notifications would close on back
When the panel collapsing was aborted or couldn't close
because we were tracking, then the panel wouldn't be
focusable anymore so it wouldn't handle the back pressed
for example.

Change-Id: If88c0b08301dccf8c2dcd79df5239e12fc83cce5
Test: click back while expanding, click back again when expanding finished, observe collapsing.
Fixes: 33260393
2016-12-21 11:55:02 +01:00