Commit Graph

1070 Commits

Author SHA1 Message Date
TreeHugger Robot
560b26a9d2 Merge "Bouncer animation" into pi-dev 2018-03-12 02:04:21 +00:00
Lucas Dupin
bc9aac10e2 Bouncer animation
More obvious animation where bouncer position is influenced
by touches.

Test: Pull up bouncer, press back button
Test: Pull up bouncer, unlock with fp
Test: Unlock with fp with bouncer hidden
Test: Unlock with SmartLock
Test: Ask for auth on top of FLAG_SHOW_WHEN_LOCKED activity, press back
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Fixes: 3699775
Change-Id: I016dfa17f17571261691669c82385d2d844c5917
2018-03-09 17:03:36 -08:00
TreeHugger Robot
01487d9734 Merge "Filter out detached views from touch" into pi-dev 2018-03-10 00:18:34 +00:00
TreeHugger Robot
c7a25dc939 Merge "Fix AutoTileManagerTest" into pi-dev 2018-03-09 20:20:29 +00:00
TreeHugger Robot
874b009137 Merge "Don't allow foreground notis to be blocked inline." into pi-dev 2018-03-09 18:08:19 +00:00
Julia Reynolds
e03414876a Don't allow foreground notis to be blocked inline.
Offer a 'minimize' option instead.

Also I'm changing the guts, do a little layout
cleanup in the confirmation dialog.

Change-Id: I9f2ef824d1f322752bc4161356f16a5dae166caf
Fixes: 73898083
Fixes: 73657862
Fixes: 73657452
Test: runtest systemui-notification
2018-03-09 11:02:15 -05:00
Amin Shaikh
3585574afa Fix AutoTileManagerTest
Bug: 74431173
Test: runtest systemui
Change-Id: I7d375e913dfab42ffc2e2006b86375f62a8f1165
2018-03-09 10:54:50 -05:00
Amin Shaikh
d64e6269da Display mobile data type icons in status bar.
Instead of showing the type in the top left corner of the signal.
- Add new status bar mobile data indicator assets
- Remove unused qs/status bar mobile data indicator assets

Bug: 72540392
Test: visual using demo mode
Change-Id: Ic63ad3307daabf2e0f023308b7e0682dbd29f1ca
2018-03-09 10:44:45 -05:00
Julia Reynolds
0b4626aa23 Merge changes from topic "jr-viseffects" into pi-dev
* changes:
  Make systemui obey new visual effect flags
  Expand the visual effects that DND can suppress.
2018-03-09 13:38:06 +00:00
Rohan Shah
b8303550e9 Filter out detached views from touch
Views that are detached shouldn't get touch events/start getting
animated (They can't be animated).

Added filter to stream to remove these views from consideration for the
nearest touch frame algo.

Test: Visually + unit test
Bug: 65146195
Change-Id: I74df495a7c02d3d46cd6784f0950c48b5311819e
(cherry picked from commit 2adfe95d84)
2018-03-08 17:59:16 +00:00
Julia Reynolds
24653c3bba Make systemui obey new visual effect flags
Test: runtest systemui
Bug: 74075050
Change-Id: I46a3e762ecdab132edcb81880ef3e4f7f2e55aac
2018-03-08 11:55:33 -05:00
Amin Shaikh
af4c19394e Remove upper left X icon on mobile signal.
Use the signal drawable cutout to represent both data disabled and no
internet state. ag/3690757 displays the description of these icons ("No
internet" or "Mobile data off") in the secondary text of the mobile data
tile.

Bug: 72540392
Test: visual && runtest systemui
Change-Id: I806c41bc96420c42461c0a75b93a485f9a2186f7
2018-03-08 10:59:46 -05:00
TreeHugger Robot
7b894b3fcd Merge "Show app ops guts when tap app ops icons" into pi-dev 2018-03-08 04:00:37 +00:00
Julia Reynolds
b586745d86 Show app ops guts when tap app ops icons
Test: runtest systemui
Bug: 64085448
Change-Id: Ia51044f77311ab705ffb9dd1ae204d0131316396
2018-03-08 01:45:09 +00:00
Lucas Dupin
20ebb0a6d8 Merge "Disable color extraction for media" into pi-dev 2018-03-07 17:36:26 +00:00
Anton Hansson
d137c872cd frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Exempt-From-Owner-Approval: Global cleanup
Change-Id: I26458e41ecb84de91ac9a356a5d4bafb44f463c1
2018-03-07 11:42:04 +00:00
Lucas Dupin
3ec5928cc2 Disable color extraction for media
Overlaying an album with wallpaper colors isn't optimal.
Using the album extracted color also isn't optimal, the color probably
won't meet accessibility guidelines and will have to be stretched
according to the current lock screen theme - which can be even worse.

Test: atest packages/SystemUI/tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java
Change-Id: I53d08713716bd76ee0975c2b4bba5b933201f999
2018-03-06 20:27:50 -08:00
Julia Reynolds
af78a797bf Hide overlay notification
If app's own foreground service notification is tagged.

Test: atest SystemUITests
Bug: 64085448
Change-Id: If10b8dda529c72ee063c9c18c932ceb6d4f92bb4
2018-03-06 20:26:28 +00:00
Lucas Dupin
3503c5f842 Delete legacy code
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I81463eee0af4fa0dfb1e71d94c033e67ee3bd7df
2018-03-02 19:05:14 -08:00
Lucas Dupin
3daf3b0e27 Don't animate when state is immediate
Avoid extending animation for states that are
immediate. Also cleaning up a little bit and
avoiding unecessary repaint.

Change-Id: I1644ce0b539cf92083b47cf3587b01f92b239095
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: brightness mirror
Test: receive notification on keyguard while dragging
Test: unlock with fp
Fixes: 73784491
2018-03-02 10:51:06 -08:00
Julia Reynolds
fc64001126 Tag foreground notis that use certain services
- Draw over other apps
- Camera
- Microphone

The icons are not yet clickable, and the system 'drawing over
other apps' notification still appears even when the app's
notification is tagged.

Test: runtest systemui
Bug: 64085448
Change-Id: Ib3b0cdd9adced82f562f256cb81af80dc395440d
2018-02-28 18:48:58 +00:00
TreeHugger Robot
924367f6ed Merge "Implement QS spec." 2018-02-28 14:14:16 +00:00
TreeHugger Robot
a65d4f8587 Merge "Add AOD to BatterySaverPolicy" 2018-02-28 00:41:32 +00:00
TreeHugger Robot
daa44c28d6 Merge "Show next alarm on ambient display" 2018-02-28 00:19:29 +00:00
TreeHugger Robot
9e9fc28b73 Merge "Remove leftover alarm code (Due diligence)" 2018-02-27 23:53:54 +00:00
Amin Shaikh
d620def5f4 Implement QS spec.
- Update padding between QS tiles
- Add margins in the QS header for larger width devices
- Update carrier text length in QS footer and fix animation overlap
- Fix TouchAnimator to linearly interpolate more than 2 keyframe values

Bug: 73312177
Test: visual
Change-Id: I8da031437fc78ef1fb86797237711ac92a860616
2018-02-27 23:47:30 +00:00
Lucas Dupin
1f7374a276 Show next alarm on ambient display
Next alarm will be visible 12h before triggering.

Test: Set alarm that will ring in 8h
Test: Set alarm that will ring in 14h
Test: Set alarm that will ring in 11:59, wait one minute
Test: atest packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java
Change-Id: Icd4253771efcdf5afb4e9e52329fa410d7fd1cc1
2018-02-27 14:35:44 -08:00
Rohan Shah
738bc0c8f1 Remove leftover alarm code (Due diligence)
ag/3659178 was merged without removing extra alarm tile code. Cleaned up
the unnecessary bits in this CL.

Test: Visually and ran AutoTileManagerTest as confirmation
Bug: 73764084
Change-Id: I55fa39775ba9f4092034bd1273dfa1c2848c3953
2018-02-27 12:25:38 -08:00
Lucas Dupin
92a62e5533 Add AOD to BatterySaverPolicy
Test: activate/deactivate battery saver, look at AOD
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/BatteryControllerTest.java
Fixes: 62797110
Change-Id: I9fc5f4fc5aa9cfd45e90e602251e4c2c863dfbcc
2018-02-27 09:05:09 -08:00
Lucas Dupin
32febef04d Merge "Ignore rebroadcasts of ACTION_SIM_STATE_CHANGED" 2018-02-27 02:40:36 +00:00
Lucas Dupin
b380c882a2 Fix scrim busyness regression
Scrim opacity on the keyguard should vary according to how many
notifications are visible.
A busy lock screen has a more opaque scrim, and an empty lock screen
has a more transparent scrim.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: swipe away or receive notifications on the keyguard
Change-Id: I672b5e1a82d65dd326b40069d61223c3c0161493
2018-02-27 00:19:24 +00:00
Lucas Dupin
5e0f0d27ca Ignore rebroadcasts of ACTION_SIM_STATE_CHANGED
Telephony will rebroadcast ACTION_SIM_STATE_CHANGED with
EXTRA_REBROADCAST_ON_UNLOCK set to true to indicated
that an old message is being reposted for backwards
compatibility purposes.

System UI is direct-boot-aware and can should these
broadcasts.

Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardUpdateMonitorTest.java
Change-Id: Ie1c092f06f32f124cca68d2561b50038af6dc38f
Fixes: 68546898
2018-02-26 13:32:16 -08:00
Petr Cermak
7ef7812c7b Tear down broadcast receiver in RemoteInputView and SmartReplyView tests
Bug: 73803843
Test: atest RemoteInputViewTest SmartReplyViewTest
Change-Id: Iea933874fd76d445971864c743dd02b20ff1e1e9
2018-02-26 12:45:09 +00:00
TreeHugger Robot
e2cf16bfb0 Merge "Revert "Disabled presubmit for flakey test"" 2018-02-23 20:18:23 +00:00
Lucas Dupin
bfb36c3f20 Merge "Ensure keyguard slice use correct colors" 2018-02-23 17:21:27 +00:00
Selim Cinek
d87fdecc9f Revert "Disabled presubmit for flakey test"
This reverts commit 5bdfb4c1bd.

Reason for revert: fixed the flakyness in ag/3650459

Change-Id: I4a73a0f82a087fb59da79f286e98f0e1f88693b5
2018-02-23 03:37:31 +00:00
Selim Cinek
6fb936f814 Merge "Fixed an issue with a test that didn't work properly" 2018-02-23 03:35:40 +00:00
Selim Cinek
9a236f780d Fixed an issue with a test that didn't work properly
This was causing tool failures.

Change-Id: Ia29b2b22dc1e0bf53dfd664280fd69dc110e020b
Fixes: 73791701
Test: runtest systemui
2018-02-22 19:26:53 -08:00
Lucas Dupin
f8e274c422 Ensure keyguard slice use correct colors
Change-Id: I0406f8092583174e60ee5c89a71047288cbe480a
Fixes: 73538050
Test: atest packages/SystemUI/tests/src/com/android/keyguard/KeyguardSliceViewTest.java
2018-02-22 17:03:20 -08:00
Selim Cinek
5bdfb4c1bd Disabled presubmit for flakey test
Test: runtest systemui
Change-Id: If772052b2c172e62a22958f9996436914d8e8e1b
2018-02-22 16:13:22 -08:00
Selim Cinek
bdbf458844 Fixed a NP when replying to a message
The visbilityChanged listener is only set up later,
so we'll have to add a nullcheck for it.

Change-Id: I1f5843f02fd9c8fc20e26f1de47911e5eb533471
Fixes: 73758799
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/RemoteInputViewTest.java
2018-02-22 09:50:24 -08:00
Julia Reynolds
ee57193bb6 New small volume dialog
- Remove labels
- Remove output chooser dialog
- Reorder icons
- Add settings affordance
- Add instructive toast

Test: manual
Change-Id: I6640fb8147707936fe22e3c756ab29116973fbe3
Fixes: 73719758
Fixes: 73333233
Fixes: 71663761
2018-02-22 10:10:42 -05:00
TreeHugger Robot
f45f121a76 Merge "Fix opacity of expanded shade during transitions" 2018-02-21 21:54:33 +00:00
Lucas Dupin
80a3fcc3f5 Fix opacity of expanded shade during transitions
Change-Id: I480e558113cd9f31b7548002265e9b4b78b0ddad
Fixes: 70351996
Fixes: 71443237
Fixes: 73311721
Fixes: 72757727
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: unlock with fp. pattern
Test: pull down shade adjust brightness on bouncer and launcher
Test: unlock with fingerprint from pulsing notification
2018-02-21 19:43:38 +00:00
Rohan Shah
db2cfa3609 [QS] Add header tooltip for long press
Added some hooks in animator to pass along expanded/animating/collapsed
state in a more clear manner. Added tooltip view with the teaser text to
animate in at the top of the view (and fade out either when we start
animating or automatically after 5 seconds).

Added prefs for tracking how often tooltip is shown/hiding it based on
that number.

Updated dimensions for correct spacing (based on redlines).

Test: Visually
Bug: 72528203

Change-Id: I70e4654ed95057fac6d8dbb890d575c2a5d9f215
2018-02-21 10:12:33 -08:00
TreeHugger Robot
f084a7a40f Merge "Switch to inline mockito for a bunch of tests" 2018-02-18 19:43:54 +00:00
Jason Monk
1fc931a38a Switch to inline mockito for a bunch of tests
So we can mock final stuff

Test: The tests
Change-Id: Ia3a47c6655c4b0b9af0aea0ee6f8f6cb9ebaab09
2018-02-18 13:02:25 -05:00
TreeHugger Robot
8434214c17 Merge "Custom SmartReplyView layout" 2018-02-16 21:43:37 +00:00
Petr Cermak
102431d5eb Custom SmartReplyView layout
Implement SmartReplyView#onMeasure and SmartReplyView#onLayout according
to the redlines in go/p-notifications:

  * Smart reply buttons can have at most 2 lines of text.
  * Squeeze buttons to 2 lines of text when necessary to fit more
    buttons.
  * Don't show buttons which have more than 2 lines of text or don't fit
    within the notification width.
  * Update button background and text color.

Screenshot: https://screenshot.googleplex.com/cSM6Ve7qjb3.png

Bug: 67765414
Test: atest SmartReplyViewTest
Change-Id: Ia161c7f5669e7aef1b8c3480a8836784f0bde055
2018-02-16 17:30:45 +00:00
Evan Laird
2144158a26 Merge "Revert "[QS] Add header tooltip for long press"" 2018-02-16 15:37:22 +00:00