Commit Graph

11425 Commits

Author SHA1 Message Date
dongwan0605.kim
29d656dbe1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be am: 56812a0146
am: 852fb2b1f1

Change-Id: Ide5e7c588eb1707015ac33a13fb9788e80617587
2017-01-03 16:27:27 +00:00
dongwan0605.kim
852fb2b1f1 Merge "QS: Fix QuickQS visibility at non-first page" am: fce04dc0be
am: 56812a0146

Change-Id: If8d2963ed44e49e3b33b73a82378b2af32ba4676
2017-01-03 16:17:28 +00:00
dongwan0605.kim
03c9afadab QS: Fix QuickQS visibility at non-first page
When user collapsed QSPanel at non-first page, QuickQS always remained
View.Visible. When user canceled collapsing, QQS remained clickable
although invisible to user(alpha = 0).
QQS must be non-clickable when user cancels collapsing at non-first page.

Test: QSPanel > 2nd page > Cancel collapsing while collapse QSPanel
      > Verify invisible QQS is non-clickable

Change-Id: I4c1f195a3faec8e89bb073443f6345f4faddf781
2017-01-03 06:47:17 +00:00
Jiaquan He
e7d2311593 Cut the Grid-based Recents title if it's too long.
am: 8f34df423d

Change-Id: I941f6d96bd6dab4c3bf6c09e5dbf4b136407a055
2016-12-30 01:23:48 +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
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
8f34df423d Cut the Grid-based Recents title if it's too long.
Bug: 33847657
Bug: 32101881
Change-Id: I040dafcb37c9259dded8fa2cd896e4e4a59aeae5
2016-12-28 16:07:17 -08: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
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
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
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
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
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
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
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
Manu Cornet
15b6c78534 DO NOT MERGE - Delete the separate grid recents activity and related code
am: e93f8100a6

Change-Id: I30195b094fe27bec5b78f799942bf004000d9ef2
2016-12-21 03:43:49 +00:00
Manu Cornet
48de4e6afe 2D Recents: use a slightly darker scrim background
Bug: 32101881
Test: Checked recents layout on local sw600dp device
Change-Id: Ic5ae1c1c805896a4cd8d6c3473fa2c693e94d304
2016-12-20 19:01:45 -08:00
Jiaquan He
620aebabb2 DO NOT MERGE - Disabled swiping in Grid-based Recents.
Bug: 32101881
Change-Id: I45a806a6b1fc387b2c560a8f2228ad83e4068d7c
(cherry picked from commit 7e09146f13)
2016-12-21 02:02:44 +00:00
Manu Cornet
e93f8100a6 DO NOT MERGE - Delete the separate grid recents activity and related code
This was the first attempt at implementing grid-based Recents.
The new implementation doesn't use a separate activity and reuses a lot
more code.

Bug: 32101881
Test: Checked Recents behavior on local sw600dp device
Change-Id: Ic3535fc49f3f5448d6002d354678b633f122f57d
2016-12-20 17:52:45 -08:00
Manu Cornet
8ff7854c4b 2D recents: show all close buttons right away
Bug: 32101881
Test: Checked recents layout on local sw600dp device.
Change-Id: Ib9b40cdc3fdb912315d52d3b47cbcd32fec9842f
2016-12-20 17:46:30 -08:00
Manu Cornet
0cfa646f73 DO NOT MERGE - Port 2D recents implementation from master to nyc-mr2
am: bf8e290376

Change-Id: I7b05418dc2d03da33e862cf67dbcd1d08cb1b899
2016-12-20 21:57:08 +00:00
TreeHugger Robot
5ef12f244c Merge "DO NOT MERGE - Port 2D recents implementation from master to nyc-mr2" into nyc-mr2-dev 2016-12-20 21:50:16 +00:00
Adrian Roos
e5726a2082 Ambient Display: Fix race with coloring and redaction
Fixes a bug that could result in a notification being colored on
ambient display when redaction is enabled.

Only the showing layout (either redacted or regular) was be set to
dark. If the showing layout changed after the darkness changed, the
newly showing layout was not properly darkened.

Change-Id: I0930ebe8007634ee92e104573294b5c27f1bad82
Fixes: 33429653
Test: Enable redacted notificationsn on lockscreen, enter ambient, verify that notifications are gray.
2016-12-20 20:17:36 +00:00
Manu Cornet
bf8e290376 DO NOT MERGE - Port 2D recents implementation from master to nyc-mr2
Bug: 32101881
Test: Checked Recents layout/behavior on local sw600dp device
Change-Id: I40be7dbaf8bc017b4c7c449f9bca657817107ceb
2016-12-20 12:10:41 -08:00
phweiss
dee7669fd2 DO NOT MERGE Show notification when network logging is enabled
am: 923d2cc9d9

Change-Id: Ia5839248361a7d7fbb0c73cdb569ada62a96c286
2016-12-20 20:01:33 +00:00
Philipp Weiß
2f42cbcad5 Merge "DO NOT MERGE Show notification when network logging is enabled" into nyc-mr2-dev 2016-12-20 19:52:09 +00:00
phweiss
923d2cc9d9 DO NOT MERGE Show notification when network logging is enabled
A notification is shown after network logging is enabled
and after the next three reboots that are at least one day apart.

Clicking it sends an intent to quick settings to shown its device monitoring
dialog.

Cherry-picked from master.

Bug: 29748723
Bug: 33126577

(cherry-picked from commit a0cb251ca6)

Test: Manual, CTS-Verifier tests will be added later
Change-Id: I2bf517bd27ab23ad3f66270602dbf062efab8cbb
2016-12-20 19:23:58 +01:00
phweiss
ccf8d9e9cf DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings
am: 2f512047c2

Change-Id: If56eee8a498435aaa059990eceea9555897e11b9
2016-12-20 18:06:47 +00:00
phweiss
2f512047c2 DO NOT MERGE Rework Device Monitoring Dialog in Quicksettings
If a device owner is active, the layout is changed from a
standard AlertDialog with only one string to a custom dialog
that includes information on Device Owners, and VPN and Network Logging,
if enabled.

Cherry-picked from master and modified to not rely on changes that are not in
N:

A change in master renamed some variables in QSFooter.createDialog() and made
them final, this change is also included here.

The owner's organization name cannot be set in N.

In the case of active Device Owner and active VPN, there was a specialized
string for this in N. This string was now replaced by using the simpler
Device Owner string + an own entry for VPN in the new layout.

Some imports had to be included that were already there on master.

The dimen-tag throws an error message on floats during build, replaced by an
item-tag.

BUG: 29748723
BUG: 33126622
Test: Manual, CTS-Verifier tests will be added later

(cherry picked from commit 9e450e1233)

Change-Id: I2bfca9d9d02a42d9c3b17683625eda29e9369666
2016-12-20 17:11:01 +01:00
Adrian Roos
6d53de63bb DirectReply: Close if touching outside status bar
Close direct reply when a touch outside the status bar window
happens. This is especially important with HUNs, where we allow
the touch to go through to the underlying window.

Change-Id: I12b9cbd5c699b86bcf1f56723a2f0ac5de7e5a42
Test: Receive SMS while unlocked, click Reply on heads-up notification, click in between notification and IME. Verify direct reply closes.
Fixes: 32022071
2016-12-19 16:27:50 -08:00
phweiss
5edfd11bea DO NOT MERGE Add network logging icon to Quicksettings when enabled
am: c94b637305

Change-Id: I227210c1d938b98bfb8b2a5f895b837fad1c6181
2016-12-19 18:03:47 +00:00
Philipp Weiß
f84f98c4e2 Merge "DO NOT MERGE Add network logging icon to Quicksettings when enabled" into nyc-mr2-dev 2016-12-19 17:57:16 +00:00
Dan Sandler
0f82af28ef Avoid NPE in notification inline controls.
am: 6e54b889d0

Change-Id: I4d581b3d8e59bb9baa16199243b59aaa57d8fc7a
2016-12-19 16:50:12 +00:00
Daniel Sandler
be09dd77dc Merge "Avoid NPE in notification inline controls." into nyc-mr2-dev 2016-12-19 16:44:12 +00:00
Adrian Roos
31b96311bf Merge "Assist app is not launched when long-pressing on Home key" into nyc-mr2-dev 2016-12-16 22:32:34 +00:00