Commit Graph

764 Commits

Author SHA1 Message Date
Lucas Dupin
6a03a9ff0a Song name in KeyguardSliceProvider
This CL also includes synchronization bugfixes, since
SliceProvider#onBindSlice can be called from any thread.

Test: atest KeyguardSliceProviderTest
Test: manual
Bug: 111405682
Change-Id: Ief19625cba96b0c17f7444b2b2acc8f27c24597e
2018-12-21 18:10:45 +00:00
Fabian Kozynski
508422b38a Filters apps with uid 1000 as Device Services
Due to bad name resolution in ServiceUtils, all apps with uid 1000 are
resolved to an arbitrary packageName (first in the list) that changes
every reboot and may not be the originator of the OP.

Bug: 121316684
Test: atest
Change-Id: I0105708e3788912f11766c6266985c990a0af81d
2018-12-20 11:01:11 -05:00
Pengquan Meng
9a3a1bd6ac Merge "Add 5G icon to System UI" 2018-12-17 19:07:57 +00:00
Chad Brubaker
90f391fe87 Prototype Spaceship mode qstile
Initial prototype disabling location/sensors and enabling airplane mode.
Camera/Mic will come in a followup.

Test: manual
Bug: 110842805
Change-Id: I26132fcc9ffea83e3e78a0e54882d23c99ee590c
2018-12-14 20:46:04 +00:00
Pengquan Meng
a62d32b656 Add 5G icon to System UI
This add the 5G and 5G+ icon to the system UI for 5G Non-Standalone
network.

System UI uses the ServiceState & CarrierConfig to determine whether and
which 5G icon should be displayed in 5G Non-Standalone network.

Bug: 111497313, 111453000
Test: build & manually test
Change-Id: I6fba0f9c42fff3cb1398895b122f18f13de239f7
2018-12-14 10:45:31 -08:00
TreeHugger Robot
c4cbe40fda Merge "Display Hearing Aids name on UI tile" 2018-12-03 16:31:16 +00:00
Kevin Chyn
3d9b0fc963 Merge changes from topic "biometric-refactor"
* changes:
  3/n: For passive modalities, add plumbing for "try again"
  2/n: Multi-modal support for BiometricPrompt
  1/n: Move BiometricDialog management to BiometricService
2018-12-01 05:04:02 +00:00
Stanley Tng
c118294af8 Display Hearing Aids name on UI tile
When the current device is a hearing aids, display the name under the
tile.

Bug: 117423826
Test: Manual testing on phone with hearing aids connected
Change-Id: I98cfda7905763a3da3dbc1fbed13fee881da7bb2
2018-11-30 15:09:35 -08:00
TreeHugger Robot
a8cb5a8bef Merge "Added plural form for "one"" 2018-11-30 20:38:49 +00:00
Kevin Chyn
23289ef7b6 3/n: For passive modalities, add plumbing for "try again"
When "try again" is showing, authentication is canceled internally.
BiometricService caches the client's info so that authentication can
be restarted when "try again" is pressed. Because authentication
is not running when "try again" is showing, BiometricService also needs
to have a TaskStackListener so that BP can be dismissed and an error can
be sent to the client when the app loses focus.

IBiometricServiceReceiver has been split into two. One for BiometricPrompt
to receive messages from BiometricService, and another for BiometricService
to receive messages from SystemUI/<Biometric>Services.

When we get locked out, don't send the last onAuthenticationFailed
to the client, since "Authentication failed" will be shown briefly
and be replaced by "Device locked out" which is janky

Bug: 111461540

Test: Tested with requireConfirmation enabled/disabled
Test: Tested onConfigurationChange corner cases, e.g. when "try again"
      or "confirm" buttons are showing, rotate the device. Buttons
      persist correctly and don't appear when unexpected
Test: Tested task stack corner cases, e.g. when "try again" is showing,
      press home button. BP dismisses and client receives ERROR_CANCELED
Test: BiometricPromptDemo receives all callbacks

Change-Id: I62126708ce8db8b358c666a07aa7c39607642c9d
2018-11-30 11:34:35 -08:00
Gus Prevas
82ad059b13 Updates NotificationInfo layout/buttons.
This change modifies the UI displayed when the new interruption model is
enabled after long pressing a notification or tapping the settings icon
in the notification side menu.  The text links for blocking the channel,
toggling its importance, or canceling out of the dialog are replaced
with buttons with icons and clearer text descriptions.

Test: atest NotificationInfoTest
Bug: 116622974
Change-Id: I06ead5c4da77319df3ebe4c48d863dede37bf2f4
2018-11-30 11:30:51 -05:00
Fabian Kozynski
e3eb6e6717 Added plural form for "one"
Test: build
Change-Id: I3803d843e172e555a6bc580642932a29b0642d69
Fixes: 120133418
2018-11-28 12:27:57 -05:00
Fabian Kozynski
cc64dadb05 Merge "Adjusted margins of Ongoing App Ops Dialog" 2018-11-27 22:37:46 +00:00
Fabian Kozynski
bb68be0ccf Adjusted margins of Ongoing App Ops Dialog
Margins adjusted according to updated mocks

Test: Visual (show layout bounds)
Fixes: 120027803
Change-Id: I052a5711f41087427833b1b6341e8d09b808a531
2018-11-27 15:38:15 -05:00
Fabian Kozynski
2c80342081 Merge "Fixes strings" 2018-11-27 15:53:20 +00:00
Julia Reynolds
268647a748 Proxy notification improvements
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: Id19e58cf66a62b179cb684783b264dad8a5371b0
2018-11-26 11:13:16 -05:00
Fabian Kozynski
5d44a4f426 Fixes strings
Bug: 119835271
Bug: 119835278
Bug: 119835773
Test: visual
Change-Id: Ifb860cfac3354d0a64d856c003fc33d112f2d0f8
2018-11-21 15:01:10 -05:00
Fabian Kozynski
ef12449cf8 Version 2 of Ongoing Privacy Dialog
Minor changes to colors and layout of chip.

Redesign of dialog using new mocks.

Dialog launches Permission Hub

Test: visual & atest PrivacyDialogBuilderTest
Fixes: 117646163
Bug: 112331475

Change-Id: Ic8008f05fcb139c2581794abbb47c00819c20d7f
2018-11-16 09:16:25 -05:00
Gus Prevas
9abc50646f Adds silence toggle to notification settings.
This change modifies the UI that appears when a notification is
long-pressed to include a third option when the notification could
potentially buzz or make sound, allowing the user to promote or demote
the notification's channel such that it will not alert (or will start
alerting) for future notifications.

Test: atest SystemUITests
Bug: 116622974
Change-Id: Ia070d0ef1b181b4de8b3d49ace9ff2a65fed8deb
2018-11-09 13:19:11 -05:00
Gus Prevas
4a13aab57b Updates button label on AIA notification.
Change-Id: I2085ede4611daeea2ef13894927c5e20662a8596
Fixes: 36989738
Test: manually
2018-11-07 11:16:03 -05:00
Fabian Kozynski
1263824ae5 Dialog and chip for privacy showing
Creates a chip and a dialog to show the current apps using certain app
ops (location, microphone, camera).

Dimens are estimated. Settings button dismisses dialog for now.

Test: atest && visual
Bug: 117646163
Change-Id: Ida5b42acf331d6c9da06141379eadc0da5e72df2
2018-11-02 12:14:10 -04:00
Beth Thibodeau
5898ac47b2 Adding screen recording function.
Screen recording can be launched via long press on screenshot in
the global actions menu if the local feature flag is enabled.
Otherwise, long press on screenshot will also trigger a screenshot.

Demo videos: https://drive.google.com/open?id=1oJzfzJb8aGXSUqn4CZ_Yn7qWmJ2dvRd5

Test: manual
Change-Id: I373d38ad86291ff6f26f7dca3195001bd8f5ee16
Bug: 111395687
Bug: 118826991
2018-11-01 15:56:39 -04:00
TreeHugger Robot
8a57b4d4fa Merge "Revert "Proxy notification improvments"" 2018-11-01 01:21:23 +00:00
Daniel Sandler
d0a52b6013 Revert "Proxy notification improvments"
This reverts commit ac98aea2ed.

Reason for revert: b/118700922 (broken CTS test)

Bug: 118700922
Change-Id: I7d55365b3f64acd82e377dc973e2de5d654cc352
2018-10-31 20:14:02 +00:00
Julia Reynolds
8775b65952 Merge "Proxy notification improvments" 2018-10-30 17:02:24 +00:00
Gus Prevas
33619afa8b Hides low-priority icons from status bar.
This change modifies NotificationIconAreaController such that icons for
low-priority notifications are not shown.  This behavior is controlled
by a new switch in the SystemUI Tuner.

Test: manually
Bug: 116622974
Change-Id: I7f1d5b6c5757936aba93da3d0e50ae1dd8434b33
2018-10-30 13:41:53 +00:00
Julia Reynolds
ac98aea2ed Proxy notification improvments
- Fix a bug where the notifications weren't being posted
- Add attribution to the notification guts

Bug: 111452544
Test: atest
Change-Id: I58d104fe0ad8450a4722585335011ea633fee52a
2018-10-29 14:16:03 -04:00
Winson Chung
2dbcf0973b Moving SysUI with legacy Recents to another build target
- Move all legacy recents code out of the core sysui code
- Add separate target for products which still depend on it
- Move overview proxy implementation into another implementation of the
  recents interface

Test: atest SystemUITests
Test: Push SystemUiWithLegacyRecents to the system image
      adb shell pm disable com.google.android.apps.nexuslauncher/com.android.quickstep.TouchInteractionService
      and ensure that the old recents implementation still works (and split
      screen)

Change-Id: Iad67218ec37c13c79b6393d87f6bdc4f3996e2c6
Signed-off-by: Winson Chung <winsonc@google.com>
2018-10-26 10:15:50 -07:00
Fabian Kozynski
4235b2a802 CastTile becomes unavailable when not connected to Wifi
CastTile registers with NetworkController and shows unavailable
status when not connected to WiFi (regardless of internet connectivity).
Includes accessibility context for this state.

Added tests for behavior.

Test: manual && atest
Change-Id: I3004ed18e545d8d8c448f01d33eb70bcfd9831b2
Fixes: 78152102
2018-10-11 16:41:02 -04:00
Gus Prevas
fbcc82869f Shortens "Manage notifications" link to "Manage".
Test: manual
Change-Id: I3af98ea14ac8c65afffbb6e28297598cbb648c66
Fixes: 115531288
2018-10-02 11:18:36 -04:00
TreeHugger Robot
2a0b67d0f3 Merge "Updates copy and contentIntent on AIA notification." 2018-09-24 16:27:42 +00:00
Gus Prevas
71e15d15c0 Updates copy and contentIntent on AIA notification.
Test: manually
Bug: 36989738
Change-Id: I769df6d70a4e5482a61bdfd020545b562478ec88
2018-09-21 11:12:21 -04:00
Kevin Chyn
6cf54e8190 3/n: Add FaceDialogView and "confirmation" plumbing
This change adds plumbing from <Biometric>Service to SystemUI for requiring
user confirmation (or not). This change also fixes some layout bugs
that were hard to notice.

Bug: 111461540
Fixes: 113130114
Fixes: 116135579

Test: With confirmation, crypto operation does not work until token
      is added to Keystore
Test: Without confirmation, crypto operation works when biometric is
      authenticated
Test: BiometricPromptDemo works, UI elements are all correct
Test: Talkback messages are correct

Change-Id: I2c05577699a29c09777cae4db6c7334c1e6bc179
2018-09-20 17:53:10 -07:00
Jovana Knezevic
b64490ed86 Merge "Adds an info dialog when a maximum number of users on the device is reached." 2018-08-23 22:50:19 +00:00
TreeHugger Robot
a41579bf5c Merge "Added header to QS Edit view" 2018-08-22 22:25:22 +00:00
Fabian Kozynski
39ec861009 Added header to QS Edit view
The TileAdapter associated with the RecyclerView used to Edit
the Quick Settings was modified to contain a TextView as a Header.

Position arguments were corrected by 1 to support this. In particular
those of the Accessibility contexts.

Padding in the TextView as well as the RecyclerView was reduced to
minimize the movement of the tiles when switching into the Edit View.
This is not completely achieved and it is dependent on the size of
the font.

Change-Id: Ic89cec8cae15c238ac6e0b1c554c06c6b7086bab
Bug: 77326457
Bug: 36076720#24
Test: Manual - Screenshots
2018-08-22 15:22:55 -04:00
Aurimas Liutikas
dcb3b508a8 Add positions to strings in SystemUI that had multiple place holders.
This shuts aapt2 up about "multiple substitutions specified in non-positional format"

Test: None
Change-Id: I0366b4d530c7c9f6e8b79dce5b739b059a74c271
2018-08-22 11:14:44 -07:00
jovanak
a17e16897c Adds an info dialog when a maximum number of users on the device is reached.
Change-Id: I559ddbcbc22f0388af22d807711533659eed8421
Fixes: 111075706
Test: Manual tests on mojave, pre-limit and post-limit reached.
(cherry picked from commit bc4d90d0c99607cf2b812345c2192814a06649aa)
2018-08-22 00:02:18 +00:00
Fabian Kozynski
8f3763dc71 Talkback for edit QS, action as part of context.
Accessibility context for moving or adding tiles has context label as
"Add tile X to position Y" or "Move tile X to position Y" while moving
cursor. No confirmation announcement after accepting.

Removed unused strings.

Change-Id: I6cf0fbe110f9231e592ee51820edd24541f98c5c
Fixes: 79154713
Test: Manual
2018-08-16 11:37:17 -04:00
Julia Reynolds
2ad4753fb6 Remove managed profile toast
Change-Id: I9f324a94d7fab35b0f00a1bd9c675708dac6f85a
Fixes: 110418889
Test: atest SystemUITests
2018-06-19 16:09:37 -04:00
Beverly
f1ef5833b0 Merge changes Id4feeefa,Ie0a501b8 into pi-dev am: 45a250a2be
am: 6e66b320fd

Change-Id: I8f185099f0f00f62a9ae6e219f29c9dd2efd8d2d
2018-05-18 17:01:25 -07:00
Beverly
872cc2dec7 Update DND strings
Test: manual
Bug: 79525632
Change-Id: Ie0a501b8bec964b760c7f686d93ee83ec3454897
2018-05-18 17:09:45 -04:00
Lucas Dupin
c778c6fd68 Merge "AOD group notification style" into pi-dev am: b0e503f96d
am: 9c8900ce8d

Change-Id: I69d80674a8c063df363851b275bc7bc6c50f5418
2018-05-10 00:13:44 -07:00
Lucas Dupin
b0e503f96d Merge "AOD group notification style" into pi-dev 2018-05-10 06:49:42 +00:00
Lucas Dupin
4c797d6a61 AOD group notification style
Change-Id: Ibcabb20f6d4eb48bf36204f8068f48176844f88d
Fixes: 76110106
Test: visual
2018-05-09 11:12:01 -07:00
Yohei Yukawa
61932f38ec Use Meta+Space for hard-keyboard layout switching
Currently we are not quite ready to have a system-level shortcut to
rotate IME language.  Until we become ready to do so, let's use
Meta+Space for hardware keyboard layout switching.

Fix: 79150878
Test: Manually tested as follows.
 1. Connect a hardware keyboard.
 2. Enable multiple hardware keyboard layouts.
 3. Make sure the hardware keyboard layout switches to the next one
    with Meta+Space.
 4. Make sure the hardware keyboard layout switches to the next one
    with Ctrl+Space.
 5. Make sure the hardware keyboard layout switches to the previous
    one with Shift+Ctrl+Space.
 6. Make sure the hardware keyboard layout switches to the previous
    one with Shift+Meta+Space.
Change-Id: Ife8a7100ec52792f4c42af2aa99298687c9af457
2018-05-07 15:35:10 -07:00
android-build-team Robot
478e0805a0 Merge "a11y edits to dnd dialog and volume ring toggle" into pi-dev 2018-05-07 18:05:28 +00:00
android-build-team Robot
dd0f6709f8 Merge "Added toggle overview custom action over home button for a11y" into pi-dev 2018-05-07 17:17:10 +00:00
Julia Reynolds
15db7cdf8d Don't be clever with strings
The app ops strings were not translating well, leading to
crashes in some languages

Test: atest SystemUITests
Change-Id: Iee18504217c5c13543ad130f502695e3919d7ddf
Fixes: 77640411
2018-05-07 11:09:20 -04:00
Matthew Ng
44b14508de Added toggle overview custom action over home button for a11y
The toggle overview custom action only appears when swipe up ui is shown
(2 buttons).

Change-Id: I8b3790c98b663dd04bec921a9f7372733c73ea4e
Fixes: 78177915
Test: use talkback, enable swipe up ui and toggle overview via home btn
2018-05-04 17:54:07 -07:00