Commit Graph

9588 Commits

Author SHA1 Message Date
Bill Yi
6e39d50575 Import translations. DO NOT MERGE
Change-Id: If0e7c1554139ae744a2fdede2b15200679a21e74
Auto-generated-cl: translation import
2019-10-18 07:31:10 -07:00
TreeHugger Robot
f3c1c427b2 Merge "Home Controls: Add a new Controls tile for prototyping" 2019-10-16 16:53:46 +00:00
Matt Pietal
b6da00e69a Home Controls: Add a new Controls tile for prototyping
Must edit the QS area to add the new Controls tile and have set:

adb shell settings put system qs_controls_tile_enabled 1

Test: visual
Change-Id: I7359d394d6d0a5eb408de7049bf0b3051c83e361
2019-10-16 11:18:49 -04:00
Paul McLean
79ce5e08a9 Add "record through USB" warning to UsbConfirmActivity.
Bug: 142742243
Test: install UsbPeristenPermissionsTestApp, connect USB Audio device
w/ record activity, notice additional warning.

Change-Id: Ic6f49d108617945079d24f71ab0487c46f3e27cb
2019-10-15 14:57:27 -06:00
Dave Mankoff
0cf8dfce9b Create controller for StatusBarWindowView.
This moves most of the logic out of the view and into
StatusBarWindowViewController. It is not beautiful, but
it is cleaner than before.

This removes the final call to Dependency.get(FalsingManager.class).

This also fixes a small, old bug in
StatusBarWindowView.onInterceptTouchEvent where the results
of calling hte super method were being unintentionally ingored.
(This bug would have been introduced nearly seven years ago.)

Bug: 141751146,136279712
Test: atest SystemUITests
Change-Id: I5e09c1c0f2a3098db1a47837ddce3d382099f483
2019-10-07 11:05:40 -04:00
Bill Yi
1376bbfb2b Import translations. DO NOT MERGE
Change-Id: I4c0d92b4824bbb0d957f8ced67c950c6452967a0
Auto-generated-cl: translation import
2019-10-05 16:58:02 -07:00
Kevin Chyn
f8ff281ae0 Merge changes from topic "biometric-ui-credentials"
* changes:
  Animate panel to transparent if profile is managed
  17/n: Show credential UI if setDeviceCredentialAllowed(true) and no biometrics
  16/n: Add PIN/Password
  15/n: Allow Auth UI to start in credential UI
  14/n: Animate to device credential UI when lockout occurs
  13/n: persist device credential across configuration changes
  12/n: Add LockPatternView for setDeviceCredentialAllowed(true)
  11/n: Animate panel to full-screen when "Use Password" is pressed
  Removing old confirm device credential logic
2019-10-05 02:37:26 +00:00
Kevin Chyn
8110ebb57c 16/n: Add PIN/Password
Bug: 140127687

Make AuthCredentialView abstract, and have the following subclasses
 1) AuthCredentialPatternView
 2) AuthCredentialPasswordView

Back button cancels password authentication

Test: manual test with pattern, pin, password
Test: atest com.android.systemui.biometrics

Change-Id: I95e42144616a59827da25d10d063990452714f76
2019-10-04 13:13:12 -07:00
Dave Mankoff
bb9575f5b5 Move StatusBar to constructor injection.
Bug: 141882822
Test: atest SystemUITests
Change-Id: I385ccd8e96b3e131b095db5adfca93389905d030
2019-10-03 22:55:35 -04:00
Kevin Chyn
8cbb488b9a 13/n: persist device credential across configuration changes
1) AuthContainerView can be started in either `biometric` or `credential`
   views. This is to potentially support an API where only credential
   is allowed/requested.
2) When onSaveState, AuthContainerView saves both the states of
   `biometric` and `credential` visibility. In the case of configuration
   change, AuthController is responsibile for checking the visibility
   and creating a AuthContainerView with the correct initial view.
3) When AuthCredentialView is the initial view, it owns the panel
   expansion.
4) Added landscape layout

Bug: 140127687

Test: atest com.android.systemui.biometrics
Test: BiometricPromptDemo, use pattern, rotate device. auth, cancel,
      demo logs are correct.

Change-Id: I1f501cf13b924353f251a69757fdb9d7e0bf1d21
2019-10-03 14:00:16 -07:00
Kevin Chyn
ff168dc49d 12/n: Add LockPatternView for setDeviceCredentialAllowed(true)
Includes lock icon, title, subtitle, description, lock pattern view.
Corner radius and padding animates nicely from !=0 --> 0.

Support for password/pin will come in a subsequent CL.
Unit tests for AuthCredentialView will be added when
password/pin are implemented.

Support for persisting across configuration changes
and landscape view will also be added in a subsequent
change.

Test: BiometricPromptDemo with the following:
      1) Confirm pattern, callback received
      2) Rejected, error string shown
      3) Lockout (5 attempts), countdown string shown,
         pattern view disabled until countdown is over
      4) Cancel pattern auth, callback received
Test: atest BiometricServiceTest
Test: atest com.android.systemui.biometrics

Change-Id: Idc01e33be0074a6c8a43f60b172a4391bfbe5e8a
2019-10-03 14:00:16 -07:00
Kevin Chyn
396a84129f 11/n: Animate panel to full-screen when "Use Password" is pressed
Bug: 140127687
Test: atest com.android.systemui.biometrics
Test: BiometricPromptDemo, enable device credential, press password button

Change-Id: I6a4c6ea7fb4a4f0c55faa049a8e7e71a1c5f19ff
2019-10-03 14:00:16 -07: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
976722f373 Merge "Add audio recording disclosure plate on TV" 2019-10-01 13:38:32 +00:00
Fabian Kozynski
71428f7944 Merge "Fix size and gravity of carrier text" 2019-09-30 15:02:31 +00: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
Fabian Kozynski
082aaf91c4 Fix size and gravity of carrier text
Test: manual
Fixes: 141654596
Change-Id: If5a4d794c6316149e752a94f7eed83a10d15b3b8
2019-09-27 08:59:24 -04:00
Matt Pietal
d43e133a08 Use proper margins for NPV plugin and set the offset
Set the offset to the size of the QS area and add margin after that to
visually separate the QS and NPVPlugin areas

Test: visual
Change-Id: I9dc676eef0a49f1648723cdd91043b839c880ee5
2019-09-26 11:11:06 -04:00
shawnlin
87af538d38 Move assist handles from ScreenDecorations to navigation bar
To improve the performance of display cutouts, we need to first move the
assist handles out of ScreenDecorations so that we can remove the layer
of ScreenDecorations later.

Bug: 140781914
Test: atest ScreenDecorationsTest, atest AssistHandleBehaviorControllerTest
Change-Id: I7c7cf8e0590d92aa32758c2983fc49387d18f7ad
2019-09-24 21:35:03 +08:00
Bill Yi
a76a632f5d Import translations. DO NOT MERGE
Change-Id: I0e8b3d3d7c1af28dfd75035552ed3b844ebe04bf
Auto-generated-cl: translation import
2019-09-21 16:33:53 -07:00
Kevin Chyn
62db716f7f Merge "Take optional fields into consideration when measuring" 2019-09-19 00:27:03 +00:00
Kevin Chyn
c2ea8f264f Take optional fields into consideration when measuring
Also, move the padding to the icon so it's not dependent on an optional
view.

Bug: 123378871
Test: Do not set subtitle/description. Dialog layout looks normal now.
Change-Id: Ia6ae768660442aeaadeb09aa7117780b8a97d56f
2019-09-18 11:47:36 -07:00
TreeHugger Robot
a988affa21 Merge "Add a third notification section" 2019-09-17 17:54:35 +00:00
Kevin Chyn
4266d333eb Merge "Remove lingering resources from old BiometricPrompt" 2019-09-17 16:35:27 +00:00
Kevin Chyn
d6aae0f528 Remove lingering resources from old BiometricPrompt
Bug: 123378871

Test: Builds
Change-Id: Ib9ec339110c166619310371a269a4295aabd1d09
2019-09-16 18:34:48 -07: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
Lucas Dupin
5ef1f82919 Merge "Remove enterprise disclosure from lock screen" 2019-09-16 15:52:04 +00:00
Lucas Dupin
f955a2fe90 Remove enterprise disclosure from lock screen
There's duplication and the persistent field is already on quick
settings, it's also taking up space and confusing users, since
it's too close to where we put error messages.

Fixes: 140939386
Fixes: 139966195
Fixes: 140053632
Test: visual
Change-Id: I06100e0e44db03e4998885ecfa0ffa301d1f5c65
2019-09-12 22:49:11 +00: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
Fabian Kozynski
053c2ebeaa Merge "Fix incorrect text when on Airplane Mode" 2019-09-12 12:59:25 +00: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
Kevin Chyn
889de4c680 6/n: Add fingerprint support to the refactored UI
Bug: 123378871

Test: atest com.android.systemui.biometrics
Test: manual test of fingerprint auth

Change-Id: Iac308557d5715c2450a2486d84a5a8292e4d3e42
2019-09-11 11:17:38 -07:00
Fabian Kozynski
1eb71b84a2 Merge "Add colors to tiles" 2019-09-11 15:31:38 +00: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
Fabian Kozynski
0f49f207c6 Fix incorrect text when on Airplane Mode
Only generate missing sim text if there are no CarrierName present AND
no sims READY. This was an issue when airplane mode with WFC.

Also, replace using mCarrierGroups[0] for its text when the sims are
missing. Instead use a different view that is made visible when all the
QSCarrierGroups should be invisible.

Test: manual, using APM
Test: atest
Fixes: 139556559

Change-Id: I9d83b0eb2a21b786d50c243903bf32b6e761dc77
2019-09-10 17:00:34 +00:00
Bill Yi
9d482ad25b Import translations. DO NOT MERGE
Change-Id: I73dfb28a39d0630b2f0174e876270a93c1c0eddd
Auto-generated-cl: translation import
2019-09-10 07:00:33 -07:00
Miranda Kephart
c2e91d6dcb Merge "Merge branch 'fetch_qt-qpr1-sysui-dev_5855545' into merge_qt-qpr1-sysui-dev_5855545" 2019-09-06 19:30:55 +00:00
Miranda Kephart
70ff3fb971 Merge branch 'fetch_qt-qpr1-sysui-dev_5855545' into merge_qt-qpr1-sysui-dev_5855545
Test: manual; presubmit on source branch

Change-Id: Ibc2bb3a04ee5605660ff4f2cf762af499db237c8
2019-09-06 18:27:58 +00:00
Fabian Kozynski
ab2c31a31f Merge "Adding a Plugin to attach things under QQS" 2019-09-06 13:05:32 +00:00
Kevin Chyn
90df5c81ac Merge "5/n: Restore biometric dialog state across configuration changes" 2019-09-06 02:41:10 +00:00
Kevin Chyn
9cf899162e 5/n: Restore biometric dialog state across configuration changes
Bug: 123378871

Test: manual test, rotating device during various stages of
      authentication
Test: atest com.android.systemui.biometrics

Change-Id: I4130f79975f58e5141c9d69e2689680ceaa419ed
2019-09-05 17:48:40 -07:00
Fabian Kozynski
3bf518dd98 Adding a Plugin to attach things under QQS
This plugin responds to expansion and changes in theme, ui, etc.

Test: manual

Change-Id: I5d866a4fff491aa6273edfb765e538864b270534
2019-09-05 12:26:13 -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
2a17568e0a Merge "[DO NOT MERGE] qt-qpr1-sysui-dev @ build 5814791" 2019-09-03 17:30:40 +00:00
TreeHugger Robot
7631a712c1 Merge "Import translations. DO NOT MERGE" 2019-09-01 15:37:50 +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
Bill Yi
1ec5982c33 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ide38da2a5b676a9952881e187ef3aeb8b7c9cf55
2019-08-31 23:41:54 -07:00