Commit Graph

13458 Commits

Author SHA1 Message Date
Winson Chung
3f2bbcbe92 Merge "Fix menu visibility while updating dismiss fraction." into oc-dev 2017-04-03 19:22:57 +00:00
Winson Chung
244e4854c3 Merge "Fixing regression in PiP TV." into oc-dev 2017-04-03 18:22:41 +00:00
Winson Chung
c3545d3dc4 Fix menu visibility while updating dismiss fraction.
Bug: 36225602
Test: Enter PIP, move, tap field to show IME
Change-Id: Idf47728a2fa40703e4e68b2cc0925167b8e80c0c
2017-04-03 10:44:57 -07:00
TreeHugger Robot
5c8832a983 Merge "Disable sounds on menu button" into oc-dev 2017-04-03 16:37:49 +00:00
TreeHugger Robot
cb4ed821f2 Merge "Fix battery icon dark initialization" into oc-dev 2017-04-03 16:37:11 +00:00
Winson Chung
d62acec309 Fixing regression in PiP TV.
- Don't clobber the state if we are deferring resizing due to finishing
  activities.
- Fix issue with PiP tasks being visible after the stack is removed, due
  to it being put below a non-fullscreen task in the fullscreen stack.
  Instead just move it to the back of the stack.

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

Change-Id: Ia18fe155b8a045a8ffea84612fd08af3ef3982d8
2017-04-03 09:30:42 -07:00
TreeHugger Robot
a56b6e530a Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev 2017-04-03 15:37:18 +00:00
TreeHugger Robot
f244f7e1b8 Merge "Fix losing status bar icons on config changes" into oc-dev 2017-04-03 15:05:38 +00:00
Jason Monk
de8cd0e8f5 Merge "Switch cast over to support library dialog" into oc-dev 2017-04-03 13:34:19 +00:00
TreeHugger Robot
2579ec1b6d Merge "Fix tuner sub-screens attach" into oc-dev 2017-04-01 04:16:40 +00:00
TreeHugger Robot
cf6fa5e951 Merge "QS: Add transient icon for hotspot" into oc-dev 2017-03-31 23:18:43 +00:00
TreeHugger Robot
2af994ec03 Merge "Ensure we show the PiP menu in response to KEYCODE_WINDOW." into oc-dev 2017-03-31 23:07:23 +00:00
Jason Monk
110e5f6c16 QS: Add transient animations for bluetooth and wifi
Test: runtest systemui
Change-Id: I04a81e1b36a6595bfb102603ad07b079c8b0ee77
Fixes: 26781226
2017-03-31 13:51:03 -04:00
Jason Monk
e645aee45a QS: Add transient icon for hotspot
Will make the loading time more clear.

Test: visual
Bug: 32270851
Change-Id: I0ea7591da132ff65fb7fc16b03b2891891e66598
2017-03-31 13:49:21 -04:00
Winson Chung
ac52f2892d Ensure we show the PiP menu in response to KEYCODE_WINDOW.
Bug: 36687605
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testWindowButtonEntersPip
Change-Id: I0bb35fd666eb6a438e4676267f6726b44bffb3db
2017-03-31 10:42:53 -07:00
Adrian Roos
f667aebe20 Merge "A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description" into oc-dev 2017-03-31 17:31:50 +00:00
Mady Mellor
8565eab156 Merge "Update PIP dismiss to show scrim + info text at the bottom of the screen" into oc-dev 2017-03-31 17:27:41 +00:00
Jason Monk
ae39cb9c60 Fix tuner sub-screens attach
Seems that when preferences are attached has changed, so we need to
make sure any sub preference screense explicitly own their preferences.

Test: manual
Change-Id: Id28c30367417fc7dbe74c3970a8e19a031ea6d8d
Fixes: 36766199
2017-03-31 11:31:25 -04:00
Jason Monk
6eb906ecc3 Fix losing status bar icons on config changes
The DarkIconManager was not correctly calling set when icons
were added, leaving them blank after a config change until a new
set came in.

Do some refactoring to fix this and make it more testable.

Test: runtest systemui
Change-Id: I0b231021f2ce7d82a3f84ebb281b4e4fc902a0aa
Fixes: 35367550
2017-03-31 10:53:29 -04:00
Adrian Roos
6e782a5e4e A11y: Prefer EXTRA_TITLE to ticker for status bar icon content description
Change-Id: I08d5439f0f593d32044d5a59fc7b8f24e33a15a9
Test: manual - post notification, check that Talkback utterance is correct on status bar icon.
Fixes: 30739573
2017-03-30 18:54:01 -07:00
Mady Mellor
60421c9d45 Update PIP dismiss to show scrim + info text at the bottom of the screen
- Rather than testing how far off screen the PIP is, instead tests how far
  past the nav bar / on screen bars the PIP is to determine if it is a
  dismiss
- When dragging PIP around screen, display info text + scrim at bottom
  these are above the PIP in z-order
- On lift up or when PIP is dismissed, info text + scrim also hide
- Alters dismiss animation to use end point on trajectory of finger and
  use FlingAnimationUtils when flinging

Test: Drag PIP around screen, notice dismiss scrim + text appear, dismiss
      PIP and scrim / text also disappear
Bug: 35358628
Change-Id: Ibc0f6a884903f7d1b3ca2fd5c20647b4acf15a71
2017-03-30 17:30:38 -07:00
TreeHugger Robot
d584a5e65b Merge "Tweaking PiP for accessibility." into oc-dev 2017-03-30 19:56:39 +00:00
Jason Monk
1cbf5fbd7a Switch cast over to support library dialog
Makes UI more consistent and removes the cast detail panel from QS.

Test: visual
Change-Id: I9a70b9695511c5f1e4235a838a071079506963a6
Fixes: 35407111
2017-03-30 15:23:43 -04:00
Jason Monk
6c1e6ca48e Disable sounds on menu button
They are played by the app receiving them when it receives them,
so don't send them as it will cause multiple click sounds.

Test: Auditory
Change-Id: Ib8b977bb775c86eb1fb9ec7426f7d93e399b411e
Fixes: 34099789
2017-03-30 14:12:13 -04: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
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
Jason Monk
d866b8aa03 Fix battery icon dark initialization
Test: visual
Change-Id: I333436dd0ffb4a7791a98caa53054d01e9ff18ef
Fixes: 36443516
2017-03-29 15:30:44 -04: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
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
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
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
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