Commit Graph

3061 Commits

Author SHA1 Message Date
Evan Laird
36d3b2e3ad DO NOT MERGE: Add blacklist for camera protection
Bug: 150540299
Test: atest SystemUITests
Change-Id: Ica395ba060cbbdbd0eef424e6f05decaff3f308c
2020-03-19 15:39:20 +00:00
Evan Laird
9315832913 DO NOT MERGE: Allow corner UI to decouple from rounded_corner_radius
frameworks/base/core/res/res/dimens value rounded_corner_radius can
change not to reflect the actual device size due to tuning the rounding
on window corners.

This change allows us to decouple corner UI's idea of what the corner
size is from the framework dimension

Test: manual
Change-Id: I6548d74921d6e71250486984869572bdd304b0d0
2020-03-10 23:04:05 +00:00
Evan Laird
6075dd7f58 DO NOT MERGE: Add SystemUI support for front-facing camera protection
Devices with a DisplayCutout configured may want to add some extra area
of turned-off pixels around the cutout in order to keep light from
leaking into camera hardware. This CL adds two new config values to
sysui to enable the configuration of this cutout protection, and listens
for CameraManager events telling us that a relevant camera has turned
on.

Test: manual
Bug: 145095085
Change-Id: Ifce67a593247e3a2151d41800ae46a50478e0b7d
2020-02-24 18:44:48 +00:00
Bill Lin
688ebd6876 Merge "DO NOT MERGE Respect rounded.xml size in ScreenDecorations" into qt-qpr1-dev 2020-02-24 16:27:20 +00:00
Bill Lin
9ae18fa2d9 DO NOT MERGE Respect rounded.xml size in ScreenDecorations
Suppose vendors will customize rounded.xml with corresponding
multiple radius path and size, ScreenDecorations should not resize it
by rounded_corner_radius in case jagged edges problem

Test: atest SystemUITests
Test: atest ScreenDecorationsTest
Bug: 145707162
Bug: 148912090
Change-Id: Ie33526214072ad324ca00a10074ad212dfbf4258
2020-02-21 07:46:18 +00:00
Dave Mankoff
cb45d588e1 RESTRICT AUTOMERGE Use Alternative Prox Sensor for Falsing
This allows new phones to use a sensor with a different
theshold when attempting to determine the devices proximity
to surfaces.

Bug: 149420648
Test: manual
Change-Id: Iee8568f7d9f58359dc1e72fd195a42abeaf2ddf3
2020-02-19 17:16:35 -05:00
Jay Aliomer
730fc5b2c9 Battery Saver capitilized in tile
When the phone is in battery saver mode, the "Battery Saver" secondary
label should be capitalized

Test: manual

Fixes: 145694753
Change-Id: Ia88547aa05ad441b07da3044e7148e1a918c28b5
2019-12-18 02:07:12 +00:00
Jay Aliomer
f19ce4af1d Dark theme battery saver tile secondary text
Dark theme tile on battery saver should show
"Dark theme" and "Battery saver" on two lines

Test: manual. turn battery saver on while dark theme on auto

Fixes: 146439388
Change-Id: I460b582ca7fcf244b406d6eaf70c10e4edc52d85
2019-12-17 20:57:08 +00:00
Wilson Wu
fc3f1408da Merge "Support showing alignment hint based on aligniment state of dock" into qt-qpr1-dev 2019-11-26 10:29:40 +00:00
Jerry Chang
4bbf1596b9 Support showing alignment hint based on aligniment state of dock
Bug: 141984730
Test: atest SystemUITests:KeyguardIndicationControllerTest
Change-Id: Ic0911683725a0e54406df06b948169c4dde94764
Merged-In: Ic0911683725a0e54406df06b948169c4dde94764
2019-11-26 11:03:10 +08:00
Jay Aliomer
381e3300e8 Dark theme twilight mode backend and tile
When the user has Dark theme scheduling turned on (b/141567787), the quick settings tile subtext should reflect the following:
If Dark theme is on: "Until sunrise"
If Dark theme is off: "On at sunset"
If the user does not have Dark theme scheduled, the text should not appear.
This matches the appearance of the Night Light QS tile.
All starting windows snapshots will be deleted and splash screens
will be used instead.

Test: atest UiModeManagerServiceTest
Fix: 143874807
Merged-In: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d

Change-Id: Ie2ce64b5c5544fffe76be7ec3f971eb7461f8c4d
(cherry picked from commit 8b2671b029)
2019-11-21 18:05:22 +00:00
Evan Laird
83c87e50b1 DO NOT MERGE Allow for HTML styling in mobile data type content descriptions
This CL implements a (somewhat hacky) way to enable HTML attributes in
the mobile data type content description strings. This way we can use
some basic styling in the Quick Settings cellular data tile which uses
it in a TextView.

We do this by assuming that the content description is valid, escaped
HTML, and send two separate CharSequences to all of the listeners, all
of which can then decide if they need the regular content description or
the prettified version.

Test: atest SystemUITests; system ui demo mode
Bug: 141177147
Change-Id: Idf387111b0cdc34ad3762eac0ec6c2b484b393e3
2019-09-25 11:12:37 +00:00
Mady Mellor
a5813e0e3d qt-r1-bubbles-dev @ build 5835883
Test: presubmit setup on source branch

Bug: 126945401
Bug: 128932906
Bug: 129158983
Bug: 130237686
Bug: 130250809
Bug: 130442248
Bug: 131267438
Bug: 131609280
Bug: 131692350
Bug: 131849856
Bug: 133444037
Bug: 134064116
Bug: 134064858
Bug: 134070807
Bug: 134077101
Bug: 134090085
Bug: 134155107
Bug: 134423445
Bug: 134512898
Bug: 134514210
Bug: 134514227
Bug: 134734945
Bug: 134960381
Bug: 134989736
Bug: 135214687
Bug: 135280077
Bug: 135472021
Bug: 135475155
Bug: 135487618
Bug: 135488406
Bug: 135518045
Bug: 135633218
Bug: 136034310
Bug: 136150954
Bug: 136199542
Bug: 136538998
Bug: 137201711
Bug: 137213469
Bug: 137214359
Bug: 137214536
Bug: 137233453
Bug: 137876221
Bug: 138301618
Bug: 138445026
Bug: 138659213
Bug: 138749133
Bug: 138799651
Bug: 138801505
Bug: 138941969
Bug: 139002444
Bug: 139025304
Bug: 139816141
Change-Id: Ia7364529ea58070c8d45ecd726ab6ac7d34f2abe
Merged-In: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
Merged-In: Ic3a4ba793db7f1361678ef51c411d9eab85d9b85
2019-09-11 22:42:54 +00:00
Mady Mellor
818eef04ee Update statusBarHeight & bubblePaddingTop on config change
* Status bar height can change and we're not accounting for it
* Introduces landscape value of bubblePaddingTop that is smaller so
  that there is more space for app content in landscape

Bug: 135487618
Test: manual - requires changes in other CL's in stack, but then:
             - have bubbles, expand stack
             - rotate device
             => notice that spacing between status bar + expanded view
                is smaller in landscape & larger in portrait
Change-Id: Ib6e98c7ee51408fb8bb51ecb3b4875fc618de8b3
2019-08-22 13:26:13 -07:00
Hyunyoung Song
1081450d09 [DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791
Test: presubmit setup on source branch

Bug: 130289146 Create a Gradle build for SystemUI
Bug: 136279712 Daggerize FalsingManager
Bug: 137324767 "Unable to instantiate service com.android.systemui.doze.DozeService" exception breaks launcher tests
Bug: 137563419 Remove Bouncer reveal delay from bypass flow
Bug: 138787339 Allow Services and Activities to be injected into directly.
Bug: 139128921 [AS 3.5 RC2, SDK API 29 rev 2] Overload resolution ambiguity: while removing element from HashMap
Bug: 64712476 Import translations for dev branches


Change-Id: Ib7fd4706c070907fd556c3532957f3b1b046de6d
2019-08-21 16:28:35 +00:00
Hongwei Wang
98d0858138 Update the string on how to exit pinning mode in gesture navigation
Bug: 139438042
Test: Back gesture in screen pinning mode
Change-Id: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
Merged-In: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
2019-08-15 18:16:59 +00:00
Dave Mankoff
56baff70e9 Merge "Initialize Dependency with the Application when Dagger starts." into qt-qpr1-sysui-dev 2019-08-12 15:10:08 +00:00
Dave Mankoff
037d9fcd95 Initialize Dependency with the Application when Dagger starts.
Dependency is no longer a subclass of SystemUI. It gets initialized
directly as part of the application, just like the rest of Dagger.
It was an awkward implementation of SystemUI anyways.

Bug: 137324767
Change-Id: Icf49e9262e8c0710210a8bc0231c4d16396ffdf3
Test: atest SystemUITests
2019-08-09 13:54:23 -04:00
Lucas Dupin
f40bd8fbb6 Assume sensors perform prox check
Assume that doze sensors will be prox gated.
Not doing so would be a bad idea anyway since the device would wake
up way more often than it should and drain battery.

Another improvement on this CL is that regular DozeSensors prox
checks are trying to use a binned brightness sensor instead.

Fixes: 138765669
Test: atest DozeSensorsTest DozeTriggersTest
Test: single tap from AOD (observe no re-registration of lift)
Test: 'reach' from AOD (observe no re-registration of lift)
Test: receive notification with prox covered or unobstructed
Change-Id: I1961ff9b16480ba1a60c397570494dd7acb4802d
2019-08-08 14:52:53 -07:00
Lucas Dupin
adce35309b Clearer message when face auth fails
Before we were saying "Swipe to open" on bouncer and some users though
it was a bug, not we're being more explicit and saying "Swipe up to try
again"

Test: manual
Fixes: 134042651
Change-Id: I1a057819253252cc3912ff6b66505a8d55dc93ae
2019-08-02 11:17:39 -07:00
Mady Mellor
f474e0d81c resolve merge conflicts of 311e1db11d to qt-r1-bubbles-dev
Bug: None
Test: atest BubbleControllerTest StatusBarWindowControllerTest
Change-Id: If29e2a290a2dac28835a206e0b5980482c5f50b4
2019-08-01 11:08:40 -07:00
Lucas Dupin
1edecabca9 Merge "Switch preffered display mode on lock screen" into qt-r1-dev
am: 311e1db11d

Change-Id: I3c6481a585154520fd66274321d2d3ebfbf644a1
2019-07-31 11:31:42 -07:00
Lucas Dupin
e25c487141 Switch preffered display mode on lock screen
To save power, now it's possible to specify a preferred refresh rate for
the lock screen. It's -1 by default, and should be configured on a
device overlay whenever required.

Test: manual
Test: atest StatusBarWindowControllerTest
Fixes: 138303350
Change-Id: I4d1ca210b50d32d937b0fea2fcb9e28a7c50c0b3
2019-07-30 09:47:18 -07:00
TreeHugger Robot
2b8d62334f Merge "Move the volume panel over 4dp for consistency" into qt-qpr1-dev 2019-07-29 02:52:27 +00:00
Winson Chung
d32046a889 Merge "Tweak home handle colors to have some opacity" into qt-r1-dev
am: 2ef9fa54ae

Change-Id: Iaab239cc447b3e4e7cc0bbf53d31db59f1b1ebc3
2019-07-28 01:43:46 -07:00
Winson Chung
4184a1d907 Tweak home handle colors to have some opacity
Bug: 138145469
Test: Just updating some colors
Change-Id: I20f79c487df86af18d54d232da09af55907a9f1a
2019-07-28 05:30:05 +00:00
Julia Reynolds
b371dab0f4 Move the volume panel over 4dp for consistency
Test: visual inspection with volume and power menus
Fixes: 119275591
Change-Id: Ib59beff9045dea5eaae2e07d7e5f7ab603b43ea6
(cherry picked from commit c35a08b99d)
2019-07-26 19:26:10 +00:00
Lucas Dupin
bfad0012fc Merge "Fixed the layout of media heads up notifications" into qt-r1-dev
am: bddf774dd1

Change-Id: Ia4b59ae8943af554d4d50551b13b4ccff7534b07
2019-07-19 12:19:53 -07:00
Selim Cinek
16f334e5c1 Fixed the layout of media heads up notifications
Previously the heads up layout was strangely clipped
because we were using the expanded layout.
We're now using the collapsed layout instead. In order to allow this,
the media notification needs to wrap it's height properly.

Fixes: 136507638
Test: show heads up media notification
Change-Id: Ib091b0e776b5cd1a615c9ea0121a3115817b7f64
2019-07-18 18:11:54 -07:00
Robert Snoeberger
9733bc4159 Merge "Pad indication text to prevent clipping on side of screen." into qt-r1-dev
am: b7098f9d9c

Change-Id: I12bf5f7d7648bf2871eefdf12d59e4c9e164ccb8
2019-07-18 11:48:18 -07:00
TreeHugger Robot
b7098f9d9c Merge "Pad indication text to prevent clipping on side of screen." into qt-r1-dev 2019-07-18 18:31:52 +00:00
Robert Snoeberger
f6e32f079d Pad indication text to prevent clipping on side of screen.
Padding amount is the same as owner_info also shown on AOD screen.

Bug: 137627803
Test: Checked that text with more than 100 characters shown in
indication area wasn't clipped on side of screen. 100 characters was
used because face_acquired_sensor_dirty string has char limit of 100.
Change-Id: I1c4014b4cfbdc2bba84b9974813ca23e6b42cf4c
2019-07-18 10:12:42 -04:00
Lucas Dupin
91f2318096 Merge "Reduce duration of AOD headsup" into qt-r1-dev
am: e03623cee0

Change-Id: I64ba040c8b980f6ba16fa2f348f7f536e8495ba2
2019-07-17 17:19:21 -07:00
Lucas Dupin
d534c1235c Reduce duration of AOD headsup
Test: manual
Fixes: 134649305
Change-Id: If8b49e2b3905c463eeab7bb66568b98f708448e2
2019-07-17 11:09:03 -07:00
Mady Mellor
47b11e3186 Fix back-swipe gesture on bubble expanded state
Tapping around the edges of the expanded state collapses the bubble, it
also means back-swipe doesn't work properly / show the animation (even
though the bubble is technically collapsing).

This CL includes a bit of a slop around ActivityView when checking if
the touch is intersecting it. We might need to adjust the value but
in my testing so far it seems much better.

Also removes onInterceptTouchEvent code -- that was totally unneeded!!

Fixes: 131267438
Test: manual - expand a bubble and tap near the top / left / right / bottom
               edges => ensure it doesn't collapse when you wouldn't
               expect it to
             - perform backswipe gesture => ensure you see arrow animation
               and bubble collapses

Change-Id: Id42e6d5fbaff832b9d8f0a415d8f91a5358af5de
2019-07-11 19:13:48 -07:00
Mady Mellor
e9371bcf96 Increase touch target size of bubbles
Also removes some unused code

Test: manual - fling bubble around on launcher, shouldn't be difficult
      to grab, shouldn't accidentally trigger other gestures (e.g. shade,
      -1 space)
Fixes: 134514210
Change-Id: Iaebfe19ee043477f76c0dc5041601237576ad542
2019-07-10 19:05:32 -07:00
Miranda Kephart
98ade66bcc Merge "Allow path specification for rounded corners" into qt-r1-dev
am: 3d92c138d5

Change-Id: I054ebe056771415ba89b58998399622949a743b8
2019-07-09 13:16:19 -07:00
Miranda Kephart
3d92c138d5 Merge "Allow path specification for rounded corners" into qt-r1-dev 2019-07-09 19:35:29 +00:00
Selim Cinek
798c910075 Merge "Fading away notification panel individually" into qt-r1-dev
am: b26223d9c1

Change-Id: I546633a9516a8d65fd17534e4f008042e5e2c78a
2019-07-05 13:47:49 -07:00
Selim Cinek
06c12d64fc Fading away notification panel individually
Previously the notification panel was fading away all together,
which doesn't work when the notifications need to stay around.
We're now fading the whole panel away.

Bug: 134952761
Test: pick up phone and unlock, observe normal behavior
Change-Id: I48d12776dc8b4bd51c1a35c2b822caeef38eb850
2019-07-04 20:21:30 -07:00
Miranda Kephart
5393915d75 Allow path specification for rounded corners
Parses a path string and uses that for the corner paths.

Bug: 136182248,136270071
Test: manual

Change-Id: Ic34bee5f63959f65af6b2d2afb917ff4282f1d5b
2019-07-03 15:04:05 -04:00
Zhen Zhang
c6d6354ebe Merge "Change quick setting min_num_tiles number and text to resources value." into qt-dev am: bc058faaa3
am: 788232785d

Change-Id: I5b6aed596b762768d98522b6c2342afe0a751d83
2019-07-02 14:53:25 -07:00
Zhen Zhang
788232785d Merge "Change quick setting min_num_tiles number and text to resources value." into qt-dev
am: bc058faaa3

Change-Id: I329be5dee77d6f45b4bd5314971655df52525294
2019-07-02 11:21:48 -07:00
TreeHugger Robot
bc058faaa3 Merge "Change quick setting min_num_tiles number and text to resources value." into qt-dev 2019-07-02 17:56:59 +00:00
TreeHugger Robot
337b1a5968 Merge "Dismiss target v2" into qt-r1-bubbles-dev 2019-07-02 01:04:20 +00:00
Lyn Han
634483c68f Dismiss target v2
Current dismiss flow
- On bubble drag, show gradient with "X Dismiss"
- When bubbles get close to the gradient, show X-in-circle

This change
- Removes gradient and "X Dismiss"
- Shows X-in-circle (with 70% scrim inside) on bubble drag
- Reduces bubble_dismiss_encircle_size to spec (56dp => 52dp)
- Removes duplicate mDismissContainer in BubbleStackView

Fixes: 136199542
Test: manual (dismiss target has scrim, shows on bubble drag)
Test: manual (dismiss target behaves consistently for consecutive drags)
Test: atest SystemUITests
Change-Id: I21101ca9f2eb1b3c53b613231557f9f7936fddfa
2019-07-01 12:59:53 -07:00
Selim Cinek
e3b46f2a36 Merge changes I089fa8ff,I8db745c1,I6fa83189 into qt-r1-dev
am: a0aa088c9f

Change-Id: I3bdfee168ded42a37d4a524effb81a8a693cb509
2019-06-29 16:49:05 -07:00
Selim Cinek
a0aa088c9f Merge changes I089fa8ff,I8db745c1,I6fa83189 into qt-r1-dev
* changes:
  Showing heads up for music when bypassing
  Not rendering background when bypassing
  Made sure the lock icon is invisible while hunned
2019-06-29 23:11:43 +00:00
Selim Cinek
e3c6e46e95 Showing heads up for music when bypassing
Users where missing the music controls so
we are showing a headsup for them on the
lockscreen.

Fixes: 	134543453
Change-Id: I089fa8ff35b918f485f79e09393173f05971a73e
2019-06-28 19:14:55 -07:00
Lucas Dupin
263b3c6c20 Merge "Do not unregister lift when prox is covered" into qt-r1-dev
am: e2c873275b

Change-Id: Ibd0600afc220f89bb38854f1032d3e6ade7f993f
2019-06-28 18:07:53 -07:00