Commit Graph

3109 Commits

Author SHA1 Message Date
Dave Mankoff
bb9575f5b5 Move StatusBar to constructor injection.
Bug: 141882822
Test: atest SystemUITests
Change-Id: I385ccd8e96b3e131b095db5adfca93389905d030
2019-10-03 22:55:35 -04:00
Paul Mclean
843c2951fc Merge "Adding additional prompt to UsbPermissionsDialg for audio devices." 2019-10-03 19:33:39 +00:00
Paul McLean
d336453217 Adding additional prompt to UsbPermissionsDialg for audio devices.
To support, adding members to UsbDevice to mark devices as having audio
playback and audio capture capabilities.

Bug: 136080195
Test: Run "UsbAccess" test bed. Connect audio and non-audio USB devices
and see the additional prompt shown/not-shown.

Change-Id: Ie7c614d9ed30a163c350b18a54b8a9115698779d
2019-10-03 11:54:05 -06:00
Fabian Kozynski
2f9dd75611 Added secondary label to flashlight
When flashlight is disabled, specify that it's because the camera is in
use.

Fixes: 138872957
Test: manual

Change-Id: I40836d8a51fca625d2a4391ba6a7315dd9d895eb
2019-10-02 13:15:41 -04:00
Sergey Nikolaienkov
c7a95ac67f Add audio recording disclosure plate on TV
Implementing a piece of SystemUI (TvStatusBar) for notifying users when
audio recording is conducted by applications (other than Assistant,
which is the only exception for now).

Bug: 134942150
Change-Id: I57b50816e9b4379c22e4281568ef990d96fd2498
Test: build, flash, run any app that records audio
2019-09-30 14:41:55 +02:00
Evan Laird
25f0275db4 Add a third notification section
A bunch of things, but they are (mostly) hidden behind a flag:

- Made the NotificationEntry#bucket concept more generic
- Added logic to NotificationData to set a bucket int on each entry
- Flag config_usePeopleFiltering in systemui.config turns on new behavior
- Reduced the number of hacks in NotificationData to 1. Now it sets the
  buckets n the entries only once post-sort
- NotificationEntry has a basic check for "people"
- NSSL delegates to NotificationData/NotificationSectionsManager for
  creating sections
- NotificationSectionsManager can now manage any number of sections

The basic gist of this change is to enable and partially implement a
"people" notification section. In order to do that, we have to do a
little bit of cleanup to make NotificationSections more generic, then
find a way to differentiate "people" notifications.

To generify the sections logic, this change furthers the concept of
notification "buckets". A bucket is entirely a concept shared between
NotificationData and NotificationEntry, but with the intention that each
bucket will get its own section. Once a set of buckets is decided upon,
NSSL tells NotificationSectionsManager to create the necessary sections.
NSSL also will need to ask the sections manager to check the entire list
of view in the panel for section boundaries, since they can be anywhere
and there can be any number of them.

The people filtering is currently straightforward. NotifiationEntry
checks for EXTRA_PEOPLE_LIST or EXTRA_MESSAGES and checks for people
information on a notification. If it exists, then that entry gets sorted
to the top and will get its own bucket set (if the setting is on).

Test: visual
Bug: 140232781
Change-Id: I7fa5c4d7509f2ca5f485216f2de0160c91802235
2019-09-16 16:25:42 -04:00
Matt Pietal
b3e8cbd2a6 QS - Prototype visual affordance for detail panels
Builds on ag/9335278 to show "..." below tiles that support direct to
detail view on touch.

Test: manual
Change-Id: I1c192656505bac228a3935f0aa498c37a468d973
2019-09-12 12:09:31 -04:00
Kevin Chyn
bcab35cdf0 Merge changes from topic "biometric-ui-refactor"
* changes:
  9/n: Add work profile background, enable new dialog by default
  8/n: Ensure accessibility works on new implementation
  7/n: Gracefully handle configuration change during animations
  6/n: Add fingerprint support to the refactored UI
2019-09-12 03:49:27 +00:00
Kevin Chyn
e9744e406e 8/n: Ensure accessibility works on new implementation
Bug: 123378871
Test: manual test with talkback enabled

Change-Id: I7f4da76ef7ebcbb74f1984b2859b85aa72e8d946
2019-09-11 15:54:09 -07:00
Fabian Kozynski
67ffcf8936 Add colors to tiles
Protoype for modifying color of tiles. Provides 2 modes:
qs_color_enabled: allows changing background of tiles
qs_color_icon: allows changing color of icon (only use with
qs_color_enabled)

Enable using:
adb shell settings put system <name> <value>
where name is one of (qs_color_enabled|qs_color_icon) and value is (0|1)

With qs_color_enabled, color of individual tiles can be changed using
adb shell settings put system qs_color_enabled/<spec> <color>
where spec is as defined in QSFactoryImpl and color is one of
(red|green|blue|yellow|accent).

Test: manual

Change-Id: I66096cfa5cb8570074b1547ca3e41bd0888973fa
2019-09-10 15:45:42 -04:00
Kevin Chyn
b63ff32f53 Merge changes from topic "biometric-ui-refactor"
* changes:
  4/n: Rename files to make more sense
  3/n: Tapping outside of the dialog should cancel authentication
  2/n: Start plumbing authentication signals to the UI
  1/n: Refactor BiometricPrompt UI hierarchy
2019-09-03 17:49:46 +00:00
Hyunyoung Song
8f9d34cb5f [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-09-01 00:31:47 -07:00
Kevin Chyn
f8688a0a1e 4/n: Rename files to make more sense
Also flatten the directory, there isn't much point in having a sub package
right now.

Bug: 123378871
Test: atest com.android.systemui.biometrics

Change-Id: I598f1909f6e6940d73da37921d9b5cd2c02f4331
2019-08-30 18:41:41 -07:00
Kevin Chyn
fc46826f0a 1/n: Refactor BiometricPrompt UI hierarchy
The UI is split into a few components now
 1) BiometricPromptContainerView - top level, contains the work profile
    background view, the panel (rounded background)
 2) BiometricPromptBiometricView - nested within, displays contents for
    biometric auth

The panel must be one level higher (in hierarchy) than the biometric
dialog to allow future non-biometric views to be added cleanly, and to
allow separate animations for the background/foreground.

Bug: 123378871
Test: Demo app with text that requires scrolling; dialog bounds are correct,
      view elements are contained within the dialog bounds
Test: atest BiometricDialogImplTest
Test: atest BiometricDialogViewTest
Test: atest AuthBiometricViewTest
Test: atest AuthBiometricFaceViewTest

Change-Id: Ie4e5a8641a10229154a1011afefacb823aadf565
2019-08-30 17:43:27 -07:00
Mady Mellor
06b770cf14 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: Ic271a6a0f0803941dd5a84124dabf4d8c5fcc755
2019-08-29 20:24:52 -07: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
Hongwei Wang
0e62574bd0 Update the string on how to exit pinning mode in gesture navigation
Bug: 139438042
Test: Back gesture in screen pinning mode
Change-Id: Ia21e0324cb9a78c6664f4ba787189c6a2423a03d
2019-08-15 11:11:55 -07:00
Lucas Dupin
a0517656f5 Merge "Merge "Assume sensors perform prox check" into qt-qpr1-dev am: e28124af92" into qt-qpr1-dev-plus-aosp
am: 4b8e02d15b

Change-Id: I8440d2ea116495209f2fb76ff73c299d5d13c4f6
2019-08-09 11:42:40 -07: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
29b74a2c17 Merge "Merge "Clearer message when face auth fails" into qt-qpr1-dev am: 298994875d" into qt-qpr1-dev-plus-aosp
am: b4bb490d4f

Change-Id: I51e322b399077651ea08c1b3acab1d06eb38ec49
2019-08-06 03:09:23 -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
Fabian Kozynski
786974f14a Prototype dual panel swipe
This CL only reroutes swipes on the right side of the screen (left side
for RTL) to perform a two-finger swipe, opening QS instead of
notification shade.

Enable: "adb shell device_config put systemui qs_split_enabled false"

Test: manual

Change-Id: I96feed6440121b0c07606b398c9e2bb82570ef11
2019-08-01 15:33:41 -04: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
eb861ee6b9 Merge "Switch preffered display mode on lock screen" into qt-r1-dev am: 311e1db11d am: 1edecabca9
am: 78645a1f25

Change-Id: I6423fdf7e7bcd2211dc3998ef82e0f9d7e5d8635
2019-07-31 12:34:12 -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
a3214df050 Merge "Tweak home handle colors to have some opacity" into qt-r1-dev am: 2ef9fa54ae am: 5480b0f13c
am: 76c34818e6

Change-Id: I4fe955a078a2487596b4640f463f95075fd66b7b
2019-07-28 02:13:30 -07: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
2a4030a3dc Merge "Fixed the layout of media heads up notifications" into qt-r1-dev am: bddf774dd1
am: d3dcd040e0

Change-Id: I1d7c0bd83e4cf82402cd54ebf86564c7f02c5bc8
2019-07-19 12:27:54 -07: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
5b2dbef2ce Merge "Pad indication text to prevent clipping on side of screen." into qt-r1-dev am: b7098f9d9c
am: f0e95540c1

Change-Id: I564f4e91252c9e37ad5c758e147151b74a980751
2019-07-18 12:03:28 -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
d85fd99a2a Merge "Reduce duration of AOD headsup" into qt-r1-dev am: e03623cee0
am: 97089c67d8

Change-Id: I708e45b530d271e79e8dfd199ff95bcdab893424
2019-07-17 14:28:26 -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
Priyank Singh
4a13816b9f adding the icon attr to CarNavigationButton
Bug: 132975760
Test: Manual
Change-Id: I561df3301075e04e031478364bd0fe7bc8f208d5
2019-07-16 17:15:04 +00: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
d0d7e62026 Merge "Allow path specification for rounded corners" into qt-r1-dev am: 3d92c138d5
am: 11aea76fa6

Change-Id: I6b9e5fd62c47dfdd5236f3a3fd6552185a0c20c5
2019-07-09 13:25:01 -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
a38e0b6f65 Merge "Fading away notification panel individually" into qt-r1-dev am: b26223d9c1
am: fd01f3c9d6

Change-Id: Ie5c20fe0b208453bd0aa6a7bfd346cff959599a0
2019-07-05 13:49:07 -07: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