Commit Graph

32547 Commits

Author SHA1 Message Date
Winson Chung
dec1a6665a Fix regressions in PiP movement bounds handling
- When we return early when detecting when to skip applying the bounds
  the stored bounds and rotation weren't being updated
- In landscape, the addition of the nav bar inset in the bottom pushed
  the movement bounds to be out of range, which cause an incorrect
  offset to be calculated
- Simplified the logic to calculate the offset for the adjustment for
  IME and shelf -- keep track of the previous offset, check the previous
  movement+offset bounds with the next movement+offset bounds and only
  update if the PIP is currently between those two bounds
- Tweak to landscape policy, if there isn't enough space for the ime
  offset, then don't apply it as a part of the shift

Bug: 126199952
Test: Go to landscape + pip, open IME and dismiss IME and ensure the
      PIP is pushed off and restored correctly
Test: In portrait, test going from app/home/ime and verify that the right
      offsets are applied, and then if the stack is not in the bounds of
      the offset change, that it is not applied

Change-Id: I67eee7d321995f403137db940b06f685d0c919af
2019-06-05 15:33:16 -07:00
Ned Burns
798aa80cf5 Merge "Allow notification reordering after user adjusts importance" into qt-dev 2019-06-03 18:21:19 +00:00
Fabian Kozynski
9949266e40 Merge "Revert "Change carrier name shown No Service to ECO"" into qt-dev 2019-06-03 17:41:12 +00:00
Bonian Chen
a7e9e8c66d Revert "Change carrier name shown No Service to ECO"
This reverts commit b023773a18.

Reason for revert: Not yet decided to release this at this stage

Change-Id: Ic0018cadcc228667a64f6f8c694bb6a04f00adc9

Bug: 130857483
Bug: 133201131
Bug: 132291669
2019-06-03 13:08:11 +00:00
TreeHugger Robot
9070e5ab3a Merge "Import translations. DO NOT MERGE" into qt-dev 2019-06-01 14:44:50 +00:00
Bonian Chen
7aee265a7f Merge "Change carrier name shown No Service to ECO" into qt-dev 2019-06-01 12:47:31 +00:00
Bill Yi
4ac83d05ae Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I5318ae0fb85ad6f40291511ee6b647686c387a3a
2019-06-01 00:09:58 -07:00
TreeHugger Robot
1d6d10dc6f Merge "Fix SysUI-Assistant metrics logging" into qt-dev 2019-06-01 01:28:39 +00:00
Fabian Kozynski
aa4545194b Merge "DO NOT MERGE Remove Privacy Indicators" into qt-dev 2019-05-31 22:43:08 +00:00
Govinda Wasserman
b7cd1621bc Fix SysUI-Assistant metrics logging
Logging was broken by a refactor, this fixes it so that it works
correctly again. Also adds handle, phone state, and dismiss reason
logging to the metrics as they were never being logged.

Test: Tested locally
BUG:128982146
BUG:133407447
BUG:133247164
Change-Id: I3d925243f9826439c6acb718e8436ccdd1d27564
2019-05-31 18:25:20 -04:00
Beth Thibodeau
1422232c3e Merge "Refactor callbacks to avoid extra binder calls" into qt-dev 2019-05-31 22:23:34 +00:00
TreeHugger Robot
2cf73d7976 Merge "Close notification guts after applying changes" into qt-dev 2019-05-31 21:47:32 +00:00
Ned Burns
9512e0c755 Allow notification reordering after user adjusts importance
After the user adjusts the priority of a notification, we need to
temporarily lift the VisualStabilityManager's ban on reordering
to allow the priority adjustment to take effect.

There's no clear signal as to when this reprieve should end --
eventually, we'll get a ranking update, but there's no way to tell
that it was the update that our change triggered. So instead we just
wait for 1000ms and then drop the adjustment ban again. If a few
extra reorders slip in during that time, so be it.

Test: atest, manual
Bug: 129772718
Change-Id: Iefb6917bb41935ed6bfc720b51738c66ffa83457
2019-05-31 17:26:05 -04:00
TreeHugger Robot
5c9415dd1a Merge "Update battery content description." into qt-dev 2019-05-31 20:56:37 +00:00
Fabian Kozynski
9a560e068d DO NOT MERGE Remove Privacy Indicators
Bug: 133257910
Test: build and check that behavior is as P
Change-Id: I24bfc3806e2d12f6a1cc968d6979107e7002a3c4
2019-05-31 20:43:21 +00:00
TreeHugger Robot
fc868fa839 Merge "Change colors for a11y" into qt-dev 2019-05-31 20:40:35 +00:00
TreeHugger Robot
a288fae7cb Merge "Fix issue where scrim color event would be skipped" into qt-dev 2019-05-31 20:22:24 +00:00
Aran Ink
b7a1ea9a3a Merge "Allow all ActivatableNotificationRows to clip properly when interacting with the shelf." into qt-dev 2019-05-31 20:11:48 +00:00
Aran Ink
c70d1dc2a5 Merge "Fix marquee animating in QuickSettings when invisible to user." into qt-dev 2019-05-31 20:11:21 +00:00
TreeHugger Robot
40cff7025a Merge "DO NOT MERGE: Disable resume for guest session if user is ephemeral" into qt-dev 2019-05-31 19:45:25 +00:00
Julia Reynolds
2a9c3855d9 Change colors for a11y
Test: a11y scanner
Fixes: 134158955
Change-Id: I46db4a032d1fed27b5cd69efda3d2bb685170c24
2019-05-31 19:07:34 +00:00
Julia Reynolds
e50aa221bc Fix a11y read-twice bug
Also remove a hardcoded string

Test: manual with talkback
Fixes: 133731969
Change-Id: I0effe046fd6edddd109335a6dd7fa6b732587d64
2019-05-31 15:06:34 -04:00
Lucas Dupin
995fe77dde Fix issue where scrim color event would be skipped
Test: adb shell service call uimode 4 i32 1
Test: adb shell service call uimode 4 i32 2
Test: atest SysuiColorExtractorTests
Fixes: 134019682
Change-Id: I8617683a2f0d9b04e6f799d20b8ebe9d218a7033
2019-05-31 11:52:09 -07:00
Matt Casey
f4b45a602c Merge "Make CornerHandleView use device radius." into qt-dev 2019-05-31 18:49:42 +00:00
Winson Chung
4410d23560 Merge "Removing logs from old bug" into qt-dev 2019-05-31 17:33:24 +00:00
Matt Casey
bdb3cb325d Make CornerHandleView use device radius.
Both the radius and margin will vary from device to device. Created a
derivation of margin from the radius values based upon numbers on real
devices.

Bug: 133861138
Test: Verified padding and radius on multiple devices.
Change-Id: I3a284d75da8beb7ab77e5cb8e1fa8af57c5e3978
2019-05-31 13:05:09 -04:00
TreeHugger Robot
ab6d2d3152 Merge "Fix always-null children on NotificationEntry" into qt-dev 2019-05-31 17:03:05 +00:00
Christophe Koessler
6f9fd4487a DO NOT MERGE: Disable resume for guest session if user is ephemeral
If the user is ephemeral, it shouldn't be possible to resume a previous
session. Only register the guestResumeSessionReceiver if the guest is
not ephemeral.

Bug: 122893274
Test: manual - local build
Change-Id: I16aa0e396ea8bd8d249ffcfb639438858bea4b35
(cherry picked from commit 32d5d50bfd)
2019-05-31 17:01:04 +00:00
TreeHugger Robot
ab160487d6 Merge "Add text shadow to improve visibility on album art" into qt-dev 2019-05-31 16:02:40 +00:00
Aran Ink
7dd05dc1c7 Fix marquee animating in QuickSettings when invisible to user.
Bug: 127246438
Test: Manual.
Change-Id: I8ce23b793821ddf863e4c751129f902f447fde34
2019-05-31 11:47:23 -04:00
Lucas Dupin
47e4102e9f Merge "Do not translate statusbar icons" into qt-dev 2019-05-31 14:52:07 +00:00
TreeHugger Robot
a8723416cc Merge "Clear AppOpsController when it stops listening" into qt-dev 2019-05-31 14:44:10 +00:00
Fabian Kozynski
c40cff352a Merge "Remove leftover stopship comment line" into qt-dev 2019-05-31 14:33:54 +00:00
Aran Ink
2f86e74333 Merge "Change GlobalActions emergency icon to star of life." into qt-dev 2019-05-31 14:32:01 +00:00
Aran Ink
50195263b7 Change GlobalActions emergency icon to star of life.
Also fixes spacing for landscape/seascape layout spacing in column view.

Test: Manual inspection.
Fixes: 133435027

Change-Id: Ia3eee8747847ee2a74c2014263545dfdf14f52ce
2019-05-31 14:31:07 +00:00
Evan Laird
7956fe855b Close notification guts after applying changes
ChannelEditorDialogController now tells interested parties about the
fact that it wants to dismiss. NotificationInfo also can close itself
without saving changes

Test: disable top channel in dialog, watch the guts close and
notification disappear
Bug: 133182818

Change-Id: I70adc7dc0d6b9a8a207cdff0b28b281fbd24e18a
2019-05-31 14:30:02 +00:00
Amin Shaikh
44386742fd Update battery content description.
Ensure "battery" and "percent" are included.

Bug: 134035327
Test: make; enable talkback
Change-Id: I4c8a0a2c53333bc24b7075f19ca9ec4f9203167e
2019-05-31 09:25:38 -04:00
Fabian Kozynski
b023773a18 Change carrier name shown No Service to ECO
In the case where at least one SIM supports EC (either it has service or
it supports them), we replace "No service" carrier name into "Emergency calls
only". This does not replace the string if the sub is already mark as
ECO.

Test: manual
Test: atest KeyguardUpdateMonitorTest
Test: atest CarrierTextControllerTest
Fixes: 130857483
Fixes: 133201131
Fixes: 132291669
Change-Id: Ia0ba2076c9750a8bb081994291753dbea68a2270
2019-05-31 09:15:50 -04:00
Fabian Kozynski
4a7331f845 Remove leftover stopship comment line
Test: none
Fixes: 129405675
Change-Id: I95e74cd50cccf81879e0fcb5321d4b1656efdd1c
2019-05-31 09:04:59 -04:00
Beth Thibodeau
2e76ad5568 Refactor callbacks to avoid extra binder calls
Main changes are:
- Update metadata when it changes instead of checking in the timer
- Reuse PlaybackState object when checking if media is seekable

Fixes: 132941962
Test: manual, atest com.android.systemui.statusbar.notification.row.wrapper.NotificationMediaTemplateViewWrapperTest
Change-Id: If870159662bdd6d2288c61d80a14060a4e751da7
2019-05-31 09:04:26 -04:00
Winson Chung
780fc519dc Removing logs from old bug
Bug: 134106231
Test: None, only log removal
Change-Id: I6503f38ac25d1b2784a181182de026ec0f96e125
2019-05-30 21:03:49 -07:00
Winson Chung
64fc46315f Merge "Ensure margins for floating rotation button account for corner insets" into qt-dev 2019-05-31 03:41:33 +00:00
TreeHugger Robot
f3825f11a1 Merge "Fix RTL placement of "Silent Notifications" section header" into qt-dev 2019-05-31 02:52:14 +00:00
TreeHugger Robot
f185b652bd Merge "Fix notification shade inefficient contrast" into qt-dev 2019-05-31 01:26:19 +00:00
Lucas Dupin
c53aaf84b9 Do not translate statusbar icons
We're not showing them on AOD anymore, this code is obsolete.

Test: visual
Fixes: 132396324
Change-Id: Ief1870b5c92351ca5533721b7dd5db57994d5d27
2019-05-30 17:23:28 -07:00
Winson Chung
082e8dfb06 Ensure margins for floating rotation button account for corner insets
Bug: 134070810
Test: On P4, rotate the screen and see the button
Change-Id: I67159e94a3a03e8a580b943d860ad32b1753e160
2019-05-30 16:18:00 -07:00
Matt Casey
20a2e7ae2f Merge "Fixes test that is currently failing" into qt-dev 2019-05-30 22:23:37 +00:00
Govinda Wasserman
5dfe9658bf Fixes test that is currently failing
Refactors yesterday caused tests to fail because of dependencies getting
initialized earlier. Refactored so that they are initialized late enough
for the tests to be able to mock them correctly.

Also fixes bug where handles would still show when there was no
Assistant.

Test: atest AssistHandleBehaviorControllerTest
BUG:132424950
Fixes: 134086503
Change-Id: I645a2529bf56b5e996e8250267ead87bed9f4f2b
FIX:132424950
2019-05-30 22:22:59 +00:00
Beth Thibodeau
5500417a6f Add text shadow to improve visibility on album art
Fixes: 132629876
Test: Visual, examples at https://photos.app.goo.gl/KcLhzyQT6NCbb5BF6
Change-Id: I0d013f28728824ff44db172a711e89b219d63bbe
2019-05-30 17:52:08 -04:00
TreeHugger Robot
2fb4cb55f0 Merge "Use unbatched inputeventreceiver, reduce touchslop" into qt-dev 2019-05-30 21:42:27 +00:00