Commit Graph

795 Commits

Author SHA1 Message Date
Riddle Hsu
cf33f1c5c2 Add restart button for size compatibility mode activity
- The floating restart button will show when an size compatibility
  mode activity shown with non-native screen configuration. e.g.
  display size changed, move to another display.
- Consolidate onDisplayRemoved into CommandQueue.Callback so the
  components which implement CommandQueue.Callbacks don't need to
  register display listener individually. The leakage of
  AutoHideController when removing display is also fixed by the way.

Bug: 112288258
Test: runtest systemui -c \
      com.android.systemui.SizeCompatModeActivityControllerTest

Change-Id: Ib04efe983ae0d8d21b33fb9fd9c60e7f6f0dc92e
2019-03-06 01:17:15 +08:00
Narayan Kamath
b040df7868 CastTile : Cosmetic changes to the cast tile UX.
- Change the tile title to "Screen Cast".
- Always show the tile title as a primary label, and show
  the casting or projection device as the secondary label.
- Also fixes an issue where the cast tile would show as disabled
  when WiFi wasn't connected, despite the fact that the tile may
  have been displaying an in-progress projection session.

Test: manual
Bug: 124753835

Change-Id: I15f9c0a80d288e5d9a77e87fd1f3135033fdb873
2019-03-01 11:55:54 +00:00
Nadia Benbernou
8c835785c3 Add maxWidths to text views for blocking helper buttons.
Also tighten char limits to avoid wrapping when possible.

Bug:123619899
Test: Verified text wraps appropriately in Serbian and French.

Change-Id: I295133436128929e18c22ede69bdf055a8e44c78
2019-02-27 11:42:13 -05:00
Sherry Huang
a2c5d1a7f3 Merge "Implement USB-C overheat warning" 2019-02-21 23:09:08 +00:00
Sherry Huang
ce02ed3a46 Implement USB-C overheat warning
When device USB-C port is susceptible to short circuits and
overheating, pop up a warning dialog and keep showing until
user clicks OK button or see care steps.

Test: manually set the emulated temperature to trigger warning
Test: atest SystemUITests

Change-Id: I4f6080187196a9716f12a9817dc10d3265dc202b
Bug: 110134720
Bug: 116866524
Bug: 77790357
Bug: 117178820
2019-02-21 22:00:47 +08:00
Narayan Kamath
cc52e82750 MediaProjection: Update permissions dialog.
- Include the app icon and a warning title.
- Update the detailed text to include the kind of information that
  could potentially be captured by a screen recorder.
- Remove the checkbox that allows the grant to be permanent.

Bug: 124753835
Test: Manual
Change-Id: Ib1269b2ddaa3150fe850ea306961df3ad3420c6c
2019-02-20 10:41:04 +00:00
TreeHugger Robot
bad6832623 Merge "Add char limits to block helper button labels" 2019-02-15 06:38:31 +00:00
Ned Burns
7553215949 Add char limits to block helper button labels
With text size turned up, things weren't fitting.

Test: none
Bug: 123643210
Change-Id: I9c064e1e40b0a1f2d021ac5edda1e483bbfe1400
2019-02-14 18:00:39 -05:00
Fabian Kozynski
d008b76c4f Merge "Changes char limit for Privacy Settings string" 2019-02-13 20:20:45 +00:00
Fabian Kozynski
b3aee9ceff Changes char limit for Privacy Settings string
Test: manual, use large font and size
Change-Id: Ida7d7aa5ed934dcbcbc2b033a8437faba6b9d763
Fixes: 124094783
2019-02-13 11:22:44 -05:00
Beverly
7d7f699f4a Update keyguard charging text to indicate wireless
- Keyguard charging text indicates the device is wirelessly charging

Test: manual
Change-Id: I9cce8ecaf07f8870164d9ef8a569fcf30db69d85
Fixes: 124084552
2019-02-11 15:19:51 -05:00
Nadia Benbernou
c3a11501a5 Merge "Style changes to blocking helper for Q. Bug:123900539 Test: Manual testing on device and unit tests." 2019-02-11 19:15:15 +00:00
Nadia Benbernou
3b4a93a38e Style changes to blocking helper for Q.
Bug:123900539
Test: Manual testing on device and unit tests.

Change-Id: I56951b65139b3bc3ba0118972ba2b1dc09cdeba7
2019-02-08 15:18:57 -05:00
Fabian Kozynski
216812e981 Change Chip between QS and QQS
Chip animates via fade out and fade in. No redlines for margins and
padding.

Test: manual

Change-Id: I10f024eb06f88b6493687febdbb0d5ccbba450b8
2019-02-07 11:20:34 -05:00
Mady Mellor
e8e07712e0 Add permission prompt to bubble expanded header view
Test: manual / coming soon
Bug: 111236845
Change-Id: Ie616d2215c495e8b30ba7fa8ebb1abdc8e5ebd7e
2019-02-05 13:08:48 -08:00
Matthew Ng
b831fb4fd1 Implement screen edge swipe for prototype
Removed nav bar edge swipes and replaced for screen edge swipe. The two
new gestures always stay left and right of the screen except for
landscape where only the side opposite of the navigation bar will exist.
The gestures will only activate past a second slop or if user executes
gesture really quickly (less than a tap timeout 100ms).

Bug: 112934365
Test: atest QuickStepControllerTest

Change-Id: I8ae98bd638943d9f76e455bc000a601f96e68d2c
2019-02-01 16:47:25 -08:00
Fabian Kozynski
d419c75c20 Merge "Fixes in OngoingPrivacyDialog" 2019-01-31 22:22:45 +00:00
Fabian Kozynski
eac70d8e8e Fixes in OngoingPrivacyDialog
Changes intent and text on secondary button

Bug: 123415277
Test: manual
Change-Id: I9c55b2a36d9c35cb98c5abefaeb9f075f1f181a7
2019-01-31 15:04:56 -05:00
Mady Mellor
9801e85396 Update header to have content intent & settings buttons
* Sets notification entry on BubbleExpandedViewContainer and use that to
  to populate the contents
* Adds settings + app deeplink buttons to header
* Header will use bubble metadata text if it exists or the app name

Bug: 111236845
Test: manual - tested with notify activity view based bubble that
      (1) - tapping deep link button opens content intent
      (2) - tapping settings button opens notif settings for app
Change-Id: I07d6beced7da001e233237b91053b0fc4b18505b
2019-01-30 15:34:02 -08:00
Fabian Kozynski
0d03da3723 Added tap behavior to rows in OngoingPrivacyDialog
The rows now direct to Permission Hub information for that app.

Test: manual
Test: previous Unit tests passing
Change-Id: I09e1205ee2340f5095c9c59414ddd9db440915b7
Fixes: 123415277
2019-01-28 10:48:26 -05:00
Badhri Jagan Sridharan
7e60f8efe0 Merge changes from topic "117330206"
* changes:
  UsbContaminant dialog
  Add test commands to spoof presence of contaminants
  Contaminant detection notification
  Support USB V1.2 HAL
2019-01-24 02:03:20 +00:00
Badhri Jagan Sridharan
392b747d4b UsbContaminant dialog
Bug: 119642987
Bug: 117330206
Bug: 77606903

Test: Ran the following sequence:
1. Add simulated port: dumpsys usb add-port "matrix" ufp
2. Set contaminant present to true:
   dumpsys usb set-contaminant-status "matrix" true
   Contaminant present notifcation shows up and dialog pops up upon
   clicking the notification.
3. Set contaminant present to false:
   dumpsys usb set-contaminant-status "matrix" false
   Contaminant present notification is dismissed and the safe to use
   notification shows up.

Change-Id: I33d22caafbedb2a21a0f61f663ebddf5c9e3f84b
2019-01-23 10:43:15 -08:00
Fabian Kozynski
704fdc0609 Merge "Increase char limit for translation" 2019-01-23 18:42:57 +00:00
Nick Kralevich
2280c5d8ae Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17 am: 56ed214f67
am: 889ff4966b

Change-Id: I54ce67321abe0d058920c96298d97e6cc2834b09
2019-01-22 15:38:34 -08:00
Nick Kralevich
889ff4966b Merge "UsbDebuggingActivity.java: OK -> Allow" am: f9718dbe17
am: 56ed214f67

Change-Id: Ieec3c59499c3a3770d92a52866aa324df1ce0473
2019-01-22 15:28:39 -08:00
Fabian Kozynski
9399b491b9 Increase char limit for translation
Test: None
Bug: 122929700
Change-Id: I0febe4a74087db71e87c4f6fcbcefddb4190857a
2019-01-22 12:11:41 -05:00
Nick Kralevich
f9d2a85323 UsbDebuggingActivity.java: OK -> Allow
Per UI review, change the label of the ADB allow button.

Test: Manual
Bug: 111852244
Change-Id: If6663c742aa1f3fc9c8025fdd9f17c69400ae486
2019-01-11 14:31:09 -08:00
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
Bill Lin
5709582a94 Merge "DO NOT MERGE Implement USB High Temperature warning dialog(1/N)" into pi-dev
am: f147660c1e

Change-Id: Icdba0dc71c79a5d630be327d0ff3f9d0044ce60e
2018-12-09 18:14:56 -08:00
Bill Lin
32ed3d673e DO NOT MERGE Implement USB High Temperature warning dialog(1/N)
When device USB adapter got electric short issue and overheating.
Popup overheat alarm dialog, with beep sound and vibration(optional)
to notify user unplug USB cable, this dialog will keep showing at
foreground until user click OK button or see care steps.

Test: manual adjust threshold to 35 degrees and trigger alarm
Test: atest SystemUITests
Test: atest PowerUITest
Test: atest PowerNotificationWarningsTest
Test: atest OverheatAlarmControllerTest
Test: atest OverheatAlarmDialogTest

Change-Id: I35e4269b2f3f2108043e2756d0f5a53f54d86e7d
Fix: b/117138158
2018-12-05 19:28:32 +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
9085541a1f 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: Iab52ff944d356f6c8cd7a0062fc67a0d55010fd1
Merged-In: I98cfda7905763a3da3dbc1fbed13fee881da7bb2
2018-11-30 15:20:13 -08: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