Commit Graph

20065 Commits

Author SHA1 Message Date
Adrian Roos
03cf2586fa AOD: prevent clicking shelf when dark
Fixes: 35718464
Test: Enable AOD, try clicking on shelf in AOD, make sure it's not clickable.
Change-Id: Iede88d1e0ab394f0db2acaac6a1ad8baaeef15f1
2017-04-05 11:23:21 -07:00
TreeHugger Robot
d584a5e65b Merge "Tweaking PiP for accessibility." into oc-dev 2017-03-30 19:56:39 +00:00
Winson Chung
0f873de5ff Tweaking PiP for accessibility.
- Disabling timeout when the PiP menu is invoked via an accessibility event
- Increasing default duration before menu times out and collapses
- Fixing issue where temporary bundle data was being clobbered

Bug: 36103023
Test: Launch PiP activity with accessibility, ensure menu does not time out
Change-Id: I4beda18ef2fb2e2b638b0ff6bac9a71ed1986639
2017-03-30 10:26:48 -07:00
TreeHugger Robot
a07ce03d3c Merge "Wait to unlock before changing notification importance" into oc-dev 2017-03-30 16:14:03 +00:00
Geoffrey Pitsch
5278d3d38c Wait to unlock before changing notification importance
Test: runtest systemui
Change-Id: I66614de96e0a5c725ac6f6e7b76f64b39326ba6b
Fixes: 36264464
2017-03-30 09:55:51 -04:00
TreeHugger Robot
ce3cf36652 Merge "Make public getFragments() and onGetLayoutInflater() methods" into oc-dev 2017-03-30 01:26:13 +00:00
George Mount
c7146beabe Make public getFragments() and onGetLayoutInflater() methods
Bug 34703669
Test: I846ef668e3dd7d664cfb56d2b9400467ba9b79f4
Change-Id: Ie202960ada86b25e964f98a639b5f5740c8fdb79
2017-03-29 14:58:42 -07:00
TreeHugger Robot
c463bed8db Merge "Make sure TileServices get onTileRemoved on reset" into oc-dev 2017-03-29 20:04:04 +00:00
TreeHugger Robot
c16142239f Merge "Removing duplicate string in Recents." into oc-dev 2017-03-29 19:51:57 +00:00
TreeHugger Robot
477b1b0361 Merge "Dismiss the PiP if user changes setting while PiP is open." into oc-dev 2017-03-29 19:40:57 +00:00
TreeHugger Robot
9c847fdc7e Merge "Removing PiP notification channel." into oc-dev 2017-03-29 19:13:13 +00:00
Winson Chung
26db39793e Prevent invisible PiP menu activity from having touch focus.
- Mark the decor view as invisible when the the PiP menu activity is
  hidden.  We don't call Activity.setVisible() as that alters other
  internal states that affect the system's understanding of whether
  the activity will draw or not.

Bug: 36225602
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: I6b1ed7098e1f0ff427f0655c45e566ca60979623
(cherry picked from commit 8c8ba19e0d)
2017-03-29 17:28:56 +00:00
Winson Chung
664758cf0a Dismiss the PiP if user changes setting while PiP is open.
Bug: 36070720
Test: Open PiP, launch setting, disable PiP for package
Change-Id: Ia193b079d6ae27fc5fb5b1e8950cf42dfdd28450
2017-03-29 10:28:19 -07:00
Jason Monk
903556b162 Make sure TileServices get onTileRemoved on reset
Test: runtest systemui
Change-Id: Ic23eb6759f99c9cfe45ab975b3bb723dae56e0d8
Fixes: 34481238
2017-03-29 13:13:51 -04:00
Winson Chung
5cd54168e7 Removing PiP notification channel.
- Using the General channel instead.

Bug: 36670134
Test: Ensure no PiP channel in settings
Change-Id: If186a2565bb6911c6e15b25788908fd909a54287
2017-03-29 09:57:43 -07:00
Tony Mak
ec319aba34 Introduce AMS.getLastResumedActivityUserId to fix work profile icon issue
Problem:
Work profile status bar icon feeature is relied on two callbacks
1. onForegroundProfileSwitch  (AMS.setResumedActivityLocked)
2. appTransitionStarting (WMS)

We assume callback 1 is always called before 2, but it is not the case.
These two callbacks are triggered by two handlers in two different threads,
and hence race condition happens.

Solution:
Not rely on onForegroundProfileSwitch to update mManagedProfileFocused
flag anymore. Query getLastResumedActivityUserId in appTransitionStarting.
Also, make sure mLastResumedActivity is updated before sending message
to WMS in setResumedActivityLocked.

Test: Start a work app, observe that the work icon is shown.
Test: Start a personal app, observe that work icon is gone.
Test: Dock the work app, tap on it (give it focus), observe that work
      icon is shown.
Test: Start a work app, switch user, can see the icon is gone. Switch back,
      icon is back.

Bug: 34159089

Change-Id: I2cee141d18e8b7d5607b26dd7a2fd5bc9cd0ebb3
2017-03-29 10:03:39 +00:00
Winson Chung
80f7b015ca Removing duplicate string in Recents.
- Use the same string when showing incompatible apps as the string that
  we show when launching an incompatible app.

Bug: 35373622
Test: Launch recents with incompatible app while docked, verify string
Change-Id: I8d9a7d6e96a384ccff80ab6ff8a5e53c13d8d420
2017-03-29 05:07:08 +00:00
Casey Burkhardt
2464dc9a6a Ensures Accessibility button always overrides IME switcher
In the case of both the IME switcher and Accessibility button
appearing within NavigationBarView, we want to allow the
accessibility button to always override the appearance of the IME
switcher as our target users will most-often be using
dead-reckoning to interact with the Accessibility button,
requiring consistent appearance, location, and visibility.

Bug: 35267032
Test: Manual
Change-Id: Ib39d2336efe7073f686d94b3f71fc853af3186bb
2017-03-28 16:01:00 -07:00
TreeHugger Robot
03435f75fa Merge "Don't allow settings launch when user isn't setup" into oc-dev 2017-03-28 21:26:47 +00:00
Jason Monk
cd74f6971f Don't allow settings launch when user isn't setup
Test: runtest systemui
Change-Id: Ia0c90f981b9d45e8e3e8c09771d4baa8ab9fabff
Fixes: 31737292
(cherry picked from commit 7d596d522c)
2017-03-28 21:24:48 +00:00
Jason Monk
d1f7f1e1c6 Update default QS tile order
Test: visual
Change-Id: Ia28b7b074a240465598fc3559cd3bd3c584fcc5d
Fixes: 36402044
(cherry picked from commit 9f05491cc0)
2017-03-28 21:16:59 +00:00
Jason Monk
9a82d12462 QS: Don't animate first state change
Test: runtest systemui
Change-Id: I151af59665c74ca04839f7d33153fb8c90ddd996
Fixes: 36076790
(cherry picked from commit 2b48aa3f71)
2017-03-28 18:14:49 +00:00
Jason Monk
da9395e681 Fix QS getting stuck in weird animation during recreate
Don't animate on first state change in QS, no reason to animate on
bootup or recreate.

Test: runtest systemui
Change-Id: Ib1ceddd708fdc922224b57dbfe12d2f9a76fcee3
Fixes: 35116271
(cherry picked from commit 2da4619b12)
2017-03-28 18:04:22 +00:00
Jason Monk
64b214ea16 Have QS fragment keep track of some state on recreate
Test: runtest systemui
Change-Id: I1cf84a0943092fcfc5428fcfccb4a887a83b294b
Fixes: 35205198
Fixes: 36592148
(cherry picked from commit 78187249c3)
2017-03-28 18:01:50 +00:00
Jason Monk
d686e9c26e Don't auto-mirror QS drawables
Was a mistake in previous refactor, they were not being mirrored
before.

Test: visual
Change-Id: I001757ca02267e33409a9c0071a24b69939f30c5
Fixes: 36255688
Fixes: 36255681
(cherry picked from commit 19378fd3eb)
2017-03-28 17:16:22 +00:00
TreeHugger Robot
b7980a3bbe Merge "Fix stretched nav bar menu icon" into oc-dev 2017-03-28 16:44:23 +00:00
Jason Monk
d70f423d09 Fix battery saver tile label
Test: visual
Change-Id: I2cfb819778eeb969979aa2a3ed8c35744a63f875
Fixes: 36238774
(cherry picked from commit 368a8aec2c)
2017-03-28 16:09:39 +00:00
Jason Monk
ce4be85c62 QS Animation tweaks
Test: visual
Change-Id: Ic81d874511bf87fb0e8d9bf08e27346919ebc46e
Fixes: 35990413
(cherry picked from commit c34e249609)
2017-03-28 16:06:54 +00:00
Jason Monk
d8ab03a1e8 Fix spacing for loading in QS
Test: visual
Change-Id: I8065885ec3d2badd9d7c2116a6075eb48e2b7697
Fixes: 30292983
(cherry picked from commit 6cfc63a927)
2017-03-28 16:02:02 +00:00
Jason Monk
83763f613e Fix stretched nav bar menu icon
Make sure that KeyButtonDrawable centers its child layers in case
they aren't the same size (like menu).

Test: visual
Change-Id: I10cbbac2f74288c3ca570d48ac23a1101dbab4e0
Fixes: 34102319
(cherry picked from commit 5b3b485593)
2017-03-28 15:28:51 +00:00
Phil Weaver
668c34444d Merge "Fix permission checking for a11y volume." 2017-03-28 03:58:16 +00:00
TreeHugger Robot
9d421ba050 Merge changes Ia971b2bc,I0001eb3d,I55a6951e
* changes:
  Remove framework-protos from SystemUI
  Disable proguard for PluginDummyLib
  Enable multidex for dx
2017-03-27 23:37:10 +00:00
Mady Mellor
73a55f7506 Merge "Fix for edge swipe/fling to minimize" 2017-03-27 23:26:52 +00:00
TreeHugger Robot
2388f0c81c Merge "Disable PIP minimize and put it behind a tuner item" 2017-03-27 22:29:32 +00:00
Phil Weaver
f1a9aff962 Fix permission checking for a11y volume.
Adding new permission for changing accessibility volume
to allow system UI to change it. Also providing audio
manager with a whitelist of bound accessibility service
uids so it can allow servics to change the volume.

Bug: 36569297
Test: Adding CTS test in linked CL.
Change-Id: I4f327e3a251fc3780c5957f41217c2ef5bb8b16e
2017-03-27 14:59:26 -07:00
Mady Mellor
84a0f8936d Fix for edge swipe/fling to minimize
- Actually include check for fling
- Base left or right side on starting position instead of current position

Test:  Long quick swipe PIP from opposite edge of screen -> no longer minimizes
Bug:35358628
Change-Id: I7cd62b94943afe28b89a8bcb0e0cab58bc0841a9
2017-03-27 14:12:39 -07:00
Jason Monk
b29e0db8f8 Merge "Fix status bar visibility initialization" 2017-03-27 20:20:28 +00:00
Mady Mellor
2e1387886a Disable PIP minimize and put it behind a tuner item
Test: Have PIP, try to minimize it (does not minimize).
      Enable tuner item, have PIP, try to minimize it (success!)
Bug:35358768
Change-Id: Iee9c26055decd06dc27233ff21edb6905eef9d23
2017-03-27 13:07:58 -07:00
TreeHugger Robot
1eee2a52b5 Merge "Fix PiP dismissing on drag away from bottom and then fling" 2017-03-27 18:59:45 +00:00
Mady Mellor
2fbdd3bfde Fix PiP dismissing on drag away from bottom and then fling
Adds two flags to watch for movement outside of the starting area of the
gesture, one for dismissing and one for minimizing.

Test: - Have PiP at bottom of screen, drag to top and fling down (does not
        dismiss)
      - Have PiP at left or right edge of screen, drag PiP to opposite
        edge and fling to other side (no longer minimizes)
Bug: 35358628

Change-Id: I007e2c2c688254dbe1abaecdedc28e281278def8
2017-03-27 10:07:49 -07:00
Jason Monk
60033fc070 Fix status bar visibility initialization
Make sure it starts up to everything showing and that the StatusBar
calculates the bar mades after it is attached.

There is still a bug where the behind scrim is showing during SUW,
but this fixes many of the issues besides that case.

Test: visual
Change-Id: I93314c607e374c97d5c06f936ef8b7e07e057648
Bug: 36407135
2017-03-27 12:41:32 -04:00
Jason Monk
8c09ac7435 Clean up and cover more QS metrics
Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
2017-03-27 12:36:25 -04:00
TreeHugger Robot
70f6f6faaf Merge "Create NotificationChannels in SystemUI per-user" 2017-03-27 12:55:08 +00:00
Casey Burkhardt
5e8b980c5d Target selection for Accessibility button
Allows for selecting a single accessibility service or feature
to be triggered by the accessibility button in the navigation bar

Bug: 34720082
Test: Manual
Change-Id: I320febede0398b1eff38a87d4db31fd7dfc53062
2017-03-24 19:17:12 -07:00
Evan Laird
7bc03e0d03 Merge "Move percentage to left of battery" 2017-03-24 19:43:36 +00:00
Geoffrey Pitsch
790e091bca Create NotificationChannels in SystemUI per-user
Fixes Screenshot notification when guest plus others.

Bug: 36516812
Test: runtest systemui
Change-Id: I0d851a28ba9b134afc02c72fc3684c1d0be25c41
2017-03-24 13:37:13 -04:00
Philipp Weiß
f3f5e9f7bb Merge "Add strings for link beneath CA Certs disclosures" 2017-03-24 17:07:39 +00:00
Mady Mellor
be976024a8 Merge "Add plugin interfaces to control notification menu / swipe behavior" 2017-03-24 16:54:18 +00:00
TreeHugger Robot
cef238ed70 Merge "Fix SystemUI intents" 2017-03-24 16:40:00 +00:00
Jason Monk
0c60baf000 Merge "QS: Clean up dual target accessibility" 2017-03-24 14:58:02 +00:00